1 2002-09-20 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3 * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
4 Add clobber of the condition code register.
6 2002-09-20 Richard Henderson <rth@redhat.com>
8 * real.c (do_fix_trunc): Static.
9 (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
10 encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
11 encode_i370_single, encode_i370_double, encode_c4x_single,
12 encode_c4x_extended): Add default abort case.
14 2002-09-20 Richard Henderson <rth@redhat.com>
16 * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
17 MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
18 (struct realvaluetype): Remove.
19 (REAL_VALUE_TYPE): Use struct real_value.
20 (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
21 (test_real_width): New.
22 * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
23 (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
24 (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
25 real_isneg, real_isnegzero, real_identical, exact_real_inverse,
26 real_to_integer, real_to_integer2, real_to_decimal,
27 real_to_hexadecimal, real_from_string, real_from_integer,
28 real_inf, real_nan, real_2expN, real_convert, real_to_target,
29 real_from_target): Likewise.
30 * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
31 * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
33 2002-09-20 Richard Henderson <rth@redhat.com>
35 * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
36 IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
37 * defaults.h: ... here.
38 * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
39 config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
40 config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
41 config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
43 2002-09-20 Hans-Peter Nilsson <hp@bitrange.com>
45 * config/mmix/mmix.md ("negdf2"): Rewrite.
46 ("*expanded_negdf2"): New.
48 2002-09-19 Jim Wilson <wilson@redhat.com>
50 * combine.c (simplify_set): When optimizing a subreg src with a
51 cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
53 2002-09-19 Dale Johannesen <dalej@apple.com>
54 * combine.c (make_extraction): Don't create
57 2002-09-19 Ulrich Weigand <uweigand@de.ibm.com>
59 * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
60 and STRICT_LOW_PART within SET_DEST.
61 * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
62 splitters, replacing pre-reload splitters.
63 ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
64 "*zero_extendqihi2_31"): New insns.
65 ("*zero_extendqihi2_64"): Do not clobber CC.
67 2002-09-18 Devang Patel <dpatel@apple.com>
69 * cp/cp-tree.h: New prototype for walk_vtabls().
70 * cp/decl.c (walk_vtables_r): New function.
71 (struct cp_binding_level): Add new members, namespaces,
72 names_size and vtables.
73 (add_decl_to_level): Add decl in namespaces or vtables
74 chain, if conditions match.
75 (walk_vtables): New function.
76 (walk_namespaces_r): Travers separate namespace chain
78 (wrapup_globals_for_namespace): Use names_size instead
80 * cp/decl2.c (finish_file): Use walk_vtables() instead of
81 walk_globals() to walk vtable decls.
83 2002-09-19 Steve Ellcey <sje@cup.hp.com>
85 * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
86 (DTORS_SECTION_ASM_OP): Ditto.
87 (READONLY_DATA_SECTION_ASM_OP): Moved.
88 (DATA_SECTION_ASM_OP): New.
89 (SDATA_SECTION_ASM_OP): New.
90 (BSS_SECTION_ASM_OP): New.
91 (SBSS_SECTION_ASM_OP): New.
92 (TEXT_SECTION_ASM_OP): New.
94 2002-09-19 Kazu Hirata <kazu@cs.umass.edu>
96 * config/fp-bit.c: Follow spelling conventions.
97 * config/d30v/d30v.c: Likewise.
98 * config/d30v/d30v.h: Likewise.
99 * config/fr30/fr30.c: Likewise.
100 * config/fr30/fr30.h: Likewise.
101 * config/fr30/fr30.md: Likewise.
102 * config/frv/frv.c: Likewise.
103 * config/frv/frv.h: Likewise.
104 * config/h8300/h8300.c: Likewise.
105 * config/h8300/lib1funcs.asm: Likewise.
106 * config/i370/i370.c: Likewise.
107 * config/i386/i386.h: Likewise.
108 * config/i386/i386.md: Likewise.
109 * config/i386/pentium.md: Likewise.
110 * config/i386/winnt.c: Likewise.
111 * config/i960/i960.c: Likewise.
112 * config/ia64/ia64.h: Likewise.
113 * config/ip2k/ip2k.c: Likewise.
114 * config/ip2k/ip2k.h: Likewise.
115 * config/ip2k/ip2k.md: Likewise.
116 * config/ip2k/libgcc.S: Likewise.
118 2002-09-19 Stephen Clarke <stephen.clarke@superh.com>
120 * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
121 (GOTOFF_P): Extend to allow gotoff plus constant.
123 2002-09-18 Richard Henderson <rth@redhat.com>
125 * ifcvt.c (noce_process_if_block): Correctly detect X modified
126 with INSN_B before COND_EARLIEST. Don't check A and B for
127 modification in condition range. Reorder INSN_B for A==B properly.
128 (if_convert): Iterate until no matches for a block.
130 2002-09-18 Richard Henderson <rth@redhat.com>
132 * calls.c (store_one_arg): Rename default_align to parm_align;
133 always adjust parm_align for downward padding.
135 2002-09-18 Richard Henderson <rth@redhat.com>
137 * toplev.c (backend_init): Move init_real_once invocation ...
138 (do_compile): ... here.
140 2002-09-18 Richard Henderson <rth@redhat.com>
142 * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
143 RTX_UNCHANGING_P markers for successful tail-recursive replacement.
145 2002-09-18 Richard Henderson <rth@redhat.com>
147 * real.c (round_for_format): Collect sticky as unsigned long, not bool.
149 2002-09-19 Alan Modra <amodra@bigpond.net.au>
151 * config/rs6000/rs6000.md: (floatdisf2): Rename to
152 floatdisf2_internal1.
153 (floatdisf2): New define_expand.
154 (floatdisf2_internal2): Likewise.
156 2002-09-18 Richard Henderson <rth@redhat.com>
158 * real.c (sticky_rshift_significand): Collect sticky as
159 unsigned long, not bool.
161 2002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
163 * config/s390/s390.c (s390_address_cost): New function.
164 config/s390/s390-protos.h (s390_address_cost): Add prototype.
165 config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
166 (RTX_COST): Use COSTS_N_INSNS.
168 2002-09-18 Douglas Rupp <rupp@gnat.com>
169 Donn Terry <donnte@microsoft.com>
171 * stor-layout.c (place_field): Handle alignment of whole
172 structures when MSVC compatible bitfields are involved.
173 Change method of computing location of MS bitfields to
174 be compatible with #pragma pack(n).
176 * tree.h (record_layout_info): Add new field
177 remaining_in_alignment.
179 * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
180 (pragma pack): Add paragraph on MSVC bitfield packing.
182 2002-09-18 Richard Earnshaw (reanrsha@arm.com)
185 * arm.md (ne_zeroextractsi): Add clobber of the condition code
188 2002-09-18 Kazu Hirata <kazu@cs.umass.edu>
190 * config/s390/s390.c: Follow spelling conventions.
191 * config/sh/lib1funcs.asm: Likewise.
192 * config/sh/sh.c: Likewise.
193 * config/sh/sh.h: Likewise.
194 * config/sparc/sparc.c: Likewise.
195 * config/sparc/sparc.h: Likewise.
196 * config/sparc/sparc.md: Likewise.
197 * config/stormy16/stormy16.c: Likewise.
198 * config/stormy16/stormy16.h: Likewise.
199 * config/v850/v850.c: Likewise.
200 * config/v850/v850.h: Likewise.
201 * config/vax/vax.c: Likewise.
202 * config/vax/vax.h: Likewise.
204 2002-09-18 Nick Clifton <nickc@redhat.com>
206 * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
207 * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
208 * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
210 2002-09-17 Zack Weinberg <zack@codesourcery.com>
212 * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
213 statement that the only translation is to en_UK.
215 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
217 * config/alpha/alpha.c: Follow spelling conventions.
218 * config/alpha/alpha.h: Likewise.
219 * config/alpha/alpha.md: Likewise.
220 * config/arc/arc.h: Likewise.
221 * config/arm/arm.c: Likewise.
222 * config/arm/arm.h: Likewise.
223 * config/arm/arm.md: Likewise.
224 * config/arm/pe.c: Likewise.
225 * config/arm/unknown-elf.h: Likewise.
226 * config/avr/avr.c: Likewise.
227 * config/avr/avr.h: Likewise.
228 * config/c4x/c4x.c: Likewise.
229 * config/cris/cris.c: Likewise.
230 * config/cris/cris.h: Likewise.
232 2002-09-17 Samuel Figueroa <figueroa@apple.com>
234 * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
235 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
236 * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
238 2002-09-17 Dale Johannesen <dalej@apple.com>
240 * cfgcleanup.c (try_forward_edges): Do not forward a
241 branch to just after a loop exit before loop optimization;
242 this interfered with doloop detection.
244 2002-09-17 Nick Clifton <nickc@redhat.com>
246 * config/arm/arm.c (output_return_instruction): Do not
247 writeback the stack pointer when it is being loaded.
248 (arm_output_epilogue): Likewise.
250 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
252 * optabs.c (prepare_cmp_insn): Let emit_library_call_value
253 generate a pseudo reg that receives the result of a libcall.
254 (prepare_float_lib_cmp): Likewise.
256 2002-09-17 Steve Ellcey <sje@cup.hp.com>
258 * config/ia64/elf.h: Remove CPP_PREDEFINES.
260 Tue Sep 17 13:58:04 2002 Nicola Pero <n.pero@mi.flashnet.it>
262 Fix PR/7014 and related objc bugs:
263 * c-typeck.c (comp_target_types): Added a reflexive argument.
264 Pass it to ObjC when/if calling objc_comptypes(). Updated all
265 callers to provide the appropriate reflexive argument.
266 * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
267 typechecking for all cases of comparisons and assignments,
268 particularly the obscure and less common ones involving protocols.
270 2002-09-17 Nick Clifton <nickc@redhat.com>
272 * machmode.def (V1DImode): New mode. A single element vector.
273 * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
274 (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
275 * tree.c (build_common_tree_nodes_2): Build
276 unsigned_V1DI_type_node and V1D1_type_node.
277 * c-common.c (c_common_type_for_mode): Return
278 unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
279 * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
281 Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
283 * doc/objc.texi (Constant string objects): Extended documentation
284 to make clear that the constant string class ivar layout is
287 2002-09-17 Roger Sayle <roger@eyesopen.com>
289 * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
290 NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
292 2002-09-16 Richard Henderson <rth@redhat.com>
294 * expr.c (emit_block_move): Set memory block size as appropriate
297 2002-09-16 Richard Henderson <rth@redhat.com>
300 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
302 2002-09-16 Richard Henderson <rth@redhat.com>
304 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
305 as well as OFFSET for BITPOS.
307 2002-09-16 Jeff Garzik <jgarzik@mandrakesoft.com>
309 * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
310 * config/i386/i386.c (processor_alias_table): Add winchip-c6,
312 * doc/invoke.texi: Mention new aliases.
314 2002-09-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
316 * calls.c (store_one_arg): Set default alignment for BLKmode arguments
317 to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
319 * function.c (pad_below): Always compile.
320 (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
321 alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
322 Pad below when the argument is not in a register and the padding
323 direction is downward.
325 * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
326 (PAD_VARARGS_DOWN): Define.
327 * pa.c (function_arg_padding): Revise padding directions to make them
328 compatible with the 32 and 64-bit runtime architecture documentation.
329 (hppa_va_arg): Add code to handle variable and size zero arguments
330 passed by reference on TARGET_64BIT. Reformat.
331 (function_arg): Use a PARALLEL for BLKmode and aggregates args on
332 TARGET_64BIT. Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
333 wide when !TARGET_64BIT. Move forward check for mode==VOIDmode.
335 * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
336 (RETURN_IN_MEMORY): Return size zero types in memory.
337 (FUNCTION_VALUE): Return TFmode in general registers.
338 (MUST_PASS_IN_STACK): Define.
339 (FUNCTION_ARG_BOUNDARY): Simplify.
340 (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
342 (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
344 2002-09-16 Richard Henderson <rth@redhat.com>
346 * real.c (do_fix_trunc): New.
347 (real_arithmetic): Call it.
348 * simplify-rtx.c (simplify_unary_operation): Handle FIX
349 with a floating-point result mode.
351 2002-09-16 Richard Henderson <rth@redhat.com>
353 * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
354 (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
355 * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
356 (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
357 * builtins.c (fold_builtin_nan): New.
358 (fold_builtin): Call it.
359 * real.c (real_nan): Parse a non-empty string.
360 (round_for_format): Fix NaN significand truncation.
361 * real.h (real_nan): Return bool.
362 * doc/extend.texi: Document new builtins.
364 2002-09-16 Jason Merrill <jason@redhat.com>
365 Danny Smith <dannysmith@users.sourceforge.net>
367 * config/i386/winnt.c (ix86_handle_dll_attribute): Set
368 DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
369 (i386_pe_mark_dllimport): Not here.
371 2002-09-16 Nathan Sidwell <nathan@codesourcery.com>
373 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
375 2002-09-16 Geoffrey Keating <geoffk@redhat.com>
377 * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
378 warnings about unused operands when HOST_BITS_PER_WIDE_INT is
380 (rs6000_emit_cmove): Use real_isinf not target_isinf.
382 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
384 * calls.c (emit_library_call_value_1): Don't refer to
386 * optabs.c (prepare_float_lib_cmp): Likewise.
388 2002-09-16 Geoffrey Keating <geoffk@apple.com>
390 * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
393 The following changes are merged from pch-branch:
395 * doc/gty.texi (GTY Options): Document %a.
396 * gengtype.c (do_scalar_typedef): New function.
397 (process_gc_options): Handle `length' option.
398 (set_gc_used_type): A pointer to an array of structures doesn't
399 qualify as a pointer to a structure.
400 (output_escaped_param): Add `%a' escape.
401 (write_gc_structure_fields): Allow 'desc' on array of unions.
402 (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
405 * gengtype.c (enum rtx_code): Make global.
406 (rtx_format): Make global.
409 (write_rtx_next): New.
410 (adjust_field_rtx_def): Skip fields marked by chain_next.
411 (open_base_files): Delete redundant prototype.
412 (write_enum_defn): New.
413 (output_mangled_typename): Correct abort call.
414 (write_gc_marker_routine_for_structure): Handle chain_next and
416 (finish_root_table): Don't output redundant \n.
417 (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
418 * c-tree.h (union lang_tree_node): Add chain_next option.
420 * gengtype.h (NUM_PARAM): New definition.
421 (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
422 * gengtype.c (find_param_structure): New.
423 (adjust_field_type): Handle param<n>_is option.
424 (process_gc_options): Detect use_params option. Update callers.
425 (set_gc_used_type): Add 'param' parameter, update callers. Handle
427 (open_base_files): Add splay-tree.h to list of files included.
428 (output_mangled_typename): New.
429 (write_gc_structure_fields): Update 'param' parameter to support
430 multiple parameters. Change name mangling. Allow parameterized
431 fields to have an apparent scalar type. Handle param<n>_is options,
433 (write_gc_marker_routine_for_structure): Update for change to name
434 mangling. Better guess the output file for parameterized types.
435 (write_gc_types): Update for change to name mangling.
436 (write_gc_root): Update for change to name mangling. Handle (ignore)
438 * doc/gty.texi (GTY Options): Add description of param<n>_is
439 options, use_params option.
440 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
441 * gengtype-lex.l: Produce token for param<n>_is.
442 * gengtype-yacc.y: Parse param<n>_is.
444 * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
446 * rtl.c: Update comment describing rtx_format.
447 * rtl.h (union rtunion): Separate definition and typedef.
448 (struct rtx_def): Use gengtype to mark.
449 * Makefile.in (gengtype.o): Also depend on rtl.def.
450 * ggc.h (ggc_mark_rtx_children): Delete prototype.
451 (ggc_mark_rtx): Change to alias of gengtype-generated routine.
452 * ggc-common.c (ggc_mark_rtx_children): Delete.
453 (ggc_mark_rtx_children_1): Delete.
454 (gt_ggc_m_rtx_def): Delete.
455 * gengtype.c (adjust_field_rtx_def): New.
456 (adjust_field_type): Call adjust_field_rtx_def.
457 (write_gc_structure_fields): Add 'default' case to switch if none
458 is specified; remove unused code.
460 * tree.h (struct tree_exp): Update for change to meaning
462 * gengtype.c (adjust_field_tree_exp): New function.
463 (adjust_field_type): Handle `tree_exp' special here.
464 (write_gc_structure_fields): Don't handle `tree_exp' special here.
465 Handle new `dot' option.
467 * gengtype.h: Make `info' a pointer-to-const.
468 * gengtype-yacc.y (yacc_ids): Use xasprintf.
470 * gengtype.c (write_gc_structure_fields): Remove implementation
471 of `always' option, add `default' option.
472 * doc/gty.texi (GTY Options): Remove documentation of `always',
475 2002-09-16 Hans-Peter Nilsson <hp@bitrange.com>
477 * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
479 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
481 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
483 * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
484 instead of the *-protos.h file directly.
485 * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
486 * darwin.c (machopic_output_stub): Move prototype ...
487 * darwin-protos.h (machopic_output_stub): ... here.
488 * rs6000-protos.h (machopic_output_stub): Don't declare.
490 2002-09-16 Richard Henderson <rth@redhat.com>
492 * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
494 2002-09-16 Richard Henderson <rth@redhat.com>
496 * real.c, real.h: Rewrite from scratch.
498 * Makefile.in (simplify-rtx.o): Depend on TREE_H.
499 (paranoia): New target.
500 * builtins.c (fold_builtin_inf): Use new real.h interface.
501 * c-common.c (builtin_define_with_hex_fp_value): Likewise.
502 * c-lex.c (interpret_float): Likewise.
503 * emit-rtl.c (gen_lowpart_common): Likewise.
504 * optabs.c (expand_float): Use real_2expN.
505 * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
506 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
507 (FLOAT_WORDS_BIG_ENDIAN): New.
508 * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
509 directly to REAL_VALUE_NEGATIVE.
510 * loop.c (canonicalize_condition): Likewise.
511 * simplify-rtx.c: Include tree.h.
512 (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
513 with floating-point result modes.
514 * toplev.c (backend_init): Call init_real_once.
516 * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
517 * tree.c (build_real): Likewise.
518 * config/alpha/alpha.c, config/vax/vax.c (float_strings,
519 float_values, inited_float_values, check_float_value): Remove.
520 * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
521 config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
522 * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
523 (VAX_HALFWORD_ORDER): Remove.
525 2002-09-16 Ulrich Weigand <uweigand@de.ibm.com>
527 * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
528 (s390_load_address): ... this new function.
529 (s390_decompose_address): Allow the argument pointer and all
530 virtual registers as 'pointer' registers.
531 (s390_expand_plus_operand): Use s390_load_address.
532 config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
533 ("force_la_31"): New insn pattern.
534 config/s390/s390-protos.h (legitimize_la_operand): Remove.
535 (s390_load_address): Add prototype.
537 * config/s390/s390.c: Include "optabs.h".
538 (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
539 config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
540 s390_expand_cmpstr): Add prototypes.
541 config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
542 ("movstrdi_short"): Rename to "movstr_short_64". Change predicates
543 for operands 0 and 1 to "memory_operand". Add type attribute.
544 ("movstrsi_short"): Rename to "movstr_short_31". Change predicates
545 for operands 0 and 1 to "memory_operand". Add type attribute.
546 ("movstrdi_long", "movstrsi_long"): Remove.
547 ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
548 ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
549 ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
550 ("clrstrsico"): Remove, replace by ...
551 ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
552 ("clrstrsi_64"): Rename to "clrstr_long_64".
553 ("clrstrsi_31"): Rename to "clrstr_long_31".
554 ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
555 ("cmpstr_const"): Remove, replace by ...
556 ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
557 ("cmpstr_64"): Rename to "cmpstr_long_64".
558 ("cmpstr_31"): Rename to "cmpstr_long_31".
560 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
562 * ABOUT-NLS: Follow spelling conventions.
563 * ChangeLog: Likewise.
564 * ChangeLog.1: Likewise.
565 * ChangeLog.2: Likewise.
566 * ChangeLog.3: Likewise.
567 * ChangeLog.4: Likewise.
568 * ChangeLog.5: Likewise.
569 * ChangeLog.6: Likewise.
570 * FSFChangeLog.10: Likewise.
571 * FSFChangeLog.11: Likewise.
572 * c-common.c: Likewise.
574 * c-objc-common.c: Likewise.
575 * cppexp.c: Likewise.
576 * cppinit.c: Likewise.
577 * cpplex.c: Likewise.
578 * doloop.c: Likewise.
580 * function.c: Likewise.
581 * integrate.c: Likewise.
583 * reg-stack.c: Likewise.
584 * reload.h: Likewise.
587 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
589 * ChangeLog: Follow spelling conventions.
590 * ChangeLog.0: Likewise.
591 * ChangeLog.1: Likewise.
592 * ChangeLog.2: Likewise.
593 * ChangeLog.4: Likewise.
594 * ChangeLog.6: Likewise.
595 * config.gcc: Likewise.
596 * dwarfout.c: Likewise.
597 * reload1.c: Likewise.
598 * simplify-rtx.c: Likewise.
599 * unwind-sjlj.c: Likewise.
600 * config/avr/avr.h: Likewise.
601 * config/d30v/d30v.h: Likewise.
602 * config/frv/frv.c: Likewise.
603 * config/frv/frv.h: Likewise.
604 * config/ip2k/ip2k.h: Likewise.
605 * config/m88k/m88k-move.sh: Likewise.
606 * config/stormy16/stormy16.c: Likewise.
607 * config/stormy16/stormy16.h: Likewise.
608 * doc/extend.texi: Likewise.
609 * doc/interface.texi: Likewise.
610 * doc/invoke.texi: Likewise.
611 * doc/md.texi: Likewise.
612 * doc/rtl.texi: Likewise.
613 * doc/tm.texi: Likewise.
614 * doc/trouble.texi: Likewise.
615 * ginclude/float.h: Likewise.
616 * treelang/treelang.texi: Likewise.
618 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
620 * i386-protos.h (i386_pe_dllexport_name_p,
621 i386_pe_dllimport_name_p, i386_pe_unique_section,
622 i386_pe_declare_function_type, i386_pe_record_external_function,
623 i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
625 * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
626 * i386/t-interix (winnt.o): Likewise.
628 * v850-protos.h (v850_output_addr_const_extra): Prototype.
630 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
632 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
634 (TARGET_CPU_CPP_BUILTINS): Redefine.
635 (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
636 (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
638 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
640 * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
642 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
644 * ChangeLog: Follow spelling conventions.
645 * ChangeLog.0: Likewise.
646 * ChangeLog.1: Likewise.
647 * ChangeLog.2: Likewise.
648 * ChangeLog.3: Likewise.
649 * ChangeLog.4: Likewise.
650 * ChangeLog.5: Likewise.
651 * ChangeLog.6: Likewise.
652 * FSFChangeLog.10: Likewise.
653 * FSFChangeLog.11: Likewise.
654 * c-common.c: Likewise.
655 * c-common.h: Likewise.
656 * c-format.c: Likewise.
657 * c-opts.c: Likewise.
658 * cpplib.c: Likewise.
659 * langhooks.h: Likewise.
661 * reg-stack.c: Likewise.
662 * toplev.c: Likewise.
663 * config/arm/arm.c: Likewise.
664 * config/arm/arm.md: Likewise.
665 * config/arm/linux-gas.h: Likewise.
666 * config/arm/netbsd.h: Likewise.
667 * config/c4x/c4x.c: Likewise.
668 * config/c4x/c4x.h: Likewise.
669 * config/c4x/c4x.md: Likewise.
670 * config/c4x/libgcc.S: Likewise.
671 * config/fr30/fr30.md: Likewise.
672 * config/frv/frv.md: Likewise.
673 * config/ia64/ia64.md: Likewise.
674 * config/mips/mips.h: Likewise.
675 * config/mn10300/mn10300.c: Likewise.
676 * config/stormy16/stormy16.c: Likewise.
677 * config/v850/v850.md: Likewise.
678 * doc/extend.texi: Likewise.
679 * doc/invoke.texi: Likewise.
680 * doc/md.texi: Likewise.
682 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
684 * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
685 library if -pthread is specified.
687 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
689 * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
690 for --enable-threads=yes and --enable-threads=posix.
692 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
694 * config/sparc/cypress.md: Replace Sparc with SPARC.
695 * config/sparc/freebsd.h: Likewise.
696 * config/sparc/gmon-sol2.c: Likewise.
697 * config/sparc/hypersparc.md: Likewise.
698 * config/sparc/lb1spc.asm: Likewise.
699 * config/sparc/lb1spl.asm: Likewise.
700 * config/sparc/linux.h: Likewise.
701 * config/sparc/linux64.h: Likewise.
702 * config/sparc/lynx.h: Likewise.
703 * config/sparc/sol2.h: Likewise.
704 * config/sparc/sparc-modes.def: Likewise.
705 * config/sparc/sparc.c: Likewise.
706 * config/sparc/sparc.h: Likewise.
707 * config/sparc/sparc.md: Likewise.
708 * config/sparc/sparclet.md: Likewise.
709 * config/sparc/supersparc.md: Likewise.
710 * config/sparc/sysv4.h: Likewise.
711 * config/sparc/vxsim.h: Likewise.
712 * config/sparc/vxsparc64.h: Likewise.
714 2002-09-14 Marek Michalkiewicz <marekm@amelek.gda.pl>
716 * config/avr/avr.c (output.h): Move after inclusion of tree.h.
718 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
720 * ChangeLog: Follow spelling conventions.
721 * ChangeLog.0: Likewise.
722 * ChangeLog.2: Likewise.
723 * ChangeLog.3: Likewise.
724 * ChangeLog.4: Likewise.
725 * ChangeLog.5: Likewise.
726 * ChangeLog.6: Likewise.
727 * cppfiles.c: Likewise.
728 * cppinit.c: Likewise.
729 * cpplib.h: Likewise.
733 * dominance.c: Likewise.
734 * hashtable.c: Likewise.
735 * hashtable.h: Likewise.
737 * config/arm/README-interworking: Likewise.
738 * config/arm/arm.c: Likewise.
739 * config/arm/arm.h: Likewise.
740 * config/arm/arm.md: Likewise.
741 * config/dsp16xx/dsp16xx.h: Likewise.
742 * config/frv/frv.c: Likewise.
743 * config/frv/frv.h: Likewise.
744 * config/ip2k/ip2k.h: Likewise.
745 * config/rs6000/rs6000.c: Likewise.
746 * config/stormy16/stormy-abi: Likewise.
747 * config/stormy16/stormy16.h: Likewise.
748 * config/v850/v850.c: Likewise.
750 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
752 * loop.c: Fix a comment typo.
754 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
756 * config/fr30/fr30.h: Fix comment typos.
757 * config/frv/frv.c: Likewise.
758 * config/i386/xmmintrin.h: Likewise.
759 * config/mips/mips.c: Likewise.
760 * config/sh/sh.c: Likewise.
762 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
764 * haifa-sched.c: Follow spelling conventions.
765 * regclass.c: Likewise.
766 * regrename.c: Likewise.
767 * config/fp-bit.c: Likewise.
768 * config/frv/frv.h: Likewise.
769 * config/m88k/m88k.c: Likewise.
770 * config/mcore/mcore.c: Likewise.
771 * config/rs6000/darwin.h: Likewise.
772 * config/rs6000/gnu.h: Likewise.
773 * config/rs6000/linux.h: Likewise.
774 * config/rs6000/linux64.h: Likewise.
775 * config/rs6000/rs6000.c: Likewise.
776 * config/rs6000/rs6000.h: Likewise.
777 * config/sh/sh.c: Likewise.
778 * config/sparc/sparc.c: Likewise.
779 * config/sparc/ultra1_2.md: Likewise.
781 2002-09-14 Stephane Carrez <stcarrez@nerim.fr>
783 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
784 memory operand when source is 0 (K constraint).
785 ("movsi_internal"): Likewise.
786 ("movdf_internal"): Likewise.
787 ("movsf_internal"): Likewise.
789 2002-09-14 Alan Modra <amodra@bigpond.net.au>
791 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
792 targetm.binds_local_p to set SYMBOL_REF_FLAG.
793 (rs6000_xcoff_encode_section_info): Likewise.
794 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
796 2002-09-10 Theodore A. Roth <troth@verinet.com>
798 * gcc/config/avr/avr.h: Set default options for C++ for avr.
800 2002-09-13 Richard Henderson <rth@redhat.com>
802 * Makefile.in (toplev.o): Depend on real.h.
803 (print-rtl.o, varasm.o, ifcvt.o): Likewise.
805 2002-09-14 Alan Modra <amodra@bigpond.net.au>
807 * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
808 * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
809 * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
811 2002-09-13 Nathan Sidwell <nathan@codesourcery.com>
813 * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
815 2002-09-13 Steve Ellcey <sje@cup.hp.com>
817 * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
818 ia64*-*-linux*): Set extra_parts.
819 * config/ia64/t-aix (EXTRA_PARTS): Remove.
820 * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
822 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
824 * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
825 * config/h8300/h8300.c: Likewise.
826 * config/h8300/h8300.h: Likewise.
827 * config/h8300/h8300.md: Likewise.
828 * doc/invoke.texi: Likewise.
830 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
832 * config/h8300/h8300.c (h8300_init_once): Fix formatting.
834 2002-09-13 Matt Austern <austern@apple.com>
836 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
837 * cp/call.c: Change call-by-const-reference mechanism to use
838 non_cast_lvalue_p when deciding whether the create a temporary.
839 We need a temporary when passing, e.g. (long) x by const ref.
840 * testsuite/g++.dg/other/constref[12].C: New, regression tests for
841 passing a cast expression to a function by const reference.
843 2002-09-13 Richard Henderson <rth@redhat.com>
845 * config/alpha/alpha.md (attr type): Add callpal.
846 (imb, trap, load_tp, set_tp): Use it.
847 * config/alpha/ev4.md (ev4_callpal): New.
848 * config/alpha/ev5.md (ev5_callpal): New.
849 * config/alpha/ev6.md (ev6_ibr): Handle callpal.
850 * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
851 (alphaev5_insn_pipe): Likewise.
853 2002-09-13 Andreas Jaeger <aj@suse.de>
855 * Makefile.in (print-rtl.o): Depend on CONFIG_H.
857 2002-09-13 Steve Ellcey <sje@cup.hp.com>
859 * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
860 LIB2ADDEH): New, set to NULL.
861 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
863 2002-09-13 Steve Ellcey <sje@cup.hp.com>
865 * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
866 (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
867 (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
871 2002-09-13 Dhananjay Deshpande <dhananjayd@kpit.com>
873 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
874 for H8/300, H8S aa:8 mode.
875 (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
876 * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
877 for H8/300 aa:8 mode.
879 2002-09-13 Hartmut Penner <hpenner@de.ibm.com>
881 * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
884 2002-09-12 Richard Henderson <rth@redhat.com>
886 * Makefile.in (HOST_PRINT): Use print-rtl1.o
887 (print-rtl.o): Don't define GENERATOR_FILE.
888 (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
889 * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
890 unless GENERATOR_FILE.
892 2002-09-12 Stan Shebs <shebs@apple.com>
894 * config/darwin.h (USER_LABEL_PREFIX): Define here...
895 * config/i386/darwin.h: ... instead of here.
897 * target.h (struct gcc_target): New field
898 terminate_dw2_eh_frame_info.
899 * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
900 (TARGET_INITIALIZER): Add it.
901 * dwarf2out.c (output_call_frame_info): Use target hook.
902 * dwarf2asm.c (dw2_asm_output_delta): Use macro
903 ASM_OUTPUT_DWARF_DELTA if defined.
904 * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
905 (ASM_OUTPUT_DWARF_DELTA): Ditto.
906 (ASM_OUTPUT_DWARF_OFFSET): Ditto.
907 (ASM_OUTPUT_DWARF_PCREL): Ditto.
908 * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
909 (powerpc-*-darwin*): Ditto.
910 * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
911 to work correctly for Darwin.
912 * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
913 (STARTFILE_SPEC): Add crtbegin.o.
914 (ENDFILE_SPEC): Define.
915 (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
916 (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
917 (ASM_OUTPUT_DWARF_DELTA): Define.
918 (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
919 * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
921 2002-09-13 Alan Modra <amodra@bigpond.net.au>
923 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
924 nesting. Correct test for non-PowerPC64 ELF ABI_AIX.
925 * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
927 2002-09-12 Zack Weinberg <zack@codesourcery.com>
929 * toplev.c: Move default definition of USER_LABEL_PREFIX...
930 * defaults.h: ... here.
932 2002-09-12 Richard Henderson <rth@redhat.com>
934 * vax.c: Include tree.h earlier.
936 2002-09-12 Stan Shebs <shebs@apple.com>
938 * config/darwin.c (machopic_finish): Remove #if 0 chunks.
939 (machopic_operand_p): Ditto.
941 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
943 * config/arm/arm.c (arm_compute_initial_elimination_offset):
946 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
948 * toplev.c (do_abort): Fix a comment typo.
950 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
952 * cselib.c: Fix comment formatting.
953 * gengtype.c: Likewise.
955 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
957 * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
958 (udivmodhi4): Likewise.
960 2002-09-12 Graham Stott <graham.stott@btinternet.com>
961 Roger Sayle <roger@eyesopen.com>
963 * i386.c (any_fp_register_operand, fp_register_operand,
964 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
965 New predicate functions.
966 * i386-protos.h: Add their prototypes.
967 * i386.h: Add them to PREDICATE_CODES.
968 * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
969 "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
970 "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
971 "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
972 "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
973 "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
974 "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
975 "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
976 "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
977 "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
978 "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
979 Use these new predicates to simplify and correct the use of
980 FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
982 2002-09-12 Jason Merrill <jason@redhat.com>
984 * diagnostic.c (output_add_identifier): New fn.
985 * diagnostic.h: Declare it.
987 * calls.c (store_one_arg): Use size_in_bytes to determine the
988 amount of space to push.
990 2002-09-12 Jakub Jelinek <jakub@redhat.com>
992 * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
994 2002-09-12 Ulrich Weigand <uweigand@de.ibm.com>
996 * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
997 * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
998 (s390_select_ccmode): Likewise.
999 (s390_branch_condition_mask): Likewise.
1000 (optimization_options): Do not set flag_branch_on_count.
1001 (s390_split_branches): Handle doloop branches.
1002 (s390_chunkify_pool): Likewise.
1003 * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
1004 ("doloop_end"): New expander.
1005 ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
1006 associated splitters): New.
1008 2002-09-11 Hartmut Penner <hpenner@de.ibm.com>
1010 * fold-const.c (make_range): Only narrow to signed range if
1011 the signed range is smaller than the unsigned range.
1013 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1015 * emit-rtl.c (set_mem_size): New function.
1016 * expr.h (set_mem_size): Declare.
1017 * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
1018 (expand_block_move): Instead, use adjust_address and
1019 replace_equiv_address to generate proper aliasing info.
1020 Move common code out of conditionals. Localize vars.
1022 2002-09-09 Eric Botcazou ebotcazou@libertysurf.fr
1024 * optabs.c (expand_binop): Minor cleanup.
1025 (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
1027 2002-09-11 Dan Nicolaescu <dann@ics.uci.edu>
1029 * print-tree.c (print_node): Print the restrict qualifier.
1031 2002-09-11 Janis Johnson <janis187@us.ibm.com>
1033 * doc/install.texi: Fix typos.
1035 2002-09-11 Zack Weinberg <zack@codesourcery.com>
1037 * Makefile.in: Remove all references to s-under and underscore.c.
1038 * collect2.c, tlink.c: Change all uses of prepends_underscore
1039 to look directly at USER_LABEL_PREFIX.
1041 2002-09-11 David Edelsohn <edelsohn@gnu.org>
1043 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
1045 (rs6000_xcoff_unique_section): Only set section name for public
1047 (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
1048 * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
1049 duplicate definition.
1051 2002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
1053 * pa.md (extzv): Check predicates before emitting extzv_32.
1056 2002-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1058 * config/s390/s390.h (MOVE_MAX): Define to correct value.
1059 (MAX_MOVE_MAX): Define.
1060 (MOVE_BY_PIECES_P): Define.
1061 (CLEAR_BY_PIECES_P): Define.
1063 2002-09-10 Denis Chertykov <denisc@overta.ru>
1065 * config/avr/avr.md (movstrhi): Use right operands for conversion.
1067 2002-09-10 Richard Earnshaw <rearnsha@arm.com>
1070 * arm.md (insv): Use reg_or_int_operand for operand[3].
1072 2002-09-10 David Edelsohn <edelsohn@gnu.org>
1074 * rs6000.c (rs6000_assemble_visibility): Protect declaration
1075 inside macro. Correct function definition typo.
1076 (rs6000_xcoff_section_type_flags): New function.
1077 (TARGET_SECTION_TYPE_FLAGS): Remove definition.
1078 (rs6000_elf_section_type_flags): Call default_section_type_flags_1
1079 with appropriate PIC test.
1080 (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
1082 (rs6000_binds_local_p): Combine PIC flags.
1083 * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
1084 * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
1086 2002-09-09 Per Bothner <per@bothner.com>
1088 * print-tree.c (print_node): In a STRING_CST, escape non-ascii
1089 characters, and only print TREE_STRING_LENGTH chars.
1091 2002-09-09 Steve Ellcey <sje@cup.hp.com>
1093 * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
1095 * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
1096 * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
1097 * config/ia64/ia64.c (ia64_asm_output_external): Create list
1098 of external functions if TARGET_HPUX_LD is true.
1099 (ia64_hpux_add_extern_decl): New, routine to put names on
1100 list of external functions.
1101 (ia64_hpux_asm_file_end): Put out declarations for external
1102 functions if and only if they are used.
1104 2002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
1106 * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
1107 on TARGET_64BIT before pic register restore.
1109 2002-09-09 David Edelsohn <edelsohn@gnu.org>
1111 * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
1112 (TARGET_HAVE_TLS): New description.
1114 2002-09-09 Janis Johnson <janis187@us.ibm.com>
1116 * doc/extend.texi (Statement Exprs): Fix broken link.
1118 2002-09-09 Denis Chertykov <denisc@overta.ru>
1120 * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
1121 right conversion of operands[1].
1123 2002-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1125 * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
1126 commutative. Use "nonimmediate_operand" instead of "register_operand"
1127 as predicate for operand 0. Move to after the "*tmXX_mem" insns.
1129 ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
1132 ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
1133 mark as commutative. Use "nonimmediate_operand" instead of
1134 "register_operand" as predicate for operand 1.
1136 ("movstrictsi"): Fix typo in insn name.
1138 2002-09-09 Jan Hubicka <jh@suse.cz>
1140 * i386.c (index_register_operand): New.
1141 * i386.h (predicate_codes): Add new predicate.
1142 * i386.md (lea_general_*): Use index_regsiter_operand
1143 (ashift to lea splitter): Do not produce invalid leas
1144 (ashift to mov+ashift split): New.
1146 2002-09-09 Nick Clifton <nickc@redhat.com>
1148 * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
1151 2002-09-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
1152 J"orn Rennecke <joern.rennecke@superh.com>
1154 * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
1156 2002-09-09 Alan Modra <amodra@bigpond.net.au>
1158 * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
1159 (function_ok_for_sibcall): Use binds_local_p. Respect longcall
1162 2002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1164 * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
1166 2002-09-08 Richard Henderson <rth@redhat.com>
1168 * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
1169 (DW_OP_GNU_push_tls_address): New.
1170 (DW_OP_lo_user): Fix.
1171 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
1172 (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
1173 (size_of_loc_descr): Likewise.
1174 (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
1175 (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
1176 (loc_descriptor_from_tree): Handle TLS variables.
1177 (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
1178 (add_location_or_const_value_attribute): ... not here. Defer
1179 to loc_descriptor_from_tree for TLS variables.
1181 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
1182 * config/i386/i386.c (i386_output_dwarf_dtprel): New.
1183 * config/i386/i386-protos.h: Update.
1185 2002-09-08 Roger Sayle <roger@eyesopen.com>
1187 PR optimization/6405
1188 * unroll.c (loop_iterations): last_loop_insn should be the previous
1189 non-note instruction before loop->end.
1190 * loop.c (strength_reduce): The conditional jump is the last
1191 non-note instruction before loop->end (as above).
1193 2002-09-08 Roger Sayle <roger@eyesopen.com>
1195 * combine.c (try_combine): Handle the case that undobuf.other_insn
1196 has been turned into a return or unconditional jump, by inserting
1197 a BARRIER if necessary.
1198 (simplify_set): Test if a condition code setter has a constant
1199 comparison at compile time, if so convert this insn to a no-op move
1200 and update/simplify the condition code user (undobuf.other_insn).
1202 2002-09-08 Krister Walfridsson <cato@df.lth.se>
1204 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
1205 (CLEAR_INSN_CACHE): Define.
1207 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
1209 * basic-block.h: Fix comment formatting.
1210 * c-common.c: Likewise.
1211 * c-common.h: Likewise.
1212 * c-lex.c: Likewise.
1213 * c-pretty-print.c: Likewise.
1214 * cfglayout.c: Likewise.
1215 * cfgloop.c: Likewise.
1216 * defaults.h: Likewise.
1217 * et-forest.c: Likewise.
1218 * explow.c: Likewise.
1219 * function.h: Likewise.
1221 * genattrtab.c: Likewise.
1222 * gengtype.c: Likewise.
1223 * ifcvt.c: Likewise.
1224 * libgcc2.c: Likewise.
1226 * profile.c: Likewise.
1227 * ra-build.c: Likewise.
1230 * tracer.c: Likewise.
1231 * tree-inline.c: Likewise.
1232 * varasm.c: Likewise.
1234 2002-09-08 Jan Hubicka <jh@suse.cz>
1236 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
1239 * loop.c (loop_gics_reduce): Emit addition after.
1241 2002-09-08 Alan Modra <amodra@bigpond.net.au>
1243 * varasm.c (default_assemble_visibility): Rename from
1244 assemble_visibility.
1245 * output.h: Here too.
1246 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
1247 * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
1249 2002-09-08 Alan Modra <amodra@bigpond.net.au>
1251 * reload.c (find_reloads <p constraint>): Pass operand_mode to
1252 find_reloads_address.
1254 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
1256 * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
1257 (anonymous pattern): Likewise.
1259 2002-09-07 Scott Snyder <snyder@fnal.gov>
1262 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
1264 2002-09-07 Roger Sayle <roger@eyesopen.com>
1266 * basic-block.h (struct loop): Remove unused cont_dominator field.
1268 2002-09-07 Igor Shevlyakov <igor@microunity.com>
1270 * varasm.c (decode_rtx_const): Don't check undefined field for
1273 2002-09-07 Glen Nakamura <glen@imodulo.com>
1276 * sched-deps.c (sched_analyze_insn): Make sure to add insn
1277 to reg_last->sets after flushing the dependency lists to guarantee
1278 that subsequent clobbers will be dependent on it.
1280 2002-09-07 Igor Shevlyakov <igor@microunity.com>
1282 * combine.c (simplify_shift_const): Calculate rotate count
1283 correctly for vector operands.
1285 2002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de>
1287 * c-typeck.c (c_tree_expr_nonnegative_p): New function.
1288 (build_binary_op): Call c_tree_expr_nonnegative_p rather than
1289 tree_expr_nonnegative_p.
1290 (build_conditional_expr): Likewise.
1291 * c-tree.h (c_tree_expr_nonnegative_p): Declare.
1293 2002-09-07 Richard Henderson <rth@redhat.com>
1295 * builtins.def (inf, inff, infl): Mark const.
1296 (huge_val, huge_valf, huge_vall): Likewise.
1297 (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
1299 * real.c (ereal_inf): Clear E before use.
1301 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
1303 * config/h8300/h8300.md (udivmodqi4): Split the pattern into
1304 an expander and an anonymous pattern. Zero out the upper half
1305 of the dividend in the expander.
1306 (udivmodqi4): Likewise.
1308 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
1310 * config/h8300/h8300.c: Fix formatting.
1311 * config/h8300/h8300.h: Likewise.
1312 * config/h8300/h8300.md: Likewise.
1314 2002-09-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1316 * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
1319 2002-09-07 Graham Stott <graham.stott@btinternet.con>
1321 * rtlanal.c (dead_or_set_regno_p): Fix typo.
1323 2002-09-07 Alan Modra <amodra@bigpond.net.au>
1325 * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1327 * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
1328 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1329 (TARGET_ASM_OUT): Add the above here.
1330 * target.h (struct gcc_target): Add "visibility" field.
1331 * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
1332 * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
1333 (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
1334 (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
1336 2002-09-06 Ziemowit Laski <zlaski@apple.com>
1338 * c-lang.c (objc_is_id): New stub.
1339 * c-tree.h (objc_is_id): New forward declaration.
1340 * c-typeck.c (build_c_cast): Do not strip protocol
1341 qualifiers from 'id' type.
1342 * objc/objc-act.c (objc_comptypes): Correct handling
1343 of protocol qualifiers.
1346 Fri Sep 6 13:10:08 2002 Jeffrey A Law (law@redhat.com)
1348 * pentium.md (pentium-firstvboth): Fix typo.
1350 2002-09-06 Dhananjay Deshpande <dhananjayd@kpit.com>
1352 * h8300.c (enum shift_alg): Move to earlier in h8300.c.
1353 (enum shift_type, enum h8_cpu): Likewise.
1354 (INL, ROT, LOP, SPC macros): Likewise.
1355 (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise. Lose
1357 (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
1358 space efficient algorithms when optimize for codesize.
1360 Fri Sep 6 16:35:32 2002 Nicola Pero <n.pero@mi.flashnet.it>
1362 Fix PR/1727 and long-standing failing testcase
1363 objc/formal-protocol-6.m.
1364 * objc-act.c (build_protocol_expr): If compiling for the GNU
1365 runtime, create a list of Protocol statically allocated instances
1366 if it doesn't exist, then add the Protocol object to this same
1368 (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
1369 instead of TREE_CHAIN.
1371 Fri Sep 6 16:17:33 2002 Nicola Pero <n.pero@mi.flashnet.it>
1373 * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
1374 10k. Fixed category dumping - print out category names with the
1375 proper syntax. Print '@end\n' and not '\n@end' at the end of the
1377 (finish_objc): Fixed the -gen-decls option. It was printing out
1378 only the last class. Dump an interface declaration of all classes
1379 being compiled instead.
1381 2002-09-06 Jason Thorpe <thorpej@wasabisystems.com>
1383 * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
1385 * config/arm/arm.c (arm_gen_return_addr_mask): New function.
1386 * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
1387 if not APCS26 and not Thumb or ARMv4-or-higher. Use gen_int_mode
1388 rather than GEN_INT.
1389 * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
1390 (return_addr_mask, *check_arch2): New.
1392 2002-09-06 Ulrich Weigand <uweigand@de.ibm.com>
1394 * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
1395 "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
1396 "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
1397 "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
1398 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
1399 "adddf3", "*adddf3", "*adddf3_ibm",
1400 "addsf3", "*addsf3", "*addsf3_ibm",
1401 "muldi3", "mulsi3", "mulsidi3",
1402 "muldf3", "*muldf3", "*muldf3_ibm",
1403 "mulsf3", "*mulsf3", "*mulsf3_ibm",
1404 "*anddi3_cc", "*anddi3_cconly", "anddi3",
1405 "*andsi3_cc", "*andsi3_cconly", "andsi3",
1406 "*iordi3_cc", "*iordi3_cconly", "iordi3",
1407 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
1408 "*xordi3_cc", "*xordi3_cconly", "xordi3",
1409 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
1410 instead of "register_operand" as predicate for "%0" operand.
1412 2002-09-06 Jakub Jelinek <jakub@redhat.com>
1414 * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
1415 unconditionally when gcc_cv_as_flags64 checks are gone.
1416 * configure: Rebuilt.
1418 2002-09-06 Alan Modra <amodra@bigpond.net.au>
1420 * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
1421 2002-07-26 change. Comment.
1423 2002-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1425 * frv.c (frv_unique_section, frv_select_section,
1426 frv_select_rtx_section): Delete.
1427 (frv_in_small_data_p): New.
1428 (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
1429 TARGET_ASM_SELECT_RTX_SECTION): Delete.
1430 (TARGET_IN_SMALL_DATA_P): Define.
1432 2002-09-05 Dale Johannesen <dalej@apple.com>
1434 * reload1.c (reload): Retain only those memory clobbers
1435 added for variable-array handling.
1437 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
1439 * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
1440 return-in-memory rules.
1441 * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
1443 2002-09-05 David Edelsohn <edelsohn@gnu.org>
1445 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
1446 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
1448 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
1450 * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
1451 not a compile-time constant for the non-IBM case.
1452 * config/arm/arm-protos.h (arm_float_words_big_endian): New
1454 * config/arm/arm.c (arm_float_words_big_endian): New function.
1455 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
1456 if TARGET_VFP and not TARGET_HARD_FLOAT.
1457 (ARM_FLAG_VFP, TARGET_VFP): Define.
1458 (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
1460 2002-09-05 David Edelsohn <edelsohn@gnu.org>
1462 * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
1463 URLs. Fix AIX wording.
1465 2002-09-05 Stan Shebs <shebs@apple.com>
1467 * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
1468 -fPIC equivalent on Darwin.
1470 Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
1472 * sh.c (sh_expand_builtin): Return early if encountering an
1473 error_mark for a type.
1475 2002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
1477 * config/s390/s390.c (s390_expand_plus_operand): Do not require
1478 double-word scratch register.
1479 config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
1481 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
1482 "*cli"): Replace s_operand by memory_operand.
1483 ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
1485 2002-09-05 Kazu Hirata <kazu@cs.umass.edu>
1487 * config/h8300/h8300.c (asm_file_start): Add a missing
1490 2002-09-04 Krister Walfridsson <cato@df.lth.se>
1492 * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
1493 * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
1494 (ix86_output_addr_diff_elt) Likewise.
1495 (x86_output_mi_thunk) Likewise.
1496 * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
1498 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1500 * frv.c (frv_encode_section_info): Fix error in last change.
1502 2002-09-04 David Edelsohn <edelsohn@gnu.org>
1504 * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
1505 (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
1506 (TARGET_BINDS_LOCAL_P): Define.
1507 (rs6000_override_options): Save original flag_pic value.
1508 (rs6000_elf_select_section): Call default_elf_select_section_1.
1509 (rs6000_elf_unique_section): Call default_unique_section_1.
1510 (rs6000_elf_in_small_data_p): New function.
1511 (rs6000_xcoff_asm_named_section): Determine storage mapping class.
1512 (rs6000_xcoff_select_section): Update based on defaults.
1513 (rs6000_xcoff_unique_section): Set to basic name if not common.
1514 (rs6000_binds_local_p): New function.
1515 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1516 targetm.have_srodata_section if SDATA_EABI.
1517 (TARGET_IN_SMALL_DATA_P): Define.
1519 2002-09-04 Dale Johannesen <dalej@apple.com>
1521 * varasm.c (struct rtx_const, decode_rtx_const):
1522 Make veclo and vechi fields not share storage.
1524 Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
1526 * loop.c (scan_loop): Don't mark separate insns out of a libcall
1528 (move_movables): Abort if we see the first insn of a libcall.
1530 2002-09-04 Richard Henderson <rth@redhat.com>
1532 * builtin-types.def (BT_FN_FLOAT): New.
1533 (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
1534 * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
1535 BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
1536 * builtins.c (fold_builtin_inf): New.
1537 (fold_builtin): Call it.
1538 * real.c (ereal_inf): New.
1539 * real.h: Declare it.
1540 * doc/extend.texi: Document new builtins.
1542 2002-09-04 Richard Henderson <rth@redhat.com>
1544 * cse.c (cse_insn): Avoid subreg games if the equivalence
1545 is already in the proper mode.
1547 2002-09-04 Eric Botcazou <ebotcazou@multimania.com>
1550 * optabs.c (expand_binop): Convert CONST_INTs in all cases.
1552 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1554 * pa.md (setccfp0, setccfp1): New patterns.
1556 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1558 * frv-protos.h (frv_init_builtins, frv_expand_builtin,
1559 frv_select_section, frv_select_rtx_section,
1560 frv_encode_section_info, frv_unique_section): Delete.
1561 * frv.c: Update for target hooks.
1562 * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
1563 SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
1564 EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
1566 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1568 * ip2k-protos.h (function_prologue, function_epilogue,
1569 encode_section_info): Update to match target hook specification.
1570 * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
1571 (function_prologue, function_epilogue, encode_section_info):
1572 Update to match target hook specification.
1573 * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
1574 ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
1575 (NOTICE_UPDATE_CC): Cast to void.
1576 * ip2k.md: Add defaults in switch statements.
1578 2002-09-04 Janis Johnson <janis187@us.ibm.com>
1580 * doc/trouble.texi (Interoperation): Update information about C++ ABI
1583 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1585 * config/sparc/t-netbsd64: Disable multilib for now.
1587 2002-09-04 David Edelsohn <edelsohn@gnu.org>
1589 * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
1590 * target.h (gcc_target): Add have_srodata_section member.
1591 * varasm.c (section_category): Add SECCAT_SRODATA.
1592 (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
1593 READONLY_SDATA_SECTION defined.
1594 (decl_readonly_section_1): True for SECCAT_SRODATA also.
1595 (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
1596 (default_unique_section_1): Likewise.
1598 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1600 * expr.c (emit_group_load): Revise to allow splitting TCmode source
1603 * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
1604 * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
1605 for floating-point register class.
1606 * pa.c (function_arg): Fix handling of modes wider than one word for
1609 Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
1611 * combine.c (make_compound_operation): Don't generate zero / sign
1612 extensions in floating point modes.
1614 2002-09-04 Janis Johnson <janis187@us.ibm.com>
1616 * doc/c-tree.texi: Fix overfull hboxes.
1617 * doc/cppopts.texi: Ditto.
1618 * doc/extend.texi: Ditto.
1619 * doc/gty.texi: Ditto.
1620 * doc/invoke.texi: Ditto.
1621 * doc/makefile.texi: Ditto.
1622 * doc/rtl.texi: Ditto.
1623 * doc/standards.texi: Ditto.
1624 * doc/tm.texi: Ditto.
1626 2002-09-04 Richard Henderson <rth@redhat.com>
1628 * c-common.c (builtin_define_with_hex_fp_value): New.
1629 (builtin_define_float_constants): Use it. Fix H_FLOAT mant_dig.
1631 2002-09-04 Janis Johnson <janis187@us.ibm.com>
1633 * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
1634 (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
1635 -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
1636 Warn that these options can break ABI compatibility.
1638 2002-09-04 Richard Henderson <rth@redhat.com>
1640 * real.c (ereal_to_decimal): Add digits parameter.
1641 * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
1642 * c-pretty-print.c (pp_c_real_literal): Update call.
1643 * print-rtl.c (print_rtx): Likewise.
1644 * print-tree.c (print_node_brief, print_node): Likewise.
1645 * sched-vis.c (print_value): Likewise.
1646 * config/arc/arc.c (arc_print_operand): Likewise.
1647 * config/c4x/c4x.c (c4x_print_operand): Likewise.
1648 * config/i370/i370.h (PRINT_OPERAND): Likewise.
1649 * config/i386/i386.c (print_operand): Likewise.
1650 * config/i960/i960.c (i960_print_operand): Likewise.
1651 * config/ip2k/ip2k.c (asm_output_float): Likewise.
1652 * config/m32r/m32r.c (m32r_print_operand): Likewise.
1653 * config/m68hc11/m68hc11.c (print_operand): Likewise.
1654 * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
1655 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1656 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
1657 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
1658 * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
1659 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1660 * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
1661 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1662 * config/mips/mips.c (print_operand): Likewise.
1663 * config/ns32k/ns32k.c (print_operand): Likewise.
1664 * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
1665 * config/vax/vax.h (PRINT_OPERAND): Likewise.
1666 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
1668 2002-09-04 Bob Wilson <bob.wilson@acm.org>
1670 * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
1671 xtensa_multibss_section_type_flags.
1672 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
1674 2002-09-04 Richard Henderson <rth@redhat.com>
1676 * doc/install-old.texi: Don't mention enquire.
1677 * doc/sourcebuild.texi: Update float.h description.
1679 Wed Sep 4 11:22:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
1681 * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
1683 2002-09-03 David Edelsohn <edelsohn@gnu.org>
1685 * varasm.c (default_section_type_flags): Append _1 to name with
1686 shlib parameter. Use original name to call new function with
1688 (decl_readonly_section): Likewise.
1689 (default_elf_select_section): Likewise.
1690 (default_unique_section): Likewise.
1691 (default_bind_local_p): Likewise.
1692 (categorize_decl_for_section): Add shlib parameter to use in place
1693 of implicit flag_pic.
1694 * output.h: Declare new functions with _1 and shlib argument.
1696 2002-09-03 Janis Johnson <janis187@us.ibm.com>
1698 * doc/install.texi: Fix typos, formatting problems, and obvious
1699 overfull/underfull boxes.
1701 * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
1702 * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
1703 include its file, compat.texi.
1704 * doc/compat.texi: New file with new chapter, Binary Compatibility.
1706 2002-09-03 Neil Booth <neil@daikokuya.co.uk>
1708 Debian BTS Bug #157416
1709 * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
1710 * cpplib.c (destringize_and_run): Kludge around getting
1711 tokens from in-progress macros.
1712 (_cpp_do__Pragma): Simplify.
1714 2002-09-03 Steve Ellcey <sje@cup.hp.com>
1716 * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
1717 (CPP_CPU_SPEC): Remove.
1718 (TARGET_CPU_CPP_BUILTINS): New.
1719 * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
1721 (TARGET_OS_CPP_BUILTINS): New.
1722 * config/ia64/linux.h (CPP_PREDEFINES): Remove.
1723 (TARGET_OS_CPP_BUILTINS): New.
1724 * config/ia64/aix.h (CPP_SPEC): Move some stuff to
1725 TARGET_OS_CPP_BUILTINS.
1726 (CPP_PREDEFINES): Remove.
1727 (CPLUSPLUS_CPP_SPEC): Remove.
1728 (TARGET_OS_CPP_BUILTINS): New.
1730 2002-09-03 Richard Henderson <rth@redhat.com>
1732 * Makefile.in (USER_H): Add ginclude/float.h.
1734 (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
1735 (mostlyclean): Don't remove float.h intermediate files.
1736 (distclean): Don't remove float.h.
1737 * config.gcc: Remove all float_format references.
1738 * configure.in (float_format, float_h_file): Remove.
1740 * c-common.c: Include tree-inline.h.
1741 (builtin_define_with_int_value): New.
1742 (builtin_define_type_precision): Use it.
1743 (builtin_define_float_constants): New.
1744 (cb_register_builtins): Use it. Define __FLT_RADIX__ and
1745 __FLT_EVAL_METHOD__.
1746 * defaults.h (TARGET_FLT_EVAL_METHOD): New.
1747 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
1748 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
1749 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
1750 (TARGET_FLT_EVAL_METHOD): New.
1752 * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
1753 config/float-i386.h, config/float-i64.h, config/float-m68k.h,
1754 config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
1755 * ginclude/float.h: New.
1757 2002-09-03 Stan Shebs <shebs@apple.com>
1759 * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
1760 (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
1761 (PREFERRED_DEBUGGING_TYPE): Ditto.
1762 (ASM_OUTPUT_IDENT): Remove empty definition.
1764 2002-09-03 Steve Ellcey <sje@cup.hp.com>
1766 * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
1768 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
1769 handling routine for builtin pragma.
1770 * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
1771 Registered pragma handling routine.
1772 * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
1773 (ia64_hpux_add_pragma_builtin) New subroutine used by above.
1774 If builtin pragma seen for math routine and C89 conformance is
1775 requested use different math function in order to set errno.
1776 * t-ia64 (ia64-c.o): Add new rule for new file.
1778 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1780 * config/s390/s390.md ("movti"): Add Q->Q alternative.
1781 ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1782 "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
1784 ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
1785 "*movsf_ss"): Remove.
1787 2002-09-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1789 * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
1792 2002-09-03 Arati Dikey <aratid@kpit.com>
1794 * h8300.c (asm_file_start): Corrected optimization comment.
1796 2002-09-03 Stan Shebs <shebs@apple.com>
1798 * c-lang.c (recognize_objc_keyword): Remove, no longer used.
1799 * c-tree.h (recognize_objc_keyword): Remove decl.
1800 * c-typeck.c (comp_target_types): Update a comment.
1802 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
1804 * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
1805 and register validity checks.
1806 (general_s_operand): Adapt to s390_decompose_address interface change.
1807 (q_constraint): Likewise.
1808 (s390_expand_plus_operand): Likewise.
1809 (legitimiate_address_p): Likewise.
1810 (legitimate_la_operand_p): Likewise.
1811 (legitimize_la_operand): Likewise.
1812 (print_operand_address): Likewise.
1813 (print_operand): Likewise.
1815 Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it>
1818 * objc/objc-act.c (build_typed_selector_reference): Fix typo which
1819 was causing the new selector never to match the existing ones
1820 (Patch by Alexander Malmberg <alexander@malmberg.org>).
1822 2002-09-03 Graham Stott <graham.stott@btinternet.com>
1824 * config/i386/i386.md ("femms"): Add "memory" attr "none".
1826 2002-09-03 Graham Stott <graham.stott@btinternet.com>
1828 * expr.c (expand_expr): Remove extraneous comment and code.
1830 2002-08-31 Richard Henderson <rth@redhat.com>
1832 * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
1834 2002-08-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
1836 * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
1838 2002-08-30 Richard Henderson <rth@redhat.com>
1841 * c-objc-common.c: Include target.h.
1842 (c_cannot_inline_tree_fn): Don't auto-inline functions that
1843 don't bind locally. Factor setting DECL_UNINLINABLE.
1844 * Makefile.in (c-objc-common.o): Update.
1846 2002-08-30 Janis Johnson <janis187@us.ibm.com>
1848 * doc/install.texi (Configuration, Building): Fix a typo and
1849 some formatting directives.
1851 2002-08-30 Paul Koning <pkoning@equallogic.com>
1853 * doc/c-tree.texi (RDIV_EXPR): Fix typo.
1854 * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
1856 * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
1857 for alphabetic order.
1858 * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
1859 VAX_FLOAT_FORMAT. Remove reference to HOST_FLOAT_FORMAT.
1860 (VAX_HALFWORD_ORDER): Document.
1861 (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
1863 (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
1864 (ASM_OUTPUT_LABEL_REF): Fix font.
1865 (CASE_VECTOR_SHORTEN_MODE): Ditto.
1867 2002-08-30 Denis Chertykov <denisc@overta.ru>
1869 * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
1871 (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
1872 CONST_DOUBLE constants.
1874 2002-08-30 Jason Thorpe <thorpej@wasabisystems.com>
1876 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
1877 related defines to...
1878 (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
1879 * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
1882 2002-08-30 Krister Walfridsson <cato@df.lth.se>
1884 * config/arm/arm.c (arm_asm_output_labelref): New function.
1885 * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
1886 * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
1888 2002-08-29 Rodney Brown <rbrown64@csc.com.au>
1890 * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
1891 memory exhausted" workarounds.
1893 2002-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
1895 * diagnostic.c (fancy_abort): Don't repeat "internal error".
1896 * toplev.c (crash_signal): Likewise.
1898 Fri Aug 30 00:33:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
1900 * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
1901 * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
1902 Extended, updated documentation.
1903 (-Wundeclared-selector): Documented.
1905 2002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
1907 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
1908 the value 1. Do not undef before defining.
1909 * config/darwin.h: Likewise.
1910 * config/dbx.h: Likewise.
1911 * config/dbxcoff.h: Likewise.
1912 * config/dbxelf.h: Likewise.
1913 * config/elfos.h: Likewise.
1914 * config/interix.h: Likewise.
1915 * config/lynx-ng.h: Likewise.
1916 * config/lynx.h: Likewise.
1917 * config/netware.h: Likewise.
1918 * config/psos.h: Likewise.
1919 * config/svr3.h: Likewise.
1920 * config/alpha/alpha.h: Likewise.
1921 * config/alpha/elf.h: Likewise.
1922 * config/alpha/vms.h: Likewise.
1923 * config/arc/arc.h: Likewise.
1924 * config/arm/aout.h: Likewise.
1925 * config/arm/coff.h: Likewise.
1926 * config/c4x/c4x.h: Likewise.
1927 * config/h8300/h8300.h: Likewise.
1928 * config/i386/cygwin.h: Likewise.
1929 * config/i386/djgpp.h: Likewise.
1930 * config/i386/gas.h: Likewise.
1931 * config/i386/gstabs.h: Likewise.
1932 * config/i386/i386-coff.h: Likewise.
1933 * config/i386/i386-interix.h: Likewise.
1934 * config/i386/sco5.h: Likewise.
1935 * config/i386/svr3dbx.h: Likewise.
1936 * config/i386/sysv3.h: Likewise.
1937 * config/i386/win32.h: Likewise.
1938 * config/i386/x86-64.h: Likewise.
1939 * config/i960/i960.h: Likewise.
1940 * config/ia64/ia64.h: Likewise.
1941 * config/ip2k/ip2k.h: Likewise.
1942 * config/m32r/m32r.h: Likewise.
1943 * config/m68k/3b1.h: Likewise.
1944 * config/m68k/3b1g.h: Likewise.
1945 * config/m68k/ccur-GAS.h: Likewise.
1946 * config/m68k/coff.h: Likewise.
1947 * config/m68k/hp2bsd.h: Likewise.
1948 * config/m68k/hp310g.h: Likewise.
1949 * config/m68k/hp320g.h: Likewise.
1950 * config/m68k/hp3bsd.h: Likewise.
1951 * config/m68k/hp3bsd44.h: Likewise.
1952 * config/m68k/linux-aout.h: Likewise.
1953 * config/m68k/m68k-aout.h: Likewise.
1954 * config/m68k/mot3300.h: Likewise.
1955 * config/m68k/netbsd.h: Likewise.
1956 * config/m68k/openbsd.h: Likewise.
1957 * config/m68k/pbb.h: Likewise.
1958 * config/m68k/plexus.h: Likewise.
1959 * config/m68k/sun2.h: Likewise.
1960 * config/m68k/sun3.h: Likewise.
1961 * config/m68k/tower-as.h: Likewise.
1962 * config/m68k/vxm68k.h: Likewise.
1963 * config/m88k/aout-dbx.h: Likewise.
1964 * config/m88k/m88k-aout.h: Likewise.
1965 * config/mcore/mcore-elf.h: Likewise.
1966 * config/mcore/mcore-pe.h: Likewise.
1967 * config/mips/elf.h: Likewise.
1968 * config/mips/elf64.h: Likewise.
1969 * config/mips/iris5gas.h: Likewise.
1970 * config/mips/iris6.h: Likewise.
1971 * config/mips/mips.h: Likewise.
1972 * config/mips/sni-gas.h: Likewise.
1973 * config/mmix/mmix.h: Likewise.
1974 * config/ns32k/netbsd.h: Likewise.
1975 * config/pa/pa64-hpux.h: Likewise.
1976 * config/romp/romp.h: Likewise.
1977 * config/rs6000/sysv4.h: Likewise.
1978 * config/rs6000/xcoff.h: Likewise.
1979 * config/sh/coff.h: Likewise.
1980 * config/sh/elf.h: Likewise.
1981 * config/sparc/linux64.h: Likewise.
1982 * config/sparc/liteelf.h: Likewise.
1983 * config/sparc/netbsd.h: Likewise.
1984 * config/sparc/openbsd.h: Likewise.
1985 * config/sparc/pbd.h: Likewise.
1986 * config/sparc/sp64-elf.h: Likewise.
1987 * config/sparc/sp86x-elf.h: Likewise.
1988 * config/sparc/sparc.h: Likewise.
1989 * config/vax/vax.h: Likewise.
1990 * config/vax/vaxv.h: Likewise.
1992 2002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
1994 * h8300.c (shift_alg_hi): Various tweaks to improve performance
1996 (get_shift_alg): Corresponding changes.
1998 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
2000 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
2002 2002-08-29 Richard Henderson <rth@redhat.com>
2004 * expr.h (enum block_op_methods): New.
2005 (emit_block_move): Update prototype.
2006 * expr.c (block_move_libcall_safe_for_call_parm): New.
2007 (emit_block_move_via_loop): New.
2008 (emit_block_move): Use them. New argument METHOD.
2009 (emit_push_insn): Always respect the given alignment.
2010 (expand_assignment): Update call to emit_block_move.
2011 (store_expr, store_field, expand_expr): Likewise.
2012 * builtins.c (expand_builtin_apply): Likewise.
2013 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2014 * function.c (expand_function_end): Likewise.
2015 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
2016 * config/sparc/sparc.c (sparc_va_arg): Likewise.
2017 * calls.c (expand_call, emit_library_call_value_1): Likewise.
2018 (save_fixed_argument_area): Use emit_block_move with
2019 BLOCK_OP_CALL_PARM instead of move_by_pieces.
2020 (restore_fixed_argument_area): Likewise.
2021 (store_one_arg): Fix alignment parameter to emit_push_insn.
2023 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
2025 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
2027 2002-08-29 Catherine Moore <clm@redhat.com>
2029 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
2030 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
2031 (PREDICATE_CODES): Include new predicates.
2032 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
2033 (TARGET_SWITCHES): Add strict-align.
2034 (TARGET_STRICT_ALIGN): New.
2035 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
2036 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2038 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
2040 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
2041 L_callt_save_r2_r31, L_return_r2_r31,
2042 L_save_all_interrupt): Change addi to add.
2043 (L_save_interrupt, L_return_interrupt): Rework.
2044 (__return_r31): Correct .size directive.
2045 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
2046 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
2048 * config/v850/v850.c (expand_prologue): Call
2049 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
2050 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
2051 (reg_or_int9_operand): New predicate.
2052 (reg_or_const_operand): New routine.
2053 * config/v850/v850.md (return_interrupt): Changed from
2055 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
2056 (callt_save_interrupt): Change save sequence.
2057 (callt_return_interrupt): New.
2058 (save_interrupt): Don't use runtime function for LONG_CALLS
2059 and TARGET_PROLOG_FUNCTION.
2060 (save_all_interrupt): Likewise.
2061 (mulsi3): Use new predicate.
2062 (moviscc): Disallow some combination of constants.
2063 Fix define_split for sasf insns, so that it will not generate bad
2064 code if operand0 and operand5 are the same.
2065 * config/v850/v850-protos.h: Prototype new predicates.
2067 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
2069 * c-common.c (builtin_define_type_precision): New function.
2070 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
2071 wchar_t is unsigned in C++.
2072 * doc/cpp.texi (Common Predefined Macros): Document
2073 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
2074 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
2075 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
2077 2002-08-28 Sylvain Pion <pion@cs.nyu.edu>
2079 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
2080 section. Mention that it is enabled by -Wall.
2081 (-Wall): Mention that there can be language-specific warnings as well.
2082 (-Wctor-dtor-privacy): Mention that it is enabled by default.
2083 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
2085 Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
2087 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
2090 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
2091 attribute for SHCOMPACT.
2093 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
2095 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
2098 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
2100 2002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
2102 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
2103 "MASK_GAS|MASK_ABICALLS".
2104 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
2105 (TARGET_DEFAULT): Remove.
2106 (MACHINE_TYPE): Undefine before defining.
2107 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
2109 2002-08-27 Mark Mitchell <mark@codesourcery.com>
2111 * c-common.c (warn_abi): New variable.
2112 * c-common.h (warn_abi): Likewise.
2113 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
2114 (c_common_decode_option): Handle it.
2115 * doc/invoke.texi: Document -Wabi.
2117 Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
2119 * c-common.c (warn_undeclared_selector): New variable.
2120 * c-common.h (warn_undeclared_selector): Idem.
2121 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
2122 to on when -Wundeclared-selector is found.
2123 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
2124 * objc/objc-act.c (build_selector_expr): If
2125 warn_undeclared_selector is set, check that the selector has
2126 already been defined, and emit a warning if not.
2128 2002-08-27 Nick Clifton <nickc@redhat.com>
2129 Catherine Moore <clm@redhat.com>
2130 Jim Wilson <wilson@cygnus.com>
2132 * config.gcc: Add v850e-*-* target.
2133 Add --with-cpu= support for v850.
2134 * config/v850/lib1funcs.asm: Add v850e callt functions.
2135 * config/v850/v850.h: Add support for v850e target.
2136 * config/v850/v850.c: Add functions to support v850e target.
2137 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
2138 * config/v850/v850.md: Add patterns for v850e instructions.
2139 * doc/invoke.texi: Document new v850e command line switches.
2141 Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
2142 Aldy Hernandez <aldyh at redhat dot com>
2144 * doc/tm.texi: Applied numerous fixes to the automaton based
2145 scheduler descrition.
2147 Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
2149 * i386.c (classify_argument): Handle variable sized objects.
2151 Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
2153 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
2155 Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
2157 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
2159 Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
2161 * i386.c (classify_argument): Properly compute word size of the analyzed object.
2163 Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
2165 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
2166 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
2168 (attribute insn_class): Provide default definitions based on type.
2169 Remove all insn-specific settings.
2170 (various function units): Remove old SH4 scheduling.
2171 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
2172 New attributes. Set them where appropriate.
2173 (cpu unit FS): Don't define / use.
2174 (F3, load_store): New cpu units.
2175 (F01): New reservation.
2176 (all insn_reservations): Make dependent on sh4 pipeline model.
2178 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
2179 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
2180 (mt insn_reservation): Use type mt_group.
2181 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
2182 sh4_fload and sh4_store.
2183 (insn_reservation branch_zero and branch): Replace with sh4_branch.
2184 (insn_reservation branch_far): Replace with sh4_return.
2185 (insn_reservation return_from_exp): Rename to:
2186 (sh4_return_from_exp). Change to be just d_lock*5.
2187 (insn_reservation lds_to_pr): Rename to:
2188 (sh4_lds_to_pr). Change to be just d_lock*2.
2189 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
2191 (insn_reservation prload_mem): Rename to:
2192 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
2193 (insn_reservation fpscr_store): Rename to:
2194 (fpscr_load). Change to d_lock,nothing,F1*3.
2195 (insn_reservation fpscr_store_mem): Rename to:
2196 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
2197 (insn_reservation multi): Change to
2198 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
2199 (insn_reservation fp_arith): Change to issue,F01,F2.
2200 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
2201 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
2202 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
2203 (insn_reservation fp_double_cmp): Change to
2204 d_lock,(d_lock+F01),F1+F2,F2.
2205 (insn_reservation dp_div): Change to
2206 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
2207 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
2208 (sh_adjust_cost, SHcompact): Differentiate between different
2209 kinds of dependencies. Drop factor of ten for superscalar.
2210 Use new instruction types. Add new exception rules.
2212 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
2214 * sh.md (mperm_w): Add DONE.
2216 2002-08-27 David Edelsohn <edelsohn@gnu.org>
2218 * longlong.h: Import current PowerPC defintion from GMP-4.1.
2220 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
2222 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
2224 Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
2226 * sh.h (MAX_FIXED_MODE_SIZE): Define.
2228 2002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
2230 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
2233 2002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2235 * c-common.c (cpp_define_data_format): New function.
2236 (cb_register_builtins): Call it.
2238 * doc/cpp.texi (Common Predefined Macros): Document
2239 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
2240 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
2241 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
2242 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
2243 __TARGET_USES_VAX_H_FLOAT__.
2245 2002-08-26 Ziemowit Laski <zlaski@apple.com>
2247 * objc/objc-act.c (get_super_receiver): If inside a class method
2248 of a category, cast the receiver to 'id' before accessing the 'isa'
2249 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
2251 2002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2253 * config/s390/s390-protos.h (s390_function_prologue,
2254 s390_function_epilogue): Remove.
2255 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
2256 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2258 config/s390/s390.c (s390_machine_dependent_recorg): New function.
2259 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
2260 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
2261 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
2262 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
2264 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
2265 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
2266 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
2267 function is not a leaf function. Use save_gprs and restore_gprs.
2268 (s390_emit_epilogue): Likewise.
2269 (save_gprs, restore_gprs): New functions.
2270 (struct s390_frame): Remove return_reg_saved_p member.
2271 (save_fprs_p): Remove.
2272 (s390_optimize_prolog): New function.
2273 (s390_legitimate_reload_constant): Remove now unnecessary check.
2275 (s390_function_count): Remove.
2276 (s390_output_symbolic_const): Replace s390_function_count by
2277 current_function_funcdef_no.
2278 (s390_output_constant_pool): Likewise.
2280 (legitimize_pic_address): Use regs_ever_live to track PIC register
2281 instead of current_function_uses_pic_offset_table.
2282 (s390_emit_prologue): Likewise.
2283 config/s390/s390.md ("call", "call_value"): Likewise.
2285 2002-08-26 Neil Booth <neil@daikokuya.co.uk>
2287 * c-opts.c (find_opt): Don't complain about wrong languages
2288 here. Return exact matches even for wrong language.
2289 (c_common_decode_option): Complain about wrong languages
2292 2002-08-24 Stuart Hastings <stuart@apple.com>
2294 * function.h (struct function): Add flag
2295 all_throwers_are_sibcalls.
2296 * except.c (set_nothrow_function_flags): Replaces
2297 nothrow_function_p. Set new flag.
2298 * except.h (set_nothrow_function_flags): Replaces
2300 * dwarf2out.c (struct dw_fde_struct): Add flag
2301 all_throwers_are_sibcalls.
2302 (output_call_frame_info): Test it.
2303 (dwarf2out_begin_prologue) Propagate it from cfun to
2305 * toplev.c (rest_of_compilation): Update calls to
2308 2002-08-23 Zack Weinberg <zack@codesourcery.com>
2310 * ggc-page.c (compute_inverse): Short circuit calculation for
2311 object sizes larger than half a page.
2313 2002-08-23 David Edelsohn <edelsohn@gnu.org>
2315 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
2316 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
2318 (rs6000_elf_unique_section): Likewise.
2320 2002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2322 * ns32k.c (ns32k_globalize_label): Delete.
2323 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
2325 2002-08-23 Alan Modra <amodra@bigpond.net.au>
2327 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
2328 for loading delta with num_insns_constant_wide. Calculate
2329 delta_low, delta_high without using a conditional.
2331 2002-08-22 Jason Merrill <jason@redhat.com>
2333 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
2334 * c-common.def: Adjust.
2335 * c-dump.c (c_dump_tree): Adjust.
2336 * c-semantics.c (genrtl_return_stmt): Adjust.
2337 * c-pretty-print.c (pp_c_statement): Adjust.
2338 * tree-inline.c (copy_body_r): Adjust.
2340 2002-08-22 Zack Weinberg <zack@codesourcery.com>
2342 * ggc-page.c: Avoid division in ggc_set_mark.
2343 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
2344 compute_inverse): New.
2345 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
2346 (init_ggc): Initialize inverse_table.
2348 2002-08-22 Tom Tromey <tromey@redhat.com>
2350 * doc/install.texi (Configuration): Document --datadir.
2352 2002-08-22 Alexandre Oliva <aoliva@redhat.com>
2354 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
2356 2002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
2358 * gengtype-lex.l (ID): Allow underscore as first character.
2360 2002-08-21 David Edelsohn <edelsohn@gnu.org>
2362 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
2364 (rs6000_xcoff_asm_named_section): Rename.
2365 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2367 2002-08-21 Tom Tromey <tromey@redhat.com>
2369 For PR java/6005 and PR java/7611:
2370 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
2372 * langhooks.c (lhd_can_use_bit_fields_p): New function.
2373 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
2374 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
2375 (LANG_HOOKS_INITIALIZER): Use it.
2376 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
2379 2002-08-21 Stan Shebs <shebs@apple.com>
2381 * tree.c (finish_vector_type): Fix a typo in a comment.
2382 * Makefile.in: Fix "the the" stutters in comments.
2383 * genautomata.c: Ditto.
2385 * regrename.c: Ditto.
2386 * config/alpha/alpha.c: Ditto.
2387 * config/alpha/vms-crt0-64.c: Ditto.
2388 * config/alpha/vms-crt0.c: Ditto.
2389 * config/alpha/vms-psxcrt0-64.c: Ditto.
2390 * config/alpha/vms-psxcrt0.c: Ditto.
2391 * config/d30v/d30v.h: Ditto.
2392 * config/fr30/fr30.h: Ditto.
2393 * config/rs6000/rs6000.c: Ditto.
2394 * config/stormy16/stormy16.h: Ditto.
2395 * doc/md.texi: Ditto.
2397 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
2399 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
2401 2002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2403 * c-decl.c (grokdeclarator): Make invalid combinations with long,
2404 short, signed or unsigned into hard errors. Fixes PR c/4319.
2405 Also make duplicate modifiers such as "short short" into hard
2408 2002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
2409 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2411 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
2412 to the actual end. Add '@end table' and '@table @code'.
2414 2002-08-20 Geoffrey Keating <geoffk@redhat.com>
2416 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
2418 * unroll.c (biv_total_increment): Don't try to compute the total
2419 increment for FP BIVs.
2421 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2423 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
2424 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
2425 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2426 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
2427 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
2428 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
2429 (GLOBAL_ASM_OP): Define.
2430 * arm.c (aof_globalize_label): New function.
2431 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
2432 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2433 * c4x.c (c4x_globalize_label): New function.
2434 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
2435 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
2436 (GLOBAL_ASM_OP): Define.
2437 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2438 * darwin-protos.h (darwin_globalize_label): Declare.
2439 * darwin.c (darwin_globalize_label): New function.
2440 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
2441 (ASM_GLOBALIZE_LABEL): Delete.
2442 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
2443 * dsp16xx.c (asm_output_common): Use target hook.
2444 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2445 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
2446 (GLOBAL_ASM_OP): Define.
2447 * i370.c (i370_globalize_label): New function.
2448 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
2449 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
2450 * i386.c (ix86_asm_file_end): Use target hook.
2451 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
2452 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
2453 * ia64.c (ia64_asm_output_external): Likewise.
2454 * ia64/sysv4.h: Update comment.
2455 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2456 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2457 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
2458 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2459 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
2460 * mmix-protos.h (mmix_asm_globalize_label): Delete.
2461 * mmix.c (mmix_asm_globalize_label): Likewise.
2462 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
2463 (GLOBAL_ASM_OP): Define.
2464 * ns32k.c (ns32k_globalize_label): New function.
2465 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
2466 (ASM_GLOBALIZE_LABEL): Delete.
2467 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
2468 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
2469 * pa.c (pa_globalize_label): New function.
2470 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
2471 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
2472 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
2473 (GLOBAL_ASM_OP): Define.
2474 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
2475 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
2476 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
2477 (GLOBAL_ASM_OP): Define.
2478 * v850.c (v850_output_aligned_bss): Use target hook.
2479 * vax.c (vms_globalize_label): New function.
2480 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
2481 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
2482 (GLOBAL_ASM_OP): Define.
2483 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
2484 * doc/tm.texi: Update docs.
2485 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
2487 * final.c (output_alternate_entry_point): Likewise.
2488 * hooks.c (hook_FILEptr_constcharptr_void): New function.
2489 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
2490 * output.h (assemble_global): Delete.
2491 (default_globalize_label): Declare.
2492 * system.h (ASM_GLOBALIZE_LABEL): Poison.
2493 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
2494 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
2495 * target.h (gcc_target): Add globalize_label member.
2496 * varasm.c (asm_output_bss, asm_output_aligned_bss,
2497 globalize_decl): Use target hook.
2498 (assemble_global): Delete.
2499 (default_globalize_label): New function.
2501 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2503 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
2505 2002-08-20 Devang Patel <dpatel@apple.com>
2506 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
2508 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2510 * arc.c (output_shift): Use stdio instead of asm_fprintf.
2511 * arm.c (thumb_output_function_prologue): Likewise.
2512 * avr.c (print_operand): Likewise.
2513 * c4x.c (c4x_print_operand): Likewise.
2514 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
2515 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
2516 * cris.c (cris_target_asm_function_prologue,
2517 cris_asm_output_mi_thunk): Likewise.
2518 * h8300.c (print_operand): Likewise.
2519 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2520 * ip2k.c (print_operand): Likewise. Fix format specifier.
2521 * m68hc11.c (asm_print_register, print_operand,
2522 print_operand_address): Use stdio instead of asm_fprintf.
2523 (print_operand_address): Fix format specifier.
2524 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
2525 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
2527 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2528 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
2529 * m68k.c (m68k_output_function_prologue,
2530 m68k_output_function_epilogue, print_operand): Likewise.
2531 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
2532 Likewise. Fix format specifier.
2533 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2534 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2535 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2537 2002-08-15 Eric Christopher <echristo@redhat.com>
2538 Jeff Knaggs <jknaggs@redhat.com>
2540 * config.gcc (mipsisa64sr71k-elf): New target.
2541 * config/mips/sr71k.md: New file.
2542 * config/mips/mips.md: Use it.
2543 (rot*): Add sr71k specifics.
2544 * config/mips/t-sr71k: New file.
2545 * config/mips/mips.h (sr71k): New cpu.
2546 (TARGET_SR71K): Use it.
2547 (TUNE_SR71K): Ditto.
2548 (GENERATE_BRANCHLIKELY): Ditto.
2549 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
2550 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
2551 * config/mips/mips.c (sr71k): New cpu.
2552 (mips_use_dfa_pipeline_interface): Use.
2554 2002-08-15 Eric Christopher <echristo@redhat.com>
2555 Richard Sandiford <rsandifo@redhat.com>
2556 Aldy Hernandez <aldyh@redhat.com>
2557 Graham Stott <grahams@redhat.com>
2558 Michael Meissner <meissner@redhat.com>
2559 Gavin Romig-Koch <gavin@redhat.com>
2560 Ken Raeburn <raeburn@cygnus.com>
2561 Alexandre Oliva <aoliva@redhat.com>
2563 * config.gcc (mips64vr-elf): New target.
2564 * config/mips/5400.md: New file.
2565 * config/mips/5500.md: Ditto.
2566 * config/mips/mips.md: Use them.
2568 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
2570 (mips_issue_rate): Use them.
2571 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
2572 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
2573 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
2575 (TARGET_MIPSx): Use them.
2576 (TUNE_MIPSx): Ditto.
2577 (GETNATE_MULT3_SI): Ditto.
2578 (ISA_HAS_BRANCHLIKELY): Ditto.
2579 (ISA_HAS_CONDMOVE): Ditto.
2580 (ISA_HAS_NMADD_NMSUB): Ditto.
2581 (ISA_HAS_MULHI): New. Ditto.
2582 (ISA_HAS_MULS): Ditto.
2583 (ISA_HAS_MSAC): Ditto.
2584 (ISA_HAS_MACC): Ditto.
2585 (ISA_HAS_ROTR_SI): Ditto.
2586 (ISA_HAS_ROTR_DI): Ditto.
2589 2002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
2591 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
2593 (remove_dup_nonsys_dirs): New function.
2594 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
2595 (merge_include_chains): Remove non-system include directories from
2596 quote and bracket include chains when they duplicate equivalent system
2598 * doc/cpp.texi (-I): Update.
2599 * doc/cppopts.texi (-I): Update.
2600 * doc/install.texi (--with-local-prefix): Further document usage of
2602 * doc/invoke.texi (-I): Update.
2604 2002-08-20 Richard Henderson <rth@redhat.com>
2606 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
2607 (emit_block_move): Split out subroutines.
2608 (emit_block_move_via_movstr): New.
2609 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
2610 (emit_block_move_libcall_fn): New. Construct function prototype for
2612 (clear_storage): Split out subroutines.
2613 (clear_storage_via_clrstr): New.
2614 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
2615 (clear_storage_libcall_fn): New. Construct function prototype for
2617 (emit_push_insn): Use emit_block_move.
2618 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
2619 (store_constructor): Likewise.
2621 2002-08-19 Ziemowit Laski <zlaski@apple.com>
2623 * objc/objc-act.c (building_objc_message_expr): Rename to
2624 current_objc_message_selector.
2626 2002-08-19 Ziemowit Laski <zlaski@apple.com>
2628 * objc/objc-act.c (build_ivar_chain): Remove.
2629 (objc_copy_list): Likewise.
2630 (get_class_ivars): Inline call to removed build_ivar_chain
2631 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
2632 slot; use that slot (rather than CLASS_IVARS) when accessing
2633 ivars for base classes. Call copy_list and chainon instead of
2635 (build_private_template): Call get_class_ivars instead of
2637 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
2638 (continue_class): Call get_class_ivars instead of
2640 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
2641 of DECL_BIT_FIELD (which may have been cleared).
2642 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
2644 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2646 * genautomata.c (output_translate_vect, output_state_ainsn_table,
2647 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
2649 (output_internal_min_issue_delay_func): Initialize variable in
2652 2002-08-19 Alexandre Oliva <aoliva@redhat.com>
2654 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
2655 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
2657 2002-08-19 Geoffrey Keating <geoffk@redhat.com>
2658 Steve Ellcey <sje@cup.hp.com>
2660 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
2661 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
2662 * explow.c (trunc_int_for_mode): Abort when the mode is not
2663 a scaler integer mode.
2664 * combine.c (expand_compound_operation): Don't expand Vector
2665 or Complex modes into shifts.
2666 (expand_field_assignment): Don't do bitwise arithmatic and
2667 shifts on Vector or Complex modes.
2668 (simplify_comparison): Don't call trunc_int_for_mode
2670 * recog.c (general_operand): Likewise.
2671 (immediate_operand): Likewise.
2672 (nonmemory_operand): Likewise.
2674 2002-08-19 David Edelsohn <edelsohn@gnu.org>
2676 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
2677 multi-instruction SImode constant. Add REG_EQUAL note.
2678 * config/rs6000/rs6000.md (movsi splitter): Use
2679 rs6000_emit_set_const.
2681 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2683 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
2684 the macro test controlling its use.
2686 2002-08-18 H.J. Lu (hjl@gnu.org)
2688 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
2689 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
2691 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
2692 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
2693 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
2694 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
2696 (cris-*-linux*): Remove setting thread_file here.
2698 2002-08-18 Neil Booth <neil@daikokuya.co.uk>
2700 PR preprocessor/7602
2701 * cppinit.c (path_include): Treat the system environment
2702 variables as being cxx_aware.
2704 2002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
2706 * c-decl.c (flexible_array_type_p): New function.
2707 (grokdeclarator, finish_struct): Use it.
2708 * doc/extend.texi: Document constraints on use of structures with
2709 flexible array members.
2711 2002-08-17 Richard Sandiford <rsandifo@redhat.com>
2713 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
2714 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
2715 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
2717 2002-08-16 Stan Shebs <shebs@apple.com>
2719 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
2720 for ObjC with -fnext-runtime.
2721 * doc/cpp.texi: Document it.
2723 2002-08-16 Janis Johnson <janis187@us.ibm.com>
2725 * doc/install.texi (Final installation): Replace links to individual
2726 build status pages with a link to a common page that lists them all.
2728 2002-08-16 Sylvain Pion <pion@cs.nyu.edu>
2730 * doc/invoke.texi: Fix typo.
2732 2002-08-16 David Edelsohn <edelsohn@gnu.org>
2734 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
2736 2002-08-16 Andrew Haley <aph@redhat.com>
2738 * tree-inline.c: Add includes for Java inliner.
2739 (remap_decl): Don't handle anonymous types for Java.
2740 (remap_block): Add handling for Java trees.
2741 (copy_scope_stmt): Conditionalize for non-Java use only.
2742 (copy_body_r): Handle Java trees. Add handling for
2743 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
2744 (initialize_inlined_parameters): Handle Java trees.
2745 (declare_return_variable): Likewise.
2746 (expand_call_inline): Handle Java trees.
2747 (walk_tree): Likewise.
2748 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
2749 (add_stmt_to_compound): New function.
2751 2002-08-15 Richard Henderson <rth@redhat.com>
2753 * Makefile.in (LOOSE_WARN): Remove -fno-common.
2754 (NOCOMMON_FLAG): New substitution point.
2755 (GCC_WARN_CFLAGS): Include it.
2756 * configure.in (ac_checking): Set nocommon_flag.
2757 (nocommon_flag): New substitution point.
2759 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2761 * c-tree.h (skip_evaluation): Move declaration...
2762 * c-common.h: ... here.
2763 * c-typeck.c (build_external_ref): Don't assemble_external nor
2764 mark a tree as used if skip_evaluation is set.
2765 * c-parse.in (typeof): New non-terminal to set skip_evaluation
2767 (typespec_nonreserved_nonattr): Use it.
2769 2002-08-15 Douglas B Rupp <rupp@gnat.com>
2771 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
2772 (xcoff_debug_hooks): Update end_prologue.
2773 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
2774 * debug.h (end_prologue): Add file arg.
2775 (end_epilogue): Add line and file args.
2776 (dwarf2out_end_epilogue): Add line and file args.
2777 (vmsdbgout_after_prologue): Remove.
2778 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
2779 (dwarf2_debug_hooks): Update end_prologue.
2780 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
2781 (dwarfout_end_prologue): Add file arg.
2782 * final.c (vmsdbgout_after_prologue): Remove
2783 (final_end_function): Update end_epilogue call.
2784 (final_scan_insn): Update end_prologue call.
2785 * sdbout.c (sdbout_end_epilogue): Add line and file args.
2786 (sdbout_end_prologue): Add file arg.
2787 (sdb_debug_hooks): Update end_prologue.
2788 (sdb_begin_prologue): Update sdbout_end_prologue call.
2789 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
2790 vmsdbgout_end_function.
2791 (vmsdbgout_end_prologue): New function renamed from
2792 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
2793 (vmsdbgout_end_function): New function.
2794 (vmsdbgout_end_epilogue): Add line and file args. Call
2795 vmsdbgout_source_line.
2796 (write_pclines): Write only valid line numbers.
2797 (write_srccorr): Don't write source correlation records if 0 lines.
2798 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
2800 2002-08-15 Steve Ellcey <sje@cup.hp.com>
2802 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
2803 (_Unwind_Internal_Ptr): 32 bit version for use in
2804 read_encoded_value_with_base.
2805 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
2806 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
2809 2002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2811 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
2812 signed/unsigned warnings.
2814 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
2815 record_reg_classes): Likewise.
2817 * reload.c (reload_inner_reg_of_subreg, push_reload,
2818 find_reloads_address_1): Likewise.
2820 2002-08-15 David Edelsohn <edelsohn@gnu.org>
2822 * rs6000.c (output_mi_thunk): Return to function section on
2825 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
2827 2002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
2829 * config/s390/s390.c (legitimize_address): Optimize loading
2830 of large displacements.
2832 2002-08-14 Douglas B Rupp <rupp@gnat.com>
2834 * config/alpha/alpha-protos.h: Update.
2836 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
2837 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
2838 (alpha_linkage_symbol_p): New static function.
2839 (print_operand_address): Print linkage operand.
2841 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
2843 (reloc_kind): New enum.
2844 (struct alpha_funcs): New struct.
2845 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
2847 (alpha_need_linkage): Rewrite.
2848 (alpha_use_linkage): New global function.
2849 (alpha_write_linkage): Rewrite and make static.
2850 (alpha_write_one_linkage): Rewrite
2852 (alpha_start_function): Remove procedure descriptor output.
2853 (alpha_end_function): Write linkages at end of each function.
2855 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
2856 (call_vms_1, call_value_vms_1): Rewrite.
2858 * config/alpha/vms.h (ASM_FILE_END): Remove.
2860 2002-08-14 Richard Henderson <rth@redhat.com>
2862 * ggc-page.c (RTL_SIZE): New.
2863 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
2864 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
2866 2002-08-14 Richard Henderson <rth@redhat.com>
2868 * calls.c: Include target.h.
2869 * Makefile.in (calls.o): Update.
2871 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
2872 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2874 2002-08-14 Richard Henderson <rth@redhat.com>
2876 * Makefile.in (LOOSE_WARN): Add -fno-common.
2877 * c-common.h (constant_string_class_name): Add missing extern.
2879 2002-08-15 Neil Booth <neil@daikokuya.co.uk>
2881 PR preprocessor/7358
2882 * c-opts.c (check_deps_environment_vars): Ignore main file
2883 for SUNPRO_DEPENDENCIES.
2884 * cppfiles.c (stack_include_file): Ignore main file if
2886 * cpplib.h (struct cpp_options): New member in deps.
2887 * doc/cppenv.texi: Update.
2889 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
2891 PR preprocessor/7526
2892 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
2894 2002-08-14 Nathan Sidwell <nathan@codesourcery.com>
2896 * doc/invoke.texi (-a): Remove documentation.
2897 (-fprofile-arcs): Remove reference to -a, -ax options.
2898 * doc/gcov.texi (Gcov Data Files): Data might be merged.
2900 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
2903 * c-semantics.c (genrtl_case_label): Don't (mis)use
2906 2002-08-14 Dale Johannesen <dalej@apple.com>
2908 * explow.c (emit_stack_restore): Emit memory clobbers
2909 preceding the stack pop, to prevent the scheduler from
2910 moving refs to variable arrays below this pop.
2911 * reload1.c (reload): Preserve these clobbers for sched2.
2912 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
2914 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
2916 * c-opts.c (c_common_post_options): Correct test.
2918 2002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2920 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
2921 order in call to fprintf.
2923 2002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2925 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
2927 2002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2929 * reload.c (find_reloads): Handle constraint letters marked by
2930 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
2931 (alternative_allows_memconst): Likewise.
2932 * reload1.c (maybe_fix_stack_asms): Likewise.
2933 * recog.c (asm_operand_ok, preprocess_constraints,
2934 constrain_operands): Likewise.
2935 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
2936 * local-alloc.c (block_alloc, requires_inout): Likewise.
2937 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2939 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
2940 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
2941 * doc/tm.texi: Document these two new target macros.
2943 * config/s390/s390.c (s390_expand_plus_operand): Accept already
2945 (q_constraint): New function.
2946 config/s390/s390-protos.h (q_constraint): Declare it.
2947 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
2948 (EXTRA_MEMORY_CONSTRAINT): New macro.
2950 * config/s390/s390.md: Throughout the machine description,
2951 replace all instances of the constraint combinations 'Qo'
2952 or 'oQ' with simply 'Q'.
2954 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2956 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
2957 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
2958 (LIBGCC2_CFLAGS): Compile with -mrelax.
2960 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2962 * doc/invoke.texi: Document -minmax for 68HC12.
2964 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
2965 ("uminqi3"): Likewise.
2966 ("uminhi3", "umaxhi3"): Likewise.
2968 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
2969 (TARGET_MIN_MAX): Define.
2970 (TARGET_SWITCHES): New option -minmax/-mnominmax.
2972 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2974 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
2975 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
2977 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
2978 (ret, declare, farsym): New gas macros.
2979 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
2980 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
2981 and declare the symbol far when compiled with -mlong-calls.
2982 (__far_trampoline): New for 68HC12 trampoline code to invoke a
2983 far handler using jsr/bsr.
2985 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
2986 (jsr): New macro to transform a 'jsr' into a 'call'.
2988 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
2990 * doc/invoke.texi: Document -mlong-calls for 68HC12.
2992 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
2993 -mlong-calls is specified.
2994 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
2995 assembler directives.
2996 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
2997 (TARGET_SWITCHES): Add -mlong-calls options.
2998 (current_function_far): Declare.
3000 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
3001 into account the page register saved on the stack.
3002 (m68hc11_override_options): Take into account -mlong-calls option.
3003 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
3005 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
3006 if the function is going to be in 68HC12 banked memory (-mlong-calls).
3007 ("*return_16bit"): Likewise.
3008 ("*return_void"): Likewise.
3009 ("call", "call_value"): Use call for a far function call.
3011 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
3013 * toplev.c (parse_options_and_default_flags): Don't call
3015 (general_init): Initialize GC, pools and tree hash here,
3016 instead of lang_independent_init.
3017 (lang_independent_init): Rename backend_init.
3018 (do_compile): Call post_options hook; exit early if there
3019 have been errors after switch processing.
3020 (toplev_main): Update.
3022 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
3024 * c-pretty-print.h: Guard against multiple inclusion.
3026 (pp_c_attributes): Declare.
3027 * c-pretty-print.c (pp_c_attributes): New function.
3029 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3031 * m68k.c (m68k_output_function_prologue,
3032 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
3034 * genattrtab.c: Remove dpx2 comment.
3035 * libgcc2.c (__enable_execute_stack): Delete versions for
3036 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
3037 sony_news/SYSTYPE_BSD.
3038 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
3039 __gmicro__, __i860__, __NeXT__ and __pyr__.
3040 * rtl.h: Remove convex comment.
3041 * varasm.c: Likewise.
3043 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3045 * c-opts.c (lang_flags): Const-ify.
3046 * ra-build.c (undef_table): Likewise.
3047 * ra.c (eliminables): Likewise.
3049 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
3051 * tree.h: Guard against multiple inclusion.
3053 2002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
3055 * reload1.c (reload_cse_simplify): Before checking
3056 REG_FUNCTION_VALUE_P, check REG_P.
3058 2002-08-13 Geoffrey Keating <geoffk@redhat.com>
3060 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
3062 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
3064 * c-opts.c (c_common_init_options): Extra braces needed.
3066 Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
3068 * sh.c (sh_init_builtins): Add PARAMS to declaration.
3069 (sh_media_init_builtins, sh_expand_builtin): Likewise.
3070 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
3071 (sh_expand_binop_v2sf): Likewise.
3072 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
3073 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
3074 (sh_initialize_trampoline): Likewise.
3076 2002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
3078 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
3079 new condition code modes.
3080 s390.c (s390_match_ccmode_set): Handle those new CC modes.
3081 (s390_select_ccmode): Likewise.
3082 (s390_branch_condition_mask): Likewise.
3084 * s390-protos.h (s390_tm_ccmode): Declare.
3085 s390.c (s390_tm_ccmode): New function.
3086 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
3088 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
3089 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
3090 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
3092 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
3093 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
3094 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
3095 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
3096 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
3098 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
3099 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
3100 "*cmpqi_ccs_0"): Remove, replace by ...
3101 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
3102 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
3103 "*tstqi", "*tstqi_cconly"): ... these new patterns.
3105 ("*cmpsidi_ccs"): Remove, replace by ...
3106 ("*cmpsi_ccs_sign"): ... this new pattern.
3107 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
3109 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
3110 ("*cli"): ... this new pattern.
3112 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
3113 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
3115 ("adddi3_64"): Rename to "*adddi3_64".
3116 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
3117 ("adddi3"): Adapt expander.
3119 ("*addsi3_cc"): Allow "general_operand" for operand 2.
3120 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
3121 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
3123 ("addhi3", "addqi3"): Remove, replace by ...
3124 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
3126 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
3127 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
3128 ("subdi3"): Replace by insn and splitter "*subdi3_31".
3129 ("subdi3"): New expander.
3131 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
3133 ("subhi3", "subqi3"): Remove, replace by ...
3134 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
3136 ("*muldi3_sign"): New pattern.
3137 ("muldi3"): Do not clobber CC.
3138 ("mulsi3"): Likewise.
3139 ("mulsi_6432"): Likewise.
3141 2002-08-13 Denis Chertykov <denisc@overta.ru>
3143 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
3144 which can change CC0.
3146 Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
3148 * gcse.c (adjust_libcall_notes): New function.
3149 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
3151 2002-08-13 Nathan Sidwell <nathan@codesourcery.com>
3153 * libgcc2.c (L_bb): Remove unneeded #includes.
3154 (__global_counters, __gthreads_active): Remove unused globals.
3155 (__bb_exit_func): Merge counts into files rather than appending.
3156 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
3157 (ALL_CFLAGS): ... to here.
3159 2002-08-13 Denis Chertykov <denisc@overta.ru>
3161 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
3162 (function_epilogue): Don't calculate function size.
3163 (ip2k_set_compare): Don't use lookup_const_double.
3164 (asm_file_start): Initialization of commands_in_file removed.
3165 (asm_file_end): Output of commands_in_file removed.
3167 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
3170 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
3172 * c-opts.c (c_common_init_options): Check option array is
3173 sorted if checking enabled.
3175 2002-08-13 Gabriel Dos Reis <gdr@nerim.net>
3177 * c-pretty-print.c: #include "c-tree.h".
3178 (pp_c_simple_type_specifier): Tweak.
3179 (pp_c_storage_class_specifier): New.
3180 (pp_c_function_specifier): Likewise.
3181 (pp_c_declaration_specifiers): Likewise.
3182 (pp_c_init_declarator): Likewise.
3183 (pp_c_declaration): Likewise.
3184 (pp_c_direct_declarator): Stub.
3185 (pp_c_declarator): Likewise.
3186 (pp_c_parameter_declaration): Likewise.
3188 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
3190 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
3191 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
3192 struct deferred_opt): New.
3193 (COMMAND_LINE_OPTIONS): Add -M*.
3194 (missing_arg): Update.
3195 (c_common_decode_option): Handle -M*.
3196 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
3197 don't call cpp_post_options.
3198 (c_common_finish, check_deps_environment_vars): Update.
3199 * cppfiles.c (stack_include_file, handle_missing_header): Update.
3200 * cpphash.h (CPP_PRINT_DEPS): Remove.
3201 * cppinit.c: Don't include version.h.
3202 (cpp_create_reader): Don't call deps_init. Initialize
3204 (cpp_read_main_file): Init deps if necessary.
3205 (cpp_destroy): Conditionally free deps.
3206 (cpp_finish): Update.
3208 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
3209 (cpp_post_options): Rename post_options.
3210 * cpplib.h (struct cpp_options): Remove some dependency options;
3211 move others to a new structure.
3212 (cpp_post_options): Remove.
3213 (cpp_finish): Comment.
3214 * fix-header.c (read_scan_file): Don't call cpp_post_options.
3216 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
3218 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
3219 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
3220 MMIX_rR_REGNUM as clobbered.
3221 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
3223 2002-08-12 Gabriel Dos Reis <gdr@nerim.net>
3225 * diagnostic.h (output_formatted_scalar): Rename from
3226 output_formatted_integer.
3227 * diagnostic.def: Add DK_DEBUG.
3228 * diagnostic.c (output_decimal): Adjust.
3229 (output_long_decimal): Likewise.
3230 (output_unsigned_decimal): Likewise.
3231 (output_octal): Likewise.
3232 (output_long_octal): Likewise.
3233 (output_hexadecimal): Likewise.
3234 (output_long_hexadecimal): Likewise.
3235 * c-pretty-print.c (pp_c_type_specifier): New function.
3236 (pp_c_specifier_qualifier_list): Likewise.
3237 (pp_c_abstract_declarator): Likewise.
3238 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
3240 2002-08-12 David Edelsohn <edelsohn@gnu.org>
3242 * doc/trouble.texi (Disappointments): Add static constructor and
3243 destructor dependency information for AIX.
3245 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
3247 * cpphash.h (struct printer): New from cppmain.c.
3248 (cpp_reader): New member.
3249 * cppmain.c (struct printer): Move to cpphash.h.
3250 (options, print): Remove.
3251 (account_for_newlines, print_line, maybe_print_line,
3252 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
3253 scan_translation_unit_trad, cb_line_change, cb_ident,
3254 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
3255 cb_def_pragma): Make reentrant.
3257 2002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3259 * real.c (ieee_64): Always define.
3260 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3261 (dec_h): Not used yet, hide it.
3262 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
3263 macro controlling use.
3264 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
3266 Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
3268 * i386.md (tablejump): Sign extend the operand.
3269 * i386.c (classify_argument): Fix missed case from previous patch.
3271 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
3273 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
3275 (warn_multichar): Die.
3276 (cb_register_builtins): Export.
3277 * c-common.h (warn_multichar, preprocess_file): Remove.
3278 (cb_register_builtins): New.
3279 * c-lang.c (c_init): Remove.
3280 (LANG_HOOKS_INIT): Use c_objc_common_init.
3281 * c-lex.c (init_c_lex): Don't canonicalize filename.
3282 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
3283 (preprocess_file): Make static. Update for cpplib.
3284 (c_common_decode_option): Remove warn_multichar. Use in_fname.
3285 (c_common_post_options): Set some cpp options here.
3286 (c_common_init): Move from c-common.c.
3287 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
3288 * cpplib.h (struct cpp_options): Remove in_fname.
3289 (cpp_preprocess_file): Update.
3290 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
3292 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3294 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
3296 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3298 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
3299 backslash in comment preceeding macro definition.
3300 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
3301 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
3302 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
3304 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
3306 * expr.c (store_expr): In condition for checking if value is
3307 generated in TARGET, move call to expr_size last.
3309 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
3311 * c-common.c (c_common_init): Call preprocess_file instead.
3312 (c_common_finish): Move to c-opts.c.
3313 * c-common.h (preprocess_file): new.
3314 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
3315 check_deps_environment_vars, c_common_finish): New.
3316 (c_common_decode_option): Update for out_fname and dependencies.
3317 * cppinit.c (init_dependency_output, output_deps): Remove.
3318 (cpp_destroy): Update prototype.
3319 (cpp_add_dependency_target): New.
3320 (cpp_read_main_file): Don't overlay a buffer.
3321 (cpp_finish): Take a deps output stream and write deps to it.
3322 Return the error count.
3323 (cpp_post_options): Don't canonicalize out_fname, or do anything
3325 * cpplib.h (struct cpp_options): Remove out_fname and
3327 (cpp_add_dependency_target): New.
3328 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
3329 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
3330 set preprocess_only. Don't handle the output stream directly.
3332 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3334 * dsp16xx.c (print_operand): Fix format specifier.
3335 * dsp16xx.md: Avoid automatic aggregate initialization.
3336 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
3337 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
3338 integer constant modifier.
3339 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
3340 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
3342 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
3343 * v850.c (v850_select_section): Mark parameter with
3345 * global.c (global_alloc): Const-ify.
3346 * ra-colorize.c (hardregset_to_string): Fix format specifier.
3348 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3350 * darwin-c.c (darwin_pragma_options): Const-ify.
3351 * darwin.c (machopic_non_lazy_ptr_name,
3352 machopic_validate_stub_or_non_lazy_ptr): Likewise.
3353 (machopic_indirect_data_reference): Wrap variables in macros
3354 controlling their use.
3355 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
3356 (machopic_select_section): Use parentheses around && within ||.
3357 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
3359 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3361 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
3362 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3363 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
3364 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
3365 mdr_try_remove_redundant_insns, track_w_reload,
3366 mdr_try_wreg_elim): Make function static to match prototype.
3367 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
3368 parameter with ATTRIBUTE_UNUSED.
3370 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3372 * arc.c (arc_init): Don't use ISO C style function definitions.
3373 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
3374 arm_get_strip_length, arm_strip_name_encoding): Likewise.
3375 * avr.h (progmem_section): Likewise.
3376 * h8300.c h8300_asm_insn_count): Likewise.
3377 * m32r.c (init_idents): Likewise.
3378 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
3379 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
3380 * xtensa.c (xtensa_build_va_list): Likewise.
3382 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
3384 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
3385 * c-opts.c (parse_option): Rename find_opt.
3386 (set_std_c99): New function.
3387 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
3388 (missing_arg): Remove OPT_std_bad. Handle -o.
3389 (c_common_decode_option): Handle input and output file names,
3390 -o and -remap. Clean up -std= handling.
3391 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
3392 (cpp_handle_option): Similarly. Don't handle filenames.
3394 Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
3396 * i386.c (classify_argument): Fix computing of field's offsets.
3398 2002-08-11 Andreas Jaeger <aj@suse.de>
3401 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
3403 2002-08-10 Ziemowit Laski <zlaski@apple.com>
3405 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
3406 reference to clk_objective_c with flag_objc.
3407 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
3409 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3411 2002-08-10 Neil Booth <neil@daikokuya.co.uk>
3413 * c-opts.c (set_std_cxx98, set_std_c89): New.
3414 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3415 (c_common_decode_option): Handle new switches from cppinit.c.
3417 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
3418 (no_arg, no_num): Remove.
3419 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
3420 switches apart from -lang-objc and lang-asm.
3421 (cpp_handle_option): Similarly.
3422 * cpplib.h (cpp_set_lang): New.
3423 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
3425 * objc/lang-specs.h: Remove -ansi.
3427 Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
3430 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
3433 2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3435 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
3436 emit_jump_insn): Fix uninitialized variable.
3437 * gcov.c (init_line_info): Likewise.
3438 * genautomata.c (transform_3): Add braces around ambiguous
3440 * ifcvt.c (cond_exec_process_insns): Mark parameter with
3442 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
3443 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
3446 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
3447 warnings in output files.
3449 2002-08-09 Ziemowit Laski <zlaski@apple.com>
3451 * c-common.c (flag_objc): New.
3452 * c-common.h (c_language_kind): Get rid of clk_objective_c
3454 (flag_objc): New extern declaration.
3455 * c-decl.c (implicitly_declare): Call objc_check_decl
3456 instead of maybe_objc_check_decl.
3457 (finish_decl): Likewise.
3458 (grokfield): Likewise.
3459 (finish_struct): Likewise.
3460 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
3461 (maybe_objc_comptypes): Rename to objc_comptypes.
3462 (maybe_building_objc_message_expr): Rename to
3463 objc_message_selector.
3464 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
3465 replace with flag_objc as needed.
3466 * c-opts.c (c_common_init_options): Likewise.
3467 (c_common_decode_option): Likewise.
3468 * c-parse.in (init_reswords): Likewise.
3469 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
3470 (maybe_objc_comptypes): Rename to objc_comptypes.
3471 (maybe_building_objc_message_expr): Rename to
3472 objc_message_selector.
3473 * c-typeck.c (comptypes): Call objc_comptypes instead of
3474 maybe_objc_comptypes, and/or objc_message_selector instead of
3475 maybe_building_objc_message_expr.
3476 (comp_target_types): Likewise.
3477 (convert_for_assignment): Likewise.
3478 (warn_for_assignment): Likewise.
3479 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
3480 independently of those for other languages.
3481 * objc/objc-act.c (maybe_objc_comptypes): Delete.
3482 (maybe_objc_check_decl): Delete.
3483 (maybe_building_objc_message_expr): Rename to
3484 objc_message_selector.
3485 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
3486 clk_objective_c; set flag_objc flag.
3488 2002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
3490 * ifcvt.c (find_if_case_2): Test correct basic block for size.
3492 2002-08-09 Dale Johannesen <dalej@apple.com>
3494 * config/rs6000/rs6000.md: Add sibcall patterns.
3495 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
3496 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
3497 Rewritten to handle sibcalls.
3498 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
3499 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
3501 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3503 * profile.c (da_file_name): New static var.
3504 (init_branch_prob): Initialize it.
3505 (end_branch_prob): Remove da file.
3507 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
3508 * configure.in (coverage_flags): Default to nothing.
3509 * configure: Rebuilt.
3511 2002-08-09 Neil Booth <neil@daikokuya.co.uk>
3513 * Makefile.in (c-opts.o): Update
3514 * c-opts.c: Include intl.h.
3515 (print_help): Move from cppinit.c. Remove unused options.
3516 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
3517 (missing_arg): Complain for switches without an argument.
3518 (c_common_decode_option): Reject missing joined arguments.
3519 Handle new switches from cppinit.c.
3520 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3521 (cpp_handle_option): Similarly.
3522 (print_help): Moved to c-opts.c.
3523 * cpplib.h (struct cpp_options): Remove help_only.
3524 * gcc.c (cpp_unique_options): Remove -$.
3525 * doc/cppopts.texi: Undocument -h.
3527 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3529 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
3530 legitimate constant.
3531 (legitimate_pic_operand_p): Neither pic operand.
3532 (legitimate_address_p): But legitimate address.
3533 (get_thread_pointer): Generate MEM/u instead of CONST around
3535 (print_operand): Remove printing of UNSPEC_TP.
3536 (print_operand_address): And print it here.
3538 2002-08-08 Devang Patel <dpatel@apple.com>
3540 * objc/objc-act.c (build_selector_translation_table): Issue warning,
3541 when -Wselector is used,if method for which selector is being
3542 created does not exist.
3544 2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
3546 * config/sh/sh.c (prepare_move_operands): Only call
3547 target_reg_operand if TARGET_SHMEDIA.
3549 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3551 * config/rs6000/rs6000.h, config/rs6000/aix.h,
3552 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
3554 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
3556 2002-08-08 Lars Brinkhoff <lars@nocrew.org>
3557 Richard Henderson <rth@redhat.com>
3559 * emit-rtl.c (gen_rtx_REG): After reload, only return
3560 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
3562 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3564 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
3565 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
3566 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
3569 2002-08-08 Adam Nemet <anemet@lnxw.com>
3571 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
3573 (thumb_expand_prologue): Likewise.
3574 (thumb_output_function_prologue): Likewise.
3575 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
3576 the additional push of the PIC register.
3578 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
3580 * configure.in (enable_coverage): New enable switch.
3581 * configure: Rebuilt.
3582 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
3583 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
3584 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
3585 (mostlyclean): Remove coverage files.
3586 * doc/install.texi: Document enable_coverage.
3588 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
3589 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
3590 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
3591 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
3592 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
3593 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
3596 2002-08-08 Neil Booth <neil@daikokuya.co.uk>
3598 * c-opts.c (cpp_opts): New.
3599 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
3600 (c_common_decode_options): Handle cpplib switches.
3601 (c_common_init_options): Set cpp_opts.
3602 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
3603 (cpp_handle_option): Similarly.
3605 2002-08-08 David Edelsohn <edelsohn@gnu.org>
3607 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
3608 (TARGET_ALTIVEC_ABI): Same.
3609 (TARGET_ALTIVEC_VRSAVE): Same.
3611 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
3612 icode not CODE_FOR_nothing. Change switch to if.
3614 2002-08-08 Alan Modra <amodra@bigpond.net.au>
3616 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
3618 2002-08-08 Jakub Jelinek <jakub@redhat.com>
3620 * stor-layout.c (place_union_field): For bitfields if
3621 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
3624 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3626 * pa.c (struct deferred_plabel): Constify name field.
3628 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
3630 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
3632 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
3634 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
3635 local_prefix are the same.
3636 * configure: Rebuilt.
3638 2002-08-07 Jakub Jelinek <jakub@redhat.com>
3639 Richard Henderson <rth@redhat.com>
3641 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
3642 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
3643 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
3644 (place_field): Likewise.
3645 * config/i386/i386.c (x86_field_alignment): Don't check
3646 DECL_USER_ALIGN here.
3647 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
3648 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
3650 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
3651 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
3652 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
3653 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
3654 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
3655 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
3657 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
3659 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
3660 * c-common.c: Don't include tree-inline.h.
3661 (c_common_init_options, c_common_post_options): Move to c-opts.c.
3662 * c-common.h (c_common_decode_option): New.
3663 * c-decl.c (c_decode_option): Remove.
3664 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
3665 * c-opts.c: New file.
3666 * c-tree.h (c_decode_option): Remove.
3667 * doc/passes.texi: Update.
3668 * objc/objc-act.c (objc_decode_option): Remove.
3669 * objc/objc-act.h (objc_decode_option): Remove.
3670 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
3671 c_common_decode_option.
3673 2002-08-07 Chris Demetriou <cgd@broadcom.com>
3675 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
3676 dependency on TARGET_DOUBLE_FLOAT.
3678 2002-08-07 Stephen Clarke <stephen.clarke@superh.com>
3680 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
3681 overwrite callee-save registers. Fix comment.
3683 2002-08-06 Chris Demetriou <cgd@broadcom.com>
3685 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
3686 in target_flags based on ISA, if it was not set on the command
3687 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
3688 support Branch Likely instructions.
3689 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
3690 (TARGET_BRANCHLIKELY): Likewise.
3691 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
3692 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
3693 ISA_HAS_BRANCHLIKELY.
3694 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
3695 * doc/invoke.texi: Document new MIPS -mbranch-likely and
3696 -mno-branch-likely options.
3698 2002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3700 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
3702 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
3705 2002-08-06 Aldy Hernandez <aldyh@redhat.com>
3707 * c-decl.c (duplicate_decls): Error out for incompatible TLS
3710 * testsuite/gcc.dg/tls/diag-3.c: New.
3712 2002-08-06 Dale Johannesen <dalej@apple.com>
3714 * c-common.c (fname_decl): Use line number 0 for
3715 __func__, to avoid confusing debuggers.
3717 2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
3720 (struct line_info, struct coverage): New structures.
3721 (gcov_file_name, gcov_file): Remove globals.
3722 (output_data): Take source file parameter. Fix memory leak. Break
3724 (init_line_info, output_line_info, make_gcov_file_name,
3725 accumulate_branch_counts): ... here.
3726 (calculate_branch_probs, function_summary): Adjust.
3728 (function_*): Remove global variables.
3730 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
3732 * dwarf2out.c: Remove unused macros.
3734 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
3736 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
3738 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
3740 * cppinit.c (struct lang_flags): Rename trigraphs std.
3742 * cpplib.h (struct cpp_options): New member std.
3743 * cppmacro.c (_cpp_builtin_macro_text): Use std.
3744 (collect_args): Flag whether to swallow a possible future
3745 comma pasted with varargs.
3746 (replace_args): Use this flag.
3747 * doc/cpp.texi: Update varargs extension documentation.
3749 2002-08-06 Jakub Jelinek <jakub@redhat.com>
3751 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
3753 2002-08-06 Jakub Jelinek <jakub@redhat.com>
3755 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
3756 and MODE_CLASS_INT modes.
3758 2002-08-06 Jakub Jelinek <jakub@redhat.com>
3760 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
3761 --{enable,disable}-threads is given to configure.
3762 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
3763 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
3764 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
3765 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
3766 Remove thread_file setting here.
3768 2002-08-06 David Edelsohn <edelsohn@gnu.org>
3770 * doc/install.texi (Binaries): Update Bull Freeware URL.
3772 2002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3774 * doc/gcc.texi (Top): Rename Index to Keyword Index.
3776 2002-08-05 Nathan Sidwell <nathan@codesourcery.com>
3778 * gcov.c (output_data): Round to % to nearest, tweak formatting.
3780 2002-08-05 Jakub Jelinek <jakub@redhat.com>
3782 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
3783 of the operands into MINUS_EXPR if code is PLUS_EXPR.
3785 2002-08-05 Douglas B Rupp <rupp@gnat.com>
3787 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
3788 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
3789 drectve_section): Define.
3790 * config/i386/t-interix: Replace interix.o rule with winnt.o.
3791 * config/i386/interix.c: Remove.
3793 2002-08-05 Geoffrey Keating <geoffk@redhat.com>
3795 * attribs.c: Don't include obstack.h.
3796 * builtins.c: Likewise.
3797 * cfganal.c: Likewise.
3798 * cfgbuild.c: Likewise.
3799 * cfgcleanup.c: Likewise.
3800 * emit-rtl.c: Likewise.
3804 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
3806 2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
3808 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
3810 2002-08-04 Chris Demetriou <cgd@broadcom.com>
3812 * doc/invoke.texi: Remove duplicated paragraph describing
3815 2002-08-04 Geoffrey Keating <geoffk@redhat.com>
3817 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
3818 * collect2.h (permanent_obstack): Delete declaration.
3819 * collect2.c (permanent_obstack): Delete definition.
3820 (main): Don't initialize permanent_obstack. Use xstrdup instead.
3821 * expr.c: Don't include obstack.h.
3822 (permanent_obstack): Delete declaration.
3823 * function.c: Don't include obstack.h.
3824 (permanent_obstack): Delete declaration.
3825 * integrate.c: Don't include obstack.h.
3826 (function_maybepermanent_obstack): Delete declaration.
3827 * print-tree.c (debug_tree): Use x*alloc not permalloc.
3828 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
3829 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
3830 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
3831 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
3832 of permalloc, expralloc, perm_calloc.
3833 * tree.c (permanent_obstack): Delete definition.
3834 (init_ttree): Rename from init_obstacks.
3835 (permalloc): Delete.
3836 (perm_calloc): Delete.
3837 (dump_tree_statistics): Don't print information about
3839 * varasm.c (assemble_start_function): Use xstrdup instead of
3841 (assemble_variable): Likewise.
3842 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
3844 (unicosmk_add_extern): Likewise.
3845 * config/c4x/c4x.c (c4x_external_ref): Likewise.
3846 (c4x_global_label): Likewise.
3847 * config/frv/frv.c (frv_encode_section_info): Likewise.
3848 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3849 (i386_pe_record_exported_symbol): Likewise.
3850 * config/mips/mips.c (mips_output_external): Likewise.
3851 (mips_output_external_libcall): Likewise.
3852 * config/pa/pa.c: (permanent_obstack): Delete declaration.
3853 (output_call): Use ggc_strdup instead of allocating on
3855 * config/romp/romp.c: Include ggc.h.
3856 (get_symref): Don't declare permanent_obstack, use ggc_strdup
3857 intead of permanent_obstack.
3858 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
3859 instead of permalloc.
3860 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
3861 instead of permalloc
3862 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
3863 instead of permalloc.
3864 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
3867 2002-08-04 Bernd Schmidt <bernds@redhat.com>
3869 Contribute a port developed primarily by Michael Meissner,
3870 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
3871 * config.gcc: Add frv-elf target.
3872 * config/frv/cmovd.c: New file.
3873 * config/frv/cmovh.c: New file.
3874 * config/frv/cmovw.c: New file.
3875 * config/frv/frv-abi.h: New file.
3876 * config/frv/frv-asm.h: New file.
3877 * config/frv/frv-modes.def: New file.
3878 * config/frv/frv-protos.h: New file.
3879 * config/frv/frv.c: New file.
3880 * config/frv/frv.h: New file.
3881 * config/frv/frv.md: New file.
3882 * config/frv/frvbegin.c: New file.
3883 * config/frv/frvend.c: New file.
3884 * config/frv/lib1funcs.asm: New file.
3885 * config/frv/media.h: New file.
3886 * config/frv/modi.c: New file.
3887 * config/frv/t-frv: New file.
3888 * config/frv/uitod.c: New file.
3889 * config/frv/uitof.c: New file.
3890 * config/frv/ulltod.c: New file.
3891 * config/frv/ulltof.c: New file.
3892 * config/frv/umodi.c: New file.
3893 * config/frv/xm-frv.h: New file.
3895 * config/frv/media.h: Removed again.
3897 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3899 * gcov.c (bb_file_time): New static variable.
3900 (object_directory): May also be object file.
3901 (preserve_paths): New static variable.
3902 (print_usage): Adjust.
3904 (process_args): Adjust.
3905 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
3906 file. Find modification date on bb file.
3907 (read_profile): Don't rewind a NULL file.
3908 (format_hwint): New static function.
3909 (function_summary): Use format_hwint.
3910 (output_data): SOURCE_FILE_NAME is never relative to
3911 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
3912 mangling. Adjust output format to make it more machine readable.
3913 * doc/gcov.texi: Document & clarify semantics.
3915 2002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
3917 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
3919 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3921 * gcc.c (cc1_options): Pass output file as auxbase when
3923 * profile.c (init_branch_prob): FILENAME has already had ending
3925 * final.c (end_final): Likewise.
3926 * toplev.c (aux_base_name): New global.
3927 (compile_file): Pass aux_base_name to init init_branch_prob and
3929 (independent_decode_option, case 'a'): New auxinfo options.
3930 (case 'd'): Protect against mising basename.
3931 (do_compile): Initialize aux_base_name.
3932 * toplev.h (aux_base_name): New global.
3933 * doc/invoke.texi: Adjust documentation.
3935 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
3937 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
3938 of TARGET_ALIGN_DOUBLE.
3940 2002-08-04 Gabriel Dos Reis <gdr@nerim.net>
3942 * diagnostic.c (inform): New function.
3943 * diagnostic.h (inform): Declare.
3945 2002-08-03 David Edelsohn <edelsohn@gnu.org>
3947 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
3948 (movhi_internal): Same.
3949 (movqi_internal): Same.
3950 (movdi_internal64): Same.
3952 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
3954 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
3955 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
3956 (COMMON_ASM_OP): Define.
3957 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
3958 Use ALIGN parameter.
3959 (LOCAL_COMMON_ASM_OP): Define.
3960 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
3962 2002-08-03 Roger Sayle <roger@eyesopen.com>
3964 * builtins.def: Define new builtin functions exp, expf, expl,
3965 log, logf and logl (and their __builtin_* variants).
3966 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
3967 Define exp_optab and log_optab.
3968 * optabs.c (init_optans): Initialize exp_optab and log_optab.
3969 * genopinit.c (optabs): Implement exp_optab and log_optab
3970 using exp?f2 and log?f2 patterns.
3971 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
3972 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
3973 (expand_builtin): Ignore the new builtins (and all cos and
3974 sin variants) when not optimizing. Expand new builtins via
3975 expand_builtin_mathfn when flag_unsafe_math_optimizations.
3977 * doc/extend.texi: Document new exp and log builtins.
3978 * doc/md.texi: Document new exp?f2 and log?f2 patterns
3979 (and previously undocumented cos?f2 and sin?f2 patterns).
3981 2002-08-03 Jason Merrill <jason@redhat.com>
3983 * explow.c (int_expr_size): New fn.
3984 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
3985 * expr.h: Declare it.
3987 2002-08-02 Krister Walfridsson <cato@df.lth.se>
3989 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
3990 gengtype-* dependencies.
3992 2002-08-02 Eric Christopher <echristo@redhat.com>
3994 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
3995 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
3997 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
3999 2002-08-02 David Edelsohn <edelsohn@gnu.org>
4002 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
4003 small if optimizing for size.
4005 2002-08-02 Daniel Jacobowitz <drow@mvista.com>
4007 * configure.in (FORBUILD): Use $build_alias.
4008 * configure: Regenerated.
4010 2002-08-02 Richard Sandiford <rsandifo@redhat.com>
4012 * config.gcc: Don't include mips/abi64.h in $tm_file.
4013 * hard-reg-set.h (call_really_used_regs): Declare.
4014 * config/mips/abi64.h: Remove file.
4015 * config/mips/linux.h,
4016 * config/mips/iris6.h: Don't include it.
4017 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
4018 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
4019 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
4020 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
4021 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
4022 Bring across definitions from abi64.h.
4023 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
4024 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
4025 (struct mips_args): Use it.
4026 * config/mips/mips.c (mips_conditional_register_usage): Define.
4028 2002-08-02 Jason Merrill <jason@redhat.com>
4030 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
4031 * langhooks.c (lhd_expr_size): Define default.
4032 * langhooks.h (struct lang_hooks): Add expr_size.
4033 * explow.c (expr_size): Call it.
4034 * expr.c (store_expr): Don't copy an expression of size zero.
4035 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
4037 * Makefile.in (builtins.o): Depend on langhooks.h.
4039 2002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4041 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
4042 * ra-debug.c: Include "tm_p.h".
4043 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
4045 2002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
4047 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
4048 when not honoring signalling NaNs.
4049 (simplify_ternary_operation): a == b has a definite value
4050 when not honoring NaNs.
4052 2002-08-02 Jason Merrill <jason@redhat.com>
4054 * gdbinit.in (pct): New macro.
4056 2002-08-01 Stan Shebs <shebs@apple.com>
4057 Andreas Tobler <toa@pop.agri.ch>
4059 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
4060 plays nice with Darwin headers.
4061 (_BSD_RUNE_T_DEFINED_): Likewise.
4063 2002-08-01 Zack Weinberg <zack@codesourcery.com>
4065 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
4066 * cppinit.c (cpp_post_options): Likewise.
4068 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
4069 warning about 'LL' suffix (but not 'ULL' etc) when
4070 -Wno-long-long is in effect.
4072 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
4073 Check for failing time()/localtime(), issue a warning, and
4074 make __TIME__ and __DATE__ expand to fallback strings.
4076 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
4077 and __TIME__ when the date and time cannot be determined.
4079 2002-08-02 Alan Modra <amodra@bigpond.net.au>
4081 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
4083 2002-08-01 Daniel Jacobowitz <drow@mvista.com>
4085 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
4087 2002-08-01 Chris Demetriou <cgd@broadcom.com>
4089 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
4090 (mipsisa64sb1el-*-elf*): Likewise.
4091 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
4092 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
4093 (TARGET_SB1, TUNE_SB1): New macros.
4094 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
4097 2002-08-01 David Edelsohn <edelsohn@gnu.org>
4099 * varasm.c (asm_emit_uninitialized): Return false if global BSS
4100 and ASM_EMIT_BSS not supported by target.
4101 (assemble_variable): Do not duplicate uninitialized logic.
4102 Fall through if asm_emit_uninitialized failed.
4104 2002-08-01 Chris Demetriou <cgd@broadcom.com>
4106 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
4108 2002-08-02 Alan Modra <amodra@bigpond.net.au>
4110 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
4111 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
4113 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
4114 HOST_BITS_PER_WIDE_INT == 64.
4116 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4118 * df.c (df_insn_table_realloc): Change parameter to unsigned.
4119 * optabs.c (expand_binop): Make variable unsigned.
4120 * simplify-rtx.c (simplify_subreg): Likewise.
4121 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
4123 2002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4125 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
4127 2002-08-01 Richard Henderson <rth@redhat.com>
4129 * toplev.c (parse_options_and_default_flags): Don't set
4130 flag_reorder_blocks for -Os.
4132 * config/avr/avr.c (avr_optimization_options): Remove.
4133 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
4134 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
4135 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
4137 2002-08-01 H.J. Lu <hjl@gnu.org>
4138 Richard Henderson <rth@redhat.com>
4140 * output.h (DECL_READONLY_SECTION): Remove.
4141 (decl_readonly_section): Declare.
4142 * varasm.c (decl_readonly_section): New.
4143 (default_section_type_flags, default_select_section): Use it.
4144 * config/arm/pe.c (arm_pe_unique_section): Likewise.
4145 * config/i386/interix.c (i386_pe_unique_section): Likewise.
4146 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
4147 * config/mcore/mcore.c (mcore_unique_section): Likewise.
4148 * config/mips/mips.c (mips_unique_section): Likewise.
4150 2002-08-01 Richard Henderson <rth@redhat.com>
4152 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
4153 refers to a subroutine parameter.
4155 2002-08-01 Jakub Jelinek <jakub@redhat.com>
4157 * varasm.c (assemble_visibility): Strip name encoding.
4159 2002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4161 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
4162 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
4163 when there is no frame pointer.
4164 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
4166 * config/ns32k/__unorddf2.c: New file.
4167 * config/ns32k/__unordsf2.c: New file.
4168 * config/ns32k/t-ns32k: New file.
4169 * config.gcc (ns32k-*-netbsd*): Use it.
4171 2002-08-01 Aldy Hernandez <aldyh@redhat.com>
4173 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
4175 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4177 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
4179 2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
4181 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
4183 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4185 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
4187 2002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4189 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
4191 (expr_hash_table, set_hash_table): Type changed to ...
4192 (struct hash_table): New type.
4193 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
4194 insert_expr_in_table, insert_set_in_table, compute_hash_table,
4195 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
4196 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
4197 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
4198 (alloc_hash_table): New.
4199 (free_set_hash_table, free_expr_hash_table): Merged to ...
4200 (free_hash_table): New.
4201 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
4202 (compute_hash_table_work): New.
4203 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
4204 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
4205 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
4206 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
4207 hoist_code, one_code_hoisting_pass,
4208 trim_ld_motion_mems): Altered due to changed type of hash tables.
4210 2002-08-01 Zack Weinberg <zack@codesourcery.com>
4212 * final.c (output_alternate_entry_point):
4213 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
4215 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4217 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
4218 avoid ISO C style function definition.
4220 * expr.c (expand_assignment): Delete unused variable.
4222 2002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
4224 * c-common.c (cb_register_builtins): Set
4225 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
4226 is given, and to 0 otherwise.
4227 * combine.c (simplify_if_then_else): HONOR_NANS
4228 implies FLOAT_MODE_P.
4230 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4232 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
4233 (cpp_handle_option): Don't handle it.
4234 (print_help): Update.
4235 * doc/cppopts.texi: Update.
4237 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4239 * c-common.c (cb_register_builtins): If C++, define
4240 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
4241 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
4243 * lang-specs.h: Simplify in accordance with new code in
4246 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
4248 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
4249 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
4250 * c-decl.c: Move all warning and flag variables to c-common.c.
4251 * c-format.c: Move all warning variables to c-common.c.
4252 * c-tree.h: Move all warning and flag declarations to c-common.h.
4253 * objc/objc-act.c: Move all warning variables to c-common.c.
4254 (flag_warn_protocol): Rename warn_protocol.
4256 2002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
4258 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
4260 2002-07-31 Graham Stott <graham.stott@btinternet.com>
4262 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
4265 2002-07-31 Stan Shebs <shebs@apple.com>
4267 * config.gcc (i[34567]86-*-darwin*): New configuration.
4268 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
4270 (TARGET_ENCODE_SECTION_INFO): Ditto.
4271 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
4272 * config/darwin.c (machopic_indirect_data_reference): Remove
4273 setting of RTX_UNCHANGING_P.
4274 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
4275 not to be applied to sums.
4276 * config/i386/t-darwin: New file.
4277 * config/i386/darwin.h: New file.
4278 * config/i386/i386.h (TARGET_MACHO): Add default definition.
4279 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
4280 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
4281 label and not the GOT add.
4282 (constant_address_p): For Mach-O, seeing a CONST is enough.
4283 (legitimate_pic_address_disp_p): Add a Mach-O case.
4284 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
4285 (legitimize_pic_address): Use generic Mach-O code to legitimize.
4286 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
4287 if outputting a difference.
4288 (ix86_output_addr_diff_elt): Add Mach-O case.
4289 (ix86_expand_move): Similarly.
4290 (ix86_expand_call): Similarly.
4291 (current_machopic_label_num): New global.
4292 (machopic_output_stub): New function.
4293 (ix86_value_regno): New function.
4294 (ix86_function_value): Use it instead of VALUE_REGNO.
4295 (ix86_libcall_value): Ditto.
4296 * config/i386/unix.h (VALUE_REGNO): Remove.
4298 2002-07-31 Graham Stott <grahas@btinternet.com>
4300 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
4301 hash for LABEL_REF's.
4303 2002-07-31 Graham Stott <grahams@btinternet.com>
4305 * config/rs6000/rs6000.c (spe_init_builtins,
4306 altivec_init_builtins, rs6000_common_init_builtins):
4307 Replace ANSI with K&R function def.
4309 2002-07-31 David Edelsohn <edelsohn@gnu.org>
4311 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
4314 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
4316 * config/mips/crtn.asm: Don't use __mips16 to determine the
4317 return-address offset. Define RA to a suitable temporary
4318 register for the return address.
4320 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
4322 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
4325 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4327 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
4328 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
4329 patch on 2002-07-29.)
4330 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4332 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4334 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
4335 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
4336 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
4337 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
4338 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
4339 (ASM_GLOBALIZE_LABEL): Delete.
4340 (GLOBAL_ASM_OP): Define.
4342 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
4344 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
4345 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
4347 2002-07-30 Geoffrey Keating <geoffk@redhat.com>
4349 * doc/extend.texi (Hints implementation): Document that GCC
4350 mostly ignores `register'.
4352 2002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
4354 * flags.h: Declare flag_finite_math_only.
4355 Use it in definition of HONOR_NANS and
4357 * c-common.c (cb_register_builtins): Emit
4358 __FINITE_MATH_ONLY__ when flag_finite_math_only
4360 * combine.c (simplify_if_then_else): If
4361 flag_finite_math_only is set, a == b has a
4363 * toplev.c: Initialize flag_finite_math_only.
4364 (set_flags_fast_math): Set it on -ffast-math.
4365 (flag_fast_math_set_p): Test it.
4366 * doc/invoke.texi: Document -ffinite-math-only.
4368 2002-07-30 Richard Henderson <rth@redhat.com>
4370 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
4371 (noce_process_if_block): Likewise.
4373 2002-07-30 Bernd Schmidt <bernds@redhat.com>
4375 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
4376 Bail out early if false_expr is NULL and we'd crash due to this.
4377 * genemit.c (gen_expand): Recognize return insns even if the return
4378 appears in a parallel.
4379 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
4380 * config/fp-bit.c: Likewise.
4381 * doc/tm.texi: Document it.
4383 2002-07-30 David Edelsohn <edelsohn@gnu.org>
4384 Zack Weinberg <zack@codesourcery.com>
4386 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
4387 CODE_FOR_nothing. Change switch to if.
4388 (rs6000_expand_binop_builtin): Same.
4389 (rs6000_expand_builtin): Expand builtin if target support enabled.
4390 (rs6000_init_builtins): Init builtin if target support enabled.
4391 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
4393 2002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4395 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
4397 2002-07-30 Richard Sandiford <rsandifo@redhat.com>
4399 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
4401 Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
4403 * sh.md (cond_delay_slot): New attribute.
4404 (cbranch delay): Use it for anulled-true case.
4405 (stuff_delay_slot): New pattern.
4406 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
4408 (gen_far_branch): Emit stuff_delay_slot pattern.
4410 Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
4412 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
4414 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
4416 * fold-const.c: Fix comment typos.
4418 * reload1.c: Likewise.
4420 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4422 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
4425 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
4427 * c-pretty-print.h (pp_c_statement): Declare.
4428 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
4429 (pp_c_statement): Define.
4431 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4433 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
4434 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
4435 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
4436 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
4437 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
4438 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
4440 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
4441 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
4443 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
4445 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
4446 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
4447 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
4448 (pp_c_expression): Update.
4450 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4452 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
4453 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
4454 * alpha/vms-ld.c (main): Likewise.
4455 * dsp16xx.c (double_reg_to_memory): Likewise.
4456 * mcore.c (mcore_expand_prolog): Likewise.
4457 * cppfiles.c (read_name_map): Likewise.
4458 * gensupport.c (process_rtx, identify_predicable_attribute,
4459 alter_test_for_insn): Likewise.
4460 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
4462 2002-07-29 Roger Sayle <roger@eyesopen.com>
4464 * builtins.c (expand_builtin): Change the default behavior to
4465 only issue an error if the builtin function doesn't have a
4466 fallback library call. Remove several cases handled by the
4469 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
4471 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
4472 floating point format of the target is IEEE.
4473 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
4474 format of the target is DEC.
4476 2002-07-29 Richard Henderson <rth@redhat.com>
4478 * unroll.c (verify_addresses): Remove.
4479 (find_splittable_givs): Never split DEST_ADDR givs.
4481 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
4483 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
4485 (Files): Improve documentation on generated source files.
4487 * doc/extend.texi (Translation implementation): Document what
4488 diagnostics look like.
4489 (Identifiers implementation): Document that there's normally no
4490 limit on identifier names.
4491 (Integers implementation): Document two's complement.
4492 (Hints implementation): Document that GCC honors 'inline', mostly.
4493 (Preprocessing directives implementation): Document that GCC
4494 requires the current time.
4496 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
4498 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
4499 (pp_initializer): New macro.
4500 (pp_c_initializer): Declare.
4501 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
4502 (pp_c_initializer): Define.
4503 (pp_c_initializer_list): New function.
4504 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
4505 VECTOR_CST, CONSTRUCTOR.
4506 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
4508 (pp_c_cast_expression): Handle FLOAT_EXPR.
4509 (pp_c_assignment_expression): Handle INIT_EXPR.
4510 (pp_c_expression): Update.
4512 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
4514 * objc/objc-act.c (objc_init): Return immediately if filename
4517 2002-07-29 Eric Christopher <echristo@redhat.com>
4519 * config/mips/elf.h: Remove ecoff.h and gofast includes.
4520 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
4521 (SDB_DEBUGGING_INFO): Undefine.
4522 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
4523 (PUT_SDB_SIZE): Remove.
4524 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
4525 (STARTFILE_SPEC): Add isa3264 define.
4526 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
4527 * config/mips/ecoff.h: Remove. and here...
4528 * config/mips/iris3.h: and here...
4529 * config/mips/sni-svr4.h: and here...
4530 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
4531 Add assembler -mmdebug options for non-dwarf debugging.
4532 * config/mips/r3900.h: Remove debug info defines.
4533 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
4534 * config/mips/isa3264.h: Ditto.
4535 * config/mips/t-isa3264: Fix up for file removal and gofast configure
4537 * config/mips/t-elf: Ditto.
4538 * config/mips/t-ecoff: Ditto.
4539 * config/mips/t-r3900: Ditto.
4540 * config/mips/t-iris5-6: Ditto.
4541 * config/mips/t-isa3264: Ditto.
4542 * config/mips/t-linux: Remove.
4543 * config/mips/t-netbsd: Remove.
4544 * config/mips/t-mips: New file.
4545 * config/mips/t-gofast: Ditto.
4546 * config/mips/netbsd.h: Remove unnecessary undefines.
4547 * config/mips/linux.h: Remove #include of mips.h.
4548 * config.gcc: Add mips.h include for elf targets. Remove tm_file
4549 for ecoff. Add gofast configure option for mips.
4551 2002-07-29 Chris Demetriou <cgd@broadcom.com>
4553 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
4554 linker scripts use STARTUP directives consistently.
4555 * configure: Regenerate.
4556 * config.in: Regenerate.
4557 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
4558 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
4559 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4560 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
4561 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
4564 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4566 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
4568 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4570 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
4572 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
4574 * config/rs6000/rs6000.md: Move altivec patterns from here...
4576 * config/rs6000/altivec.md: ...to here.
4578 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4580 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
4582 2002-07-29 Richard Henderson <rth@redhat.com>
4584 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
4585 set_mem_attributes and add BITPOS argument. Subtract it from
4586 OFFSET when same is adjusted.
4587 (set_mem_attributes): New wrapper function.
4588 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
4589 remove offset adjustment hack.
4590 * expr.h (set_mem_attributes_minus_bitpos): Declare.
4592 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
4594 * Makefile.in (C_OBJS): Include c-pretty-print.o
4595 (c-pretty-print.o): Add depency rule.
4596 * pretty-print.h: Add more macros.
4597 * c-pretty-print.c: New file.
4598 * c-pretty-print.h: Likewise.
4600 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
4602 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
4603 constants to __ev64_s32__.
4604 (__internal_ev_mwhgsmian): Same.
4605 (__internal_ev_mwhgsmfan): Same.
4606 (__internal_ev_mwhgssfan): Same.
4607 (__internal_ev_mwhgumiaa): Same.
4608 (__internal_ev_mwhgsmiaa): Same.
4609 (__internal_ev_mwhgsmfaa): Same.
4610 (__internal_ev_mwhgssfaa): Same.
4612 2002-07-29 David Edelsohn <edelsohn@gnu.org>
4614 * varasm.c (assemble_variable): Narrow test for uninitialized
4615 without BSS target support.
4617 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
4619 * profile.c: Add file comment describing the overall algorithm and
4621 (struct edge_info): Add comments.
4622 (struct bb_info): Add comments.
4623 * basic-block.h (EDGE_*): Add comments.
4624 * doc/gcov.texi (Gcov Data Files): Document bit flags.
4626 2002-07-29 Bob Wilson <bob.wilson@acm.org>
4628 * config/xtensa/elf.h, config/xtensa/linux.h
4629 (TARGET_OS_CPP_BUILTINS): Define.
4630 (CPP_PREDEFINES): Remove.
4631 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
4634 2002-07-29 Zack Weinberg <zack@codesourcery.com>
4636 * gensupport.c: Include hashtab.h.
4637 (insn_elision, condition_table, hash_c_test, cmp_c_test,
4638 maybe_eval_c_test): New routines and data structures to
4639 support insn elision.
4640 (init_md_reader): Read and initialize the condition_table.
4641 (read_md_rtx): Discard insn patterns whose C test is provably
4643 * gensupport.h: Declare new functions and data structures.
4645 * genconditions.c, dummy-conditions.c: New files.
4646 * Makefile.in: Build genconditions; run it to construct
4647 insn-conditions.c; build that and link it into most gen*
4649 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
4650 (GEN): Delete, unused.
4651 (STAGESTUFF): Update.
4653 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
4654 CODE_FOR_nothing for all elided patterns.
4655 (main): Tweaked to support this.
4656 * genflags.c (gen_proto): Emit a static inline generator
4657 function here for all elided patterns, which simply returns
4659 (gen_insn): Do not define HAVE_xxx for elided patterns.
4660 (main): Tweaked to support this. No need to forward-declare
4662 * genrecog.c: Do not bother emitting the C test if it's known
4663 to be true at compile time.
4665 2002-07-29 Mike Stump <mrs@apple.com>
4667 * config.gcc (target_gtfiles): Initialize, as otherwise cross
4668 compilers hosted on powerpc-apple-darwin6.0 won't even build.
4670 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
4672 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
4673 remove clobber of LR.
4674 (sibcall_insn, sibcall_value_insn): Update accordingly.
4675 (sibcall_epilogue): Remove debugging comment from assembler stream.
4677 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
4679 * pretty-print.h: Define more macros.
4680 * diagnostic.h (output_formatted_integer): Moved from...
4681 * diagnostic.c: ... here.
4683 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4685 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
4687 2002-07-28 Zack Weinberg <zack@codesourcery.com>
4689 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
4690 arguments. Always use ".-symbol" as expression argument.
4691 * doc/tm.texi: Update to match. Document requirement for
4692 ".size symbol, .-symbol" to be acceptable to assembler.
4694 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4695 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
4696 config/i386/freebsd-aout.h, config/i386/sco5.h,
4697 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
4698 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
4700 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4702 * Makefile.in (gengtype-lex.c): Fix error in last change.
4704 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
4707 * Makefile.in (vmsdbgout.o): Depend on function.h.
4709 * vmsdbgout.c: Include function.h.
4711 2002-07-28 Alan Modra <amodra@bigpond.net.au>
4713 * prefix.c (update_path): Don't strip single `.' path components
4714 unless stripping a later `..' component. Exit loop as soon as
4715 a valid path is found.
4717 2002-07-27 Roger Sayle <roger@eyesopen.com>
4719 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
4720 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
4721 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
4722 floating point unordered comparisons (e.g. __builtin_isgreater)
4723 as const, and leave the remaining GCC_BUILTINs unchanged.
4725 * c-decl.c (builtin_function): No need to explicitly mark
4726 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
4728 2002-07-27 Roger Sayle <roger@eyesopen.com>
4730 * Makefile.in: rtlanal.o now depends upon real.h.
4732 * flags.h [flag_signaling_nans]: New flag.
4733 [HONOR_SNANS]: New macro.
4735 * toplev.c [flag_signaling_nans]: Initialize to false.
4736 (f_options): Add processing for "-fsignaling-nans".
4737 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
4738 (process_options): flag_signaling_nans implies flag_trapping_math.
4740 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
4741 when -fsignaling-nans. First step to implementing WG14's N965.
4743 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
4744 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
4745 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
4747 * simplify-rtx.c (simplify_relational_operation): Conditionalize
4748 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
4750 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
4751 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
4752 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
4753 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
4754 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
4756 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
4758 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4760 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
4761 * gengtype-lex.l (YY_USE_PROTOS): Undef.
4764 2002-07-27 Roger Sayle <roger@eyesopen.com>
4766 * doc/invoke.texi: Document that both -fno-builtin-foo and
4767 -fno-builtin are supported by the g++ front-end.
4769 2002-07-27 Stan Shebs <shebs@apple.com>
4771 * configure.in: Rename config_gtfiles to target_gtfiles.
4772 * configure: Regenerate.
4773 * doc/gty.texi: Update reference.
4774 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
4775 instead of appending to it.
4777 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
4779 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
4780 vectors are split into two registers.
4781 (function_arg): Same.
4783 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
4785 * pa.md (extv): Check predicates before emitting extv_32.
4787 2002-07-27 Alan Modra <amodra@bigpond.net.au>
4789 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
4790 (rs6000_traceback): New var.
4791 (rs6000_override_options): Set rs6000_traceback.
4792 (rs6000_output_function_epilogue): Implement traceback options.
4793 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
4794 (rs6000_traceback_name): Declare.
4796 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
4797 label reference when NO_PROFILE_COUNTERS.
4799 2002-07-26 Jason Merrill <jason@redhat.com>
4801 * function.c (assign_parms): Handle frontend-directed pass by
4802 invisible reference.
4804 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
4806 * doc/cppopts.texi: Update.
4808 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
4810 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
4811 warnings on assertions.
4813 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
4815 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
4816 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
4818 * c-parse.in (rid_to_yy): Similarly.
4820 2002-07-26 Jason Merrill <jason@redhat.com>
4822 * c-dump.c: Resurrect.
4823 * tree-dump.c: Move C-specific stuff to c-dump.c.
4824 * c-common.h: Declare c_dump_tree.
4825 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
4826 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4827 (c-dump.o): New rule.
4829 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4831 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
4832 PowerPC64. Replace "T" and "S" constraints with "n" when the
4833 predicate will do. Formatting fixes.
4834 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
4835 as for extzvsi_internal1.
4837 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4839 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
4840 DERIV_END_LABEL_FMT): Remove.
4841 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
4843 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4845 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
4848 2002-07-25 Stan Shebs <shebs@apple.com>
4850 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
4852 (output_compiler_stub): Remove unused locals.
4853 (output_call): Always initialize line number.
4855 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
4857 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
4858 * sh.md (truncdiqi2, movqi_media): Likewise.
4860 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4862 * gcse.c (obstack_chunk_alloc): Remove.
4863 (gcse_alloc): Fix to count allocated bytes.
4864 * collect2.c (SYMBOL__MAIN): Remove.
4866 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4868 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
4869 HAVE_TARGET_EXECUTABLE_SUFFIX.
4871 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
4873 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
4874 SIZE, EXPR and OFFSET.
4876 2002-07-25 Richard Henderson <rth@redhat.com>
4878 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
4879 in ARRAY_REF of DECL_P case.
4881 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4883 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
4884 description. Document -mips32, -mips64, and the associated -march
4885 values. Describe the "mipsN" arguments to -march. Say that the
4886 -mipsN options are equivalent to -march. Reword the description
4887 of default type sizes.
4888 * toplev.h (target_flags_explicit): Declare.
4889 * toplev.c (target_flags_explicit): New var.
4890 (set_target_switch): Update target_flags_explicit.
4891 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
4892 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
4893 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
4894 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
4895 * config/mips/mips.h (mips_cpu_info): New struct.
4896 (mips_cpu_string, mips_explicit_type_size_string): Remove.
4897 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
4898 (MIPS_CPP_SET_PROCESSOR): New macro.
4899 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
4900 Define _MIPS_ARCH and _MIPS_TUNE.
4901 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
4902 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
4903 MIPS_ISA_DEFAULT were already defined.
4904 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
4905 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
4906 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
4907 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
4908 (ABI_GAS_ASM_SPEC): Remove.
4909 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
4910 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
4911 Invoke %(asm_abi_default_spec) if no ABI was specified.
4912 (CC1_SPEC): Remove ISA -> register-size rules.
4913 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
4914 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
4915 (mips_cpu_string, mips_explicit_type_size_string): Remove.
4916 (mips_cpu_info_table): New array.
4917 (mips_set_architecture, mips_set_tune): New fns.
4918 (override_options): Rework to make -mipsN equivalent to -march.
4919 Detect more erroneous cases, including those removed from CC1_SPEC.
4920 Don't change the ABI based on architecture, or vice versa.
4921 Unify logic with GAS.
4922 (mips_asm_file_start): Get architecture name from mips_arch_info.
4923 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4924 (mips_parse_cpu): Take the name of the option as argument. Handle
4925 'from-abi'. Raise an error if the option is wrong.
4926 (mips_cpu_info_from_isa): New fn.
4928 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4930 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
4931 (tablejump_mips162): Likewise.
4933 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
4935 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
4938 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
4940 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
4942 * c-common.h (c_sizeof): Adjust definition.
4943 (c_alignof): Likewise.
4944 * c-tree.h (c_sizeof_nowarn): Now macro.
4945 * c-typeck.c (c_sizeof_nowarn): Remove definition.
4947 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
4949 * c-decl.c (c_decode_option): No need to handle switches
4952 2002-07-24 Zack Weinberg <zack@codesourcery.com>
4954 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
4955 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
4956 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
4957 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4959 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4960 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
4961 config/cris/aout.h, config/i386/freebsd-aout.h,
4962 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
4963 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
4964 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
4965 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
4966 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
4967 config/xtensa/elf.h, config/xtensa/linux.h:
4969 Where possible, remove redundant definitions of SIZE_ASM_OP,
4970 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4972 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
4974 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
4975 TARGET_ISEL, and TARGET_FPRS.
4977 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4978 -mabi=spe, -mabi=no-spe, and -misel=.
4980 * config/rs6000/rs6000-protos.h: Add output_isel.
4981 Move vrsave_operation prototype here.
4983 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
4987 (abssi2_nopower): Disallow when TARGET_ISEL.
4989 (negsf2): Change to expand and rename old pattern to *negsf2.
4990 (abssf2): Change to expand and rename old pattern to *abssf2.
4992 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
4995 Change patterns that check for TARGET_HARD_FLOAT or
4996 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
4998 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
4999 rs6000_isel, rs6000_fprs, rs6000_isel_string.
5000 (rs6000_override_options): Add 8540 case to
5001 processor_target_table.
5002 Set rs6000_isel for the 8540.
5003 Call rs6000_parse_isel_option.
5004 (enable_mask_for_builtins): New.
5005 (rs6000_parse_isel_option): New.
5006 (rs6000_parse_abi_options): Add spe and no-spe.
5007 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
5008 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
5009 for TARGET_HARD_FLOAT.
5010 Add case for SPE_VECTOR_MODE.
5011 (rs6000_legitimize_reload_address): Handle SPE vector modes.
5012 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
5014 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
5015 (rs6000_emit_move): Check for TARGET_FPRS.
5016 Add cases for SPE vector modes.
5017 (function_arg_boundary): Return 64 for SPE vector modes.
5018 (function_arg_advance): Check for TARGET_FPRS and
5020 (function_arg): Same.
5021 (setup_incoming_varargs): Check for TARGET_FPRS.
5022 (rs6000_va_arg): Same.
5023 (struct builtin_description): Un-constify mask field. Move up in
5025 (bdesc_2arg): Un-constify and add SPE builtins.
5027 (bdesc_spe_predicates): New.
5028 (bdesc_spe_evsel): New.
5029 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
5030 (rs6000_expand_binop_builtin): Same.
5031 (bdesc_2arg_spe): New.
5032 (spe_expand_builtin): New.
5033 (spe_expand_predicate_builtin): New.
5034 (spe_expand_evsel_builtin): New.
5035 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
5036 (rs6000_init_builtins): Initialize SPE builtins. Call
5037 rs6000_common_init_builtins.
5038 (altivec_init_builtins): Move all non-altivec builtin code to...
5039 (rs6000_common_init_builtins): ...here. New function.
5040 (branch_positive_comparison_operator): Allow NE code for SPE.
5041 (ccr_bit): Return correct ccr bit for SPE fp.
5042 (print_operand): Emit crnor in 'D' case for SPE.
5044 Add SPE code for 'y' case.
5045 (rs6000_generate_compare): Generate rtl for SPE fp.
5046 (output_cbranch): Handle SPE hard floats.
5047 (rs6000_emit_cmove): Handle isel.
5048 (rs6000_emit_int_cmove): New.
5050 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
5052 (debug_stack_info): Add SPE info.
5053 (gen_frame_mem_offset): New.
5054 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
5055 Change mode of frame pointer, when saving it, to Pmode.
5056 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
5057 Misc cleanups and use gen_frame_mem_offset when appropriate.
5059 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
5060 (TARGET_SPE_ABI): New.
5064 (FIXED_SCRATCH): New.
5065 (RTX_COSTS): Add PROCESSOR_PPC8540.
5066 (ASM_CPU_SPEC): Add case for 8540.
5067 (TARGET_OPTIONS): Add isel= case.
5068 (rs6000_spe_abi): New.
5071 (rs6000_isel_string): New.
5072 (UNITS_PER_SPE_WORD): New.
5073 (LOCAL_ALIGNMENT): Adjust for SPE.
5074 (HARD_REGNO_MODE_OK): Same.
5075 (DATA_ALIGNMENT): Same.
5076 (MEMBER_TYPE_FORCES_BLK): New.
5077 (FIRST_PSEUDO_REGISTER): Set to 113.
5078 (FIXED_REGISTERS): Add SPE registers.
5080 (REG_CLASS_NAMES): Same.
5081 (REG_CLASS_CONTENTS): Same.
5082 (REGNO_REG_CLASS): Same.
5083 (REGISTER_NAMES): Same.
5084 (DEBUG_REGISTER_NAMES): Same.
5085 (ADDITIONAL_REGISTER_NAMES): Same.
5086 (CALL_USED_REGISTERS): Same.
5087 (CALL_REALLY_USED_REGISTERS): Same.
5088 (SPE_ACC_REGNO): New.
5089 (SPEFSCR_REGNO): New.
5090 (SPE_SIMD_REGNO_P): New.
5091 (HARD_REGNO_NREGS): Adjust for SPE.
5092 (VECTOR_MODE_SUPPORTED_P): Same.
5093 (REGNO_REG_CLASS): Same.
5094 (FUNCTION_VALUE): Same.
5095 (LIBCALL_VALUE): Same.
5096 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
5097 (SPE_VECTOR_MODE): New.
5098 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
5099 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
5100 (rs6000_stack): Add spe_gp_size, spe_padding_size,
5102 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
5103 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
5104 (SPE_CONST_OFFSET_OK): New.
5105 (rs6000_builtins): Add SPE builtins.
5107 * testsuite/gcc.dg/ppc-spe.c: New.
5109 * config/rs6000/eabispe.h: New.
5111 * config/rs6000/spe.h: New.
5113 * config/rs600/spe.md: New.
5115 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5116 __SIMD__ for TARGET_SPE.
5118 * config.gcc: Add powerpc-*-eabispe* case.
5119 Add spe.h to user headers for powerpc.
5121 2002-07-24 Chris Demetriou <cgd@broadcom.com>
5123 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
5124 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5125 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
5127 2002-07-24 Richard Henderson <rth@redhat.com>
5129 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
5130 form when not optimizing.
5132 2002-07-24 David Mosberger <davidm@hpl.hp.com>
5134 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
5135 thread_pointer_rtx as unchanging.
5137 2002-07-24 Michael Matz <matz@suse.de>
5139 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
5142 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
5144 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
5146 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
5147 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
5149 2002-07-24 Chris Demetriou <cgd@broadcom.com>
5151 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
5152 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5153 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
5155 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
5157 * toplev.c (rest_of_compilation): Dump loops before clobbering
5160 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
5162 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
5164 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
5166 PR optimization/7291
5167 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
5170 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
5172 * pretty-print.h: Add macros from cp/error.c
5174 2002-07-24 Alan Modra <amodra@bigpond.net.au>
5176 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
5177 (mask64_2_operand): Declare.
5178 (build_mask64_2_operands): Declare.
5179 (and64_2_operand): Declare.
5180 (extract_MB): Declare.
5181 (extract_ME): Declare.
5182 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
5184 (mask_operand_wrap): New insn predicate.
5185 (mask64_2_operand): Likewise.
5186 (and64_2_operand): Likewise.
5187 (build_mask64_2_operands): New function.
5188 (extract_MB): New function.
5189 (extract_ME): New function.
5190 (print_operand <case m,M>): Use extract_MB and extract_ME.
5191 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
5192 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
5193 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
5194 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
5195 * config/rs6000/rs6000.md (andsi3_internal3): New
5196 (andsi3_internal3+1): Enable split for powerpc64.
5197 (andsi3_internal3+2): New split.
5198 (andsi3_internal4): Renamed old andsi3_internal3.
5199 (andsi3_internal5): New.
5200 (andsi3_internal5+1): Enable split for powerpc64.
5201 (andsi3_internal5+2): New split.
5202 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
5203 (anddi3): Handle 't' constraint.
5204 (anddi3+1): New split.
5205 (anddi3_internal2): Handle 't' constraint.
5206 (anddi3_internal2+1): New split.
5207 (anddi3_internal3): Handle 't' constraint.
5208 (anddi3_internal3+1): New split.
5210 2002-07-24 Alan Modra <amodra@bigpond.net.au>
5212 * config/rs6000/rs6000.md: Remove scratch reg on insns using
5213 addze and similar (plus (comparison r1 r2) r3) insns. Add
5214 missing scratch reg in one case. Formatting fixes.
5216 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
5218 * cppexp.c (parse_defined): Mark macro used.
5219 * cpphash.h (struct cpp_macro): New member "used".
5220 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
5221 (struct cpp_reader): New member.
5222 * cppinit.c (cpp_finish_options): Set first_unused_line.
5223 (cpp_finish): Warn of unused macros if requested.
5224 (OPT_TABLE): New switches.
5225 (cpp_handle_option): Handle them.
5226 * cpplib.c (do_undef): Warn if macro unused.
5227 (do_ifdef, do_ifndef): Mark macro used.
5228 * cpplib.h (struct cpp_options): New member.
5229 * cppmacro.c (_cpp_warn_if_unused_macro): New.
5230 (enter_macro_context): Mark macro used.
5231 (_cpp_create_definition): Mark macro unused; warn if unused
5233 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
5235 * doc/cppopts.texi: Update.
5237 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5239 * dwarf2out.c (SECTION_ASM_OP,
5240 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5241 * system.h (SECTION_ASM_OP): Poison.
5242 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
5243 * config/alpha/alpha-interix.h, config/mips/linux.h
5244 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5245 * config/mmix/mmix-protos.h, config/mmix/mmix.c
5246 (mmix_asm_output_define_label_difference_symbol): Remove.
5247 * config/mmix/mmix.h
5248 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
5249 * doc/tm.texi: Remove documentation.
5251 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
5253 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
5254 (constrain_operands): Likewise.
5255 * regclass.c (record_reg_classes): Likewise.
5256 * reload.c (find_reloads): Likewise.
5257 * doc/md.texi: Likewise.
5259 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
5260 * simplify-rtx.c (simplify_subreg): When converting to a non-int
5261 mode, try to convert to an integer mode of matching size first.
5263 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
5264 from individual subregs, check that each subreg has been generated
5267 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5269 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
5270 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
5271 FOR_EACH_BB_IN_SBITMAP): Remove.
5272 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
5273 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
5274 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
5275 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
5276 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
5277 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
5279 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
5281 * pretty-print.h: New file.
5283 2002-07-23 Paul Koning <pkoning@equallogic.com>
5285 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
5286 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
5287 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
5288 (TARGET_G_FLOAT): Default to 0 if not defined.
5289 (ieeetoe): New, common routine to convert target format floats
5291 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
5293 (e113toe): Change to use ieeetoe.
5295 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
5297 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
5299 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
5300 (e64toe): Remove special cases for DEC and IBM. Remove support for
5301 ARM_EXTENDED_IEEE_FORMAT.
5302 (e24toe): Remove special cases for DEC.
5303 (significand_size): Simplify. Indent.
5304 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
5305 (etoieee, toieee): New.
5306 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
5307 etoieee and toieee for IEEE arithmetic.
5309 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
5311 * doc/extend.texi: Say ISO C90, not ISO C89.
5312 * doc/invoke.texi: Likewise.
5313 * doc/standards.texi: Likewise.
5315 2002-07-23 Steve Ellcey <sje@cup.hp.com>
5317 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
5318 Fix permutation of conversion and plus/mult.
5319 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
5320 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
5321 (expand_builtin_strncpy) Ditto.
5322 (expand_builtin_memset) Ditto.
5324 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
5327 * c-common.c (c_sizeof_or_alignof_type): New function.
5328 (c_alignof): Remove definition.
5329 * c-common.h (c_sizeof, c_alignof): Define as macros.
5330 (c_sizeof_or_alignof_type): Declare.
5331 (my_friendly_assert): Moved from cp/cp-tree.h
5332 * c-typeck.c (c_sizeof): Remove definition.
5334 2002-07-23 Jan Hubicka <jh@suse.cz>
5336 * gcse.c (try_replace_reg): Use num_changes_pending.
5337 * recog.c (num_changes_pending): New function.
5338 (validate_replace_src): Use validate_repalce_src_group.
5339 (validate_replace_src_group): New.
5340 * recog.h (validate_repalce_src_group): New.
5341 (num_changes_pending): Likewise.
5343 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
5345 * calls.c (emit_library_call_value_1): If
5346 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
5347 libcall, const call nor pure call.
5349 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5351 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
5353 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5355 * vmsdbgout.c (SECTION_ASM_OP): Remove.
5357 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5359 * config/i386/i386.c (AT_BP): Remove.
5361 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
5363 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
5365 * gcse.c: Don't define obstack_chunk_free.
5366 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
5367 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
5368 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
5369 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
5370 Don't define obstack macros.
5372 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
5375 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
5376 ASM_OPERANDS instructions.
5378 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
5381 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
5382 constant addresses only on 68HC12.
5384 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
5386 * cppfiles.c (stack_include_file): Correct test of whether
5387 a dependency should be output.
5389 2002-07-22 David Edelsohn <edelsohn@gnu.org>
5391 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
5393 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
5395 * arm.md (movqi): If optimizing and we can create pseudos, use
5396 a ZERO_EXTEND to load from memory, then copy the result into the
5398 (movhi): Likewise, but only for ARMv4.
5400 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
5402 * ssa-ccp.c (PHI_PARMS): Remove.
5404 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
5406 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
5407 on big-endian targets.
5409 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5411 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
5412 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
5413 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
5414 New formatting macros.
5416 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
5418 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
5420 * rtlanal.c (subreg_regno_offset): Return correct offset for
5421 big endian paradoxical subregs.
5423 * optabs.c (expand_vector_unop): Don't expand using sub_optab
5424 if we got the wrong mode.
5426 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
5427 * genrecog.c (write_switch, write_cond): Use it.
5428 * genemit.c (gen_exp): Likewise.
5430 2002-07-22 Jakub Jelinek <jakub@redhat.com>
5432 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
5434 2002-07-22 Jakub Jelinek <jakub@redhat.com>
5436 * c-decl.c (build_compound_literal): Defer compound literal decls
5437 until until file end to emit them only if they are actually used.
5439 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5441 * ra-build.c (check_conflict_numbers): Hide unused function.
5442 (livethrough_conflicts_bb): Avoid automatic aggregate
5444 (parts_to_webs_1): Avoid `U' integer constant modifier.
5445 (conflicts_between_webs): Wrap a variable in the macro controlling
5447 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
5448 (dump_igraph, dump_graph_cost): Avoid string concatenation
5449 (dump_static_insn_cost): Avoid automatic aggregate
5451 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
5453 (dump_cost): Avoid string concatenation
5455 2002-07-21 Richard Henderson <rth@redhat.com>
5457 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
5458 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
5460 2002-07-21 Richard Henderson <rth@redhat.com>
5462 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
5463 that are not unrolled completely.
5465 2002-07-21 Richard Henderson <rth@redhat.com>
5467 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
5468 * loop.c (strength_reduce): Update.
5469 * toplev.c (rest_of_compilation): Do unrolling in the first
5470 loop pass, not the second.
5472 2002-07-21 Richard Henderson <rth@redhat.com>
5474 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
5475 when flag_argument_noalias == 2.
5476 * alias.c (nonoverlapping_memrefs_p): Handle that.
5477 * print-rtl.c (print_mem_expr): Likewise.
5479 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
5481 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
5482 instead of __negdi2 directly.
5484 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5486 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
5487 * function.c (SYMBOL__MAIN): Remove definition.
5488 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
5489 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
5490 * profile.c (GCOV_INDEX_TO_BB): Remove.
5491 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
5492 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
5494 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5496 * c-lex.c (GET_ENVIRONMENT): Remove.
5497 * collect2.c (GET_ENV_PATH_LIST): Remove.
5498 (prefix_from_env): Use GET_ENVIRONMENT.
5499 * cppinit.c (GET_ENV_PATH_LIST): Remove.
5500 (init_standard_includes): Use GET_ENVIRONMENT.
5501 * defaults.h (GET_ENVIRONMENT): Define here if not already.
5502 * gcc.c (GET_ENV_PATH_LIST): Remove.
5503 (make_relative_prefix, process_command): Update.
5504 * protoize.c (GET_ENV_PATH_LIST): Remove.
5505 (do_processing): Update.
5507 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
5509 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
5510 (grokdeclarator): Likewise.
5511 * c-format.c (C_STD_NAME): Likewise.
5512 * c-lex.c (interpret_integer): Likewise.
5513 * c-typeck.c (build_array_ref): Likewise.
5514 * cpplex.c (_cpp_lex_direct): Likewise.
5515 * toplev.c (documented_lang_options): Likewise.
5517 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5519 * c-format.c (T99_I, T99_UI): Remove.
5521 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
5523 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
5525 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
5527 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
5530 2002-07-21 Andreas Jaeger <aj@suse.de>
5532 * reload1.c (fixup_abnormal_edges): Remove unused variable.
5534 2002-07-21 Bernd Schmidt <bernds@redhat.com>
5536 Improvements for the ifcvt pass from Michael Meissner, with patches
5537 by Richard Sandiford <rsandifo@redhat.com>
5538 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
5539 * ifcvt.c (cond_exec_changed_p): New static variable.
5540 (last_active_insn): New function, renamed from last_active_insn_p
5541 and changed to return the last active insn in a basic block. All
5543 (block_fallthru): New function.
5544 (cond_exec_process_insns): New argument CE_INFO. Pass it to
5545 IFCVT_MODIFY_INSN. All callers updated.
5546 Return false if START or END are NULL.
5547 Handle case where we're processing an insn that is already
5550 (noce_process_if_block): CE_INFO argument rather than
5551 multiple args containing the involved basic blocks. All callers
5553 (process_if_block, merge_if_block, find_if_block,
5554 cond_exec_process_if_block): Likewise.
5556 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
5558 Use new function last_active_insn to simplify some code.
5559 New code to handle multiple tests.
5560 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
5561 cond_exec_changed_p to TRUE.
5563 (process_if_block): New code to handle multiple tests.
5564 (merge_if_block): Likewise.
5565 (find_if_header): New arg PASS. Changed to return the currently
5566 processed basic block or NULL instead of true/false. All callers
5568 Call IFCVT_INIT_EXTRA_FIELDS.
5569 (block_jumps_and_fallthru_p): New function.
5570 (find_if_block): Discover opportunities to convert multiple tests.
5571 Add additional debugging output.
5572 Update the ce_info structure before returning.
5574 (if_convert): Run multiple passes of if-conversion.
5575 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
5576 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
5577 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
5580 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
5582 * gcse.c: Include cselib.h
5583 (constptop_register): Break out from ...
5584 (cprop_insn): ... here; kill basic_block argument.
5585 (do_local_cprop, local_cprop_pass): New functions.
5586 (one_cprop_pass): Call local_cprop_pass.
5588 2002-07-20 Roger Sayle <roger@eyesopen.com>
5590 * simplify-rtx.c (simplify_relational_operation): Optimize
5591 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
5593 2002-07-20 Michae Matz <matz@suse.de>
5595 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
5597 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
5599 * cppexp.c (struct op): Add token pointer.
5600 (check_promotion, CHECK_PROMOTION): New.
5602 (_cpp_parse_expr): Update, use token pointer of struct op.
5603 (reduce): Warn about change of sign owing to promotion.
5604 * cppinit.c (cpp_handle_option): New warning if -Wall.
5605 * cpplib.h (struct cpp_options): New member.
5607 2002-07-19 David Edelsohn <edelsohn@gnu.org>
5609 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
5610 fpu list. Separate Power4 compare and delayed_compare. Correct
5612 (fix_truncdfsi2_internal): Restore FPR preference.
5613 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
5614 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
5616 2002-07-19 Momchil Velikov <velco@fadata.bg>
5618 * reload1.c (reload_as_needed): Duplicate oldpat.
5620 2002-07-20 Alan Modra <amodra@bigpond.net.au>
5622 PR optimization/7130
5623 * loop.h (struct loop_info): Add "preconditioned".
5624 * unroll.c (unroll_loop): Set it.
5625 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
5627 2002-07-19 Zack Weinberg <zack@codesourcery.com>
5629 * rtl.def (CODE_LABEL): Remove slot 8.
5630 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
5631 (LABEL_ALTERNATE_NAME): Delete.
5632 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
5633 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5635 * final.c (output_alternate_entry_point): New.
5636 (final_scan_insn): Use it instead of
5637 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
5638 of a case label being an alternate entry point.
5640 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
5641 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
5642 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
5644 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
5646 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
5647 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
5648 * doc/tm.texi: Delete documentation of
5649 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
5651 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5653 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
5654 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
5655 (LINK_SPEC): Define.
5656 (STARTFILE_SPEC): Define.
5657 (ENDFILE_SPEC): Define.
5659 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
5660 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
5662 * config/mips/iris6-o32-gas.h: New file.
5663 * config.gcc (mips-sgi-irix6*o32): Use it.
5665 * config/mips/t-iris5-gas: New file.
5666 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
5668 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
5670 * cppexp.c (ALWAYS_EVAL): Remove.
5671 (optab, reduce): Always evaluate.
5672 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
5673 only if not skipping evaluation.
5675 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
5677 * config/avr/avr.c (debug_hard_reg_set): Remove.
5679 2002-07-19 Chris Demetriou <cgd@broadcom.com>
5681 * gcc.c (cpp_options): Include "%1" (cc1_spec).
5683 2002-07-19 Richard Henderson <rth@redhat.com>
5685 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
5687 2002-07-19 Alan Modra <amodra@bigpond.net.au>
5689 * prefix.c (update_path): Don't zap single `.' path components
5690 unless followed by another `.' and fix typo last patch.
5692 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
5694 * cppexp.c (cpp_num_mul): Remove unused parameter.
5695 (UNARY, BINARY, OTHER, binary_handler): Remove.
5698 (reduce): Refactor to a large switch, don't use a function
5701 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
5703 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
5705 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
5707 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
5708 (sh_expand_binop_v2sf): Likewise.
5709 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
5710 (int_gpr_dest, trunc_hi_operand): New functions.
5711 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
5713 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
5714 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
5715 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
5716 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
5717 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
5718 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
5719 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
5720 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
5721 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
5722 (movsf_ie+1): Likewise.
5723 (loaddi_trunc): Use int_gpr_dest predicate.
5724 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
5725 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
5726 (casesi_worker_0+[12], casesi_worker): Likewise.
5727 (shcompact_preserve_incoming_args): Likewise.
5728 (mov_nop): Use any_register_operand predicate.
5729 (mperm_w0): Use trunc_hi_operand predicate.
5731 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
5733 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
5734 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
5737 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
5739 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
5741 2002-07-18 Richard Henderson <rth@redhat.com>
5743 PR optimization/7147
5744 * ifcvt.c (noce_get_condition): Make certain that the condition
5747 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
5749 * sh.c (barrier_align, push): Shut up compiler warnings.
5750 (initial_elimination_offset,sh_media_init_builtins): Likewise.
5751 (reg_no_subreg_operand): Delete.
5753 2002-07-17 Bo Thorsen <bo@suse.de>
5755 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
5756 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
5757 (STARTFILE_SPEC): Remove hardcoded library paths.
5758 (ENDFILE_SPEC): Likewise.
5760 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
5762 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
5764 * gcse.c (try_replace_reg): Do not return false positives.
5766 2002-07-18 Alan Modra <amodra@bigpond.net.au>
5768 * prefix.c: (update_path): Strip ".." components when prior dir
5769 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
5771 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
5772 (ASM_OUTPUT_REG_POP): Likewise.
5774 2002-07-18 Alan Modra <amodra@bigpond.net.au>
5776 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
5777 adjustments to first_reg for profiling case.
5778 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
5779 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
5780 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
5781 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
5782 (ASM_OUTPUT_REG_POP): Define.
5783 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
5784 (ASM_OUTPUT_REG_POP): Undef.
5786 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
5788 * cpplib.c (do_sccs): Handle #sccs on all systems.
5789 * system.h (SCCS_DIRECTIVE): Poison.
5790 * config/darwin.h, config/freebsd.h, config/netbsd.h,
5791 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
5792 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
5793 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
5794 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
5795 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
5796 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
5797 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
5798 Remove all references to SCCS_DIRECTIVE.
5799 * doc/cpp.texi, doc/tm.texi: Update.
5801 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
5803 * regrename.c (maybe_mode_change): New function.
5804 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
5806 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
5808 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
5809 suppress addition when either ct or cf are zero.
5811 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
5812 Glen Nakamura <glen@imodulo.com>
5814 PR optimization/6713
5815 * loop.c (loop_givs_rescan): Explicitly delete the insn that
5816 sets a non-replaceable giv after issuing the new one.
5818 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
5820 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
5821 eval_token): Clarify and correct use of "bool" variables.
5822 * cpplib.h (struct cpp_options): Similarly.
5823 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
5824 * cpptrad.c (recursive_macro): Similarly.
5826 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
5828 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
5831 * sh.md (cmpgtudi_media): Remove spurious @.
5833 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
5834 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
5836 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
5837 * sh-protos.h (sh_initialize_trampoline): Declare.
5838 * sh.c (sh_initialize_trampoline): New function.
5839 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
5840 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
5841 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
5842 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
5843 * sh.md (initialize_trampoline, double_shori): New patterns.
5844 (initialize_trampoline_compact): Likewise.
5845 (shmedia32_initialize_trampoline_big): Remove.
5846 (shmedia32_initialize_trampoline_little): Likewise.
5848 * sh-protos.h (binary_float_operator): Remove declaration.
5849 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
5850 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
5851 (unary_float_operator, sh_expand_unop_v2sf): New functions.
5852 (sh_expand_binop_v2sf): Likewise.
5853 (zero_vec_operand): Delete.
5854 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
5855 all non-shared ones.
5856 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
5857 Enable nsb and byterev.
5858 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
5859 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
5861 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
5862 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
5864 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
5866 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
5867 lowpart fp regs - only for big endian for now.
5868 (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
5870 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
5871 (LOAD_EXTEND_OP): NIL for SImode.
5872 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
5873 general and fp registers is 4.
5874 PREDICATE_CODES: Amend binary_float_operator entry.
5875 Remove zero_vec_operand. Add unary_float_operator.
5876 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
5878 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
5879 (truncdiqi2): Do sign extension.
5880 (movsi_media, movdi_media): Allow to use r63 to an fp register.
5881 (movdf_media, movsf_media): Likewise.
5882 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
5883 Collapse to one define_insn_and_split. Allow immediate sources.
5884 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
5885 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
5886 (movv4sf): Allow immediate sources.
5887 (movsf_media_nofpu+1): Don't split moves to FP registers.
5888 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
5889 (movv8qi_i+3): Check against CONST0_RTX.
5890 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
5891 for input and output operands. Fix argument 3 to gen_mextr_rl.
5892 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
5893 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
5894 (mshf0_w, fipr, ftrv): Likewise.
5895 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
5897 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5899 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
5900 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
5903 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
5905 * config/mips/mips-protos.h (mips_sign_extend): Declare.
5906 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
5907 (TARGET_SWITCHES): Remove debugh.
5908 (ISA_HAS_TRUNC_W): New macro.
5909 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
5910 (PREDICATE_CODES): Remove se_nonimmediate_operand.
5911 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
5912 any SImode move_operand.
5913 (se_nonimmediate_operand): Remove.
5914 (mips_sign_extend): New.
5915 (mips_move_2words): Use it for sign-extended source operands.
5916 (override_options): Allow integers to be put into single FPRs.
5917 (mips_secondary_reload_class): Handle integers in float registers.
5918 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
5919 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
5920 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
5921 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
5922 (fix_truncdfdi2): Provide only a single alternative, in which the
5923 integer is in a float register. Depend on TARGET_FLOAT64 rather
5925 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
5926 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
5927 (movdi_internal2): Don't allow the source operand to be sign-extended.
5928 Add alternatives for float registers.
5929 (*movdi_internal2_extend): New. Version of movdi_internal2 that
5930 allows sign-extension.
5931 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
5932 (movsi_internal2): Rename to movsi_internal. Add alternatives for
5933 float registers. Remove TARGET_DEBUG_H_MODE test.
5934 (movhi_internal1): Rename to movhi_internal. Don't check
5935 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
5936 (movqi_internal1): Rename to movqi_internal and remove
5937 TARGET_DEBUG_H_MODE dependency.
5938 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
5940 2002-07-16 Jim Wilson <wilson@redhat.com>
5942 * toplev.c (lang_dependent_init): Create function context for
5945 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
5947 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
5948 --gc-sections if -r.
5949 * config/cris/cris.h: Ditto.
5951 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
5953 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
5954 the comparison directly gives a mask suppress addition when cf is
5955 zero by complementing the mask.
5957 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
5959 * Makefile.in: Delete references to enquire.
5960 * enquire.c: Move to contrib.
5962 2002-07-16 Stan Shebs <shebs@apple.com>
5964 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
5965 config/rs6000/darwin.h.
5966 (ASM_OUTPUT_SKIP): Ditto.
5967 (TEXT_SECTION_ASM_OP): Ditto.
5968 (DATA_SECTION_ASM_OP): Ditto.
5969 (ASM_APP_ON): Define.
5970 (ASM_APP_OFF): Define.
5971 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
5972 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
5974 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
5975 (machopic_function_base_name): Declare result to be const.
5976 (machopic_non_lazy_ptr_name): Ditto.
5977 (machopic_stub_name): Ditto.
5978 * config/darwin-protos.h: Ditto for the prototypes.
5980 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
5982 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
5984 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
5986 * i386.md (prefetch): Fix for 64bit mode.
5987 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5989 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
5991 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
5992 * i386.c (x86_machine_dependent_reorg): New function.
5993 * i386-protos.h (x86_machine_dependent_reorg): Declare.
5995 2002-07-16 Zack Weinberg <zack@codesourcery.com>
5997 * builtins.c (std_expand_builtin_va_start): Remove unused
5999 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
6000 std_expand_builtin_va_start with just two arguments.
6001 * expr.h: Update prototypes.
6003 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
6004 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
6005 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
6006 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
6007 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
6008 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
6009 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
6010 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
6011 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
6012 argument from all implementations of EXPAND_BUILTIN_VA_START
6013 and all uses of std_expand_builtin_va_start.
6015 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
6017 * regrename.c (copy_value): Don't record high part copies.
6019 2002-07-16 Steve Ellcey <sje@cup.hp.com>
6021 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
6022 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
6023 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
6025 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
6027 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
6029 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
6030 into addsi3 using register class "x" and "y".
6032 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
6033 "earlyclobber" constraint modifier for some alternative.
6035 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
6036 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
6038 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
6040 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
6041 (TARGET_SWITCHES): Add -mieee-compare option.
6042 (OVERRIDE_OPTIONS): 32332 is a subset of
6043 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
6044 (TARGET_SWITCHES): Fix description of bitfield option.
6045 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
6046 -mieee-compare option. Remove 32332 flag.
6048 2002-07-16 Steve Ellcey <sje@cup.hp.com>
6050 * explow.c (convert_memory_address): Remove special handling
6051 when POINTERS_EXTEND_UNSIGNED < 0.
6052 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
6053 (movedi_symbolic): Fix typo.
6054 (load_fptr): Remove mode restriction so it works for SI and DI.
6055 (load_fptr_internal1): Ditto.
6056 (load_gprel): Ditto.
6057 (load_symptr_internal1): Ditto.
6059 * config/ia64.c (call_operand): Modify mode check.
6060 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
6061 (ia64_expand_move): Ditto.
6062 (ia64_assemble_integer): Handle SImode function pointers.
6063 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
6064 (ia64_expand_op_and_fetch): Ditto.
6065 (ia64_expand_compare_and_swap): Ditto.
6066 (ia64_expand_lock_test_and_set): Ditto.
6067 (ia64_expand_lock_release): Ditto.
6069 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6071 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
6073 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
6074 Richard Earnshaw <rearnsha@arm.com>
6076 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
6077 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
6079 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
6081 * arm.md (stack_tie): New insn. Use an idiom that the alias code
6082 understands to be a memory clobber.
6083 * arm.c (arm_expand_prologue): Use it.
6085 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
6087 * ra-rewrite.c: #include reload.h, insn-config.h
6088 * ra-build.c: #include reload.h
6089 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
6090 depend on reload.h, insn-config.h.
6092 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
6094 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
6095 the same size as a word.
6097 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
6098 BYTES_BIG_ENDIAN into account.
6100 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
6102 * i386.md (prefetch): Fix for 64bit mode.
6103 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
6105 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
6107 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
6109 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
6111 2002-07-15 Zack Weinberg <zack@codesourcery.com>
6113 * ginclude/varargs.h: Replace with stub which issues #error.
6114 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
6117 * builtins.def (BUILT_IN_VARARGS_START): Delete.
6118 (BUILT_IN_VA_START): New.
6119 * builtins.c (expand_builtin_va_start): Eliminate first
6120 argument and code to implement pre-ISO varargs.
6121 (std_expand_builtin_va_start): Ignore first argument; it is
6123 (expand_builtin): Handle BUILT_IN_VA_START and
6124 BUILT_IN_STDARG_START identically. Delete
6125 BUILT_IN_VARARGS_START case.
6127 * function.c (assign_parms): Delete hide_last_arg and all
6129 (mark_varargs): Delete function.
6130 * function.h (struct function): Delete 'varargs' bit.
6131 (current_function_varargs): Delete macro.
6132 * tree.h: Don't declare mark_varargs.
6134 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
6135 (c_expand_body): Don't call mark_varargs.
6136 * c-objc-common.c: Handle BUILT_IN_VA_START and
6137 BUILT_IN_STDARG_START identically. Delete
6138 BUILT_IN_VARARGS_START case.
6139 * c-tree.h: Don't declare c_mark_varargs.
6140 * c-parse.in: Remove grammar rules for '&...' (which has been
6141 commented out since before 2.7.2) and for '...' in K+R
6142 argument declarations.
6144 * builtins.c, function.c, integrate.c, sibcall.c,
6145 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
6146 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
6147 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
6148 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
6149 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6150 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
6151 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
6152 config/stormy16/stormy16.c: Delete all references to
6153 current_function_varargs, and code predicated on that flag.
6155 * config/alpha/alpha.c (alpha_va_start),
6156 config/arc/arc.c (arc_va_start),
6157 config/i386/i386.c (ix86_va_start),
6158 config/mips/mips.c (mips_va_start),
6159 config/mn10300/mn10300.c (mn10300_va_start),
6160 config/rs6000/rs6000.c (rs6000_va_start),
6161 config/s390/s390.c (s390_va_start),
6162 config/sh/sh.c (sh_va_start),
6163 Ignore first argument; it is always 1.
6165 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
6166 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
6167 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
6168 Delete m68hc11_va_start.
6169 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
6170 No need to define EXPAND_BUILTIN_VA_START.
6172 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
6173 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
6175 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
6177 PR optimization/7153
6178 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
6179 dies in more than one insn.
6181 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
6183 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
6185 2002-07-15 Michael Matz <matz@suse.de>,
6186 Daniel Berlin <dberlin@dberlin.org>,
6187 Denis Chertykov <denisc@overta.ru>
6189 Add a new register allocator.
6193 * ra-build.c: New file.
6194 * ra-colorize.c: New file.
6195 * ra-debug.c: New file.
6196 * ra-rewrite.c: New file.
6198 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
6199 (ra-rewrite.o): New .o files for libbackend.a.
6200 (GTFILES): Add basic-block.h.
6202 * toplev.c (flag_new_regalloc): New.
6203 (f_options): New option "new-ra".
6204 (rest_of_compilation): Call initialize_uninitialized_subregs()
6205 only for the old allocator. If flag_new_regalloc is set, call
6206 new allocator, instead of local_alloc(), global_alloc() and
6209 * doc/invoke.texi: Document -fnew-ra.
6210 * basic-block.h (FOR_ALL_BB): New.
6211 * config/rs6000/rs6000.c (print_operand): Write small constants
6214 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
6215 (df_reg_table_realloc): Make size at least as large as max_reg_num().
6216 (df_insn_table_realloc): Size argument now is absolute, not relative.
6217 Changed all callers.
6219 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
6220 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
6222 2002-06-20 Michael Matz <matz@suse.de>
6224 * df.h (struct ref.id): Make unsigned.
6225 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
6227 2002-06-13 Michael Matz <matz@suse.de>
6229 * df.h (DF_REF_MODE_CHANGE): New flag.
6230 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
6231 involving subregs with invalid mode changes, when
6232 CLASS_CANNOT_CHANGE_MODE is defined.
6234 2002-05-07 Michael Matz <matz@suse.de>
6236 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
6238 2002-05-03 Michael Matz <matz@suse.de>
6240 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
6242 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
6244 * regclass.c (regclass): Work with all regs which have sets or
6246 (reg_scan_mark_refs): Count regs inside (clobber ...).
6248 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
6250 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
6251 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
6253 (df_bb_refs_update): Don't clear insns_modified here, ...
6254 (df_analyse): ... but here.
6256 * sbitmap.c (dump_sbitmap_file): New.
6257 (debug_sbitmap): Use it.
6259 * sbitmap.h (dump_sbitmap_file): Add prototype.
6261 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
6263 * df.c (df_insn_modify): Grow the UID table if necessary, rather
6264 than assume all emits go through df_insns_modify.
6266 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
6268 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
6269 increase REG_N_REFS (like flow does), so that regclass doesn't
6270 think a reg is useless, and thus, not calculate a class, when it
6273 2001-01-28 Daniel Berlin <dberlin@redhat.com>
6275 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
6278 2002-07-15 Jakub Jelinek <jakub@redhat.com>
6281 * config/i386/i386.c (const_int_1_31_operand): New.
6282 * config/i386/i386.h (PREDICATE_CODES): Add it.
6283 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
6284 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
6285 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
6287 2002-07-14 Alan Modra <amodra@bigpond.net.au>
6290 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
6291 (floatunssidf2): Likewise.
6292 (floatsidf_ppc64): New insn_and_split.
6293 (floatunssidf_ppc64): Likewise.
6295 2002-07-14 Andreas Jaeger <aj@suse.de>
6297 * config.gcc (sh64): Remove unused
6298 target_requires_64bit_host_wide_int.
6300 2002-07-12 Roger Sayle <roger@eyesopen.com>
6302 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
6303 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
6304 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
6305 whether clear_by_pieces should be used to clear storage.
6306 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
6308 * doc/tm.texi: Document these two new target macros.
6310 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
6312 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
6313 the scratch register.
6314 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
6315 of it, forbid reload to use it.
6317 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
6319 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
6320 usage on 64-bit hosts, return value was truncated to 32 bits.
6322 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
6324 * simplify-rtx.c (simplify_subreg): Handle floating point
6325 CONST_DOUBLEs. When an integer subreg of a smaller mode than
6326 the element mode is requested, compute a subreg with an
6327 integer mode of the same size as the element mode first.
6329 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
6331 * combine.c (try_combine): When converting a paradoxical subreg
6332 to an extension, take LOAD_EXTEND_OP into account.
6334 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6336 * config.gcc (mips-sgi-irix6*o32): New configuration.
6338 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
6340 * configure: Regenerate.
6342 * config/mips/iris6-o32-as.h: New file.
6343 * config/mips/iris6-o32.h: New file.
6345 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
6347 (HAVE_AS_SHF_MERGE): Undefine.
6349 * config/mips/t-iris5-as: New file.
6350 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6352 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
6353 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
6354 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
6355 dp-bit.c, fp-bit.c): Move ...
6356 * config/mips/t-iris5-6: ... here.
6357 New file, shared by IRIX 5 and IRIX 6.
6358 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
6359 mips-sgi-irix5*): Use it.
6361 * config/mips/iris6.h: Remove duplicate comment.
6363 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
6364 !TARGET_IRIX6]: Define.
6365 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
6367 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
6369 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6371 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
6372 and delete code to force constant to register.
6373 * pa-protos.h (adddi3_operand): Add prototype.
6374 * pa.c (adddi3_operand): New function.
6376 2002-07-11 Roger Sayle <roger@eyesopen.com>
6378 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
6379 non-ANSI builtin functions.
6381 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
6383 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
6384 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
6385 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
6386 (gen_const_vector_0): Use it.
6388 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6390 * pa.md (adddi3): For 32-bit targets, force constants to a register
6391 if they don't fit in an 11-bit immediate. Change insn predicate to
6392 arith11_operand. Remove comment.
6393 * pa.c (cint_ok_for_move): Fix comment.
6394 (emit_move_sequence): Don't directly split DImode constants on 32-bit
6397 2002-07-11 Tim Josling <tej@melbpc.org.au>
6399 Remove front end hard coding from gengtype.c.
6402 (STAGESTUFF): add gtyp-gen.h
6403 (GTFILES): Remove front end specific files.
6404 (GTFILES_FILES_LANGS): New, from configure..
6405 (GTFILES_FILES_FILES): Likewise.
6406 (GTFILES_LANG_DIR_NAMES): Likewise.
6407 (GTFILES_SRCDIR): Likewise.
6408 (gtyp-gen.h): Build from configure information.
6409 (s-gtype): Remove command line parameters from gengtype.
6410 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
6411 (mostlyclean): Delete files generated by and for gengtype.
6413 * c-config-lang.in: New file.
6415 * configure.in (all_gtfiles_files_langs): New. Accumulate files
6417 (all_gtfiles_files_files): New. Accumulate language for each file
6419 (gtfiles): Pick up value for C.
6420 (srcdir): AC-SUBST this variable.
6421 (all_gtfiles_files_langs): AC-SUBST this variable.
6422 (all_gtfiles_files_files): AC-SUBST this variable.
6424 * configure: Regenerate.
6426 * gengtype-lex.l (parse_file): Make parameter const.
6428 * gengtype.c (toplevel): include gtyp-gen.h.
6429 (BASE_FILE_<language> unnamed enum): Delete.
6430 (lang_names): Delete (replaced by gtyp-gen.h)
6431 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
6433 (NUM_GT_FILES): New.
6434 (NUM_LANG_FILES): New.
6436 (NUM_BASE_FILES): Change calculation.
6437 (open_base_files): Change prototype to avoid warning.
6438 (startswith): Delete.
6439 (get_file_basename): Iterate through generated language list not
6441 (get_base_file_bitmap): Use generated list of files and languages.
6442 (close_output_files): Add prototype to rmove warning.
6443 (main): Iterate through list of generated files from gtyp-gen.h
6444 rather than command line paramaters. Ignore duplicated file
6447 * gengtype.h (parse_file): Amend prototype for const parameter.
6449 * doc/sourcebuild.texi: Document gtfiles variable.
6451 * doc/gty.texi: Document changes to gtfiles variable for front
6454 * objc/config-lang.in (gtfiles): Add files needed for objc front
6457 2002-07-10 Roger Sayle <roger@eyesopen.com>
6460 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
6461 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
6463 2002-07-10 Roger Sayle <roger@eyesopen.com>
6464 Zack Weinberg <zack@codesourcery.com>
6466 * builtins.def: Make the argument types of abort and exit
6467 independent of the front-end.
6469 2002-07-11 Alan Modra <amodra@bigpond.net.au>
6471 * config/rs6000/linux64.h (ASM_SPEC): Define.
6473 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
6475 * config/rs6000/rs6000.c (emit_frame_save): New.
6476 (rs6000_frame_related): Replace reg2 before reg.
6477 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
6478 and eh_return registers.
6480 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
6482 Revert all patches for optimization of Complex .op. Real.
6483 * complex_part_zero_p: Remove
6484 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
6486 * expand_cmplxdiv_wide: Ditto.
6487 * expand_binop: Ditto.
6489 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
6491 * config/avr/avr.md: Fix two 0x80000000 constants to make them
6492 negative also on 64-bit hosts.
6494 Default to -fno-reorder-blocks when optimizing for size.
6495 * config/avr/avr-protos.h (avr_optimization_options): Declare.
6496 * config/avr/avr.c (avr_optimization_options): New function.
6497 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
6499 Optimize returning from simple functions.
6500 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
6501 * config/avr/avr.c (avr_simple_epilogue): New function.
6502 * config/avr/avr.md (return): New insn.
6504 2002-07-10 Douglas B Rupp <rupp@gnat.com>
6506 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
6507 HAS_INIT_SECTION to protection.
6509 2002-07-10 Mark Mitchell <mark@codesourcery.com>
6511 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
6514 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
6516 * combine.c (gen_lowpart_for_combine): Handle vector modes.
6517 Supply non-VOID mode to simplify_gen_subreg.
6519 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
6521 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
6523 2002-07-10 Jeffrey A Law <law@redhat.com>
6525 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
6528 * mn10200.c (expand_epilogue): Fix test to determine which scratch
6531 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
6533 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
6535 If simplify_gen_subreg fails, try next equivalent.
6537 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
6539 * diagnostic.h: #include location.h
6540 (location_t): Move definition to..
6541 * location.h: ... here. New file.
6542 * tree.h: #include location.h
6543 (DECL_SOURCE_LOCATION): New macro.
6544 (DECL_SOURCE_FILE): Use.
6545 (DECL_SOURCE_LINE): Likewise.
6546 (struct tree_decl): REplace filename and linenum with locus.
6547 * Makefile.in (TREE_H): add location.h
6548 (diagnostic.o): Depends on gt-location.h
6549 (gt-location.h): Depends on s-gtype
6551 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
6553 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
6554 TARGET_OS_CPP_BUILTINS.
6555 * config/rs6000/aix31.h: Likewise.
6556 * config/rs6000/aix41.h: Likewise.
6557 * config/rs6000/aix43.h: Likewise.
6558 * config/rs6000/aix51.h: Likewise.
6559 * config/rs6000/beos.h: Likewise.
6560 * config/rs6000/darwin.h: Likewise.
6561 * config/rs6000/eabi.h: Likewise.
6562 * config/rs6000/eabisim.h: Likewise.
6563 * config/rs6000/linux.h: Likewise.
6564 * config/rs6000/linux64.h: Likewise.
6565 * config/rs6000/lynx.h: Likewise.
6566 * config/rs6000/mach.h: Likewise.
6567 * config/rs6000/rtems.h: Likewise.
6568 * config/rs6000/sysv4.h: Likewise.
6569 * config/rs6000/vxppc.h: Likewise.
6571 2002-07-09 Devang Patel <dpatel@apple.com>
6572 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
6573 Do not allow ObjC objects as a parameter type for Objective-C methods.
6574 My previous patch restricted 'struct' also.
6576 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
6578 * cpperror.c (cpp_error): Default to directive_line within
6580 * cppexp.c (cpp_interpret_integer): Only use traditional
6581 number semantics in directives.
6582 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
6583 (do_include_common): Similarly.
6584 * cpptrad.c (scan_out_logical_line): Implement accurate
6585 quoting of <> in #include.
6586 * doc/cpp.texi: Update.
6588 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
6589 J"orn Rennecke <joern.rennecke@superh.com>
6591 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
6592 * sh.md (attribute issues): Replace with:
6593 (attribute pipe_model). All users changed.
6594 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
6596 (function units sh5issue, sh5fds): New.
6597 (attribute is_mac_media): New.
6598 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
6599 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
6600 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
6601 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
6602 (call_media, call_value_media, sibcall_media): Likewise.
6603 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
6604 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
6605 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
6606 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
6607 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
6608 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
6609 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
6610 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
6611 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
6612 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
6613 (truncdfsf2_media): Likewise.
6614 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
6615 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
6617 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
6619 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
6620 * sh.c (general_extend_operand, inqhi_operand): New functions.
6621 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
6622 alternatives using 'N' modifier. Add type.
6623 (adddi3z_media): Likewise. Enable generator function generation.
6624 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
6625 exact predicates / constraints. Add type.
6626 (subsi3): Allow 0 for SHMEDIA.
6627 (udivsi3_i4_media): Use match_operand for input values
6628 rather than hard registers.
6629 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
6630 unnecessarily through hard registers. Keep copies of pseudo
6631 registers outside of the libcall sequence.
6632 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
6633 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
6634 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
6635 (extendhidi2, extendqidi2): Likewise.
6636 (andsi3_compact): Name.
6637 (andcdi3): Enable generator function generation.
6638 (zero_extendhisi2, zero_extendqisi2): Rename to
6639 (zero_extendhisi2_compact, zero_extendqisi2_compact).
6640 (extendhisi2, extendqisi2): Rename to
6641 (extendhisi2_compact, extendqisi2_compact).
6642 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
6643 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
6644 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
6645 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
6646 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
6647 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
6648 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
6649 (shmedia32_initialize_trampoline_big): Likewise.
6650 (shmedia32_initialize_trampoline_little): Likewise.
6651 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
6652 (negdi2): Remove spurious T clobber.
6653 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
6654 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
6655 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
6656 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
6657 (ic_invalidate_line_media): Write back data cache before invalidating
6658 instruction cache. Add type.
6659 (movsf_media): Sign-extend when the destination is a general
6660 purpose register. Add type.
6661 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
6662 (casesi_worker_0+1): Only increment ref count for proper label.
6663 (casesi_worker_0+2): Likewise.
6665 2002-07-09 Mark Mitchell <mark@codesourcery.com>
6667 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
6669 2002-07-09 Steve Ellcey <sje@cup.hp.com>
6671 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
6672 from Pmode to ptr_mode.
6673 (get_exception_pointer): Ditto.
6674 (connect_post_landing_pads): Ditto.
6675 (dw2_build_landing_pads): Ditto.
6677 2002-07-08 Steve Ellcey <sje@cup.hp.com>
6678 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
6679 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
6680 (handle_pragma_redefine_extname): Change to use new function.
6682 2002-07-08 Roger Sayle <roger@eyesopen.com>
6684 * combine.c (combine_simplify_rtx): Add an explicit cast
6685 to avoid signed/unsigned comparison warning.
6686 (simplify_if_then_else): Likewise.
6687 (extended_count): Likewise.
6688 (simplify_shift_const): Likewise.
6689 (simplify_comparison): Likewise.
6691 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
6693 * config/mips/mips.md: Add imadd type. Update scheduler description
6694 to use imadd as well as imul.
6695 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
6696 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
6697 (*mul_sub_si): Likewise for first alternative. Change second
6698 alternative from imul to multi.
6700 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
6702 * c-common.c (c_common_post_options): Update prototype;
6703 don't init backends if preprocessing only.
6704 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
6705 * langhooks.h (struct lang_hooks): Update post_options to
6707 * toplev.c (parse_options_and_default_flags, do_compile,
6708 lang_independent_init): Update prototypes. Allow the
6709 front end to specify that there is no need to initialize
6711 (general_init): Move call to hex_init here...
6712 (toplev_main): ...from here. Pass flag for back end init
6715 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
6717 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
6718 (PREDICATE_CODES): Add entries for equality_comparison_operator,
6719 greater_comparison_operator and less_comparison_operator.
6720 * sh.c (print_operand): Add '\'' code. Make 'o' handle
6722 (equality_comparison_operator): New function.
6723 (greater_comparison_operator, less_comparison_operator): Likewise.
6724 * sh.md (beq_media_i): Disable generator function generation.
6725 Use match_operator to handle a whole class of comparisons. Add
6726 modifier in output template to provide branch prediction. Add type.
6727 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
6728 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
6729 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
6730 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
6732 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
6734 Emit MMIX function prologue and epilogue as rtl.
6735 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
6736 not unprototyped get_hard_reg_initial_val.
6737 ("call_value", "nonlocal_goto_receiver"): Ditto.
6738 ("return"): Make define_expand. Move real insn to...
6739 ("*expanded_return"): New pattern.
6740 ("prologue", "epilogue"): New define_expands.
6741 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
6742 (struct machine_function): New member in_prologue.
6743 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
6744 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
6745 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
6746 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
6747 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
6748 (LOCAL_REGNO): Define. Adjust comment.
6749 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
6750 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
6752 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
6754 (mmix_target_asm_function_prologue): Make static. Just mark that
6755 the prologue is being emitted. Move guts to...
6756 (mmix_expand_prologue): New function. Adjust for emitting
6757 prologue as rtl. For sizes, use HOST_WIDE_INT only.
6758 (mmix_target_asm_function_epilogue): Make static. Simply emit a
6760 (mmix_expand_epilogue): New function. Adjust for emitting
6761 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
6762 (mmix_target_asm_function_end_prologue): Mark that the prologue
6764 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
6765 (mmix_conditional_register_usage): Improve comments.
6766 (mmix_local_regno): New function.
6767 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
6768 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
6769 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
6770 (mmix_get_hard_reg_initial_val): Ditto.
6772 2002-07-06 Andreas Jaeger <aj@suse.de>
6774 * toplev.c (set_fast_math_flags): Don't use ISO C style function
6776 * gengtype.c (open_base_files): Likewise.
6777 (close_output_files): Likewise.
6778 * tracer.c (find_best_predecessor): Likewise.
6779 (find_best_successor): Likewise.
6780 (ignore_bb_p): Likewise.
6782 2002-07-05 Roger Sayle <roger@eyesopen.com>
6785 * builtin-attrs.def: Define new attribute lists for use in
6787 * builtins.def [DEF_BUILTIN]: Modify to take an additional
6788 ATTRS argument, an enumerated value defined in builtin-attrs.def
6789 that represents the attribute list for the builtins. Modify
6790 all builtin functions to pass an appropriate attribute list.
6791 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
6792 their required noreturn attributes.
6793 * tree.h (enum_builtin_function): Ignore the additional parameter
6795 * builtins.c (built_in_names): Likewise.
6796 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
6797 argument with a tree representing the functions attribute list.
6798 Pass this "attrs" argument to builtin_function. No longer handle
6799 the noreturn_p processing manually.
6800 (built_in_attributes): Move the definitions from builtin-attrs.def
6801 before c_common_nodes_and_builtins.
6802 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
6803 DEF_BUILTIN, passing it to both builtin_function and the changed
6806 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
6807 __builtin__exit and __builtin__Exit.
6809 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
6811 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
6812 QI mode registers in soft registers.
6813 ("zero_extendqihi2"): Do not take into account soft registers
6814 for register allocation (use '*' constraint).
6816 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
6818 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
6820 ("*ashrsi3"): Likewise.
6821 ("*lshrsi3"): Likewise.
6823 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
6825 * genautomata.c (output_max_insn_queue_index_def): Take latencies
6828 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
6830 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
6831 address computation and memory moves.
6833 2002-07-03 Mark Mitchell <mark@codesourcery.com>
6836 * dwarfout.c (output_reg_number): Fix warning message.
6837 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
6840 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6842 * gcc/gcc.c (asm_debug): Move initialization ...
6843 (init_spec): ... here.
6845 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
6847 * c-parse.in (extdef): Append ';'.
6848 (old_style_parm_decls): Append ';'.
6850 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6852 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
6853 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
6854 to gcc_cv_as_gstabs_flag.
6855 * configure: Rebuilt.
6857 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
6859 * ggc.h (ggc_add_root): Document as obsolete.
6861 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
6863 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
6864 (mshflo_w): Likewise.
6866 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
6868 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
6869 vector mode subregs of constants to finding integer mode
6870 subregs of constants.
6871 * cse.c (cse_insn): Use simplify_gen_subreg.
6872 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
6873 From a vector mode expression of different size than the
6876 2002-07-03 Eric Christopher <echristo@redhat.com>
6878 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
6879 * config/mips/mips.h: Remove deprecated -m<processor> options
6880 and cc1_cpu_spec associated.
6881 (CONSTANT_ADDRESS_P): Fix last patch.
6882 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
6883 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
6886 2002-07-03 Stan Shebs <shebs@apple.com>
6888 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
6889 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
6890 (CPP_SPEC): Remove insertion of APPLE_CC definition.
6892 2002-07-03 Roger Sayle <roger@eyesopen.com>
6894 * combine.c (struct_undo): Change types of recorded substitutions
6895 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
6896 (do_SUBST_INT): Change types of the substitution from unsigned int
6897 to int, to avoid compilation warning from SUBST_INT's only caller.
6899 (make_extraction): Add cast to avoid compilation warning.
6900 (force_to_mode): Remove cast to avoid compilation warning.
6902 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
6903 Jeff Law <law@redhat.com>
6905 * i386.md (length_immediate attribute): Fix typo.
6906 (length_address attribute): Likewise.
6907 (modrm attribute): Set it to 0 for immediate call instructions.
6908 (jcc_1 pattern): Set modrm attribute to 0.
6909 (jcc_2 pattern ): Likewise.
6910 (jump pattern): Likewise.
6911 (doloop_end_internal pattern): Explicitly set length.
6912 (leave pattern): Fix typo.
6913 (leave_rex64 pattern): Likewise.
6915 2002-07-03 David Edelsohn <edelsohn@gnu.org>
6917 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
6918 in FPR as preference.
6920 (floatdidf2, fix_truncdfdi2): Same.
6921 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
6923 (floatsitf2, fix_trunctfsi2): SImode in GPR.
6924 (ctrdi): Remove FPR alternative and splitter.
6926 2002-07-03 Will Cohen <wcohen@redhat.com>
6928 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
6930 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
6932 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
6933 than UNITS_PER_WORD, unless this is little endian and the first unit
6934 in this word. Let extract_bit_field decide how to load an element.
6935 Force arguments to matching mode.
6936 (expand_vector_unop): Likewise.
6938 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
6939 consist of word_mode elements.
6940 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
6941 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
6942 (build_unary_op): Allow vector types for BIT_NOT_EPR.
6943 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
6945 * optabs.c (expand_vector_binop): Try to perform operation in
6946 smaller vector modes with same inner size. Add handling of AND, IOR
6947 and XOR. Reject expansion to inner-mode sized scalars when using
6948 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
6949 (expand_vector_unop): Try to perform operation in smaller vector
6950 modes with same inner size. Add handling of one's complement.
6951 When there is no vector negate operation, try a vector subtract
6952 operation. Use simplify_gen_subreg on constants.
6953 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
6954 constants into smaller vectors with same inner mode, and to
6955 integer CONST_DOUBLEs.
6957 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6959 * c-parse.in (parsing_iso_function_signature): New variable.
6960 (extdef_1): New, copied from...
6961 (extdef): ... here. Reset parsing_iso_function_signature.
6962 (old_style_parm_decls): Reset parsing_iso_function_signature.
6963 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
6964 Warn about ISO C style function definitions.
6965 (nested_function, notype_nested_function): Reset
6966 parsing_iso_function_signature.
6967 (parmlist_2): Set parsing_iso_function_signature.
6969 * doc/invoke.texi (-Wtraditional): Document new behavior.
6971 2002-07-02 Chris Demetriou <cgd@broadcom.com>
6973 * config.gcc (mips*el-*-*): Use tm_defines to set
6974 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
6975 * config/mips/little.h: Remove.
6977 2002-07-02 Devang Patel <dpatel@apple.com>
6979 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
6980 object as parameter. Prevent something like 'NSObject' to be
6981 used as the type for a method argument.
6983 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
6985 * cpptrad.c: Update comment.
6987 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
6989 * doc/cpp.texi: Update for traditional preprocessing changes.
6990 * goc/cppopts.texi: Similarly.
6992 2002-07-02 Ziemowit Laski <zlaski@apple.com>
6994 * c-parse.in (designator): Enable designated initializers if ObjC.
6995 (objcmessageexpr): Remove references to objc_receiver_context.
6996 * objc/objc-act.h (objc_receiver_context): Remove decl.
6997 * objc/objc-act.c (objc_receiver_context): Remove.
6998 (lookup_objc_ivar): Test objc_method_context instead of
6999 objc_receiver_context.
7001 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
7003 * sh.c (print_operand, case 'N'): Allow zero vector.
7004 (arith_reg_or_0_operand): Likewise.
7005 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
7006 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
7007 IOR, XOR, PLUS and SET and take their respective constant
7008 ranges into account.
7009 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
7010 * sh.md (subdi3, subdi3_media): Allow zero operand.
7011 (movv8qi_i+3): Only vector that is not split is the zero vector.
7012 Fix operand 3 to simplify_subreg.
7013 (movv2si_i): Split alternative 1.
7014 (mshfhi_l_di_rev+1): New splitter.
7016 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
7018 PR preprocessor/7029
7019 * cppinit.c (cpp_handle_option): Suppress warnings with an
7020 implicit "-w" for "-M" and "-MM".
7021 * doc/cppopts.texi: Update.
7023 2002-07-01 Roger Sayle <roger@eyesopen.com>
7025 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
7026 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
7029 2002-07-02 Alan Modra <amodra@bigpond.net.au>
7031 * README.Portability: Fix typos.
7033 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
7036 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
7037 of indirections for register inside sign-extended mem part.
7039 2002-07-01 Roger Sayle <roger@eyesopen.com>
7041 * tree.h: Modify builtin_function interface to take an extra
7042 argument ATTRS, which is a tree representing an attribute list.
7044 * c-decl.c (builtin_function): Accept additional parameter.
7045 * objc/objc-act.c (builtin_function): Likewise.
7046 * f/com.c (builtin_function): Likewise.
7047 * java/decl.c (builtin_function): Likewise.
7048 * ada/utils.c (builtin_function): Likewise.
7049 * cp/decl.c (builtin_function): Likewise.
7050 (builtin_function_1): Likewise.
7052 * c-common.c (c_common_nodes_and_builtins): Pass an additional
7053 NULL_TREE argument to builtin_function. (builtin_function_2):
7055 * cp/call.c (build_java_interface_fn_ref): Likewise.
7056 * objc/objc-act.c (synth_module_prologue): Likewise.
7057 * java/decl.c (java_init_decl_processing): Likewise.
7058 * f/com.c (ffe_com_init_0): Likewise.
7060 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
7061 NULL_TREE argument to builtin_function.
7062 * config/arm/arm.c (def_builtin): Likewise.
7063 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
7064 * config/i386/i386.c (def_builtin): Likewise.
7065 * config/ia64/ia64.c (def_builtin): Likewise.
7066 * config/rs6000/rs6000.c (def_builtin): Likewise.
7068 2002-07-01 Zack Weinberg <zack@codesourcery.com>
7070 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
7071 * config/mips/t-isa3264: Likewise.
7072 * config/mmix/t-mmix: Likewise.
7074 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
7076 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
7078 2002-07-01 Roger Sayle <roger@eyesopen.com>
7081 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
7082 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
7085 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
7087 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
7089 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
7091 * README.Portability (Function prototypes): Give an example of
7092 declaring and defining a function with no arguments.
7094 * README.Portability (Function prototypes): Document new
7095 variable-argument function macros.
7097 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
7099 * sh.c (langhooks.h): Include.
7100 (sh_init_builtins, sh_media_init_builtins): New functions.
7101 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
7102 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
7103 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
7104 (builtin_description): New struct tag.
7105 (signature_args, bdesc): New arrays.
7106 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
7107 (print_operand): Add 'N' modifier.
7108 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
7109 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
7110 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
7111 (CONST_COSTS): Add special case for SHmedia AND.
7112 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
7113 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
7114 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
7115 target_operand can also be const or unspec.
7116 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
7117 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
7118 (attribute type): Add new types.
7119 (anddi3): Add splitter.
7120 (movdi_const_16bit+1): Add code to handle vector constants and
7121 bitmasks efficiently.
7122 (shori_media): Have generator function made.
7123 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
7124 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
7125 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
7126 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
7127 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
7128 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
7129 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
7130 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
7131 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
7132 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
7133 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
7134 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
7135 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
7136 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
7137 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
7138 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
7139 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
7140 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
7141 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
7144 (fpu_switch+1, fpu_switch+2): Remove constraint.
7146 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
7148 * tree.c (build_function_type_list): Update function comment.
7149 Rename first argument to return_type.
7151 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
7153 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
7154 tradcif.y and related files.
7156 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
7158 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
7160 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7162 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
7164 2002-06-30 Devang Patel <dpatel@apple.com>
7166 * objc/objc-act.c (finish_file): Avoid finish_objc() if
7169 Fri Jun 28 17:22:37 2002 Denis Chertykov <denisc@overta.ru>
7170 Frank Ch. Eigler <fche@redhat.com>
7171 Matthew Green <mrg@redhat.com>
7172 Richard Henderson <rtl@redhat.com>
7173 Dave Hudson <dave.hudson@ubicom.com>
7174 Jeff Johnston <jjohnstn@redhat.com>
7175 Alan Lehotsky <apl@alum.mit.edu>
7176 Bernd Schmidt <bernds@redhat.com>
7177 Graham Stott <grahams@redhat.com>
7179 * doc/extend.texi: Add ip2k port to description of attribute
7181 * doc/install.texi (Specific): Add ip2k description.
7182 * doc/install-old.texi (Configurations): Add ip2k to possible
7184 * doc/md.texi: Document ip2k constraints.
7185 * config/ip2k/crt0.S: New file.
7186 * config/ip2k/ip2k-protos.h: New file.
7187 * config/ip2k/ip2k.c: New file.
7188 * config/ip2k/ip2k.h: New file.
7189 * config/ip2k/ip2k.md: New file.
7190 * config/ip2k/libgcc.S: New file.
7191 * config/ip2k/t-ip2k: New file.
7193 2002-06-30 Hans-Peter Nilsson <hp@bitrange.com>
7195 * config/mmix/mmix.md ("return"): New pattern.
7196 * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
7197 (TARGET_USE_RETURN_INSN): New macros.
7198 (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
7199 (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
7200 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
7201 (MMIX_POP_ARGUMENT): New macro.
7202 (mmix_target_asm_function_prologue): When no epilogue is executed,
7203 just emit a blank line. Use MMIX_POP_ARGUMENT with final POP insn.
7204 (mmix_print_operand) <case '.'>: New case.
7205 (mmix_print_operand_punct_valid_p): Match '.'.
7206 (mmix_use_simple_return): New function.
7207 * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
7208 * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
7209 -msingle-exit, -mno-single-exit.
7210 (MMIX Options): Ditto.
7212 2002-06-30 Aldy Hernandez <aldyh@redhat.com>
7214 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
7216 2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7218 * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
7220 2002-06-30 Alan Modra <amodra@bigpond.net.au>
7222 * unroll.c (loop_iterations): Handle EQ loops.
7224 2002-06-29 David Edelsohn <edelsohn@gnu.org>
7226 * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
7227 constraint in define_expand, not splitter.
7230 2002-06-29 Aldy Hernandez <aldyh@redhat.com>
7232 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
7233 build_function_type_list instead of build_function_type.
7235 * config/ia64/ia64.c (ia64_init_builtins): Same.
7237 * config/alpha/alpha.c (alpha_init_builtins): Same.
7239 * config/rs6000/rs6000.c (altivec_init_builtins): Same.
7241 * config/arm/arm.c (arm_init_builtins): Same.
7243 * tree.h: Add build_function_type_list prototype.
7245 * tree.c (build_function_type_list): New.
7247 2002-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7249 * collect2.c (scan_prog_file): Fix typo in message.
7251 2002-06-28 Aaron Lehmann <aaronl@vitelus.com>
7253 * fold-cont.c: Remove unused CHARMASK.
7255 2002-06-29 Neil Booth <neil@daikokuya.co.uk>
7257 PR preprocessor/7150
7258 * cppmain.c (scan_translation_unit_trad): Simplify.
7259 * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
7261 2002-06-29 Neil Booth <neil@daikokuya.demon.co.uk>
7263 * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
7264 Don't use CPP_PREDEFINES.
7265 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
7266 Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
7267 * config/i386/djgpp.h, config/i386/i386-coff.h,
7268 config/i386/i386-interix.h, config/i386/i386-interix3.h,
7269 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
7270 config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
7271 config/i386/uwin.h: Similarly.
7273 2002-06-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7275 * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
7276 flag_inline_trees to enable inlining.
7278 2002-06-28 Phil Edwards <pme@gcc.gnu.org>
7280 * configure.in (gcc_gxx_include_dir): Change to match versioned
7281 C++ headers if --enable-version-specific-runtime-libs is used.
7282 * configure: Regenerate.
7284 2002-06-28 Jan Hubicka <jh@suse.cz>
7286 * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
7288 2002-06-28 Stephen Clarke <stephen.clarke@superh.com>
7290 * combine.c (combine_simplify_rtx): Pass the mode of the
7291 shift count, not the shift operation when trying to simplify
7292 a shift on a SHIFT_COUNT_TRUNCATED target.
7294 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
7296 * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
7297 avoid the auto increment addressing modes.
7298 ("*subsi3"): Likewise.
7299 (split for add/sub on address): For 68HC12 push the value on
7300 the stack and do the operation with a pop.
7302 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
7304 * cpplib.c (_cpp_handle_directive): Move #define-specific
7305 code to the #define handler...
7306 (do_define): ...here.
7307 (lex_macro_node): No longer a need to check for comments here.
7309 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
7311 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
7312 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7314 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
7315 do not reorder basic blocks at the end when optimizing for size.
7317 2002-06-28 Stephane Carrez <stcarrez@nerim.fr>
7319 * config/m68hc11/m68hc11.c (autoinc_mode): New function.
7320 (m68hc11_make_autoinc_notes): New function.
7321 (m68hc11_split_move): Be very cautious when spliting a move with
7322 auto increment/decrement modes because this may result in incompatible
7323 directions; add REG_INC notes to the resulting insn for CSE reg.
7325 2002-06-28 Stephane Carrez <Stephane.Carrez@nerim.fr>
7327 * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
7328 can be a valid address.
7330 2002-06-28 Aldy Hernandez <aldyh@redhat.com>
7332 * config/rs6000/rs6000.c: Remove unusued variables from last
7335 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
7338 * config/rs6000/rs6000.c (rs6000_override_options): Move
7339 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7341 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
7343 * config/rs6000/rs6000.c (altivec_expand_builtin): Move
7344 lvx/stv/dst builtins...
7345 (altivec_expand_ld_builtin): ...to here.
7346 (altivec_expand_st_builtin): ...here.
7347 (altivec_expand_dst_builtin): ...and here (respectively).
7349 2002-06-28 Bob Wilson <bob.wilson@acm.org>
7351 * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
7353 2001-06-08 Bernd Schmidt <bernds@redhat.com>
7355 * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
7357 * recog.c (general_operand, register_operand): Disallow them.
7359 2002-06-28 Neil Booth <neil@daikokuya.co.uk>
7361 PR preprocessor/7138
7362 * cpplib.c (_cpp_handle_directive): Do traditional
7363 preparation after setting state.angled_headers.
7364 * cpptrad.c (scan_out_logical_line): Fix potential
7367 2002-06-27 Aldy Hernandez <aldyh@redhat.com>
7369 * config/rs6000/rs6000.c (rs6000_override_options): Move
7370 *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
7372 2002-06-27 Bob Wilson <bob.wilson@acm.org>
7374 * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
7375 (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
7376 zero_cost_loop_end): Remove unnecessary "parallel" from insns.
7378 2002-06-27 Roger Sayle <roger@eyesopen.com>
7380 * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
7381 * config/stormy16/stormy16.h: Likewise.
7383 * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
7386 2002-06-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7388 * doc/install.texi (Binaries): Add Sinix/Reliant Unix. Move
7389 Hitachi entry. Make punctuation more consistent.
7391 2002-06-27 Matt Kraai <kraai@alumni.cmu.edu>
7393 * doc/install.texi: Change ` bit' to `-bit'.
7394 * doc/md.texi: Change `-bits' to `-bit'.
7395 * doc/tm.texi: Change `-bits' to ` bits'.
7397 2002-06-27 Daniel Berlin <dberlin@dberlin.org>
7399 * gcse.c (hoist_code): Rewrite to only get list of dominated
7400 blocks once per BB. Also fix reversed test (by removing need for
7403 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
7405 * cpphash.h (_cpp_set_trad_context): Remove.
7406 * cpplib.c (prepare_directive_trad): Do nothing for #define.
7407 (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
7408 * cpptrad.c: Update comments.
7409 (_cpp_read_logical_line_trad): Let scan_logical_line handle
7410 updating the current context.
7411 (scan_logical_line): Update the current context.
7412 (_cpp_create_trad_definition): Similarly.
7413 (_cpp_set_trad_context): Remove.
7415 2002-06-27 Neil Booth <neil@daikokuya.co.uk>
7417 PR preprocessor/7070
7418 * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
7420 2002-06-26 Bob Wilson <bob.wilson@acm.org>
7422 * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
7423 config/xtensa/xtensa.c (xtensa_return_addr): New function.
7424 config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
7425 config/xtensa/xtensa.md (fix_return_addr): New pattern.
7427 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7429 * mips.c (coprocessor_operand, coprocessor2_operand,
7430 symbolic_operand): Move prototypes from here...
7431 * mips-protos.h (coprocessor_operand, coprocessor2_operand,
7432 symbolic_operand): ...to here.
7434 Wed Jun 26 16:32:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7436 * config/sh/crt1.asm: remove _stack label definition
7439 2002-06-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7441 * varasm.c: Include real.h before output.h.
7443 2002-06-26 Aldy Hernandez <aldyh@redhat.com>
7445 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
7446 check for TARGET_ALTIVEC.
7448 2002-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
7450 * config.gcc (vax-*-vms*): Make obselete.
7452 2002-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7454 * gcc.c (warn_std): Delete.
7456 2002-06-25 Loren J. Rittle <ljrittle@acm.org>
7458 * doc/extend.texi: Fix formatting of last checkin.
7460 2002-06-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7462 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
7463 underscore from __IEEE_FP and __IEEE_FP_INEXACT.
7465 2002-06-25 Aldy Hernandez <aldyh@redhat.com>
7467 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7468 discrepancies from motorola's documentation.
7470 Tue Jun 25 21:51:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
7472 * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
7473 GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
7475 * config/sh/lib1funcs.asm (udivdi3): Make first divide step
7476 produce a 32 bit result before normalization, then normalize with a
7477 left shift. Compute approximative error of 2nd reciprocal
7478 approximation in 2's complement. Fix mask generation from upper
7479 longword of second divide stage result.
7480 For large divisor, fix shift count used to truncate first stage
7481 divide result; make decision if to adjust upwards based on comparison
7482 of higher parts of normalized values.
7483 (udivdi): Likewise. Undo normalization of result for large divisor
7486 2002-06-25 David S. Miller <davem@redhat.com>
7488 * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
7490 2002-06-25 Neil Booth <neil@daikokuya.co.uk>
7492 * cpplib.c (do_include_common): Revert to correct line number
7494 * cpptrad.c (scan_out_logical_line): Treat null directive as
7495 white space. Invlidate MI optimization for non-whitespace
7496 text outside a directive.
7498 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7500 * Makefile.in (SHELL): Set to @SHELL@.
7501 * fixinc/Makefile.in (SHELL): Likewise.
7503 * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
7504 fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
7507 2002-06-24 Jeff Law <law@redhat.com>
7509 * flow.c (propagate_one_insn): When removing an insn
7510 with a REG_LIBCALL note but not the entire libcall sequence,
7511 delete the associated REG_RETVAL note.
7513 Mon Jun 24 21:05:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
7515 * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
7516 (udivsi3): Likewise. Rewrite SH1 implementation.
7517 (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
7518 * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
7519 (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
7520 * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
7521 (_moddi3): Likewise.
7523 * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
7525 * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
7526 arguments into account for stack_regs.
7528 2002-06-24 Matt Kraai <kraai@alumni.cmu.edu>
7530 * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
7533 2002-06-24 Art Haas <ahaas@neosoft.com>
7535 * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
7536 * doc/tm.texi (Frame Layout): Likewise.
7538 2002-06-20 Steve Ellcey <sje@cup.hp.com>
7540 * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
7541 Set float_format to i128.
7543 2002-06-24 David S. Miller <davem@redhat.com>
7545 * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
7546 32-bit ABI libfuncs to NULL.
7548 * config/sparc/sparc.md: Use define_insn_and_split. Use braced
7549 strings instead of quoted strings for code blocks.
7551 * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
7552 optabs if op1 is const0_rtx.
7554 * Makefile.in (GTFILES): Add basic-block.h
7555 * basic-block.h (label_value_list, tail_recursion_label_list):
7558 2002-06-24 Neil Booth <neil@daikokuya.co.uk>
7560 * cpptrad.c (scan_out_logical_line): Check recursing only when
7561 we know we have a macro invocation in the function-like case.
7562 Only call _cpp_handle_directive if we know we have a good
7563 directive, or we want to reject a bad directive.
7565 2002-06-24 Alan Modra <amodra@bigpond.net.au>
7567 * doloop.c (doloop_valid_p): Correct comment.
7568 (doloop_modify_runtime <abs_inc != 1>): Simplify.
7569 (doloop_modify_runtime <do-while>): Don't emit code when NE.
7571 Thu Jun 20 00:26:53 2002 Denis Chertykov <denisc@overta.ru>
7573 * config.gcc: Add support for ip2k.
7575 2002-06-23 Jan Hubicka <jh@suse.cz>
7576 Jeff Law <law@redhat.com>
7578 * function.h (struct emit_status): Clarify potential contents
7579 of regno_reg_rtx array.
7580 * integrate.c (copy_rtx_and_substitute): Update comments. Make
7581 sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
7583 * reg-stack.c (convert_regs_exit): Push the registers to stack in
7586 2002-06-22 Ulrich Weigand <uweigand@de.ibm.com>
7589 * function.c (assign_stack_temp_for_type): Do not return
7590 the same MEM rtx for multiple uses of a stack slot.
7592 2002-06-22 David S. Miller <davem@redhat.com>
7594 PR target/6841 target/6770 target/6719
7595 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
7596 NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
7597 GENERAL_OR_EXTRA_FP_REGS.
7599 2002-06-22 Neil Booth <neil@daikokuya.co.uk>
7601 * cpptrad.c (struct fun_macro): Add line number.
7602 (scan_out_logical_line): Set it, and use it to report unterminated
7605 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7607 * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
7608 VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
7609 DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
7610 DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
7611 REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
7612 REGEXP_ONEOF, check_name): Const-ify.
7614 2002-06-21 Matt Thomas <matt@3am-software.com>
7616 * config/vax/vax.c (vax_output_function_prologue): Use
7617 REGISTER_PREFIX. Fix some indentation.
7618 * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
7619 (VAX_ISTREAM_SYNC): Define.
7620 (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC. Move the
7621 i-stream sync to the end.
7622 (REGISTER_PREFIX): Define as "".
7623 (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
7625 2002-06-21 Jason Thorpe <thorpej@wasabisystems.com>
7627 * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
7630 2002-06-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7632 * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
7633 tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
7635 2002-06-21 Matt Thomas <matt@3am-software.com>
7637 * config/vax/netbsd.h: Adjust a comment.
7638 (TARGET_DEFAULT): Redefine as 0.
7640 2002-06-21 Richard Henderson <rth@redhat.com>
7642 * bb-reorder.c (make_reorder_chain_1): Search harder for the
7643 vax casesi fallthru edge.
7644 * cfglayout.c (cleanup_unconditional_jumps): Use
7645 redirect_edge_succ_nodup. Do not delete ADDR_VEC insns as dead.
7646 * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
7647 block after ADDR_VEC.
7649 2002-06-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7651 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7653 2002-06-21 Neil Booth <neil@daikokuya.co.uk>
7655 * cpperror.c (cpp_error): For traditional CPP, default to
7656 diagnostics on pfile->line.
7657 * cpplib.c (prepare_directive_trad): Set line number for
7658 diagnostics for #define too.
7659 * cpptrad.c (skip_whitespace): Skip comments properly.
7660 (_cpp_expansions_different_trad): Initialize quote2.
7662 2002-06-21 Hans-Peter Nilsson <hp@bitrange.com>
7664 * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
7665 * config/mmix/mmix.h: Ditto.
7666 * config/mmix/mmix-protos.h: Ditto.
7667 * config/mmix/mmix.c: Ditto. Fix typo in comment.
7668 * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
7669 comment. Comment extra CC modes.
7671 2002-06-20 Jan Hubicka <jh@suse.cz>
7673 * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
7674 (scope_to_insns_finalize): Do not call set_block_levels; handle
7676 (choose_inner_scope): New.
7677 * rtl.h (choose_inner_scope): Declare.
7679 2002-06-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
7681 * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
7683 * pa.c (pa_asm_output_mi_thunk): Likewise.
7684 (n_deferred_plabels): Change type to size_t.
7685 (output_deferred_plabels, output_call): Use size_t instead of int.
7687 2002-06-20 Richard Henderson <rth@redhat.com>
7690 * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
7691 pattern and adjust constraints for coldfire.
7693 2002-06-20 Richard Henderson <rth@redhat.com>
7695 * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
7697 2002-06-20 Chris Demetriou <cgd@broadcom.com>
7699 * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
7701 2002-06-20 Chris Demetriou <cgd@broadcom.com>
7703 * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
7705 2002-06-20 Stan Shebs <shebs@apple.com>
7707 * dominance.c: Include errors.h instead of error.h.
7709 2002-06-20 Neil Booth <neil@daikokuya.co.uk>
7711 * cppexp.c (cpp_interpret_integer): Don't force traditional
7712 numbers to be unsigned.
7713 * cpplib.c (prepare_directive_trad): Set line number for
7715 * cpptrad.c (scan_out_logical_line): Continue scanning out
7717 * gcc.c (trad_capable_cpp): Use cc1 always.
7719 2002-06-20 Jeffrey Law <law@redhat.com>
7721 * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
7722 elimination in leaf functions by default yet.
7724 2002-06-20 Richard Sandiford <rsandifo@redhat.com>
7726 * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
7728 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7730 * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
7732 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7733 Fixes PR other/6836.
7735 Thu Jun 20 19:42:21 CEST 2002 Jan Hubicka <jh@suse.cz>
7736 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7738 Mon Jun 10 20:42:34 CEST 2002 Jan Hubicka <jh@suse.cz>
7740 * basic-block.h: Do not include et-forest.h
7741 (dominance_info): Declare as struct dominance-info.
7742 * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
7744 * dominance.c (struct dominance_info): Define.
7745 (BB_NODE, SET_BB_NODE): New macros.
7746 (bb_hash_func, bb_eq_func): Kill.
7747 (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
7748 nearest_common_dominator, dominated_by_p, recount_dominator,
7749 add_to_dominance_info, delete_from_dominance_info): update for new
7751 (get_dominated_by, redirect_immediate_dominators): Rewrite using
7753 * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
7754 find_if_case_1, find_if_case_2): Remove killed blocks from dominance
7757 * et-forest.h: Update copyright; revamp all function to operate on
7759 (et_forest_value): Kill.
7760 (et_forest_enumerate_sons, et_forest_node_value): New.
7761 * et-forest.c: Update copyright.
7762 * et-forest.h: Update copyright; revamp all function to operate on
7764 (et_forest_value): Kill.
7765 (et_forest_enumerate_sons, et_forest_node_value): New.
7767 Thu Jun 6 22:43:43 CEST 2002 Jan Hubicka <jh@suse.cz>
7769 * basic-block.h: Inlude et-forest.h
7770 (basic_block_def): Kill dominator.
7771 (dominance_info): New type.
7772 (loops): Use dominace_info.
7773 (dominace handling functions): Take dominace_info as argument
7775 (create_preheader): Likewise.
7776 * cfg.c (entry_exit_blocks): Kill dominator.
7777 (dump_flow_info): Do not dump dominators.
7778 * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
7780 * cfgloop.c (flow_pre_header_find): Use dominacne_info.
7781 (flow_loops_pre_header_scan, make_forwarder_block,
7782 canonicale_loop_headers, flow_loops_find): Likewise.
7783 * dominance.c: Include error.h
7784 (idoms_to_doms): Kill.
7785 (bb_hash_func, bb_eq_func): New static functions.
7786 (debug_dominace_info): New global function.
7787 (calculate_dominance_info): Use new et forest structure.
7788 (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
7789 get_dominated_by, redirect_immediate_dominators,
7790 nearest_common_dominator, dominated_by_p, verify_dominators,
7791 recount_dominator, iterate_fix_dominators, add_to_dominace_info,
7792 delete_from_dominance_info): New global functions.
7793 * gcse.c (domnators): CHange to dominance_info.
7794 (alloc_hoist_mem): Do not alloc dominators
7795 (free_code_hoist_mem): Use free_dominance_info.
7796 (compute_code_hoist_data): Use dominance_info.
7797 (hoist_code): Likewise.
7798 * ifcvt.c (post_dominators): Likewise.
7799 (find_if_case_2, if_convert): Likewise.
7800 * predict.c (process_note_predictions, process_note_prediction,
7801 estimate-probability): Likewise.
7802 * sched-rgn.c (find_rgns, init_regions): Likewise.
7803 * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
7804 find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
7805 * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
7806 find_evaluations, convert_to_ssa): Likewise.
7807 * ssa.h (compute_dominance_frontiers): Likewise.
7809 Thu Jun 6 22:57:34 CEST 2002 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7811 * Makefile.in (et-forest.c): Add.
7812 * et-forest.c: New file.
7813 * at-forest.h: New file.
7815 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7817 * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
7818 array size calculation.
7819 * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
7822 * diagnostic.c (diagnostic_kind_text): Const-ify.
7823 * gengtype.c (lang_names): Likewise.
7825 Thu Jun 20 17:25:29 CEST 2002 JAn HUbicka <jh@suse.cz>
7827 * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
7829 2002-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7831 * config/sol2.h: New file.
7832 * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
7833 (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
7834 (sparc-*-chorusos*): Likewise.
7835 (sparc-*-elf*): Likewise.
7836 (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
7837 (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
7838 (sparc-hal-solaris2*): Likewise.
7839 (sparc-*-solaris2*): Likewise.
7840 (sparclite-*-elf*): Likewise.
7841 (sparc86x-*-elf*): Likewise.
7842 (sparc64-*-elf*): Likewise.
7844 * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
7846 (ASM_SPEC): Override config/sol2.h version for now.
7847 Removed obsolete GAS_REJECTS_MINUS_S variant.
7848 (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
7849 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7850 (TARGET_OS_CPP_BUILTINS): Likewise.
7852 (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
7853 (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
7855 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7856 (ASM_CPU_SPEC): Define.
7857 (SUBTARGET_EXTRA_SPECS): Define.
7859 * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
7860 in config/sparc/sol2.h.
7861 (ASM_SPEC): Moved to config/sol2.h.
7862 (CPP_CPU_SPEC): Simplified.
7863 (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
7865 (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
7866 (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
7867 STARTFILE_ARCH64_SPEC.
7868 (STARTFILE_SPEC): Moved to config/sol2.h
7869 (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
7870 (LINK_ARCH32_SPEC): Moved to config/sol2.h.
7871 (LINK_ARCH64_SPEC): Simplified.
7872 (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
7873 (LINK_SPEC): Moved to config/sol2.h
7875 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
7877 Use BITS_PER_WORD for size.
7878 (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
7879 (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7880 (CPP_PREDEFINES): Removed OS-specific part handled by
7881 TARGET_OS_CPP_BUILTINS.
7882 (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
7883 (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
7884 (ASM_SPEC): Moved to config/sol2.h.
7885 (PREFERRED_DEBUGGING_TYPE): Likewise.
7886 (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
7887 (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7888 (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
7889 (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
7891 * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
7892 * config/i386/sol2gas.h: Removed.
7894 Thu Jun 20 12:14:01 CEST 2002 Jan Hubicka <jh@suse.cz>
7896 * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
7898 2002-06-16 Aldy Hernandez <aldyh@redhat.com>
7900 * gcc.c-torture/execute/simd-1.c: New.
7902 * gcc.dg/simd-1.c: New.
7904 * doc/extend.texi (Vector Extensions): Document that we can
7905 specify simd types not specifically supported by the hardware.
7906 Document that simd types can be used as function arguments.
7907 Document that signness does make a difference in SIMD types.
7908 Misc cleanups and revisions to the vector extensions section.
7910 * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
7913 * expr.c (vector_mode_valid_p): New.
7915 * expr.h: Add vector_mode_valid_p.
7917 * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
7919 * c-common.c (type_for_mode): Always build vector nodes regardless
7920 of VECTOR_MODE_SUPPORTED_P.
7921 (handle_mode_attribute): Error if we can't emulate a nonexisting
7923 (handle_vector_size_attribute): Same.
7925 * optabs.c (expand_binop): Open-code vector operations.
7926 (expand_unop): Open-code vector unops.
7927 (expand_vector_binop): New.
7928 (expand_vector_unop): New.
7930 * c-typeck.c (build_binary_op): Allow vectors in binops.
7931 Allow vectors in conditional operatiors.
7932 (build_unary_op): Allow vectors in unary minus.
7934 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
7937 2002-05-20 Richard Henderson <rth@redhat.com>
7939 * c-common.c (c_common_get_alias_set): Correctly handle characters.
7940 Rearrange order of expressions; don't handle vectors here.
7941 * alias.c (get_alias_set): Let vectors match their components.
7943 2002-06-19 Chris Demetriou <cgd@broadcom.com>
7945 * config/mips/mips.c (mips_emit_prefetch): Use hints which
7946 match desired locality.
7948 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
7950 * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
7951 (h8300_insert_attributes): New.
7953 2002-06-19 Akim Demaille <akim@epita.fr>
7955 * c-parse.in (initelt: identifier ':' initval): Add an empty
7956 action to fix a type clash.
7957 (aliasdecl, classdef): Add the missing closing `;'.
7959 * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
7960 $$ = $1 type clashes.
7962 2002-06-19 Eric Christopher <echristo@redhat.com>
7964 * config/mips/mips.c (symbol_operand): New function.
7965 (mips_emit_prefetch): Ditto.
7966 * config/mips/mips-protos.h: Define.
7967 * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
7968 (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
7969 (LEGITIMIZE_ADDRESS): Ditto.
7970 * config/mips/mips.md (prefetch, prefetch_si_address,
7971 prefetch_si, prefetch_di_address, prefetch_di): New patterns.
7973 2002-06-19 Eric Christopher <echristo@redhat.com>
7975 * config/fp-bit.h: Add unordered defines for gofast.
7977 2002-06-19 Vladimir Makarov <vmakarov@redhat.com>
7979 * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
7980 DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
7981 DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
7982 REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
7983 checking and without it.
7984 (decl_name, decl_mode_check_failed, regexp_name,
7985 regexp_mode_check_failed): New functions.
7986 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7987 gen_presence_set, gen_absence_set, gen_automaton,
7988 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
7989 gen_regexp_sequence, gen_reserv, gen_insn_reserv,
7990 automaton_decl_hash, automaton_decl_eq_p): Use the macros.
7991 (find_automaton_decl): Ditto. Set up mode of work_automaton_decl.
7992 (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
7993 (find_insn_decl): Ditto. Set up mode of work_insn_decl.
7994 (decl_hash, decl_eq_p): Use the macros.
7995 (find_decl): Ditto. Set up mode of work_decl.
7996 (process_excls, process_presence_absence, process_decls,
7997 check_automaton_usage, process_regexp, process_regexp_decls,
7998 check_usage, loop_in_regexp, check_loops_in_regexps,
7999 process_regexp_cycles, add_advance_cycle_insn_decl,
8000 initiate_states, initiate_excl_sets,
8001 initiate_presence_absence_sets, copy_insn_regexp, transform_1,
8002 transform_2): Use the macros.
8003 (transform_3): Ditto. Check mode before making transformations of
8005 (regexp_transform_func, transform_insn_regexps,
8006 process_unit_to_form_the_same_automaton_unit_lists,
8007 form_the_same_automaton_unit_lists_from_regexp,
8008 form_the_same_automaton_unit_lists,
8009 process_seq_for_forming_states, process_alts_for_forming_states,
8010 create_alt_states, form_ainsn_with_same_reservs, make_automaton,
8011 form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
8012 estimate_one_automaton_bound, compare_max_occ_cycle_nums,
8013 units_to_automata_heuristic_distr, create_ainsns,
8014 units_to_automata_distr, create_automata): Use the macros.
8015 (form_regexp): Ditto. Fix typo in access to fields of ALLOF.
8016 (longest_path_length, min_issue_delay_pass_states,
8017 output_dead_lock_vect, output_tables, output_insn_code_cases,
8018 output_internal_insn_latency_func, output_print_reservation_func,
8019 output_description, output_automaton_units, generate): Use the
8021 (make_insn_alts_attr): Ditto. Check case when there are not
8022 alternatives in the reservation.
8023 (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
8024 make_bypass_attr, form_important_insn_automata_lists,
8025 expand_automata): Use the macros.
8027 2002-06-20 Tim Josling <tej@melbpc.org.au>
8029 * Makefile.in: Clean up code to check for misspecified languages
8030 in enable-languages.
8032 2002-06-19 Andrew Pinski <pinskia@physics.uc.edu>
8034 * cpptrad.c (_cpp_replacement_text_len): initialize len.
8036 2002-06-19 Jason Merrill <jason@redhat.com>
8038 * Makefile.in (unstrap, restrap): New targets.
8039 (bootstrap): Mention restrap.
8041 2002-06-19 Matt Kraai <kraai@alumni.cmu.edu>
8043 * except.c (ehl_free): Remove.
8045 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
8046 builtin_define and builtin_define_std.
8048 2002-06-19 Ian Dall <ian@sibyl.beware.dropbear.id.au>
8050 * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
8051 (sCOND): Restrict operand class so that gcc knows how to reload them.
8052 (bitfield_set): Merge two unnamed insn's using alternatives.
8053 (call_value): Remove constraint on unused uperand.
8054 (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
8055 (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
8057 * longlong.h (count_trailing_zeros): Escape newline and beautify.
8059 2002-06-19 Mark Mitchell <mark@codesourcery.com>
8061 * Makefile.in (QMTEST_DIR): Simplify definition.
8063 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
8065 * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
8068 2002-06-19 Neil Booth <neil@daikokuya.co.uk>
8070 * cpphash.h (struct cpp_reader): Make date and time strings.
8071 (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
8072 _cpp_replacement_text_len): New.
8073 * cppinit.c (cpp_create_reader): Update.
8074 (init_builtins): Register appropriate builtins for -traditional-cpp.
8075 * cppmacro.c (new_number_token): Remove.
8076 (_cpp_builtin_macro_text): New.
8077 (builtin_macro): Use it.
8078 (cpp_macro_definition): Update to handle traditional macros.
8079 * cppmain.c (cb_line_change): Don't do column positioning for
8081 * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open. New
8083 (skip_whitespace): Fix.
8084 (maybe_start_funlike): Don't set state.parsing_args.
8085 (scan_out_logical_line): Remove duplicate error. Use lex_state
8086 rather than state.parsing_args.
8087 (push_replacement_text): Handle builtins.
8088 (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
8090 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
8091 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8093 * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
8094 attribute __always_inline__.
8096 2002-06-18 Bob Wilson <bob.wilson@acm.org>
8098 * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
8099 when generating the call to _mcount.
8100 (NO_PROFILE_COUNTERS): Define.
8102 2002-06-18 Richard Henderson <rth@redhat.com>
8104 * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
8107 Tue Jun 18 20:53:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
8109 * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
8110 config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
8111 * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
8112 * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
8114 * sh-protos.h (sh_pr_interrupt): Declare.
8115 * sh.c (sh_pr_interrupt): New function.
8116 (print_operand, calc_live_regs, sh_expand_prologue): Use it.
8117 (sh_hard_regno_rename_ok): Likewise.
8118 * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
8120 2002-06-18 Vladimir Makarov <vmakarov@redhat.com>
8122 * rtl.def (DEFINE_AUTOMATON): Add description of new options
8123 `time' and `v'. Fix incorrect description of option `w'.
8125 * doc/md.texi: Ditto.
8127 * genautomata.c (TIME_OPTION, V_OPTION): New macros.
8128 (gen_automata_option): Process the new options.
8129 (transform_2, transform_3): Initialize some variables.
8130 (initiate_automaton_gen): Use the new macros.
8132 2002-06-18 Richard Sandiford <rsandifo@redhat.com>
8134 * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
8135 (mips_set_return_address, mips_restore_gp): Declare.
8136 * config/mips/mips.h (struct mips_frame_info): Move to mips.c
8137 (current_frame_info): Remove.
8138 (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
8139 * config/mips/mips.c: Remove uses of current_frame_info.
8140 (struct mips_frame_info): Moved from mips.h. Remove 'insns_len'.
8141 (struct machine_function): Add 'frame' and 'insns_len'.
8142 (current_frame_info, zero_frame_info): Remove.
8143 (mips_restore_gp, mips_set_return_address): New.
8144 (mips_initial_elimination_offset): New.
8145 * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
8146 (eh_return define_split): Use mips_set_return_address.
8148 2002-06-18 Neil Booth <neil@daikokuya.demon.co.uk>
8150 * cpplib.c (dtable): Update.
8151 (end_directive): Decrement expansion prevention count.
8152 Clear state.in_expression.
8153 (prepare_directive_trad): Set state.in_expression.
8154 Increment expansion prevention count.
8155 * cpptrad.c (enum ls): New.
8156 (_cpp_overlay_buffer): Set overlaid_buffer.
8157 (_cpp_remove_overlay): Use overlaid_buffer.
8158 (_cpp_read_logcial_line_trad): Update buffer when it might
8160 (scan_out_logical_line): Handle state transitions for assertions
8161 and defined() in #if, and for funlike invocations including the
8162 directive case. Handle '<' and '>' as a quote mechanism in
8163 #include. Warn about unterminated macro invocations.
8164 * cpphash.h (struct lexer_state): New member in_expression.
8165 (struct cpp_reader): New member overlaid buffer.
8167 2002-06-18 Hans-Peter Nilsson <hp@axis.com>
8169 * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
8172 2002-06-18 Alan Modra <amodra@bigpond.net.au>
8174 * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
8176 * doloop.c (doloop_optimize): Extract pattern from insn.
8178 2002-06-17 Matt Kraai <kraai@alumni.cmu.edu>
8180 * doc/extend.texi (Function Attributes): Remove `,...' from @var.
8182 2002-06-17 Jeff Law <law@redhat.com>
8184 * libgcc2.c: Do not include symcat.h or machmode.h.
8186 2002-06-17 Richard Henderson <rth@redhat.com>
8189 * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
8191 2002-06-17 Tom Tromey <tromey@redhat.com>
8193 * dwarfout.c: Include function.h.
8195 2002-06-17 Andreas Schwab <schwab@suse.de>
8197 * print-rtl.c (print_rtx): Print space before vector, not after.
8198 (debug_rtx): Clear sawclose before printing.
8199 (debug_rtx_list): Print newline after each list element.
8200 (debug_rtx_range): Likewise.
8202 2002-06-17 Richard Henderson <rth@redhat.com>
8204 * function.h (struct function) [funcdef_no]: Rename profile_label_no.
8205 (current_function_funcdef_no): Similarly.
8206 * function.c (funcdef_no): Similarly.
8207 (prepare_function_start): Set current_function_funcdef_no.
8208 (expand_function_start): Don't set current_function_profile_label_no.
8209 * dwarf2out.h (current_funcdef_number): Remove.
8210 * dwarf2out.c (current_funcdef_number): Remove. Replace with
8211 current_function_funcdef_no throughout.
8212 * dwarfout.c, vmsdbgout.c: Similarly.
8213 * except.c (sjlj_funcdef_number): Remove.
8214 (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
8215 (output_function_exception_table): Likewise.
8216 * final.c (profile_function): Use current_function_funcdef_no
8217 instead of current_function_profile_label_no.
8219 2002-06-17 Vladimir Makarov <vmakarov@redhat.com>
8221 * sched-ebb.c (init_ready_list): Check INSN_P first.
8223 Mon Jun 17 17:26:15 2002 J"orn Rennecke <joern.rennecke@superh.com>
8225 * sh.md (divsi3): Update way how to find insns in a sequence.
8227 * reload1.c (merge_assigned_reloads): Don't change reloads
8228 other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
8229 to RELOAD_OTHER when there are conflicting input reloads.
8231 2002-06-17 Richard Earnshaw (rearnsha@arm.com)
8233 * function.c (epilogue_done): Correctly build a sequence of insns for
8236 2002-06-17 Nick Clifton <nickc@cambridge.redhat.com>
8238 * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
8241 * config/m32r/m32r.md: Replace gen_sequence with get_insns.
8243 2002-06-16 Richard Henderson <rth@redhat.com>
8245 * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
8246 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
8248 2002-06-16 Richard Henderson <rth@redhat.com>
8251 * regclass.c (globalize_reg): Update regs_invalidated_by_call.
8253 2002-06-16 Neil Booth <neil@daikokuya.demon.co.uk>
8255 * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
8256 * config/i386/i386-aout.h, config/i386/i386elf.h,
8257 config/i386/sysv4.h: Remove CPP_PREDEFINES.
8258 * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
8259 config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
8260 config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
8261 config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
8262 CPP_PREDEFINES and part of CPP_SPEC.
8263 * config/i386/sysv4-cpp.h: New.
8265 2002-06-16 Richard Henderson <rth@redhat.com>
8268 * dwarf2out.c (modified_type_die): Don't assign the qualified die
8269 to the unqualified type.
8271 Sun Jun 16 22:16:10 CEST 2002 Jan Hubicka <jh@suse.cz>
8273 * i386-protos.h (x86_field_alignment): Declare.
8274 * i386.c (x86_field_alignment): Define.
8275 * i386.h (ADJUST_FIELD_ALIGNMENT): New.
8276 (BIGGEST_FIELD_ALIGNMENT): Kill.
8278 2002-06-16 Richard Henderson <rth@redhat.com>
8280 * vax.md (casesi): Use emit_jump_insn. Tidy expander pattern.
8282 2002-06-16 Richard Henderson <rth@redhat.com>
8284 * c-common.c (flag_ms_extensions): Move from c++ front end.
8285 * c-common.h (flag_ms_extensions): Declare.
8286 * c-decl.c (c_decode_option): Add -fms-extensions.
8287 (grokfield): Don't accept anonymous structures in ISO C mode;
8288 accept only unnamed anonymous structures in GNU C mode; accept
8289 Plan 9 extensions in MS mode.
8290 * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
8291 SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
8292 (extension): Clear flag_iso.
8293 * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
8295 2002-06-16 Hans-Peter Nilsson <hp@axis.com>
8298 * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
8299 early if current_function_epilogue_delay_list is non-empty.
8300 * config/cris/cris.md ("return"): Add sanity check asserting that
8301 current_function_epilogue_delay_list is empty.
8303 2002-06-16 Jeff Law <law@redhat.com>
8305 * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
8306 sharing of hard registers.
8308 * toplev.c (rest_of_compilation): Remove redundant conditional.
8310 * toplev.c (rest_of_compilation): Perform a simpler, less costly
8311 cleanup of the CFG when not optimizing.
8313 2002-06-16 Alan Modra <amodra@bigpond.net.au>
8315 * gcc.c (main): Correct startfile_prefix_spec check.
8317 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
8319 * config.gcc: Revert rth's patch of 2002-05-18. Instead,
8320 include both darwin.o and rs6000-c.o.
8322 2002-06-15 Roger Sayle <roger@eyesopen.com>
8324 * expr.c (compare_from_rtx): Call simplify_relational_operation
8325 on all comparisons, not just those between integer constants,
8326 with the correct (possibly unsigned) comparison code.
8327 (do_compare_rtx_and_jump): Likewise.
8329 2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
8331 * Makefile.in (tm_defines): New configuration variable.
8332 (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
8333 Pass tm_defines in TM_DEFINES.
8334 (cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
8335 * config.gcc (tm_defines): New configuration variable.
8336 (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
8337 pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
8338 * configure.in: Substitute tm_defines.
8339 * configure: Rebuilt.
8340 * mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
8341 * doc/install.texi: Update.
8342 * pa/pa-700.h: Delete file.
8343 * pa/pa-7100.h: Delete file.
8345 2002-06-15 Roger Sayle <roger@eyesopen.com>
8347 * fold-const.c (comparison_to_compcode): New function to convert
8348 an comparison TREE CODE into a bit-based representation.
8349 (compcode_to_comparison): New function to convert from this bit
8350 based representation back to a comparison TREE CODE.
8351 (fold_truthop): Simplify (x<y) && (x==y) and related composite
8354 2002-06-15 Aldy Hernandez <aldyh@redhat.com>
8356 * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
8358 * stor-layout.c (compute_record_mode): Remove check for
8359 FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
8360 MEMBER_TYPE_FORCES_BLK. Pass new mode field to
8361 MEMBER_TYPE_FORCES_BLK.
8363 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
8365 * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
8367 2002-06-14 Jeff Sturm <jsturm@one-point.com>
8369 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
8371 2002-06-14 Steve Ellcey <sje@cup.hp.com>
8373 * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
8374 USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
8375 * configure, config.in: Regenerate.
8377 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
8379 * loop.c (check_final_value): Use v->always_executed
8380 instead of v->always_computable.
8381 * unroll.c (final_giv_value): Don't calculate the final
8382 value as a function of the biv if the giv is not computed
8383 for every loop iteration.
8385 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
8387 * loop.c (for_each_insn_in_loop): Fix formatting and comments.
8389 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
8392 * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
8393 the truncation down when the target type is signed.
8394 [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
8395 * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
8396 the conversion if the target type is a smaller type.
8398 2002-06-14 Richard Henderson <rth@redhat.com>
8400 * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
8401 earlier. Re-factor comparisons vs extrema.
8403 2002-06-14 Richard Henderson <rth@redhat.com>
8405 * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
8407 2002-06-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8409 * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
8410 * sched-deps.c (add_dependence): Likewise.
8411 (group_leader): Likewise.
8412 * sched-rgn.c (init_ready_list): Likewise.
8413 * doc/rtl.texi: Adjust accordingly.
8415 2002-06-13 Jeffrey Law <law@redhat.com>
8417 * gcse.c (delete_null_pointer_checks_1): Inform caller if any
8418 null pointer checks were eliminated. Update prototype.
8419 (delete_null_pointer_checks): Similarly.
8420 * rtl.h (delete_null_pointer_checks): Update prototype.
8421 * toplev.c (rest_of_compilation): Only run cleanup_cfg if
8422 delete_null_pointer_checks deletes one or more null
8423 pointer checks. Do not run cleanup_cfg before gcse, the
8424 CFG is accurate and optimized at that point..
8426 * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
8429 2002-06-14 Ulrich Weigand <uweigand@de.ibm.com>
8431 * Makefile.in (libgcc.mk): Depend on specs.
8433 Fri Jun 14 12:15:11 2002 J"orn Rennecke <joern.rennecke@superh.com>
8435 * sh.md (mulsi3): Update way how to find insns in a sequence.
8437 Fri Jun 14 12:04:02 2002 Dhananjay R. Deshpande <dhananjayd@kpit.com>
8439 * sh.h: Define HARD_REGNO_RENAME_OK
8440 * sh.c: sh_hard_regno_rename_ok: New. If current function has
8441 interrupt_handler attribute, only registers saved on stack are OK.
8442 * sh-protos.h: Declare sh_hard_regno_rename_ok.
8444 2002-06-14 Kaz Kojima <kkojima@gcc.gnu.org>
8446 * config/sh/sh.md (jump): Emit jump insn.
8447 (call_pcrel): Get pattern of the result of gen_call_site.
8448 (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
8450 2002-06-14 Neil Booth <neil@daikokuya.demon.co.uk>
8452 * cpphash.h (struct cpp_buffer): Remove saved_line_base.
8453 * cpptrad.c: Update comments.
8454 (skip_whitespace, copy_comment): Take a new parameter.
8455 (skip_escaped_newlines): Don't duplicate escaped newline test.
8456 (copy_comment): Different location for CUR, decide here how
8457 to copy / replace the comment.
8458 (skip_whitespace): Copy whitespace.
8459 (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
8460 (scan_out_logical_line): Let copy comment handle keeping or
8462 (scan_parameters, _cpp_create_trad_definition): Update.
8464 2002-06-13 Alan Lehotsky <apl@alum.mit.edu>
8466 * reload.c (get_secondary_mem,find_reloads_address,
8467 find_reloads_address_1): Pass reference to MEM to find_reloads_address
8468 so that LEGITIMIZE_RELOAD_ADDRESS will be called.
8470 2002-06-13 Jessica Han <jessica@cup.hp.com>
8472 * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8473 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8474 * doc/tm.texi: Document them.
8475 * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
8476 (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
8477 (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
8478 (ASM_OUTPUT_FDESC): Likewise.
8480 2002-06-13 Eric Christopher <echristo@redhat.com>
8482 * diagnostic.c (output_format): Fix thinko.
8484 Thu Jun 13 22:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
8486 * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
8487 (DWARF2_UNWIND_INFO): Define to 0.
8489 * config/sh/sh.c (calc_live_regs): Don't use initial_value
8490 optimization for PR_MEDIA_REG.
8492 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
8494 * cpphash.h (_cpp_lex_identifier_trad): Remove.
8495 * cpplib.c (end_directive): Don't skip, always remove overlay
8497 (prepare_directive_trad): Handle NULL pfile->directive.
8498 (_cpp_handle_directive): Always call prepare_directive_trad
8500 * cppmain.c (check_multiline_token): Rename account_for_newlines,
8502 (scan_translation_unit_trad): Use it.
8503 * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
8504 output, get escaped newline in comment close correct.
8505 (check_output_buffer, skip_whitespace): Update.
8506 (_cpp_lex_identifier_trad): Remove.
8507 (scan_out_logical_line): Handle -C and comments in directives
8510 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
8512 * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
8513 * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
8514 * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
8515 (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
8516 (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
8517 (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
8518 (SELECT_SH5_COMPACT_NOFPU): Likewise.
8519 (TARGET_SWITCHES): Use them.
8520 (TARGET_CPU_DEFAULT): Define if not already defined.
8521 (TARGET_DEFAULT): Use it.
8522 (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
8523 * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
8524 * config/sh/t-monolib: New file.
8526 2002-06-13 Roger Sayle <roger@eyesopen.com>
8528 * toplev.c (rest_of_compilation): Simplify (and correct) the
8529 logic of the first delete-null-pointer-checks pass.
8531 Thu Jun 13 18:24:17 CEST 2002 Jan Hubicka <jh@suse.cz>
8533 * i386.c (ix86_expand_movstr): Fix pasto.
8535 Thu Jun 13 18:18:17 CEST 2002 Jan Hubicka <jh@suse.cz>
8537 * reload.c (find_valid_class): Fix thinko in my previous patch.
8539 2002-06-13 Ulrich Weigand <uweigand@de.ibm.com>
8541 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
8542 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
8543 (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
8544 (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
8546 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
8548 * tree-inline.c (expand_call_inline): Don' mess with _DECL
8551 2002-06-13 Gabriel Dos Reis <gdr@codesourcery.com>
8553 * diagnostic.c (output_format): Recognize "%H" as a format
8554 specifier for a location_t.
8555 (text_specifies_location): New function.
8556 (diagnostic_set_info): Use it.
8558 2002-06-13 Jeffrey Law <law@redhat.com>
8560 * emit-rtl.c (static_regno_reg_rtx): Define.
8561 (init_emit_once): Initialize static_regno_reg_rtx.
8562 (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
8563 of building new hard reg objects once per function.
8564 (gen_rtx_REG): Try to share hard regs.
8565 * regclass.c (init_fake_stack_mems): New function broken out from
8567 * rtl.h (init_fake_stack_mems): Declare.
8568 * toplev.c (lang_independent_init): Call init_regs before
8569 init_emit_once. Call init_fake_stack_mems after init_emit_once.
8571 * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
8573 * alias.c (argument_registers): Remove.
8574 (init_alias_once): Initialize static_reg_base_value here. Remove
8575 initialization of argument_registers.
8576 (init_alias_once_per_function): Remove.
8577 (init_alias_analysis): Copy all the entries from static_reg_base_value
8578 into new_reg_base_value all at once.
8579 * rtl.h (init_alias_once_per_function): Remove declaration.
8580 * function.c (prepare_function_start): Do not call
8581 init_alias_once_per_function.
8583 * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
8584 starting a sequence and emitting an INSN.
8586 2002-06-13 Richard Sandiford <rsandifo@redhat.com>
8588 * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
8590 2002-06-13 David S. Miller <davem@redhat.com>
8592 * expmed.c (init_expmed): Remove duplicate init of 'reg'.
8594 2002-06-13 Neil Booth <neil@daikokuya.demon.co.uk>
8596 * cpplib.c (end_directive): Handle line skipping. Only remove
8597 the rest of the line if the directive was valid.
8598 * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
8599 expanding a traditional macro.
8600 * cpptrad.c (recursive_macro): New.
8601 (read_logical_line_trad): Handle skipping.
8602 (scan_out_logical_line): Continue after a successful directive.
8603 Don't expand macros whilst skipping, or if recursing.
8604 (_cpp_create_trad_definition): scan_out_logical_line now sets
8605 the output current position.
8607 2002-06-12 Eric Christopher <echristo@redhat.com>
8609 From Chris Demetriou <cgd@broadcom.com>
8610 * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
8612 (ISA_HAS_MADD_MSUB): Ditto.
8613 (ISA_HAS_NMADD_NMSUB): Ditto.
8615 2002-06-12 Eric Christopher <echristo@redhat.com>
8617 * config.gcc: Consolidate little endian handling and
8618 little/big endian targets.
8619 * config/mips/elfl.h: Remove file.
8620 * config/mips/elfl64.h: Ditto.
8621 * config/mips/ecoffl.h: Ditto.
8622 * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
8624 2002-06-12 Geoffrey Keating <geoffk@redhat.com>
8626 * gengtype.h (xvasprintf): New prototype.
8627 (xasprintf): New prototype.
8629 (get_output_file): Return an outf_p.
8630 (header_file): Is now an outf_p.
8631 (base_files): Now are outf_p.
8633 * gengtype.c: Replace all output FILE * with outf_p; use oprintf
8634 rather than stdio operations. Use xasprintf in a few places,
8638 (struct filemap): Delete.
8640 (output_files): New.
8642 (create_file): Create an outf_p. Add parameter to indicate output
8643 file name, change all callers.
8644 (open_base_files): Create gtype-desc.c here.
8645 (get_output_file_with_visibility): Rewrite.
8646 (get_output_file_name): Just look at 'name' field in struct outf.
8647 (close_output_files): Rewrite.
8649 2002-06-12 Jason Thorpe <thorpej@wasabisystems.com>
8651 * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
8652 (MASK_G_FLOAT): Define.
8653 (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
8654 (TARGET_SWITCHES): Likewise.
8655 (TARGET_DEFAULT): Likewise.
8657 2002-06-12 Daniel Jacobowitz <drow@mvista.com>
8659 * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
8660 * config/mips/mips.c (mips_output_filename): Don't print a
8661 ".file" directive if we are using DWARF-2.
8662 (mips_output_function_prologue): Do not emit source file
8663 name for TARGET_GAS.
8665 Wed Jun 12 16:45:13 CEST 2002 Jan Hubicka <jh@suse.cz>
8667 * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
8668 decide whether emit the short opcode.
8669 * i386.h (x86_shift1): Declare.
8670 (TARGET_SHIFT1): New macro.
8671 * i386.c (x86_shift1): New global variable.
8673 * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
8674 unconditionally; make loop to rebuild CFG; kill unnecesary
8675 find_basic_block calls; kill compute_bb_for_insn call.
8676 * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
8677 * haifa-sched.c (sched_init): Likewise.
8678 * ssa-ccp.c (ssa_const_prop): Likewise.
8679 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8681 2002-06-11 David S. Miller <davem@redhat.com>
8683 * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
8686 2002-06-11 Richard Henderson <rth@redhat.com>
8688 * c-common.c (builtin_define_type_max): New.
8689 (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
8690 __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
8692 From Joseph S. Myers:
8693 * glimits.h: Rewrite to expect the double underscore definitions
8696 * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
8697 config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
8698 config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
8699 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8700 config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
8701 config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
8702 config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
8703 __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
8705 2002-06-11 Richard Henderson <rth@redhat.com>
8707 * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
8708 (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
8709 (code_for_builtns): Update.
8710 (alpha_init_builtins): Add __builtin_thread_pointer and
8711 __builtin_set_thread_pointer.
8712 (alpha_expand_builtin): Handle void builtins.
8713 * doc/extend.texi (Alpha Built-in Functions): Update.
8715 2002-06-11 Hans-Peter Nilsson <hp@axis.com>
8718 * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
8720 2002-06-11 Zack Weinberg <zack@codesourcery.com>
8722 * config.gcc: Make the name of the extra-modes file adjustable
8724 (s390x, strongarm, xscale stanzas): Use this facility.
8725 * configure.in: Update to match.
8726 * configure: Regenerate.
8728 2002-06-11 Aldy Hernandez <aldyh@redhat.com>
8730 * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
8731 max/mins as unsigned GE compares.
8733 2002-06-11 Jason Thorpe <thorpej@wasabisystems.com>
8735 * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
8736 * config/vax/bsd.h: New file.
8737 * config/vax/netbsd.h: Add missing notice.
8738 (CPP_PREDEFINES): Remove.
8739 (TARGET_OS_CPP_BUILTINS): Define.
8740 (CPP_SPEC): Use NETBSD_CPP_SPEC.
8741 * config/vax/openbsd.h: Update copyright years.
8742 (CPP_PREDEFINES): Remove.
8743 (TARGET_OS_CPP_BUILTINS): Define.
8744 * config/vax/ultrix.h: Likewise.
8745 * config/vax/vaxv.h: Likewise.
8746 * config/vax/vms.h: Likewise.
8747 * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
8748 (CPP_PREDEFINES, CPP_SPEC): Remove.
8750 Wed Jun 12 01:50:28 CEST 2002 Jan Hubicka <jh@suse.cz>
8752 * i386.md (addqi_1_slp, subqi_1_slp
8753 (andqi_ext0, testqi_ext0): Remove unnecesary check.
8754 (addhi*, addqi*): Simplify "dec" condition.
8755 (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
8756 (and, or, xor to QImode splitters): New.
8759 (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
8760 (andqi_ext_1_rex64): New.
8764 (rotrqi3*_slp): New.
8765 (rotlqi3*_slp): New.
8767 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
8769 * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
8771 * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
8772 (CPP_ENDIAN_LITTLE_SPEC): Delete.
8773 * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
8774 * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
8775 __LONG_DOUBLE_128__ setting, _CALL_* setting.
8776 (CPP_DEFAULT_SPEC): Delete.
8777 (CPP_FLOAT_DEFAULT_SPEC): Delete.
8778 (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
8779 (CPP_SYSV_DEFAULT_SPEC): Delete.
8780 (CPP_ENDIAN_BIG_SPEC): Delete.
8781 (CPP_ENDIAN_LITTLE_SPEC): Delete.
8782 (CPP_ENDIAN_SPEC): Delete.
8783 (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
8784 (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
8785 cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
8786 cpp_longdouble_default.
8787 * config/rs6000/softfloat.h: Delete.
8788 * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
8789 (EXTRA_SPECS): Delete cpp_cpu.
8790 (TARGET_CPU_CPP_BUILTINS): New.
8791 * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
8793 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
8794 * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
8795 (CPP_DEFAULT_SPEC): Delete.
8796 * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
8797 * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
8798 * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
8799 (CPP_DEFAULT_SPEC): Delete.
8800 * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8801 (CPLUSPLUS_CPP_SPEC): Likewise.
8802 (CPP_CPU_SPEC): Delete.
8803 (CPP_DEFAULT_SPEC): Delete.
8804 * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8805 (CPLUSPLUS_CPP_SPEC): Likewise.
8806 (CPP_CPU_SPEC): Delete.
8807 (CPP_DEFAULT_SPEC): Delete.
8808 * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
8809 (CPP_DEFAULT_SPEC): Delete.
8810 * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
8811 (CPP_DEFAULT_SPEC): Delete.
8813 * doc/gty.texi: Small updates.
8815 2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
8817 * objc/objc-act.c (warn_with_ivar): Adjust calls to
8818 diagnostic_count_error.
8819 (warn_with_method): Likewise.
8821 * diagnostic.h (warnings_are_errors_message): New field of
8823 (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
8825 * diagnostic.c: Adjust calls to diagnostic_count_error through out.
8826 (diagnostic_count_diagnostic): Make aware of other kinds of
8828 (diagnostic_initialize): Initialize warnings_are_errors_message field.
8830 2002-06-11 Tom Tromey <tromey@redhat.com>
8833 * fold-const.c (fold_convert): Don't modify existing tree's type.
8835 2002-06-11 Geoffrey Keating <geoffk@redhat.com>
8837 * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
8839 2002-06-11 Richard Henderson <rth@redhat.com>
8841 * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
8843 2002-06-11 Richard Henderson <rth@redhat.com>
8845 * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
8846 DWARF2_UNWIND_INFO is false.
8848 2002-06-11 Bob Wilson <bob.wilson@acm.org>
8850 * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
8852 * config/s390/s390.c (emit_prologue): gen_store_multiple
8853 returns an insn now, not a pattern.
8855 2002-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8857 * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
8860 Tue Jun 11 21:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
8862 * i386.c (x86_promote_QImode): Set for Athlon
8863 (x86_fast_prefix): New global variable.
8864 (x86_arch_always_fancy_math_387): Fix formating.
8865 * i386.h (x86_fast_prefix): Declare
8866 (TARGET_FAST_PREFIX): define.
8867 * i386.md (and to strict_low_part, HI to SI
8868 promoting splitter): Use new macro.
8870 * i386.h (RTX_COSTS): float_extend is not for free for SSE.
8872 2002-06-11 Zack Weinberg <zack@codesourcery.com>
8874 * Makefile.in (distclean): Delete junk left in testsuite
8877 2002-06-11 Jeffrey Law <law@redhat.com>
8879 * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
8880 last insn created by the splitter.
8882 * caller-save.c (init_caller_save): Move creation of SAVEINSN
8883 and RESTINSN into into the scope of the sequence.
8885 * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
8888 * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
8890 * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
8891 not the pattern. So extract the pattern from the insn.
8893 * mips.c (embedded_pic_fnaddr_reg): Fix typo.
8895 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
8897 * config/s390/s390.md (movsi): Only use floating point
8898 register alternatives when operands are already fprs.
8899 (movdi_31, movdi_64): Likewise.
8901 2002-06-11 David S. Miller <davem@redhat.com>
8903 * emit-rtl.c (try_split): Do not abort on non-INSN_P.
8904 Only run RTX equality checks on INSN_P rtl.
8906 2002-06-11 Ulrich Weigand <uweigand@de.ibm.com>
8908 * config/s390/s390.md (reload_base, ltorg): Remove.
8909 * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
8910 s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
8911 * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
8912 s390_asm_output_pool_prologue): Likewise.
8913 * s390.h (s390_pool_start_insn): Likewise.
8915 * s390.c (s390_output_symbolic_const): Remove support for
8916 old-style pool chunks.
8917 (s390_function_epilogue): Likewise.
8918 (s390_output_constant_pool): Likewise. Also, fix incorrect
8919 alignment for 64-bit literal pools.
8920 (print_operand_address): Remove 'y' and 'Y' format flags.
8921 * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
8922 old-style pool chunks.
8923 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
8924 (ASM_OUTPUT_POOL_EPILOGUE): Remove.
8925 (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
8927 * s390.c (consttable_operand): New function.
8928 * s390-protos.h (consttable_operand): Declare it.
8929 * s390.h (PREDICATE_CODES): Add consttable_operand.
8930 * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
8931 consttable_sf, consttable_df, pool_start_31, pool_end_31,
8932 pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
8933 * s390.c (struct constant, struct constant_pool): New data types.
8934 (constant_modes, gen_consttable): New variables.
8935 (s390_start_pool, s390_end_pool, s390_add_pool,
8936 s390_dump_pool, s390_free_pool): New functions.
8937 (s390_chunkify_pool): Completely reimplement literal pool
8940 * s390.c (s390_pool_overflow): New variable.
8941 * s390.h (s390_pool_overflow): Declare it.
8942 * s390.md (cjump, icjump): Use it to adapt length for out-of-range
8943 jumps in literal pool overflow situations.
8945 * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
8946 (s390_frame_info): Account for possible use of RETURN_REGNUM
8947 by new literal pool overflow code.
8948 (s390_emit_prologue): Likewise.
8950 2002-06-05 David S. Miller <davem@redhat.com>
8952 Delete SEQUENCE rtl usage outside of reorg and ssa passes.
8953 * rtl.h (gen_sequence, emit_insns, emit_insns_before,
8954 emit_insns_before_scope, emit_insns_after,
8955 emit_insns_after_scope): Delete declaration.
8956 * ada/misc.c (insert_code_for): Use emit_insn* instead of
8958 * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
8959 (alpha_set_memflags): Fix comment.
8960 (set_frame_related_p): Use get_insns instead of gen_sequence.
8961 * config/alpha/alpha.md (setjmp receiver splitter): Avoid
8963 * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
8965 (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
8966 * config/fr30/fr30.c (fr30_move_double): Likewise.
8967 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
8969 * config/ia64/ia64.c (spill_restore_mem): Likewise.
8970 * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
8972 * config/m32r/m32r.c (gen_split_move_double): Use get_insns
8973 instead of gen_sequence.
8974 * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
8975 (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
8976 * config/sh/sh.c (sh_need_epilogue): Likewise.
8977 * config/sparc/sparc.md (current_function_calls_alloca, flat): New
8979 (setjmp pattern and split): Use them to avoid splitter which emits
8981 * genattrtab.c (main): Emit include of function.h
8982 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
8983 get_insns instead of gen_sequence.
8984 * config/cris/cris.c (cris_split_movdx): Likewise.
8985 * emit-rtl.c (emit_insns*): Kill.
8986 (try_split): Expect insn list instead of SEQUENCE.
8987 (make_jump_insn_raw, make_call_insn_raw): Fix comments.
8988 (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
8989 Make them abort if a SEQUENCE is given and RTL checking is
8991 (emit_*_scope): Don't forget to set scope on final insn.
8992 (gen_sequence): Move from here...
8993 * ssa.c (gen_sequence): To here as private function.
8994 * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
8996 (expand_builtin_return, expand_builtin_mathfn): Likewise.
8997 (expand_builtin_strlen): Use get_insns instead of gen_sequence.
8998 (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
8999 (expand_builtin_expect_jump): Use get_insns and fix comments.
9000 * calls.c (try_to_integrate): Use emit_insn_foo.
9001 (expand_call, emit_library_call_value_1): Likewise.
9002 * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
9003 (emit_move_insn_1): Use get_insns instead of gen_sequence.
9004 (expand_expr): Use emit_insn_foo.
9005 * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
9006 * except.c (build_post_landing_pads): Likewise.
9007 * flow.c (attempt_auto_inc): Likewise.
9008 * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
9009 expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
9010 * function.c (fixup_var_refs_insn): Use get_insns instead of
9012 (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
9013 (fixup_memory_subreg): Use get_insns instead of gen_sequence.
9014 (fixup_stack_1, purge_addressof_1, expand_main_function,
9015 get_arg_pointer_save_area): Likewise.
9016 (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
9017 expand_function_end): Use emit_insn_foo.
9018 (record_insns, keep_stack_depressed): Work with insn list instead
9019 of SEQUENCE, fix comments.
9020 * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
9021 noce_try_store_flag_constants, noce_try_store_flag_inc,
9022 noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
9023 noce_try_minmax, noce_try_abs): Use emit_insn_foo.
9024 (noce_process_if_block): Use get_insns instead of gen_sequence.
9025 * optabs.c (add_equal_note): Work with insn list, fix comments.
9026 (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
9027 (expand_unop, expand_complex_abs, expand_unop_insn,
9028 expand_no_conflict_block): Likewise.
9029 (gen_move_insn): Use get_insns instead of gen_sequence.
9030 (gen_cond_trap): Likewise.
9031 * integrate.c (copy_rtx_and_substitute): Likewise.
9032 (emit_initial_value_sets): Use emit_insn_foo.
9033 * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
9034 (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
9035 now that RTL generators give insn lists.
9036 * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
9037 * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
9038 instead of gen_sequence.
9039 (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
9040 * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
9041 instead of gen_sequence.
9042 * loop.c (move_movables, emit_prefetch_instructions,
9043 gen_add_mult, check_dbra_loop, gen_load_of_final_value):
9045 (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
9046 (product_cheap_p): Likewise, and add commentary about RTL wastage
9048 * lcm.c (optimize_mode_switching): Use get_insns instead of
9050 * profile.c (gen_edge_profiler): Likewise.
9051 * regmove.c (copy_src_to_dest): Likewise.
9052 * reg-stack.c (compensate_edge): Likewise and fix comment.
9053 * gcse.c (process_insert_insn): Likewise.
9054 (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
9055 * jump.c (delete_prior_computation): Update comment.
9056 * genemit.c (gen_expand, gen_split, main): Use get_insns instead
9057 of gen_sequence, update comments to match.
9058 * recog.c (peephole2_optimize): Work with insn lists instead of
9060 * sched-vis.c (print_pattern): Abort on SEQUENCE.
9061 * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
9062 Use get_insns instead of gen_sequence.
9063 (copy_loop_body): Likewise and don't emit dummy NOTE.
9064 * genrecog.c: Don't mention SEQUENCE rtl in comments.
9065 * combine.c (try_combine): Expect insn lists from split generator.
9066 * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
9069 2002-06-11 Roger Sayle <roger@eyesopen.com>
9070 Andreas Jaeger <aj@suse.de>
9072 * cfgbuild.c: Update copyright years.
9074 2002-06-11 Andreas Schwab <schwab@suse.de>
9076 * config/m68k/m68k.h (PREDICATE_CODES): Define.
9078 2002-06-11 Eric Christopher <echristo@redhat.com>
9080 * doc/tm.texi (Run-time Target): Add comment about flag_iso
9082 * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
9083 * config/mips/ecoffl.h: Ditto.
9084 * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
9085 (CPP_PREDEFINES): Ditto.
9086 * config/mips/elfl64.h: Ditto.
9087 * config/mips/elfl.h: Ditto.
9088 * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
9089 out until irix header consolidation.
9090 * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
9091 with SUBTARGET_OS_CPP_BUILTINS.
9092 * config/mips/iris6.h: Ditto.
9093 (CPLUSPLUS_CPP_SPEC): Remove.
9094 * config/mips/linux.h: Ditto.
9095 * config/mips/netbsd.h: Ditto.
9096 * config/mips/openbsd.h: Ditto.
9097 * config/mips/rtems.h: Ditto.
9098 * config/mips/rtems64.h: Ditto.
9099 * config/mips/sni-svr4.h: Ditto.
9100 * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
9101 ISA_MIPS32, ISA_MIPS64): New defines.
9102 (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
9103 ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
9104 ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
9105 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
9106 (TARGET_CPU_CPP_BUILTINS): Define.
9107 (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
9108 * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
9109 (movdicc): Remove check for ISA_MIPS32.
9110 (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
9111 sunordered_df, sunordered_sf, sordered_df, sordered_sf,
9112 sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
9113 sunge_sf, sunle_df, sunle_sf): New patterns.
9115 2002-06-11 Neil Booth <neil@daikokuya.demon.co.uk>
9117 * Makefile.in: Update cppmain.o.
9118 * cpphash.h (struct cpp_reader): Move some members to a
9120 (trad_line): Rename saved_line.
9121 (_cpp_read_logical_line_trad): Update.
9122 (_cpp_remove_overlay): New.
9123 * cppinit.c (cpp_create_reader): No need to set saved_line.
9124 (cpp_destroy): Update.
9125 (cpp_read_main_file): Only overlay if compiling.
9126 * cpplex.c (continue_after_nul): Return false if in directive.
9127 * cpplib.c (EXPAND): New.
9128 (directive_table, SEEN_EOL): Update.
9129 (end_directive): Remove overlay if traditional; don't skip
9130 line in traditional #define.
9131 (prepare_directive_trad): New.
9132 (_cpp_handle_directive, run_directive): Update for traditional
9134 (lex_macro_node): Simplify, don't use lex_identifier_trad.
9135 * cpplib.h (struct options): Add preprocess_only.
9136 * cppmain.c: Don't include intl.h.
9137 (cpp_preprocess_file): Set options->preprocess_only.
9138 (scan_translation_unit_trad): Fix, and print line numbers.
9139 * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
9140 maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
9141 save_replacement_text, _cpp_create_trad_definition): Update for
9143 (_cpp_overlay_buffer): Save line number.
9144 (_cpp_remove_overlay): Rename from restore_buff, restore line.
9145 (_cpp_read_logical_line_trad): Don't handle overlays here.
9146 (scan_out_logical_line): Process directives.
9148 2002-06-11 Danny Smith <dannysmith@users.sourforge.net>
9150 * gthr-win32.h: Wrap functions in extern "C".
9151 (__gthread_key_t): Typedef as unsigned long,
9153 (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
9154 (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
9155 (__gthr_win32_once, __gthr_win32_key_create,
9156 __gthr_win32_key_delete, __gthr_win32_getspecific,
9157 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
9158 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
9159 __gthr_win32_mutex_unlock): Declare.
9160 (__gthread_once,__gthread_key_create,
9161 __gthread_key_delete, __gthread_getspecific,
9162 __gthread_setspecific, __gthread_mutex_init_function,
9163 __gthread_mutex_lock,__gthread_mutex_trylock,
9164 __gthread_mutex_unlock): Call corresponding
9165 __gthr_win32_* extern implementations if #defined
9166 __GTHREAD_HIDE_WIN32API.
9167 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
9168 $(srcdir)/config/i386/gthr-win32.c
9169 * config/i386/gthr-win32.c: New implementation file.
9170 (__gthr_win32_once, __gthr_win32_key_create,
9171 __gthr_win32_key_delete, __gthr_win32_getspecific,
9172 __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
9173 __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
9174 __gthr_win32_mutex_unlock): New functions, based on
9175 static inlines in gthr-win32.h.
9177 2002-06-10 Bob Wilson <bob.wilson@acm.org>
9179 * config/xtensa/xtensa.c (override_options): Don't warn about
9180 using -fpic or -fPIC when PIC is enabled by default.
9182 2002-06-10 Roger Sayle <roger@eyesopen.com>
9184 * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
9186 2002-06-10 Zack Weinberg <zack@codesourcery.com>
9188 * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
9189 * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
9190 exists, substitute its pathname as @extra_modes_file@, define
9191 EXTRA_MODES_FILE to be an appropriate string to #include it
9192 with, and define EXTRA_CC_MODES to 1.
9194 * machmode.def: Update comments. Include EXTRA_MODES_FILE if
9195 it's defined. Get rid of redundancy in calling sequence for
9196 CC; don't use it to define CCmode, to avoid a warning.
9197 * libgcc2.c: Include symcat.h for the sake of machmode.def.
9199 * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
9200 i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
9201 pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
9203 * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
9204 pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
9206 * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
9207 defining extra CC modes.
9209 2002-06-10 Roger Sayle <roger@eyesopen.com>
9210 Andreas Jaeger <aj@suse.de>
9212 * cfgrtl.c (create_basic_block_structure): Remove index argument
9213 and use last_basic_block++ instead. (create_basic_block): Update.
9214 * cfgbuild.c (find_basic_blocks_1): Likewise.
9216 * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
9217 * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
9218 * sched-ebb.c (schedule_ebbs): Likewise.
9219 * sched-rgn.c (schedule_insns): Likewise.
9220 * ssa-ccp.c (ssa_const_prop): Likewise.
9221 * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
9222 * toplev.c (rest_of_compilation): Likewise.
9223 * config/ia64/ia64.c (ia64_reorg): Likewise.
9225 2002-06-10 Roger Sayle <roger@eyesopen.com>
9227 * simplify-rtx.c (simplify_replace_rtx): Allow replacement
9228 of matching registers.
9230 2002-06-10 Roger Sayle <roger@eyesopen.com>
9232 * toplev.c (rest_of_compilation): Disable early if-conversion pass.
9233 * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
9235 2002-06-10 Hans-Peter Nilsson <hp@bitrange.com>
9237 * config/mmix/mmix.h: Improve comments.
9238 (CPP_SPEC, CPP_PREDEFINES): Don't define.
9239 (TARGET_CPU_CPP_BUILTINS): Define.
9240 (CANONICALIZE_COMPARISON): Don't define, replace with comment.
9241 (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
9243 * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
9245 (mmix_constant_address_p): Remove another
9246 redundant test before case.
9247 (mmix_canonicalize_comparison): Remove unused function.
9248 (mmix_print_operand_address): Don't test and adjust for operand in
9249 non-canonical format.
9250 (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
9251 (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
9253 2002-06-10 Zack Weinberg <zack@codesourcery.com>
9255 * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
9256 * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
9257 * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
9258 (gen_compare): Use CCmode unconditionally.
9260 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9262 PR optimization/6759
9263 * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
9266 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9269 * c-decl.c (grokfield): Allow user defined types if they declare
9270 structs or unions for unnamed fields.
9272 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9275 * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
9277 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9279 PR optimization/6842
9280 * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
9281 operand subreg cannot be simplified.
9283 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9285 * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
9286 (compare_constant): Likewise.
9287 (output_addressed_constants): Likewise.
9289 2002-06-10 Jakub Jelinek <jakub@redhat.com>
9291 * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
9292 merge bb with itself.
9294 2002-06-10 Richard Henderson <rth@redhat.com>
9296 * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
9297 (builtin_zapnot): Likewise.
9299 * config/alpha/ev5.md: Don't combine shift and mvi insns in one
9302 2002-06-10 Eric Christopher <echristo@redhat.com>
9304 * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
9305 prototype and function.
9306 (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
9307 (call_insn_operand): Remove half pic references.
9308 (legitimate_address_p): Ditto.
9309 * config/i386/i386.h: Remove half pic defines.
9311 2002-06-10 Eric Christopher <echristo@redhat.com>
9313 * doc/extend.texi (Return Address): Add note explaining the side-
9314 effects of inlining on __builtin_return_address.
9316 2002-06-10 Tom Tromey <tromey@redhat.com>
9318 * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
9319 (c-common.o): Depend on langhooks.h.
9321 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
9323 * cpphash.h (_cpp_read_logical_line_trad,
9324 _cpp_expansions_different_trad): Update prototypes.
9325 * cpplex.c (continue_after_nul): New.
9326 * cppmain.c: Include cpphash.h.
9327 (scan_translation_unit_trad): New.
9328 (cpp_preprocess_file): Call it.
9329 * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
9331 (_cpp_expansions_different_trad): Update prototype.
9333 Mon Jun 10 18:02:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
9335 Fix cfi generation for SH[1-4]:
9337 * sh.c (frame_insn): New function.
9338 (output_stack_adjust): Add parameter emit_fn. All callers changed.
9339 (push): Now returns rtx. Use frame_insn.
9340 (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
9342 * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
9344 2002-06-10 Zack Weinberg <zack@codesourcery.com>
9346 * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
9348 (mostlyclean): Delete specs.h, options.h, gencheck.h here...
9349 (distclean): ... not here. But do delete all testsuite/*.log,
9350 testsuite/*.sum files here. Delete mkheaders. Delete
9351 po/*.gmo and the testsuite directory in a split tree build.
9353 2002-06-10 Jeffrey Law <law@redhat.com>
9355 * alias.c (static_reg_base_value): New to hold RTL for
9356 items allocated once per function for the aliasing code.
9357 (init_alias_once_per_function): Initialize static_reg_base_value.
9358 (init_alias_analysis): Avoid throw-away allocations of RTL by
9359 using pre-computed values in static_reg_base_value.
9360 * function.c (prepare_function_start): Call
9361 init_alias_once_per_function appropriately.
9362 * rtl.h (init_alias_once_per_function): Declare.
9363 * caller-save (init_caller_save): Restructure slightly to
9364 avoid lots of silly RTL generation.
9365 * expr.c (init_expr_once): Likewise.
9366 * reload1.c (reload_cse_regs_1): Allocate throw-away register
9367 RTL object here. Pass it into children.
9368 (reload_cse_simplify_operands): Use passed-in register RTL
9370 (reload_cse_simplify): Pass through throw-away register
9373 2002-06-10 Daniel Berlin <dberlin@dberlin.org>
9375 * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
9377 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
9379 * gcc.c (process_command): Avoid assignment to read-only location.
9380 Fix sizeof calculation.
9382 2002-06-10 Neil Booth <neil@daikokuya.demon.co.uk>
9384 * cpphash.h (struct cpp_macro): Put comments on their own lines.
9385 (_cpp_expansions_different_trad): New.
9386 * cppmacro.c (warn_of_redefinition): Fix for traditional case.
9387 * cpptrad.c (canonicalize_text): New.
9388 (scan_out_logical_line): Handle no arguments correctly.
9389 (save_replacement_text): Commit memory when finished.
9390 (_cpp_expansions_different_trad): New.
9392 2002-06-10 Tim Josling <tej@melbpc.org.au>
9394 * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
9396 (lang_names): Add treelang and cobol.
9397 (get_file_basename): Add code to support treelang and cobol as
9398 4th and 5th users of c-common.c.
9400 2002-06-09 Geoffrey Keating <geoffk@redhat.com>
9402 * Makefile.in (install-driver): Install driver as
9403 $(target_alias)-gcc-$(version).
9404 * gcc.c (spec_version): Make const.
9405 (process_command): Handle -V and -b by using exec.
9406 * doc/invoke.texi (Target Options): Restore -V option,
9407 update docs for -b option.
9409 2002-06-10 Tim Josling <tej@melbpc.org.au>
9411 * configure.in (remaining_languages_check):
9412 Added check that all languages specified were found.
9413 Exit if not found. Previous behavior was silent failure.
9414 * configure: Regenerated.
9416 2002-06-10 Tim Josling <tej@melbpc.org.au>
9418 First steps to making treelang documentation compliant, based on
9419 instructions in sourcebuild.texi. Also add to gcc.c list of
9422 * doc/contrib.texi: Add self as contributor of treelang.
9424 * doc/frontends.texi: Add mention of treelang.
9426 * doc/invoke.texi (Overall Options): Add mention of treelang.
9428 * doc/standards.texi: Add mention of treelang.
9430 2002-06-09 Hans-Peter Nilsson <hp@axis.com>
9432 * config/cris/cris.c: Include ggc.h
9434 2002-06-09 Neil Booth <neil@daikokuya.demon.co.uk>
9436 * cpphash.h (_cpp_push_text_context): Update.
9437 (_cpp_arguments_ok): New.
9438 * cppmacro.c (_cpp_arguments_ok): New, split out from...
9439 (collect_args): ...here.
9440 (_cpp_push_text_context): Change inputs.
9441 * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
9442 replace_args_and_push): New.
9443 (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
9444 Don't use IS macros directly.
9445 (scan_out_logical_line): Handle function-like macro argument
9447 (push_replacement_text): Update.
9448 (replacement_length): Remove.
9449 (_cpp_create_trad_definition): Don't skip whitespace before
9452 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
9454 * config/avr/avr.c (avr_mcu_types): Update for new devices.
9455 * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
9456 (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
9457 * config/avr/avr.md ("type" and "length" attributes): New type
9458 "xcall", length 1 or 2 if AVR_MEGA. Use in all patterns that
9459 output a single "call" or "rcall" insn depending on device size.
9460 * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
9462 2002-06-09 David Edelsohn <edelsohn@gnu.org>
9464 * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
9465 synonym for 630. Add power4. Remove embedded processors. Use -m604
9467 (CPP_CPU_SPEC): Add power3 and power4.
9468 (PROCESSOR_DEFAULT): Change to 604e.
9469 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
9470 (CPP_CPU_SPEC): Similar additions.
9471 (enum process_type): Add POWER4.
9472 (RTX_COSTS): Add POWER4.
9473 (CPP_CPU_SPEC): Similar additions.
9474 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
9475 (PROCESSOR_DEFAULT64): Define.
9476 * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
9477 (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
9479 (rs6000_issue_rate): Add Power4.
9480 * config/rs6000/rs6000.md (cpu attr): Add power4.
9481 (iu compare): Remove 604, 604e, 620, 630.
9482 Add basic Power4 scheduling information.
9483 (mfcr/mtcrf): Change type attribute to cr_logical.
9485 2002-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9487 * gengtype.h (error_at_line): Use PARAMS, not VPARAMS. Add
9489 * gengtype-lex.l: Fix format specifier warning.
9491 * genautomata.c: Don't include ctype.h or limits.h. Use ISSPACE,
9493 * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
9494 lieu of isspace/IDchar.
9495 * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
9496 * read-rtl.c: Likewise for ctype.h. Don't define ISDIGIT or
9499 2002-06-08 Zack Weinberg <zack@codesourcery.com>
9501 * Makefile.in (LIBCPP_OBJS): Take out version.o.
9502 * cpphash.h (cpp_reader): Take out print_version member.
9503 * cppinit.c: (cpp_handle_option): Don't do anything with
9504 -version. Just set help_only for --version, --target-help.
9505 Just set verbose option for -v.
9506 (cpp_post_options): Don't print a version string.
9508 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
9510 * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
9511 (avr_section_type_flags): New, handle .noinit* sections.
9513 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9515 * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
9516 and include netbsd_entry_point.
9517 (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9518 (NETBSD_ENTRY_POINT): Define.
9520 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9522 * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
9523 if not already defined.
9524 (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
9526 2002-06-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
9528 * config/avr/avr.c (avr_regs_to_save): No need to save any registers
9529 in a noreturn function.
9530 (avr_output_function_prologue, avr_output_function_epilogue):
9531 Correct function size calculation. Do not crash on empty function.
9532 (avr_output_function_epilogue): No need for epilogue after a BARRIER.
9534 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9536 * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9537 netbsd_link_spec and netbsd_entry_point.
9538 (LINK_SPEC): Use %(netbsd_link_spec).
9539 (NETBSD_ENTRY_POINT): Define.
9541 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9543 * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
9545 (LINK_ARCH64_SPEC): Likewise.
9546 (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
9547 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
9549 2002-06-08 Marc Espie <espie@openbsd.org>
9551 * lists.c (free_list): Fix typo in comment.
9553 2002-06-08 Andreas Jaeger <aj@suse.de>
9555 * lcm.c (optimize_mode_switching): Add unused attribute for
9558 * sched-deps.c (sched_analyze): Remove unused variable.
9560 2002-06-08 Gabriel Dos Reis <gdr@codesourcery.com>
9562 * diagnostic.def: Don't capitalize diagnostict descriptors.
9564 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9566 * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
9567 (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
9568 (NETBSD_ENTRY_POINT): Define.
9570 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9572 * config/i386/netbsd-elf.h (LINK_SPEC): Define as
9573 NETBSD_LINK_SPEC_ELF.
9574 (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
9575 (NETBSD_ENTRY_POINT): Define.
9576 * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
9577 (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
9579 (NETBSD_ENTRY_POINT): Define.
9581 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9583 * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
9584 netbsd_link_spec and netbsd_entry_point.
9585 (LINK_SPEC): Use %(netbsd_link_spec).
9586 (NETBSD_ENTRY_POINT): Define.
9588 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
9590 * config/netbsd-elf.h (LINK_SPEC): Rename to...
9591 (NETBSD_LINK_SPEC_ELF): ...this. Use %(netbsd_entry_point)
9592 to specify program entry point.
9594 2002-06-07 Jeff Law <law@redhat.com
9596 * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
9597 * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
9598 than creating a new register.
9599 (distribute_notes): Likewise.
9600 * df.c (df_reg_use_gen): Likewise.
9601 (df_reg_clobber_gen): Likewise.
9602 (df_ref_record): Likewise.
9603 * expr.c (use_regs): Likewise.
9604 * flow.c (propagate_one_insn): Likewise.
9605 (mark_set_1): Likewise.
9606 (mark_used_reg): Likewise.
9607 * reload.c (emit_reload_insns): Likewise.
9609 2002-06-07 Roger Sayle <roger@eyesopen.com>
9611 * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
9612 (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
9613 Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
9614 comparison code comp can be reversed.
9616 2002-06-07 Roger Sayle <roger@eyesopen.com>
9618 * fold-const.c (fold) [EQ_EXPR]: Place both integer and real
9619 constants last in comparisons. Optimize (x+1.0)>0.0 into the
9620 equivalent x > -1.0 when -ffast-math.
9622 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
9624 * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
9625 * config/mips/t-netbsd: New file.
9627 2002-06-07 Zack Weinberg <zack@codesourcery.com>
9629 * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
9630 options their own entries.
9631 (parse_option): Clarify comment.
9632 (cpp_handle_option): Remove 'ignore' parameter and OPT_W
9633 special case. Replace if/strcmp chain for -W options with
9634 use of new OPT_* entries for them.
9635 (cpp_handle_options): Update to match.
9636 * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
9637 * c-decl.c: Update call to cpp_handle_option.
9639 2002-06-07 Akim Demaille <akim@epita.fr>
9641 * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
9644 2002-06-07 Jeffrey Law <law@redhat.com>
9646 * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
9649 2002-06-07 H.J. Lu (hjl@gnu.org)
9651 * configure.in: Add --enable-__cxa_atexit.
9652 * configure: Regenerated.
9653 * config.in: Likewise.
9655 * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
9658 2002-06-07 Gabriel Dos Reis <gdr@merlin.nerim.net>
9660 * diagnostic.c (diagnostic_build_prefix): Fix initialization.
9662 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
9664 * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
9666 2002-06-07 Jason Merrill <jason@redhat.com>
9668 * cppexp.c (num_equality_op): Use a temporary variable to work
9669 around gcc 3.0.4 bug.
9671 2002-06-07 Gabriel Dos Reis <gdr@codesourcery.com>
9673 * diagnostic.c (diagnostic_build_prefix): Tidy.
9675 2002-06-07 Neil Booth <neil@daikokuya.demon.co.uk>
9677 * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
9678 scan_parameters, save_replacement_text, replacement_length): New.
9679 (scan_out_logical_line): Take a macro and save parameters if
9681 (_cpp_logical_line_trad): Update.
9682 (_cpp_create_trad_definition): Update to handle function-like
9684 * cpplex.c (new_buff): Update.
9685 (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
9686 * cpphash.h: ...here.
9687 (CPP_ALIGN2, _cpp_save_parameter): New.
9688 * cppmacro.c (save_parameter): Rename, export.
9689 (parse_params): Update.
9691 2002-06-07 Andreas Jaeger <aj@suse.de>
9693 * config/mmix/mmix.c: Remove extra broken prototype for
9694 mmix_init_machine_status.
9696 2002-06-06 Geoffrey Keating <geoffk@redhat.com>
9698 * gengtype.c: Add comments before all the routines.
9700 2002-06-07 Jason Thorpe <thorpej@wasabisystems.com>
9702 * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
9703 from and add t-sh64 to ${tmake_file}.
9704 (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
9705 * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
9706 * config/sh/t-netbsd-sh5-32: Remove.
9707 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
9709 (MULTILIB_DIRNAMES): Define.
9711 Thu Jun 6 23:14:46 CEST 2002 Jan Hubicka <jh@suse.cz>
9713 * i386.md (and promoting splitters): Disable QI to SImode promoting
9714 when doing so changes immediate to be 32bit.
9716 * rtl.h (emit_*_scope): Declare.
9717 * emit-rtl.c (emit_*_scope): New global functions.
9718 (try_split): Copy scope.
9719 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9720 noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9721 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
9722 noce_process_if_block, find_cond_trap): Copy scopes.
9723 * recog.c (peephole2_optimize): likewise.
9725 2002-06-06 Jeffrey Law <law@redhat.com>
9727 * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
9729 Thu Jun 6 21:06:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
9731 * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
9733 2002-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9735 * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
9736 ($(docdir)/gccinstall.info): New target.
9737 (info): Depend on it.
9738 (gccinstall.dvi): New target.
9739 (dvi): Depend on it.
9740 * doc/.cvsignore: Ignore new info files.
9741 * doc/install.texi (@setfilename): Reflect new info filename.
9743 Thu Jun 6 15:57:23 2002 J"orn Rennecke <joern.rennecke@superh.com>
9745 * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
9748 Thu Jun 6 07:17:43 2002 Nicola Pero <n.pero@mi.flashnet.it>
9751 * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
9752 c_common_get_alias_set.
9753 (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
9755 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
9757 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
9759 * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
9760 * avr/avr.c (avr_output_function_epilogue): Use above to determine
9762 * pa/pa.c (pa_output_function_prologue): Likewise.
9764 2002-06-05 David S. Miller <davem@redhat.com>
9766 * integrate.c (subst_constants): Handle 'B' RTL format.
9768 2002-06-05 Eric Christopher <echristo@redhat.com>
9770 * varasm.c (make_decl_rtl): Fix comment for removed
9773 2002-06-05 Eric Christopher <echristo@redhat.com>
9775 * Makefile.in: Remove missed halfpic bits.
9777 2002-06-05 Eric Christopher <echristo@redhat.com>
9779 * toplev.c: Remove half-pic.
9780 * config/mips/mips.c: Ditto.
9781 * config/mips/mips.h: Ditto. Remove unused defines.
9782 * config/mips/openbsd.h: Update comment to reflect above.
9783 * config/mips/mips.md: Remove half-pic constraints.
9784 * halfpic.h: Delete.
9787 2002-06-05 Jeffrey Law <law@redhat.com>
9789 * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
9790 rejects (mem (lo_sum (reg) (unspec))), but will allow
9791 (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
9793 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
9795 * cpphash.h (_cpp_create_definition): Update prototype.
9796 (_cpp_push_text_context, _cpp_create_trad_definition): New.
9797 ( cpp_lex_identifier_trad): New.
9798 (_cpp_set_trad_context): New.
9799 * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
9800 * cpplib.c (SEEN_EOL): Update.
9801 (lex_macro_node): Update for -traditional.
9802 (cpp_push_buffer, _cpp_pop_buffer): Similarly.
9803 * cppmacro.c (_cpp_create_definition): Split into
9804 create_iso_definition() and _cpp_create_trad_definition().
9805 (warn_of_redefinition): Update prototype; handle traditional
9807 (_cpp_push_text_context): New.
9808 * cpptrad.c (skip_whitespace, push_replacement_text): New.
9809 (lex_identifier): Call ht_lookup with correct start.
9810 (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
9811 _cpp_set_trad_context): New.
9812 (scan_out_logical_line): Update to handle changing contexts.
9814 Wed Jun 5 20:42:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
9816 * config.gcc (sh-*-elf*, sh64*-*-elf*): Unify.
9818 * config/sh/t-be (MULTILIB_ENDIAN): Set.
9819 * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
9820 * t-sh (MULTILIB_ENDIAN): Set.
9821 (MULTILIB_OPTIONS): Use it.
9822 * t-sh64 (MULTILIB_OPTIONS): Likewise.
9823 (MULTILIB_DIRNAMES): Likewise.
9825 2002-06-05 Gabriel Dos Reis <gdr@codesourcery.com>
9827 * toplev.h (report_error_function): Remove.
9829 * diagnostic.h (location_t): New datatype.
9830 (text_info): Likewise.
9831 (diagnostic_info): Likewise.
9832 (output_prefix): New macro.
9833 (diagnostic_last_function_changed): Likewise.
9834 (diagnostic_set_last_function): Likewise.
9835 (diagnostic_last_module_changed): Likewise.
9836 (diagnostic_set_last_module): Likewise.
9837 (report_diagnostic): Now macro.
9838 (diagnostic_set_info): Declare.
9840 * diagnostic.c (report_problematic_module): Rename to
9841 diagnostic_repor_current_module.
9842 (set_diagnostic_context): Remove.
9843 (count_error): Rename to diagnostic_error_count.
9844 (error_function_changed): Remove.
9845 (record_last_error_function): Likewise.
9846 (error_module_changed): Likewise.
9847 (record_last_error_module): Likewise.
9848 (context_as_prefix): Rename to diagnostic_build_prefix.
9849 (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
9850 (diagnostic_set_info): New function.
9852 * objc/objc-act.c: #include diagnostic.h
9853 (error_with_ivar): Adjust call to count_error.
9854 (warn_with_method): Likewise.
9855 * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
9857 2002-06-05 Bob Wilson <bob.wilson@acm.org>
9859 * config/xtensa/xtensa.c (xtensa_build_va_list): Use
9860 lang_hooks.types.make_type instead of make_node; set up
9861 __va_list_tag type decl.
9862 (xtensa_builtin_saveregs): Remove broken use of
9863 RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
9864 for saved registers; add varargs alias set.
9866 2002-06-05 Neil Booth <neil@daikokuya.demon.co.uk>
9869 * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
9870 * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9871 CPP_PREDEFINES and part of CPP_SPEC.
9872 i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
9873 i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
9875 Wed Jun 5 15:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
9877 * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
9879 2002-06-05 Alan Modra <amodra@bigpond.net.au>
9881 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
9883 2002-06-04 Zack Weinberg <zack@codesourcery.com>
9885 * gengtype-yacc.y: Make sure all rules end with a semicolon.
9887 2002-06-04 Bob Wilson <bob.wilson@acm.org>
9889 * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
9890 typo in function prototype and include "ggc.h" header.
9892 2002-06-04 Richard Henderson <rth@redhat.com>
9894 * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
9895 (print_operand) ['U']: Likewise.
9896 (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
9897 (alpha_expand_unaligned_store_words): Likewise.
9898 (alpha_expand_builtin_vector_binop): Fix typo.
9899 (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
9900 umulh, and cix insns.
9901 (one_arg_builtins): Add cix builtins.
9902 (two_arg_builtins): Add ext, ins, msk, umulh builtins.
9903 (alpha_expand_builtin): Fix typo in arity.
9904 * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
9905 (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
9906 builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
9907 builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
9908 builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
9909 builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
9910 builtin_ctlz, builtin_ctpop): New.
9911 * doc/extend.texi (Alpha Built-in Functions): Update.
9913 2002-06-04 Geoffrey Keating <geoffk@redhat.com>
9915 * gengtype.c (write_gc_root): Don't unnecessarily prevent
9916 global variable-length arrays being roots.
9918 * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
9919 * configure.in (config_gtfiles): New variable.
9920 (all_gtfiles): Initialize from config_gtfiles.
9921 * configure: Regenerate.
9923 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
9926 * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
9927 i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
9928 mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
9929 sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
9930 win32.h (CPP_SPEC): Remove cpp_cpu.
9931 * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
9932 (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
9934 2002-06-04 Janis Johnson <janis187@us.ibm.com>
9936 * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
9938 2002-06-04 Jeff Law <law@redhat.com.
9939 David Edelsohn <edelsohn@gnu.org>
9940 Michael Matz <matz@kde.org>
9942 * sched-int.h (struct deps): New field libcall_block_tail_insn.
9943 * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
9944 * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
9945 is set, then mark the current insn as being part of a libcall
9947 (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
9949 * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
9950 insns against the issue rate.
9952 Tue Jun 4 19:29:42 CEST 2002 Jan Hubicka <jh@suse.cz>
9954 * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
9955 * final.c (final_scan_insn): Likewise.
9956 * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
9957 NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
9958 * haifa-sched.c (unlink_other_notes): Likeewise.
9959 (reemit_notes): Likewise.
9960 * print-rtl.c (print_rtx): Likewise.
9961 * sched-deps (sched-analyze): Likewise.
9962 * rtl.c (note_insn_name): Likewise.
9963 * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
9964 (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
9967 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
9969 * varasm.c (mark_constants): Handle RTX format 'B'.
9971 2002-06-04 Neil Booth <neil@daikokuya.demon.co.uk>
9973 * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
9974 (struct cpp_context): Add traditional fields.
9975 * cppmacro.c (paste_all_tokens, push_ptoken_context,
9976 push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
9977 * cpptrad.c (skip_comment, lex_identifier,
9978 _cpp_read_logical_line_trad, scan_out_logical_line): Update.
9980 2002-06-04 Kazu Hirata <kazu@cs.umass.edu>
9982 * gbl-ctors.h: Fix formatting.
9984 * gccspec.c: Likewise.
9986 * gcov-io.h: Likewise.
9988 * ggc-common.c: Likewise.
9990 * ggc-page.c: Likewise.
9991 * ggc-simple.c: Likewise.
9992 * global.c: Likewise.
9993 * graph.h: Likewise.
9994 * gthr-dce.h: Likewise.
9996 * gthr-posix.h: Likewise.
9997 * gthr-rtems.h: Likewise.
9998 * gthr-solaris.h: Likewise.
9999 * gthr-win32.h: Likewise.
10001 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
10003 Merge from pch-branch:
10005 * gengtype.h (UNION_OR_STRUCT_P): New macro.
10006 * gengtype.c (write_gc_structure_fields): Use it.
10007 (write_gc_root): Use it here too.
10009 * gengtype.c (write_gc_structure_fields): Assume that lengths
10010 of typenames fit into an 'int'; don't pass a size_t to "%d" in
10012 (write_gc_marker_routine_for_structure): Likewise.
10013 (write_gc_types): Likewise.
10014 (write_gc_root): Likewise.
10016 * varray.h (VARRAY_CLEAR): New.
10017 (varray_clear): Prototype.
10018 * varray.c (varray_clear): New.
10019 * cselib.c (reg_values_old): New.
10020 (used_regs_old): New.
10021 (cselib_init): Use cached varrays if available to avoid
10022 generating large amounts of garbage.
10023 (cselib_finish): Don't throw away old varrays.
10025 * final.c (insn_addresses_): Move out of ifdef.
10027 * varray.c (uses_ggc): Make more varray kinds GCable.
10028 * varray.h (union varray_data_tag): Let gengtype see
10029 fields 'generic' and 'te'.
10030 * reg-stack.c: Include gt-reg-stack.h, ggc.h.
10031 (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
10032 (reg_to_stack): Don't call VARRAY_FREE.
10033 * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
10034 (insn_addresses_): Use gengtype to mark.
10035 * gengtype.c (write_gc_structure_fields): Handle arrays of generic
10036 pointers; handle generic pointers in unused union fields.
10037 (get_output_file_with_visibility): Include cselib.h,
10038 insn-addr.h in gtype-desc.c.
10039 * function.c (prologue): Use gengtype to mark.
10040 (epilogue): Likewise.
10041 (sibcall_epilogue): Likewise.
10042 * dependence.c: Include gt-dependence.h, ggc.h.
10043 (struct def_use): Use gengtype to mark.
10044 (struct loop): Likewise.
10045 (struct induction): Likewise.
10046 (struct dependence): Likewise.
10047 (def_use_chain): Likewise.
10048 (dep_chain): Likewise.
10049 (loop_chain): Likewise.
10050 (induction_chain): Likewise.
10051 (init_dependence_analysis): Don't free anything, just clear pointers.
10052 (build_def_use): Use GGC to allocate def_use.
10053 (add_loop): Use GGC to allocate loop.
10054 (find_induction_variable): Use GGC to allocate induction.
10055 (check_node_dependence): Use GGC to allocate induction, dependence.
10056 (dump_node_dependence): Don't free varrays.
10057 (end_dependence_analysis): Likewise.
10058 * cselib.h (struct cselib_val_struct): Use gengtype to mark.
10059 (struct elt_loc_list): Likewise.
10060 (struct elt_list): Likewise.
10061 * cselib.c: Don't include obstack.h.
10062 (hash_table): Use gengtype to mark.
10063 (reg_values): Use gengtype to mark.
10064 (used_regs): Use gengtype to mark.
10065 (cselib_obstack): Delete.
10066 (cselib_startobj): Delete.
10067 (empty_vals): Mark as deletable.
10068 (empty_elt_lists): Mark as deletable.
10069 (empty_elt_loc_lists): Mark as deletable.
10070 (new_elt_list): Use GGC to allocate struct elt_list.
10071 (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
10072 (clear_table): Don't delete obstack; don't unnecessarily clear
10073 deletable variables.
10074 (new_cselib_val): Use GGC to allocate struct cselib_val.
10075 (cselib_init): Don't set up obstacks. Use GGC to allocate
10077 (cselib_finish): Just clear variables, don't free anything.
10078 * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
10079 (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
10080 (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
10081 (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
10082 (gt-reg-stack.h): New rule.
10083 (gt-dependence.h): New rule.
10084 (gtype-desc.o): Add cselib.h, insn-addr.h.
10086 * varray.c: Use only necessary headers.
10087 (element_size): New.
10089 (varray_init): Take type, not size. Use GGC if appropriate.
10090 (varray_grow): Update for change to struct varray_head_tag.
10091 Use GGC if appropriate.
10092 * varray.h (struct const_equiv_data): Use gengtype.
10093 (enum varray_data_enum): New.
10094 (union varray_data_tag): Use gengtype.
10095 (struct varray_head_tag): Use gengtype. Replace size field with
10096 enum varray_data_enum.
10097 (varray_init): Update prototype.
10098 (VARRAY_SCHED_INIT): Delete.
10099 (VARRAY_*_INIT): Update for change to varray_init.
10100 (VARRAY_SCHED): Delete.
10101 (VARRAY_PUSH_SCHED): Delete.
10102 (VARRAY_TOP_SCHED): Delete.
10103 * tree.h: Update for change to length specifier.
10104 * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
10105 (clone_body): Likewise.
10106 * ssa.h (ssa_definition): Use gengtype to mark.
10107 * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
10108 * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
10109 * rtl.h (struct rtvec_def): Update for change to length specifier.
10110 * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
10111 (struct initial_value_struct): Update for change to length specifier.
10112 * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
10113 (ggc_add_tree_varray_root): Delete prototype.
10114 (ggc_mark_rtx_varray): Delete prototype.
10115 (ggc_mark_tree_varray): Delete prototype.
10116 * ggc-common.c (ggc_add_rtx_varray_root): Delete.
10117 (ggc_add_tree_varray_root): Delete.
10118 (ggc_mark_rtx_varray): Delete.
10119 (ggc_mark_tree_varray): Delete.
10120 (ggc_mark_rtx_varray_ptr): Delete.
10121 (ggc_mark_tree_varray_ptr): Delete.
10122 * gengtype.h (enum typekind): Remove TYPE_VARRAY.
10123 (create_varray): Delete prototype.
10124 * gengtype.c (varrays): Delete.
10125 (create_varray): Delete.
10126 (adjust_field_type): Detect array of string pointers.
10127 (process_gc_options): Remove code to handle varray_type option.
10128 (set_gc_used_type): Remove TYPE_VARRAY case.
10129 (output_escaped_param): New.
10130 (write_gc_structure_fields): Use output_escaped_param on all
10131 parameters. Handle 'skip' with 'use_param' option. Handle
10132 arrays of strings. Remove TYPE_VARRAY handling.
10133 (write_gc_roots): Use boolean to detect 'length' option.
10134 * gengtype-yacc.y (VARRAY_TYPE): Delete token.
10135 (struct_fields): Call adjust_field_type on array fields.
10136 (type): Remove VARRAY_TYPE case.
10137 (type_option): Likewise.
10138 * gengtype-lex.l: Don't consider varray_type a keyword.
10139 * function.h: Update for change to length specifier.
10140 (free_eh_status): Delete prototype.
10141 * function.c (free_after_compilation): Don't call free_eh_status.
10142 (reorder_blocks): Don't use VARRAY_FREE.
10143 * except.c (struct eh_status): Update for change to length specifier.
10144 remove varray_type specifier.
10145 (free_eh_status): Delete.
10146 * dwarf2out.c: Include gt-dwarf2out.h.
10147 (used_rtx_varray): Use gengtype to mark, move
10149 (incomplete_types): Likewise.
10150 (decl_scope_table): Likewise.
10151 (dwarf2out_init): Don't call ggc_add_tree_varray_root.
10152 * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
10153 * c-tree.h (struct lang_type): Update for change to length specifier.
10154 * c-parse.in (yylexstring): Don't use VARRAY_FREE.
10155 * c-objc-common.c: Include gt-c-objc-common.h.
10156 (deferred_fns): Mark for gengtype.
10157 (c_objc_common_init): Don't call ggc_add_tree_varray_root.
10158 (expand_deferred_fns): Just set deferred_fns to 0 to free it.
10159 * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
10160 (gtype-desc.o): Update dependencies.
10161 (dwarf2out.o): Add gt-dwarf2out.h.
10162 (varray.o): Update dependencies.
10163 (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
10164 (gt-c-objc-common.h): New rule.
10165 (gt-dwarf2out.h): New rule.
10166 * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
10168 * doc/gty.texi (GTY Options): Correct spelling.
10169 (GGC Roots): Likewise.
10170 * Makefile.in (TEXI_CPP_FILES): New.
10171 (TEXI_GCC_FILES): New.
10172 (TEXI_GCCINT_FILES): New.
10173 (TEXI_CPPINT_FILES): New.
10174 ($(docdir)/cpp.info): Use new macros.
10175 ($(docdir)/gcc.info): Likewise.
10176 ($(docdir)/gccint.info): Likewise.
10177 ($(docdir)/cppinternals.info): Likewise.
10178 (cpp.dvi): Likewise.
10179 (gcc.dvi): Likewise.
10180 (gccint.dvi): Likewise.
10181 (cppinternals.dvi): Likewise.
10183 * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
10184 * doc/gccint.texi (Top): Include gty.texi.
10185 * doc/gty.texi: New file.
10187 * bitmap.c: Include ggc.h, gt-bitmap.h.
10188 (bitmap_ggc_free): New.
10189 (bitmap_elem_to_freelist): New.
10190 (bitmap_element_free): Use bitmap_elem_to_freelist.
10191 (bitmap_element_allocate): Allow use of GGC.
10192 (bitmap_clear): Use bitmap_elem_to_freelist.
10193 (bitmap_copy): Update for change to bitmap_element_allocate.
10194 (bitmap_set_bit): Likewise.
10195 (bitmap_operation): Update for changes elsewhere.
10196 (bitmap_initialize): Allow to create bitmaps that will use GGC.
10197 * bitmap.h (struct bitmap_element_def): Use gengtype.
10198 (struct bitmap_head_def): Likewise. Also add 'using_obstack' field.
10199 (bitmap_initialize): Add extra parameter.
10200 (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
10201 (BITMAP_ALLOCA): Delete.
10202 (BITMAP_XMALLOC): Update for change to bitmap_initialize.
10203 (BITMAP_GGC_ALLOC): New.
10204 * Makefile.in (gtype-desc.o): Add bitmap.h.
10205 (bitmap.o): Add gt-bitmap.h, $(GGC_H).
10206 (GTFILES): Add bitmap.c.
10207 (gt-bitmap.h): New rule.
10208 ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
10209 * basic-block.h: Update for changes to bitmap_initialize.
10210 * except.c (exception_handler_label_map): Move into...
10211 (struct eh_status): Here.
10212 (struct eh_region): Make 'aka' GCable.
10213 (free_eh_status): Don't need to specially handle
10214 exception_handler_label_map.
10215 (add_ehl_entry): Update for changes to exception_handler_label_map.
10216 (find_exception_handler_labels): Likewise.
10217 (remove_exception_handler_label): Likewise.
10218 (maybe_remove_eh_handler): Likewise.
10219 (for_each_eh_label): Likewise.
10220 (remove_eh_handler): Allocate 'aka' using GGC.
10221 * gengtype.c (get_output_file_with_visibility): Add bitmap.h
10222 to list of includes.
10224 * gengtype.c (write_gc_marker_routine_for_structure): Name
10225 the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
10226 (write_gc_types): Arrange for the tests with NULL to be inlined.
10227 (write_gc_roots): Update uses of procedure pointers.
10228 * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
10230 * Makefile.in (explow.o): Add dependency on gt-explow.h.
10231 (sdbout.o): Add dependency on gt-sdbout.h.
10233 * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
10234 (mem_attrs_htab): Likewise.
10235 (init_emit_once): Don't call ggc_add_deletable_htab.
10236 * fold-const.c (size_htab): Use gengtype to clear unused entries.
10237 (size_int_type_wide): Don't call ggc_add_deletable_htab.
10238 * gengtype.c (finish_root_table): Add LASTNAME and TNAME
10239 parameters, use them, change callers.
10240 (write_gc_root): Add IF_MARKED parameter, use it, change callers.
10241 (write_gc_roots): Handle 'if_marked' option.
10242 (main): Don't need to call set_gc_used_type any more.
10243 * ggc.h (ggc_htab_marked_p): Delete.
10244 (ggc_htab_mark): Delete.
10245 (struct ggc_cache_tab): New.
10246 (gt_ggc_cache_rtab): New declaration.
10247 * ggc-common.c (struct d_htab_root): Delete.
10248 (d_htab_roots): Delete.
10249 (ggc_add_deletable_htab): Delete.
10250 (ggc_htab_delete): Handle new htab-deleting mechanism.
10251 (ggc_mark_roots): Use new htab-deleting mechanism.
10252 * tree.c (type_hash_table): Use gengtype to clear unused entries.
10254 (init_obstacks): Don't call ggc_add_deletable_htab.
10256 * objc/objc-act.h (struct hashed_attribute): Use gengtype.
10257 (struct hashed_entry): Likewise.
10258 (nst_method_hash_list): Likewise.
10259 (cls_method_hash_list): Likewise.
10260 (HASH_ALLOC_LIST_SIZE): Delete.
10261 (ATTR_ALLOC_LIST_SIZE): Delete.
10262 * objc/objc-act.c (hash_init): Use ggc to allocate
10263 nst_method_hash_list, cls_method_hash_list.
10264 (hash_enter): Use ggc to allocate; allocate one entry at a time.
10265 (hash_add_attr): Likewise.
10266 (ggc_mark_hash_table): Delete.
10267 (objc_act_parse_init): Delete.
10268 (objc_init): Delete reference to objc_act_parse_init.
10269 * tlink.c: Replace hash.h with hashtab.h. Explicitly include
10270 obstack.h. Replace references to 'struct hash_table' with htab_t.
10271 (struct symbol_hash_entry): Replace hash header with key field.
10272 (struct file_hash_entry): Replace hash header with key field.
10273 (struct demangled_hash_entry): Replace hash header with key field.
10274 (hash_string_eq): New.
10275 (hash_string_hash): New.
10276 (symbol_hash_newfunc): Delete.
10277 (symbol_hash_lookup): Modify to use htab_t.
10278 (file_hash_newfunc): Delete.
10279 (file_hash_lookup): Modify to use htab_t.
10280 (demangled_hash_newfunc): Delete.
10281 (demangled_hash_lookup): Modify to use htab_t.
10282 (tlink_init): Modify to use htab_t.
10285 * ggc.h: Delete forward structure declarations.
10286 Delete prototypes for deleted functions.
10287 * ggc-common.c: Don't include hash.h.
10288 (ggc_add_tree_hash_table_root): Delete.
10289 (ggc_mark_tree_hash_table_entry): Delete.
10290 (ggc_mark_tree_hash_table): Delete.
10291 (ggc_mark_tree_hash_table_ptr): Delete.
10292 * gengtype.c (write_gc_structure_fields): Allow param_is option.
10293 (write_gc_marker_routine_for_structure): Use visibility of
10294 the parameter if there is one.
10295 * function.c: Replace hash.h with hashtab.h. Replace references
10296 to 'struct hash_table *' with htab_t.
10297 (struct insns_for_mem_entry): Include a plain key.
10298 (fixup_var_refs_insns_with_hash): Update to use htab_t.
10299 (insns_for_mem_newfunc): Delete.
10300 (insns_for_mem_hash): Update to use htab_t.
10301 (insns_for_mem_comp): Likewise.
10302 (insns_for_mem_walk): Likewise.
10303 * c-lang.c: Include ggc.h.
10304 * Makefile.in (OBJS): Remove hash.o.
10305 (c-lang.o): Add GGC_H.
10306 (COLLECT2_OBJS): Remove hash.o.
10307 (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
10308 (ggc-common.o): Remove hash.h.
10309 (function.o): Remove hash.h, add HASHTAB_H.
10310 (genautomata.o): Remove hash.h, add HASHTAB_H.
10312 * varasm.c (mark_const_str_htab_1): Delete.
10313 (mark_const_str_htab): Delete.
10314 (const_str_htab_del): Delete.
10315 (const_str_htab): Use gengtype to mark.
10316 (init_varasm_once): Use gengtype to mark hashtables. Use GC to
10318 * tree.c (mark_tree_hashtable_entry): Delete.
10319 (mark_tree_hashtable): Delete.
10320 * tree.h (mark_tree_hashtable): Delete prototype.
10321 * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
10322 (ggc_mark): Likewise.
10324 (htab_create_ggc): New.
10325 * ggc-common.c (ggc_calloc): New.
10326 * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
10327 (struct type): Add param_struct structure.
10328 * gengtype.c (param_structs): New.
10329 (adjust_field_type): Handle param_is option.
10330 (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
10331 (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
10332 (write_gc_structure_fields): Add new PARAM parameter. Update
10333 callers. Handle use_param option. Handle TYPE_PARAM_STRUCT.
10334 (write_gc_marker_routine_for_structure): Add new PARAM parameter.
10335 Use it to generate function name. Update callers.
10336 (write_gc_types): Add new PARAM_STRUCTS parameter. Update callers.
10338 (write_gc_roots): Handle TYPE_PARAM_STRUCT. Allow param_is
10340 (main): Define PTR as pointer-to-scalar. Don't specially
10341 mark deferred_string or ehl_map_entry.
10342 * gengtype-yacc.y (PARAM_IS): Add new token.
10343 (externstatic): Use adjust_field_type.
10344 (type_option): Add PARAM_IS.
10345 * gengtype-lex.l: Add rule for typedef of function pointers.
10346 Add rule for PARAM_IS.
10347 (IWORD): Add size_t.
10348 * except.c (exception_handler_label_map): Use gengtype to mark.
10349 (type_to_runtime_map): Likewise.
10350 (mark_ehl_map_entry): Delete.
10351 (mark_ehl_map): Delete.
10352 (init_eh): Use gengtype for roots; use GC to allocate hash tables.
10353 (t2r_mark_1): Delete.
10354 (t2r_mark): Delete.
10355 * Makefile.in (gtype-desc.o): Correct dependencies.
10356 (GTFILES): Add hashtab.h.
10357 (genautomata.o): Actually uses hashtab.h.
10359 * Makefile.in (stringpool.o): Add $(GGC_H).
10360 (dwarf2asm.o): Likewise.
10361 (GTFILES): Add hashtable.h.
10362 * c-common.h (struct c_common_identifier): Use gengtype.
10363 * c-decl.h (c_mark_tree): Delete.
10364 * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10365 * c-tree.h (struct lang_identifier): Use gengtype.
10366 (union lang_tree_node): New.
10367 (c_mark_tree): Delete prototype.
10368 * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
10369 dwarf2_debug_hooks.
10370 * gengtype-lex.l (IWORD): Allow 'bool'.
10371 (ptr_alias): Match.
10372 * gengtype-yacc.y (ALIAS): New token.
10373 (type_option): New rule.
10374 (option): Use type_option.
10375 * gengtype.c (process_gc_options): New.
10376 (set_gc_used_type): Use it.
10377 (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
10378 Add new variable 't' to hold the type of the field being processed.
10379 Add more error checking. Use UNION_P when looking at 'desc' option.
10380 Handle language-specific structures containing other
10381 language-specific structures.
10382 (write_gc_types): Handle 'ptr_alias' option.
10383 (main): Don't need to specially output lang_type, lang_decl, lang_id2.
10384 * ggc-common.c (ggc_pending_trees): Delete.
10385 (ggc_mark_roots): Don't manipulate ggc_pending_trees.
10386 (ggc_mark_trees): Delete.
10387 (gt_ggc_m_tree_node): Delete.
10388 * ggc.h (ggc_pending_trees): Delete.
10389 (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
10390 * hashtable.h (ht_identifier): Use gengtype.
10391 * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
10392 * langhooks.h (struct lang_hooks): Delete mark_tree.
10393 * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
10395 * system.h: Poison LANG_HOOKS_MARK_TREE.
10396 * tree.c (tree_node_structure): New.
10397 * tree.h (struct tree_common): Use gengtype.
10398 (struct tree_int_cst): Likewise.
10399 (struct tree_real_cst): Likewise.
10400 (struct tree_string): Likewise.
10401 (struct tree_complex): Likewise.
10402 (struct tree_vector): Likewise.
10403 (struct tree_identifier): Likewise.
10404 (struct tree_list): Likewise.
10405 (struct tree_vec): Likewise.
10406 (struct tree_exp): Likewise.
10407 (struct tree_block): Likewise.
10408 (struct tree_type): Likewise.
10409 (struct tree_decl): Likewise.
10410 (enum tree_structure_enum): New.
10411 (union tree_node): Use gengtype, with an alias.
10412 (tree_node_structure): Prototype.
10413 * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
10415 Merge to tag pch-merge-20020430. The LANG_HOOKS_FUNCTION_MARK
10416 macro was deleted. The LANG_HOOKS_FUNCTION_FREE macro was renamed
10417 to LANG_HOOKS_FUNCTION_FINAL.
10418 * Makefile.in (GTFILES): Add bitmap.h.
10419 * except.c (struct eh_region): Mark field 'aka' to be skipped.
10421 * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
10422 (alpha_init_machine_status): Give proper type.
10423 * Makefile.in (c-lang.o): Depend on gtype-c.h.
10424 (optabs.o): Depend on gt-optabs.h.
10425 (GTFILES): Add optabs.o.
10426 (gt-optabs.h): Add rule.
10427 * optabs.c: Include gt-optabs.h.
10429 * gengtype.c (set_gc_used_type): Correct some errors in last change.
10430 (write_gc_structure_fields): If a field which should be NULL is
10432 * c-pragma.c: Move struct align_stack and variable alignment_stack
10433 out from the ifdef.
10435 * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
10436 * config/xtensa/xtensa.c: Include gt-cris.h.
10437 (struct machine_function): Use gengtype to mark.
10438 * config/mmix/mmix.h (struct machine_function): Use gengtype
10440 * config/cris/t-cris: Add dependencies for gt-cris.h.
10441 * config/cris/cris.c: Include gt-cris.h.
10442 (struct machine_function): Use gengtype to mark.
10443 * config/rs6000/rs6000.h (struct machine_function): Use gengtype
10445 * doc/tm.texi (Per-Function Data): Delete references to
10446 mark_machine_status.
10447 * config/ia64/ia64.c (ia64_override_options): Don't set
10448 mark_machine_status.
10449 * config/i386/i386.c (override_options): Likewise.
10450 * config/d30v/d30v.c (d30v_init_expanders): Likewise.
10451 * config/arm/arm.c (arm_init_expanders): Likewise.
10452 * config/alpha/alpha.c (override_options): Likewise.
10453 * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
10454 * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
10455 (write_gc_structure_fields): Don't handle 'really' option.
10456 Handle 'maybe_null' option.
10457 (write_gc_types): Handle 'maybe_null' option.
10458 * function.h (struct function): Don't use "really".
10459 (mark_machine_status): Delete declaration.
10460 (mark_lang_status): Delete declaration.
10461 (gt_ggc_mr_machine_function): Delete prototype.
10462 (gt_ggc_mr_language_function): Delete prototype.
10463 * function.c (mark_machine_status): Delete.
10464 (mark_lang_status): Delete.
10465 (gt_ggc_mr_machine_function): Delete.
10466 (gt_ggc_mr_language_function): Delete.
10467 * c-tree.h (mark_c_function_context): Delete prototype.
10468 * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
10469 * c-decl.c (struct language_function): Rename from struct
10470 c_language_function. Update uses. Use gengtype to mark.
10471 (mark_c_function_context): Delete.
10472 * c-common.h (struct c_language_function): Rename from struct
10474 (mark_stmt_tree): Delete prototype.
10475 (c_mark_lang_decl): Delete prototype.
10476 (mark_c_language_function): Delete prototype.
10477 * c-common.c (mark_stmt_tree): Delete.
10478 (c_mark_lang_decl): Delete.
10479 (mark_c_language_function): Delete.
10481 * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
10482 (lang_bitmap): New typedef. Use where appropriate.
10483 (struct type): Add gc_used field, lang_struct field.
10484 (UNION_P): New macro.
10485 (new_structure): New prototype.
10486 (find_structure): Remove 'pos' parameter. Change all callers.
10487 * gengtype-lex.l: Update for changes to find_structure.
10488 * gengtype-yacc.y (typedef_struct): Use new_structure.
10489 (yacc_ids): Suppress warning.
10490 (type): Use new_structure.
10491 * gengtype.c (string_type): Update for changes to struct type.
10492 (find_structure): Just find a structure, don't worry about
10494 (new_structure): New.
10495 (note_yacc_type): Use new_structure.
10496 (set_gc_used_type): New.
10497 (set_gc_used): New.
10498 (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
10499 (write_gc_types): Handle TYPE_LANG_STRUCT.
10500 (write_gc_marker_routine_for_structure): New.
10501 (main): Call set_gc_used. Add some calls to set_gc_used_type
10502 for places where GCC doesn't use gengtype properly yet.
10503 * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
10504 (gt_ggc_m_tree_node): Likewise.
10506 * varasm.c (copy_constant): Call expand_constant if we hit
10507 something we can't recognize.
10509 * ggc-common.c (ggc_mark_rtvec_children): Delete.
10510 (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
10511 (lang_mark_false_label_stack): Delete.
10512 * rtl.h (struct rtvec_def): Use gengtype to mark.
10513 * ggc.h (ggc_mark_rtvec): Delete.
10514 (gt_ggc_m_rtvec_def): Delete.
10515 (ggc_mark_nonnull_tree): Delete.
10516 (ggc_mark_rtvec_children): Delete prototype.
10517 (lang_mark_false_label_stack): Delete declaration.
10519 * gengtype.h (note_yacc_type): Add prototype.
10520 * gengtype.c (note_yacc_type): New function.
10521 * gengtype-lex.l: Add lexer support for yacc files.
10522 * gengtype-yacc.y (start): Extract union from yacc files.
10523 (yacc_union): New rule.
10524 (yacc_typematch): New rule.
10525 (yacc_ids): New rule.
10526 (enum_items): Tweak for efficiency.
10527 (optionseq): Likewise.
10529 * c-common.h (struct language_function): Use gengtype.
10530 (struct c_lang_decl): Likewise.
10531 * c-tree.h (struct lang_decl): Likewise.
10532 (struct lang_type): Likewise.
10533 * c-decl.c (lang_mark_tree): Use generated marker routines to mark
10534 tree language substructures.
10536 * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
10538 * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
10540 * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
10542 * stmt.c (struct nesting): Add discriminator. Use gengtype to
10543 mark. Remove 'data.block.cleanup_ptr' field.
10544 (struct stmt_status): Use usual technique to mark struct nesting.
10545 (gt_ggc_mr_nesting_cond): Delete.
10546 (gt_ggc_mr_nesting_loop): Delete.
10547 (gt_ggc_mr_nesting_block): Delete.
10548 (gt_ggc_mr_nesting_case_stmt): Delete.
10549 (expand_start_cond): Set discriminator.
10550 (expand_start_loop): Likewise.
10551 (expand_start_null_loop): Likewise.
10552 (expand_start_bindings_and_block): Set discriminator. Don't set
10554 (expand_decl_cleanup): Replace 'cleanup_ptr' with
10555 &thisblock->data.block.cleanups.
10556 (expand_start_case): Set discriminator.
10557 (expand_start_case_dummy): Set discriminator.
10559 * ggc-callbacks.c: Remove.
10561 * gengtype.h (struct type): Add 'u.s.bitmap' field.
10562 (find_structure): Add 'pos' parameter.
10563 * gengtype-lex.l: Update callers to find_structure.
10564 * gengtype-yacc.y: Likewise.
10565 * gengtype.c (find_structure): Allow for structures to be defined
10566 in multiple language backends.
10567 (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
10568 (counter): Rename to gc_counter.
10569 (write_gc_structure_fields): Fail when writing out fields for
10570 an incomplete structure. Ignore arrays of scalars. Handle
10571 'tree_vec' special.
10572 (write_gc_types): Reset counter for each procedure written.
10574 * stmt.c (add_case_node): Use GGC to allocate struct case_node.
10575 (free_case_nodes): Delete.
10576 (expand_end_case_type): Delete call to free_case_nodes.
10578 * Makefile.in (cselib.o): Include gt-<filename>.h.
10579 (gcse.o): Likewise.
10580 (profile.o): Likewise.
10581 (alias.o): Likewise.
10582 (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
10583 alphabetize backend files.
10584 (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
10585 * alias.c: Use gengtype for roots.
10586 * c-common.h (struct stmt_tree_s): Use gengtype.
10587 * c-decl.c: Use gengtype for roots.
10588 * cselib.c: Use gengtype for roots.
10589 * expr.c: Use gengtype for roots.
10590 * fold-const.c: Use gengtype for roots.
10591 * gcse.c: Use gengtype for roots.
10592 * gengtype-lex.l: Handle typedefs of function types.
10593 Allow for empty array bounds.
10594 Allow processing to stop on initializers.
10595 * gengtype-yacc.y (externstatic): Stop processing on initializers.
10596 (semiequal): New rule.
10597 * gengtype.c (create_file): Tidy output files.
10598 (get_output_file_with_visibility): Fix paren warning. Fix bug
10599 involving multiple input files mapping to one output file.
10600 (write_gc_structure_fields): Skip arrays of scalars.
10601 (write_gc_types): Tidy output files.
10602 (write_gc_root): New function.
10603 (write_gc_roots): Fix bugs, add support for roots that are
10605 * ggc-common.c (ggc_mark_rtx_ptr): Delete.
10606 (ggc_mark_tree_ptr): Delete.
10607 (ggc_add_rtx_root): Delete.
10608 (ggc_add_tree_root): Delete.
10609 (ggc_del_root): Delete.
10610 * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
10611 allocate struct initial_value_struct.
10612 * profile.c: Use gengtype for roots.
10613 * sdbout.c: Use gengtype for roots.
10614 * varasm.c (mark_weak_decls): Delete unused prototype.
10615 (mark_const_hash_entry): Delete unused function.
10616 * config/darwin-protos.h: Use gengtype for roots.
10617 (machopic_add_gc_roots): Delete.
10618 * config/arm/arm.c: Use gengtype for roots.
10619 * config/arm/arm.h: Use gengtype for roots.
10620 * config/c4x/c4x-protos.h: Use gengtype for roots.
10621 * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
10622 * config/d30v/d30v-protos.h: Use gengtype for roots.
10623 * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
10624 * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
10625 * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
10626 * config/ia64/ia64-protos.h: Use gengtype for roots.
10627 * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
10628 * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
10629 * config/m68hc11/m68hc11.c (z_reg): Make global.
10630 (z_reg_qi): Make global.
10631 (m68hc11_add_gc_roots): Delete.
10632 * config/mcore/mcore-protos.h: Use gengtype for roots.
10633 * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
10634 * config/mips/mips.c (mips_add_gc_roots): Delete.
10635 * config/mips/mips.h: Use gengtype for roots.
10636 * config/mmix/mmix.c (override_options): Use gengtype for roots.
10637 * config/mmix/mmix.h: Use gengtype for roots.
10638 * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
10639 * config/mn10200/mn10200.h: Use gengtype for roots.
10640 * config/pa/pa.c: Use gengtype for roots, marking.
10641 (struct deferred_plabel): Use GGC, gengtype.
10642 (pa_add_gc_roots): Delete.
10643 (mark_deferred_plabels): Delete.
10644 * config/pj/pj-protos.h: Use gengtype for roots.
10645 * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
10646 * config/rs6000/rs6000.c: Use gengtype for roots. Don't call
10647 machopic_add_gc_roots.
10648 * config/rs6000/rs6000.h: Use gengtype for roots.
10649 * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
10650 (gt-darwin.h): Add rule.
10651 * config/sh/sh.c: Use gengtype for roots.
10652 * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
10653 (gt-sh.h): Add rule.
10654 * config/sparc/sparc.c: Use gengtype for roots.
10655 (sparc_add_gc_roots): Delete.
10656 (struct ultrasparc_pipeline_state): Use GGC, gengtype.
10657 (mark_ultrasparc_pipeline_state): Delete.
10658 * config/sparc/sparc.h: Use gengtype for roots.
10660 * Makefile.in (c-parse.o): Update dependencies.
10661 (c-common.o): Likewise.
10662 (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
10663 Add dependencies for the files they generate.
10664 * c-common.c: Replace ggc_add_* uses with GTY annotations.
10665 * c-common.h: Likewise.
10666 * c-decl.c: Likewise.
10667 (gt_ggc_mp_binding_level): Delete.
10668 * c-lang.c: Include gtype-c.h.
10669 * c-parse.in: Replace ggc_add_* uses with GTY annotations. Include
10671 * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
10672 (gt_ggc_mp_align_stack): Delete.
10673 * c-tree.h: Replace ggc_add_* uses with GTY annotations.
10674 * function.c: Replace ggc_add_* uses with GTY annotations.
10675 (gt_ggc_mp_function): Delete.
10676 * function.h: Replace ggc_add_* uses with GTY annotations.
10677 * gengtype.c (lang_names): New.
10678 (NUM_BASE_FILES): New.
10679 (open_base_files): Create language base files.
10681 (get_file_basename): New.
10682 (get_base_file_bitmap): New.
10683 (get_output_file_with_visibility): Rename from get_output_file.
10684 Add more mappings for various C/Objc filenames.
10685 (finish_root_table): New.
10686 (write_gc_roots): Handle dependencies and scoping properly.
10687 * gengtype.h: Add prototypes for new functions.
10688 * ggc-common.c (struct deletable_root): Delete.
10689 (deletables): Delete.
10690 (ggc_add_deletable_root): Delete.
10691 (ggc_mark_roots): No need to deal with deleted functionality.
10692 * ggc.h (ggc_add_deletable_root): Delete prototype.
10693 * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
10694 (gtype-objc.h): Add rule to create.
10695 * objc/config-lang.in (gtfiles): New.
10696 * objc/objc-act.c: Allocate imp_list using GGC. Replace uses of
10697 ggc_add_* with GTY markers. Include gtype-objc.h.
10698 (ggc_mark_imp_list): Delete.
10699 * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
10700 * objc/objc-lang.c: Random Whitespace Change.
10702 * except.h (exception_handler_labels): Delete.
10703 (get_exception_handler_labels): New.
10704 * except.c (exception_handler_labels): Delete.
10705 (struct eh_status): Add exception_handler_labels field.
10706 (doing_eh): Don't add exception_handler_labels as root.
10707 (free_eh_status): Don't need to free exception_handler_labels.
10708 (get_exception_handler_labels): New.
10709 (find_exception_handler_labels): Update for move of
10710 exception_handler_labels.
10711 (remove_exception_handler_label): Likewise.
10712 * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
10713 * jump.c (rebuild_jump_labels): Likewise.
10714 * loop.c (find_and_verify_loops): Likewise.
10715 * sched-rgn.c (is_cfg_nonregular): Likewise.
10717 * gengtype.c (write_gc_structure_fields): Handle variable-length
10720 * varasm.c (struct weak_syms): Use GGC, gengtype.
10721 (mark_weak_decls): Delete.
10722 (weak_decls): Likewise.
10723 (add_weak): Likewise.
10724 (remove_from_pending_weak_list): Likewise.
10725 (init_varasm_once): Likewise.
10727 * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
10728 (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
10729 stor-layout.c, regclass.c, and lists.c.
10730 Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
10731 gt-regclass.h and gt-lists.h on s-gtype.
10732 * emit-rtl.c: Use gengtype for roots. Include gt-emit-rtl.h.
10733 * except.c: Use gengtype for roots.
10734 * explow.c: Use gengtype for roots. Include gt-explow.h.
10735 * expr.h (init_stor_layout_once): Delete prototype.
10736 * function.c: Use gengtype for roots.
10737 * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
10738 * gengtype-yacc.y (start): Can also be an externstatic.
10739 (externstatic): New production.
10740 (struct_fields): Correct array bounds inversion for 2-d arrays.
10741 * gengtype.c (variables): New variable.
10742 (note_variable): New function.
10743 (get_output_file): Include libfuncs.h into gtype-desc.c.
10744 (get_output_file_name): New function.
10745 (write_gc_structure_fields): Suppress warnings.
10746 (write_gc_types): Make static.
10747 (put_mangled_filename): New function.
10748 (write_gc_roots): New function.
10749 (main): Call write_gc_roots.
10750 * gengtype.h (note_variable): Prototype.
10751 (get_output_file_name): Prototype.
10752 (write_gc_types): Delete prototype.
10753 * ggc.h: Clean up unnecessary structure predefinitions.
10754 (struct ggc_root_tab): Define.
10755 (gt_ggc_m_rtx_def): Make function, not macro.
10756 (gt_ggc_m_tree_node): Likewise.
10757 * libfuncs.h: Use gengtype for roots.
10758 * lists.c: Use gengtype for roots. Include gt-lists.h.
10759 (init_EXPR_INSN_LIST_cache): Delete.
10760 * optabs.c: Use gengtype for roots.
10761 (gt_ggc_mp_optab): Delete.
10762 * optabs.h: Use gengtype for roots.
10763 * regclass.c: Use gengtype for roots. Include gt-regclass.h.
10764 * rtl.h: Use gengtype for roots.
10765 (init_EXPR_INSN_LIST_cache): Delete prototype.
10766 * stor-layout.c: Use gengtype for roots.
10767 Include gt-stor-layout.h.
10768 (init_stor_layout_once): Delete.
10769 * toplev.c: Use gengtype for roots. Delete calls to deleted
10771 * tree.c: Use gengtype for roots.
10772 * tree.h: Use gengtype for roots.
10773 * varasm.c: Use gengtype for roots.
10775 * Makefile.in (GTFILES): Add @all_gtfiles@.
10776 * configure: Regenerate.
10777 * configure.in: Construct all_gtfiles from the gtfiles definitions
10779 * gengtype-yacc.y (type): Warn about duplicate structure names.
10780 * gengtype.c (get_output_file): Handle .c files in language
10783 * Makefile.in (GTFILES): Run gengtype on all the config files
10784 and on the target .c file.
10785 * except.c (mark_eh_region): Delete.
10786 (init_eh_for_function): Use GGC on struct eh_status.
10787 (mark_eh_status): Delete.
10788 (free_eh_status): Use GGC.
10789 (expand_eh_region_start): Use GGC to
10790 (collect_eh_region_array): Allocate last_region_number using GGC.
10791 (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
10792 (remove_eh_handler): Let GGC free struct eh_region.
10793 (add_call_site): Use GGC to reallocate call_site_record array.
10794 * function.c (init_machine_status): Update calling sequence.
10795 (mark_machine_status): Likewise.
10796 (mark_lang_status): Likewise.
10797 (prepare_function_start): Update init_machine_status call.
10798 (mark_function_status): Delete.
10799 (maybe_mark_struct_function): Delete.
10800 (ggc_mark_struct_function): Delete.
10801 (gt_ggc_mp_function): New.
10802 (gt_ggc_mr_machine_function): New.
10803 (gt_ggc_mr_language_function): New.
10804 (init_function_once): Use canonical names.
10805 * function.h (struct function): Use gengtype.
10806 (init_machine_status): Return the structure.
10807 (mark_machine_status): Take a 'void *'.
10808 (mark_lang_status): Likewise.
10809 * ggc-common.c (ggc_mark_trees): Use canonical name for
10810 ggc_mark_struct_function.
10811 * tree.h (ggc_mark_struct_function): Delete prototype.
10812 * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
10813 (alpha_init_machine_status): Likewise.
10814 (override_options): Use canonical name for alpha_mark_machine_status.
10815 * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
10816 * config/arm/arm.h (struct machine_function): Use gengtype.
10817 * config/arm/arm.c (arm_mark_machine_status): Delete.
10818 (arm_init_machine_status): Update calling sequence.
10819 (arm_init_expanders): Use canonical name for arm_mark_machine_status.
10820 * config/cris/cris.c (cris_init_machine_status): Update
10822 * config/d30v/d30v.h (struct machine_function): Use gengtype.
10823 * config/d30v/d30v.c (d30v_init_machine_status): Update
10825 (d30v_mark_machine_status): Delete.
10826 * config/i386/i386.c: Include gt-i386.h.
10827 (struct machine_function): Use gengtype.
10828 (ix86_init_machine_status): Update calling sequence.
10829 (ix86_mark_machine_status): Delete.
10830 (override_options): Use canonical namke for ix86_mark_machine_status.
10831 * config/ia64/ia64.h (struct machine_function): Use gengtype.
10832 * config/ia64/ia64.c (ia64_init_machine_status): Update calling
10834 (ia64_mark_machine_status): Delete.
10835 (ia64_override_options): Use canonical name for
10836 ia64_mark_machine_status.
10837 * config/mmix/mmix.c (mmix_init_machine_status): Update calling
10839 * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
10840 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10841 * gengtype.c (get_output_file): Fix warning.
10842 (main): Add prototype to suppress warning.
10843 * tree.c: Remove tree_hash_mark prototype.
10845 * tree.h (init_stmt): Delete prototype.
10846 * toplev.c (lang_independent_init): Don't call init_stmt.
10847 * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
10848 (stmt_obstack): Delete.
10849 (POPSTACK): No need to free 'struct nesting'.
10850 (gt_ggc_mr_nesting_cond): Use canonical names.
10851 (gt_ggc_mr_nesting_loop): Use canonical names.
10852 (gt_ggc_mr_nesting_block): Use canonical names.
10853 (gt_ggc_mr_nesting_case_stmt): Use canonical names.
10854 (mark_stmt_status): Delete.
10855 (init_stmt): Delete.
10856 (clear_last_expr): Clear both last_expr_type and last_expr_value.
10857 Use it everywhere that last_expr_type was cleared.
10858 * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
10859 (zap_lists): Delete.
10860 * ggc.h (ggc_add_deletable_root): Prototype.
10861 (mark_stmt_status): Remove prototype.
10862 * ggc-common.c (ggc_add_deletable_root): New.
10863 (ggc_mark_roots): Handle deletable roots.
10864 * function.c (ggc_mark_struct_function): Use canonical name
10865 for mark_stmt_status.
10866 * emit-rtl.c (free_sequence_stack): New.
10867 (start_sequence): Use a freelist for sequences.
10868 (end_sequence): Likewise.
10869 (init_emit_once): Add free_sequence_stack as a deleteable root.
10870 * c-pragma.c Include gt-c-pragma.h.
10871 (struct align_stack): Use gengtype.
10872 (push_alignment): Use GGC for struct align_stack.
10873 (mark_align_stack): Delete.
10874 (gt_ggc_mp_align_stack): New.
10875 (init_pragma): Use canonical name for mark_align_stack.
10876 * c-decl.c: Include gt-c-decl.h.
10877 (struct binding_level): Use gengtype.
10878 (make_binding_level): Use GGC; handle the freelist here.
10879 (pop_binding_level): New.
10880 (pushlevel): Move code into make_binding_level.
10881 (push_label_level): Likewise.
10882 (poplevel): Move code into pop_binding_level.
10883 (pop_label_level): Likewise.
10884 (mark_binding_level): Delete.
10885 (gt_ggc_mp_binding_level): New.
10886 (c_init_decl_processing): Use canonical name for mark_binding_level.
10887 Add free_binding_level as deletable root.
10888 (mark_c_function_context): Use canonical name for mark_binding_level.
10889 * Makefile.in (c-decl.o): Add gt-c-decl.h.
10890 (c-pragma.o): Add gt-c-pragma.h.
10891 (GTFILES): Add c-decl.c and c-pragma.c.
10892 (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
10894 * tree.c (struct type_hash): Use gengtype.
10895 (init_obstacks): Use canonical name for type_hash_mark.
10896 (type_hash_mark): Delete.
10898 * rtl.h (struct mem_attrs): Use gengtype.
10899 * optabs.h (struct optab): Use gengtype.
10900 * optabs.c (expand_binop): Squish signed/unsigned warning.
10901 (mark_optab): Make local, use canonical name, use autogenerated
10903 (init_optabs): Use canonical name for mark_optab.
10904 (new_optab): Use GGC to allocate optabs.
10905 * ggc.h: Delete mark_optab prototype.
10906 * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
10907 mem_attrs marker procedure.
10908 * gengtype.c (get_output_file): Include headers in gtype-desc.c
10909 explicitly rather than deducing them from file names.
10910 (write_gc_structure_fields): Handle arrays of structures.
10911 (main): Return non-zero exit code if errors occur during output.
10912 * emit-rtl.c (mem_attrs_mark): Delete.
10913 (init_emit_once): Use canonical name for mem_attrs marker procedure.
10914 * Makefile.in (gtype-desc.o): Explicitly name dependencies.
10915 (tree.o): Depend on gt-tree.h.
10916 (GTFILES): Add rtl.h, optabs.h, tree.c.
10917 (gt-tree.h): Add it to s-gtype rule.
10919 * .cvsignore: Ignore gengtype flex/bison generated files.
10920 * Makefile.in (GGC_H): Add gtype-desc.h.
10921 (OBJS): Add gtype-desc.o.
10922 (GEN): Add gengtype.
10923 (STAGESTUFF): Add gengtype.
10924 (varasm.o): Add gt-varasm.h.
10925 (stmt.o): Add gt-stmt.h.
10926 (except.o): Add gt-except.h.
10927 (integrate.o): Add gt-integrate.h.
10929 Add new rules for new files.
10930 * configure: Regenerate.
10931 * configure.in: Correct defaults.h paths.
10932 * emit-rtl.c (mark_sequence_stack): Delete.
10933 (mark_emit_status): Delete.
10934 (start_sequence): Allocate sequence structures using GGC.
10935 (end_sequence): Allocate sequence structures using GGC.
10936 * except.c: Use gengtype for various structures. Include
10938 * expr.c (mark_expr_status): Delete.
10939 * function.c: Use gengtype for various structures. Include
10941 (mark_function_status): Use standard gt_ggc names for marker functions.
10942 (ggc_mark_struct_function): Likewise.
10943 * function.h: Use gengtype for various structures.
10944 * gengtype-lex.l: New file.
10945 * gengtype-yacc.y: New file.
10946 * gengtype.c: New file.
10947 * gengtype.h: New file.
10948 * ggc.h: Include gtype-desc.h. Alias some marker procedures to
10949 the standard names. Remove some now-unnecessary prototypes.
10950 * integrate.c: Use gengtype for various structures. Include
10952 (mark_hard_reg_initial_vals): Delete.
10953 * integrate.h (mark_hard_reg_initial_vals): Delete.
10954 * stmt.c: Use gengtype for various structures. Include
10956 (mark_case_node): Delete.
10957 (mark_goto_fixup): Delete.
10958 (mark_stmt_status): Use standard gt_ggc names for marker functions.
10959 * system.h: Define GTY to empty. In flex/bison files,
10960 don't poison malloc or realloc, instead just define them to
10961 xmalloc and xrealloc.
10962 * varasm.c: Use gengtype for various structures. Include
10963 gt-varasm.h. Use standard gt_ggc names for marker functions.
10964 (mark_pool_constant): Delete.
10965 (mark_varasm_status): Delete.
10966 (decode_rtx_const): #if 0 out non-typesafe hack.
10968 * function.h (free_lang_status): Mark as obsolete.
10969 * function.c (free_lang_status): Mark as obsolete.
10970 * c-decl.c (push_c_function_context): Use GC to allocate and free
10971 struct language_function.
10972 (pop_c_function_context): Likewise.
10973 * c-common.c (mark_c_language_function): Mark struct
10976 * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
10977 Document that the machine_function structures must be allocated
10978 using GC. Update mark_machine_status documentation.
10979 * function.h: Don't declare free_machine_status.
10980 * function.c (free_machine_status): Don't define.
10981 (free_after_compilation): Don't call free_machine_status.
10982 (ggc_mark_struct_function): Mark f->machine. Call
10983 mark_machine_status only on non-NULL pointers.
10984 * system.h: Poison free_machine_status.
10985 * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
10986 struct machine_function.
10987 (xtensa_free_machine_status): Delete.
10988 (override_options): Don't set free_machine_status.
10989 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
10990 free_machine_status.
10991 (rs6000_init_machine_status): Use GC on struct machine_function.
10992 (rs6000_free_machine_status): Delete.
10993 * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
10995 (ia64_mark_machine_status): Likewise.
10996 (ia64_free_machine_status): Delete.
10997 (ia64_override_options): Don't set free_machine_status.
10998 * config/i386/i386.c (override_options): Don't set
10999 free_machine_status.
11000 (ix86_init_machine_status): Use GC on struct machine_function.
11001 (ix86_mark_machine_status): Likewise.
11002 (ix86_free_machine_status): Delete.
11003 * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
11005 (d30v_mark_machine_status): Likewise.
11006 (d30v_free_machine_status): Delete.
11007 (d30v_init_expanders): Don't set free_machine_status.
11008 * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
11010 (arm_init_machine_status): Likewise.
11011 (arm_free_machine_status): Delete.
11012 (arm_init_expanders): Don't set free_machine_status.
11013 * config/alpha/alpha.c (override_options): Don't set
11014 free_machine_status.
11015 (alpha_init_machine_status): Use GC on struct machine_function.
11016 (alpha_mark_machine_status): Likewise.
11017 (alpha_free_machine_status): Delete.
11019 * varasm.c (compare_constant): Fix typo.
11021 * varasm.c: Don't include obstack.h.
11022 (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
11023 (struct rtx_const): Give substructures names, improve formatting.
11024 (struct constant_descriptor): Delete.
11025 (struct constant_descriptor_tree): New, based on constant_descriptor.
11026 (const_hash_table): Is a hash table of trees.
11027 (mark_const_hash_entry): Is used for hashes of trees. Mark
11028 constant_descriptor_tree structure.
11029 (mark_const_str_htab_1): Mark deferred_string structure.
11030 (compare_constant): Rewrite to compare trees.
11031 (compare_constant_1): Delete.
11032 (record_constant): Delete.
11033 (record_constant_1): Delete.
11034 (output_constant_def): Use struct constant_descriptor_tree.
11035 Don't duplicate trees twice.
11036 (struct constant_descriptor_rtx): New.
11037 (struct pool_constant): Used for rtx constants.
11038 (init_varasm_status): Update for change to struct varasm_status.
11039 (mark_varasm_status): Likewise.
11040 (free_varasm_status): Delete.
11041 (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
11042 (record_constant_rtx): Likewise.
11043 (mem_for_const_double): Update to use struct constant_descriptor_rtx.
11044 (force_const_mem): Likewise.
11045 * Makefile.in (varasm.o): Doesn't depend on obstack.h.
11046 * function.c (free_after_compilation): Don't use free_varasm_status.
11047 * function.h: Don't prototype free_varasm_status.
11049 * ggc-common.c (ggc_realloc): Handle X being NULL.
11051 * ggc-common.c (ggc_realloc): New function.
11052 * ggc.h: Prototype it.
11053 * emit-rtl.c (free_emit_status): Delete.
11054 (init_emit): Allocate emit subarrays using GC.
11055 (gen_reg_rtx): Reallocate subarrays using GC.
11056 (init_emit): Use GC to allocate 'struct emit_status' and its
11058 (mark_emit_status): Mark structure and its subarrays.
11059 * stmt.c (free_stmt_status): Delete.
11060 * expr.c (free_expr_status): Delete.
11061 * function.h: Remove prototypes for deleted functions.
11062 * function.c (free_after_compilation): Don't use deleted functions.
11063 Don't call free() on x_parm_reg_stack_loc.
11064 (free_after_parsing): Don't use free_stmt_status.
11065 (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
11066 (mark_function_status): Mark x_parm_reg_stack_loc.
11068 * varasm.c (init_varasm_status): Use GC to allocate
11069 'struct varasm_status' and its fields x_const_rtx_hash_table
11070 and x_const_rtx_sym_hash_table.
11071 (mark_varasm_status): Mark them.
11072 (free_varasm_status): Use GC to free them.
11073 * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
11074 (mark_expr_status): Mark the structure itself.
11075 (free_expr_status): Use GC to free the structure.
11076 * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
11077 (mark_stmt_status): Mark the 'struct stmt_status' itself.
11078 (init_stmt_for_function): Allocate the structure for GC.
11080 * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
11081 (equate_type_number_to_die): Likewise.
11082 * tree.h (TYPE_SYMTAB_DIE): New macro.
11083 (struct die_struct): Predeclare.
11084 (struct tree_type): Add field symtab.die. Add a tag
11085 to the union type of field symtab.
11087 * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
11088 'struct rtvec_def *', not 'struct rtvec_def'.
11090 * function.h (original_arg_vector): Make a real rtvec.
11091 * function.c (ggc_mark_struct_function): Adjust.
11092 * integrate.c (expand_inline_function): Adjust.
11094 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
11096 * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
11097 (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
11098 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
11099 (TARGET_VERSION_CPU): Define according to the
11101 (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
11102 TARGET_VERSION_CPU.
11103 (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
11104 if TARGET_SHMEDIA64.
11105 (LINK_DEFAULT_CPU_EMUL): Define according to the
11107 (SUBTARGET_LINK_EMUL_SUFFIX): Define.
11108 (SUBTARGET_LINK_SPEC): Define.
11109 (LINK_SPEC): Use SH_LINK_SPEC.
11110 (ASM_SPEC): Remove.
11111 (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
11112 (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
11113 and TARGET_SHMEDIA64 which abort, for now.
11114 * config/sh/t-netbsd-sh5: New file.
11115 * config/sh/t-netbsd-sh5-32: New file.
11116 * config/sh/t-netbsd-sh5-64: New file.
11118 2002-06-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
11119 Richard Henderson <rth@redhat.com>
11121 * config/alpha/alpha.c (reg_or_const_int_operand): New.
11122 (some_operand, input_operand): Accept CONST_VECTOR.
11123 (alpha_extra_constraint): Add 'W'.
11124 (alpha_expand_zap_mask): New.
11125 (alpha_expand_builtin_vector_binop): New.
11126 (enum alpha_builtin): New.
11127 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
11128 (alpha_init_builtins, alpha_expand_builtin): New.
11129 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
11130 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
11131 (PREDICATE_CODES): Update.
11132 * config/alpha/alpha-protos.h: Update.
11133 * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
11134 UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
11135 (movv8qi, movv8qi_fix, movv8qi_nofix): New.
11136 (movv4hi, movv4hi_fix, movv4hi_nofix): New.
11137 (movv2si, movv2si_fix, movv2si_nofix): New.
11138 (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
11139 (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
11140 (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
11141 builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
11142 builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
11143 builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
11144 builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
11145 pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
11146 builtin_unpkbw, unpkbw): New.
11147 * doc/extend.texi (Alpha Built-in Functions): New.
11149 2002-06-03 Richard Henderson <rth@redhat.com>
11151 * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
11152 USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
11154 2002-06-03 Richard Henderson <rth@redhat.com>
11156 * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
11158 * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
11159 (const0_operand): New.
11160 (reg_or_fp0_operand, fp0_operand): Remove.
11161 * config/alpha/alpha.h (PREDICATE_CODES): Update.
11162 * config/alpha/alpha-protos.h: Update.
11163 * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
11164 and fp0_operand with reg_or_0_operand and const0_operand.
11166 2002-06-03 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
11168 * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
11170 2002-06-03 Roger Sayle <roger@eyesopen.com>
11172 * gcse.c (cprop_jump): Use single_set to get the pattern
11173 from the setcc argument.
11175 2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
11177 * diagnostic.h (diagnostic_count): Move from output_buffer to
11178 diagnostic_context.
11179 (diagnostic_kind_count): Adjust definition.
11181 Mon Jun 3 19:11:53 CEST 2002 Jan Hubicka <jh@suse.cz>
11183 * except.c (except.c): Do not rebuild CFG.
11184 * toplev.c (rest_of_compilation): Recompute CFG after sibcall
11187 Mon Jun 3 11:53:01 CEST 2002 Jan Hubicka <jh@suse.cz>
11189 * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
11190 * toplev.c: Include cfglahout.h
11191 * Makefile.in (toplev.c): Add dependnecy.
11193 2002-06-03 Neil Booth <neil@daikokuya.demon.co.uk>
11195 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
11196 (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
11197 (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
11199 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
11201 * config/ns32k/netbsd.h: Update copyright years.
11202 (TARGET_OS_CPP_BUILTINS): Define.
11203 (CPP_PREDEFINES): Remove.
11204 * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
11205 (TARGET_CPU_CPP_BUILTINS): Define.
11207 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
11209 * emit-rtl.c: Fix formatting.
11210 * errors.h: Likewise.
11211 * except.c: Likewise.
11212 * explow.c: Likewise.
11213 * expmed.c: Likewise.
11214 * expr.c: Likewise.
11215 * expr.h: Likewise.
11217 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
11219 * config/h8300/elf.h: Fix formatting.
11220 * config/h8300/rtems.h: Likewise.
11222 2002-06-03 Jason Thorpe <thorpej@wasabisystems.com>
11224 * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
11226 2002-06-02 Tom Tromey <tromey@redhat.com>
11228 * fixinc/fixincl.x: Rebuilt.
11229 * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
11231 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11234 * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
11235 * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
11236 * mvs.h: Similarly.
11239 Mon Jun 3 00:18:20 CEST 2002 Jan Hubicka <jh@suse.cz>
11241 * final.c (final): Allow notes to not have computed addresses;
11242 kill no longer needed STACK_REGS ifdef.
11244 2002-06-02 Richard Henderson <rth@redhat.com>
11246 * gcse.c (bypass_conditional_jumps): Fix typo last change.
11248 Sun Jun 2 23:02:11 CEST 2002 Jan Hubicka <jh@suse.cz>
11250 * loop.c (emit_prefetch_instructions): Properly place the address
11253 Sun Jun 2 22:56:48 CEST 2002 Jan Hubicka <jh@suse.cz>
11255 * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
11256 (set_block_for_insn): Turn into macro.
11257 * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
11258 * cfglayout.c (insn_scopes): Kill.
11259 (scope_to_insns_initialize): Do not use insn_scopes.
11260 (scope_to_insns_finalize): Likewise.
11261 (duplicate_insn_chain): Likewise.
11262 (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
11263 * cfgrtl.c (basic_block_for_insn): Kill.
11264 (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
11265 (create_basic_block_structure): Use reorder_insns.
11266 (compute_bb_for_insn): Do not use basic_block_for_insn.
11267 (merge_blocks_nomove): Likewise.
11268 (update_bb_for_insn): Likewise.
11269 (verify_flow_info): Likewise.
11270 (set_block_for_insn): Kill.
11271 * combine.c (try_combine): Update gen_rtx_INSN call.
11272 * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
11273 (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
11275 (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
11276 (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
11278 (emit_insns_after): Simplify.
11279 (emit_copy_of_insn_after): Copy scope.
11280 * final.c (final_start_function): Lower scopes.
11281 * flow.c (check_function_return_warnings): Do not rely on deleted insn.
11282 * integrate.c (copy_insn_list): Cope scopes.
11283 * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
11284 * loop.c (loop_optimize): Do not care block notes.
11285 * print-rtl.c (print_rtx): Print BB.
11286 * recog.c (apply_change_group): Simplify.
11287 * rtl.c (copy_rtx): Handle 'B'.
11288 * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
11289 * rtl.h (Field accessors): Update indexes.
11290 * sched-ebb.c (schedule_ebbs): Do not lower notes.
11291 * sched-rgn.c (schedule_insns): Likewise.
11292 * toplev.c (rest_of_compilation): Lower notes.
11293 * unroll.c (unroll_loop): Do not care scoping notes.
11294 (copy_loop_body): Copy scopes.
11296 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11299 * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
11301 * rtems.h: Similarly.
11302 * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
11303 EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
11304 (TARGET_CPU_CPP_BUILTINS): Use.
11306 2002-06-02 Richard Henderson <rth@redhat.com>
11308 * alias.c: Include target.h.
11309 (mark_constant_function): Use targetm.binds_local_p instead
11310 of checking TREE_PUBLIC ourselves.
11311 * Makefile.in (alias.o): Add TARGET_H.
11313 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11315 * c-lex.c: Update copyright and file description.
11317 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11319 * config/fr30/fr30.h: Update to new CPP macros.
11321 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11323 * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
11325 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11326 Zack Weinberg <zack@codesourcery.com>
11328 * c-common.c (c_common_init): Override cpplib's default
11329 warn_long_long setting.
11330 * c-lex.c (lex_number): Replace with interpret_integer,
11331 interpret_float, narrowest_unsigned_type and
11332 narrowest_signed_type, taking advantage of the new
11333 cpplib functionality.
11334 * cpperror.c (_cpp_begin_message): If a warning is turned
11335 into an error, avoid printing "warning:".
11336 * cppexp.c (cpp_num_sign_extend): New.
11337 * cppinit.c: Update comment.
11338 * cpplib.h (cpp_num_sign_extend): New.
11339 * tree.h: Update comment.
11341 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11343 * diagnostic.h (struct diagnostic_context): Add new member
11345 (internal_error_function): Remove declaration.
11346 * diagnostic.c (internal_error_function): Remove definition..
11347 (internal_error): Adjust use.
11349 2002-06-02 Richard Henderson <rth@redhat.com>
11351 * rtl.h (CC0_P): New.
11352 * gcse.c (cprop_jump): Use it with single_set. Tweak dump text.
11353 (cprop_insn): Allow any mode register; use CC0_P. CSE out single_set.
11354 (bypass_block): Save old dest block for dump text.
11355 (bypass_conditional_jumps): Allow any mode register; use CC0_P.
11356 Allow only true SET insns, not single_set.
11358 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11360 * diagnostic.c (diagnostic_finish): Rename to output_flush.
11361 (clear_disgnostic_info): Rename to output_clear_data. Use false
11362 instead of 0 for boolean value.
11363 Adjust function call throughout.
11365 Sun Jun 2 19:15:27 CEST 2002 Jan Hubicka <jh@suse.cz>
11367 * cfgrtl.c (commit_one_edge_insertion): Fix warning.
11368 * gcse.c (bypass_conditional_jumps): CSE out single_set call.
11370 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11372 * d30v.h (CPP_PREDEFINES): Replace with
11373 (TARGET_CPU_CPP_BUILTINS): New.
11375 2002-06-02 Roger Sayle <roger@eyesopen.com>
11377 * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
11379 Sun Jun 2 12:11:52 CEST 2002 Jan Hubicka <jh@suse.cz>
11381 * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
11383 2002-06-02 Richard Henderson <rth@redhat.com>
11385 * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
11387 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
11389 Support for C++ constructors/destructors.
11390 * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
11391 instead of looping if main() returns.
11392 (asm_file_start): Output global symbols that cause .data and .bss
11393 initialization code to be linked in, unconditionally for now.
11394 (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
11395 * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
11396 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11398 * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
11399 (__tablejump__): New.
11400 (__do_copy_data, __do_clear_bss): New.
11401 (__do_global_ctors, __do_global_dtors): New.
11402 * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
11405 2002-06-02 Neil Booth <neil@daikokuya.demon.co.uk>
11407 * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
11408 (CPP_SPEC, CPP_PREDEFINES): Kill.
11409 * c4x/rtems.h (CPP_PREDEFINES): Kill.
11410 (TARGET_OS_CPP_BUILTINS): New.
11412 Sat Jun 1 23:29:51 CEST 2002 Jan Hubicka <jh@suse.cz>
11414 * Makefile.in (tracer.o): New.
11415 * params.def (TRACER_*): New options.
11416 * rtl.h (tracer): Declare.
11417 * timevar.def (TV_TRACER): New.
11418 * toplev.c (dump_file_index): Add DFI_tracer.
11419 (dump_file_info): Add tracer.
11420 (flag_tracer): New.
11421 (lang_indepdenent_options): Add tracer.
11422 (rest_of_compilation): Call tracer.
11423 * tracer.c: New file.
11424 * invoke.texi (-ftracer): Document.
11425 (--param tracer-*): Document.
11427 2002-06-01 Daniel Berlin <dberlin@dberlin.org>
11429 * tree-inline.c (expand_call_inline): Make the statement
11430 expression we generate have a COMPOUND_STMT.
11432 2002-06-01 Roger Sayle <roger@eyesopen.com>
11434 * gcse.c (cprop_cc0_jump): Function deleted.
11435 (cprop_jump): Take an additional argument which is the possibly
11436 NULL cc setting insn immediately before the conditional jump.
11437 When a MODE_CC set is present, substitute it into the JUMP_INSN
11438 before attempting the constant propagation.
11439 (cprop_insn): Recognize cc setters followed by conditional jumps
11440 as a special case. Use cprop_jump instead of cprop_cc0_jump.
11441 (cprop_one_pass): Call bypass_conditional_jumps if altering jumps.
11442 (find_bypass_set): New function based upon find_avail_set used by
11443 cprop, but finds constant expressions available at the end of
11445 (bypass_block): New function. Given a basic block that begins
11446 with a conditional jump and multiple incoming edges, perform
11447 the jump bypass optimization.
11448 (bypass_conditional_jumps): New function. Call bypass_block with
11449 each suitable basic block in the CFG using a simple single pass.
11451 2002-06-01 Roger Sayle <roger@eyesopen.com>
11453 * tree.c (real_minus_onep): New function to test for -1.0.
11454 * fold-const.c (fold) [MULT_EXPR]: Optimize -1.0*x into -x.
11456 2002-06-01 Roger Sayle <roger@eyesopen.com>
11458 * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
11459 and "!p && !q" into "(p|q) == 0" under suitable conditions.
11461 2002-06-01 Andreas Jaeger <aj@suse.de>
11463 * cppexp.c (cpp_classify_number): Cast precission to int for
11464 correct printf format.
11466 2002-06-01 Marek Michalkiewicz <marekm@amelek.gda.pl>
11468 * config/avr/avr.c (avr_mcu_types): Remove devices that were once
11469 expected, but don't really exist: atmega83, atmega85, attiny10.
11470 * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
11471 emulations for all devices.
11472 (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
11473 * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
11475 2002-06-01 Kazu Hirata <kazu@cs.umass.edu>
11477 * config/h8300/h8300-protos.h: Add a prototype for
11478 h8300_shift_needs_scratch_p.
11479 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
11480 * config/h8300/h8300.h (OK_FOR_R): New.
11481 (OK_FOR_S): Likewise.
11482 (OK_FOR_T): Likewise.
11483 (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
11484 * config/h8300/h8300.md (anonymous shift patterns): Use
11485 constraints R, S, and T.
11487 Sat Jun 1 11:23:22 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11489 * basic-block.h (struct basic_block_def): New field loop_father.
11490 (BB_VISITED): New flag.
11491 (struct loop): New field pred, removed field shared.
11492 (struct loops): New field parray.
11493 (LOOP_EXITS_DOMS): Removed.
11494 (flow_loop_tree_node_add, flow_loop_tree_node_remove,
11495 flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
11496 dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
11497 add_bb_to_loop, remove_bb_from_loops, find_common_loop,
11498 verify_loop_structure): Declare.
11499 * cfg.c (entry_exit_blocks): Initialize loop_father field.
11500 * cfganal.c (dfs_enumerate_from): New function.
11501 * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
11502 (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
11503 flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
11504 flow_loop_dump, flow_loops_dump, flow_loops_free,
11505 flow_loop_tree_node_add, flow_loop_level_compute,
11506 flow_loops_level_compute, flow_loop_scan, flow_loops_update,
11507 flow_loop_outside_edge_p): Modified for new infrastructure.
11508 (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
11509 redirect_edge_with_latch_update, flow_loop_free): New static functions.
11510 (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
11511 get_loop_body, add_bb_to_loop, remove_bb_from_loops,
11512 find_common_loop, verify_loop_structure, loop_latch_edge,
11513 loop_preheader_edge): New functions.
11514 (flow_loops_cfg_dump): Do not show dominators, as this information
11515 does not remain up to date long.
11516 (flow_loops_find): Store results in new format.
11517 * predict.c (propagate_freq, estimate_probability,
11518 estimate_loops_at_level, estimate_bb_frequencies): Use new loop
11521 2002-06-01 Alan Lehotsky <apl@alum.mit.edu>
11523 * except.c (nothrow_function_p): Walk epilogue delay list
11524 checking the insn, not the chain for potential throws.
11526 2002-05-31 Zack Weinberg <zack@codesourcery.com>
11528 * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
11529 (install): Refer to install-cpp directly.
11530 (uninstall-cpp): Folded into uninstall rule.
11531 * configure.in: Delete all code relating to --disable-cpp.
11532 * configure: Regenerate.
11533 * config/t-install-cpp: Delete.
11535 2002-05-31 Richard Henderson <rth@redhat.com>
11537 * configure.in (HAVE_AS_TLS): Add alpha tests.
11538 * configure: Rebuild.
11539 * config/alpha/alpha.c (TARGET_AS_TLS): New.
11540 (alpha_tls_size, alpha_tls_size_string): New.
11541 (overide_options): Set it. Always install machine_status hooks.
11542 (input_operand): Accept got tls predicates.
11543 (local_symbol_p): Merge into ...
11544 (local_symbolic_operand): ... here. Reject tls symbols.
11545 (global_symbolic_operand): Likewise.
11546 (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
11547 (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
11548 (tp16_symbolic_operand, tp32_symbolic_operand): New.
11549 (gottp_symbolic_operand, tls_symbolic_operand_type): New.
11550 (alpha_encode_section_info): Handle TLS symbols.
11551 (alpha_strip_name_encoding): Likewise.
11552 (alpha_legitimate_address_p): Likewise.
11553 (alpha_legitimize_address): Likewise.
11554 (alpha_expand_mov): Early exit to avoid nop moves.
11555 (struct machine_function): Move from unicosmk.h. Add some_ld_name.
11556 (alpha_init_machine_status, alpha_mark_machine_status,
11557 alpha_free_machine_status): Always define.
11558 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
11559 (print_operand, print_operand_address): Add TLS relocs.
11560 * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
11561 (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
11562 (TARGET_SWITCHES): Add -mtls-kernel.
11563 (alpha_tls_size, alpha_tls_size_string): New.
11564 (TARGET_OPTIONS): Add -mtls-size=.
11565 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
11566 REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
11567 (ASM_OUTPUT_LABELREF): Skip %.
11568 (PRINT_OPERAND_PUNCT_VALID_P): Add &.
11569 (PREDICATE_CODES): Update.
11570 * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
11571 UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
11572 UNSPEC_TP, UNSPECV_SET_TP): New.
11573 (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
11574 adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
11575 set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
11576 movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
11577 (call_value_osf_2_er): Accept anything as op4.
11578 * config/alpha/alpha-protos.h: Update.
11579 * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
11581 2002-05-31 Zack Weinberg <zack@codesourcery.com>
11583 * cppinit.c (append_include_chain): Always pay attention to
11584 cxx_aware when setting new->sysp. Remove ATTRIBUTE_UNUSED
11585 marker on argument.
11587 2002-05-31 Kazu Hirata <kazu@cs.umass.edu>
11589 * target.h: Fix formatting.
11590 * timevar.h: Likewise.
11591 * tlink.c: Likewise.
11592 * toplev.c: Likewise.
11593 * toplev.h: Likewise.
11594 * tree.c: Likewise.
11595 * tree-dump.h: Likewise.
11596 * tree.h: Likewise.
11597 * tree-inline.h: Likewise.
11598 * unroll.c: Likewise.
11599 * unwind-dw2.c: Likewise.
11600 * unwind-dw2-fde.c: Likewise.
11601 * unwind-dw2-fde-glibc.c: Likewise.
11602 * unwind-dw2-fde.h: Likewise.
11603 * unwind.h: Likewise.
11604 * unwind-sjlj.c: Likewise.
11605 * varasm.c: Likewise.
11606 * varray.h: Likewise.
11607 * vmsdbg.h: Likewise.
11608 * vmsdbgout.c: Likewise.
11609 * xcoffout.h: Likewise.
11611 2002-05-31 Igor Shevlyakov <igor@microunity.com>
11613 * expr.c (compare_from_rtx): Generate comparison between op0 and op1
11614 rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
11616 2002-05-31 Matthew Woodcraft <mattheww@chiark.greenend.org.uk>
11618 * gcc.c (cpp_unique_options): Remove "-d" options.
11619 (cpp_debug_options): New spec string.
11620 (default_compilers): Use it.
11621 * objc/lang-specs.h: Likewise.
11623 2002-05-31 Nathanael Nerode <neroden@twcny.rr.com>
11625 * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
11626 BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
11627 * gcc/mklibgcc.in: Likewise.
11628 * gcc/config/arc/t-arc: Likewise.
11629 * gcc/configure.in: Likewise.
11630 * gcc/configure: Regenerate.
11632 2002-05-31 Stan Shebs <shebs@apple.com>
11633 Turly O'Connor <turly@apple.com>
11635 * c-decl.c (struct binding_level): Change int field n_incomplete
11636 to tree list incomplete_list.
11637 (clear_binding_level): Init field with NULL.
11638 (pushdecl): Add incomplete type to list.
11639 (mark_binding_level): Mark the incomplete list.
11640 (finish_struct): Scan the incomplete list for types instead
11641 of all decls in the current binding level.
11643 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
11645 * pa.c (output_millicode_call): Add missing '%' characters.
11646 (output_call): Likewise.
11648 2002-05-31 David Edelsohn <edelsohn@gnu.org>
11650 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
11651 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11653 2002-05-31 Alan Lehotsky <apl@alum.mit.edu>
11655 * varasm.c (mark_constant_pool): Walk epilogue delay list
11656 checking the insn, not the chain for potential constants.
11658 Fri May 31 12:38:43 2002 J"orn Rennecke <joern.rennecke@superh.com>
11660 * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
11662 Fri May 31 13:50:19 CEST 2002 Jan Hubicka <jh@suse.cz>
11664 * i386.c (classify_argument): Properly handle base types.
11666 * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
11667 Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
11670 Fri May 31 13:37:54 CEST 2002 Jan Hubicka <jh@suse.cz>
11672 * gcse.c (gcse_emit_move_after): New.
11673 (pre_delete, hoist_store): Use it.
11675 * reload1.c (emit_input_reload_insns): Use constrain_operands
11676 instead of constraint_accepts_reg_p to verify optimization.
11677 (constraint_accepts_reg_p): Kill
11679 * reload1.c (reload_cse_delete_noop_set): Kill.
11680 (reload_cse_simplify): use delte_insn_and_edges.
11682 2002-05-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11684 * cfgloop.c (flow_loops_find): Initialize first and last fields
11687 2002-05-31 Neil Booth <neil@daikokuya.demon.co.uk>
11689 * c-common.c (builtin_define_std): Correct logic.
11691 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
11693 * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
11694 (output_call): Likewise.
11696 2002-05-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
11698 * pa.c: Move output.h include after tree.h include.
11699 (pa_asm_output_mi_thunk): Constify identifier lab.
11701 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
11703 * config/ns32k/ns32k.h: Define named constants for the
11704 bits in target_flags and use them.
11705 * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
11707 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11709 * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
11710 architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
11711 * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
11712 default scheduling model.
11713 * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
11714 * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
11715 * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
11716 * doc/install.texi (hppa*-*-*): Document default scheduling.
11718 2002-05-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
11720 * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
11722 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
11724 * config.gcc (ns32k-*-netbsd*): Set tm_file to
11725 "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
11726 * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
11727 netbsd.h, or netbsd-aout.h.
11729 2002-05-31 Jason Thorpe <thorpej@wasabisystems.com>
11731 * longlong.h (count_trailing_zeros): Add missing \, and clean up
11732 whitespace in __ns32000__ case.
11734 2002-05-31 Aldy Hernandez <aldyh@redhat.com>
11736 * expr.c (expand_expr): Output partially zeroed out vectors with
11737 output_constant_def.
11739 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
11741 * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
11743 (shl*-*-netbsdelf*): New targets.
11744 * config/sh/netbsd-elf.h: New file.
11745 * config/sh/t-netbsd: New file.
11747 2002-05-30 Richard Henderson <rth@redhat.com>
11748 Eric Botcazou <ebotcazou@multimania.com>
11750 PR optimization/6822
11751 * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
11752 to unsigned int for op1 comparisons. Use gen_int_mode.
11754 2002-05-30 Eric Botcazou <ebotcazou@multimania.com>
11756 * expmed.c (const_mult_add_overflow_p): New.
11757 * expr.h: Declare it.
11758 * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
11759 Don't eliminate the biv if the giv has a constant multiplier and
11760 the rhs argument of the comparison does satisfy the predicate.
11761 Use expand_mult_add to compute the replacement constant.
11763 2002-05-30 Osku Salerma <osku@iki.fi>
11765 * c-common.c (c_common_attribute_table): Add "may_alias" entry.
11766 (c_common_get_alias_set): Handle it.
11767 * doc/extend.texi: Document it.
11769 2002-05-30 Richard Henderson <rth@redhat.com>
11771 * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11772 * toplev.c (process_options): Don't check it.
11773 * doc/tm.texi: Don't document it.
11774 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
11775 (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11776 * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
11777 frame pointer optimization if current_function_profile.
11779 2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
11781 * langhooks.c: Fix formatting.
11782 * langhooks.h: Likewise.
11784 * libgcc2.c: Likewise.
11785 * lists.c: Likewise.
11786 * local-alloc.c: Likewise.
11787 * loop.c: Likewise.
11788 * loop.h: Likewise.
11790 2002-05-30 Marc Espie <espie@openbsd.org>
11792 * config.gcc (sparc64-*-openbsd*): New.
11793 * config/sparc/openbsd1-64.h: New.
11794 * config/sparc/openbsd64.h: New.
11796 2002-05-30 Jeff Law <law@redhat.com>
11798 * flow.c (propagate_one_insn): Revise yesterday's patch. Delete
11799 a dead insn with a REG_RETVAL note when the entire libcall is not
11800 dead and remove the associated REG_LIBCALL note at the same time.
11802 Thu May 30 19:54:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
11804 * lcm.c (output.h): #include.
11805 (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
11806 as an ordinary block.
11807 (optimize_mode_switching): Don't pretend that the exit block is
11808 an ordinary block, or handle sucessors of entry block specially.
11809 Instead, split edges from entry block and to exit block, and
11810 put a computing definition on the thus gained post-entry-block,
11811 and a need on the pre-exit-block.
11813 Thu May 30 20:28:01 CEST 2002 Jan Hubicka <jh@suse.cz>
11815 * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
11816 * rtl.texi: Document 'B'
11818 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
11820 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
11822 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
11824 2002-05-30 Aldy Hernandez <aldyh@redhat.com>
11826 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11827 const0_rtx instead of NULL_RTX when in error.
11828 (altivec_expand_abs_builtin): Same.
11829 (rs6000_expand_binop_builtin): Same.
11830 (altivec_expand_predicate_builtin): Same.
11831 (altivec_expand_stv_builtin): Same.
11832 (rs6000_expand_ternop_builtin): Same.
11833 (altivec_expand_builtin): Same.
11835 2002-05-29 David S. Miller <davem@redhat.com>
11837 * rtl.h (clear_emit_caches): Delete.
11838 * integrate.c (output_inline_function): Don't call it.
11839 * emit-rtl.c (restore_emit_status, init_emit): Likewise.
11840 (clear_emit_caches): Delete definition.
11841 (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
11843 2002-05-30 Hans-Peter Nilsson <hp@bitrange.com>
11845 * config/mmix/mmix.c: Include real.h.
11846 (mmix_constant_address_p): Remove redundant test before switch.
11848 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11850 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
11851 only if not already defined.
11853 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
11855 * config/h8300/h8300-protos.h: Remove prototypes for
11856 ok_for_bclr and small_power_of_two.
11857 * config/h8300/h8300.c (small_power_of_two): Remove.
11858 (ok_for_blcr): Likewise.
11859 (fix_bit_operand): Make WHAT deal with an integer instead of a
11860 constraint character.
11861 * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
11862 (CONST_OK_FOR_P): Likewise.
11863 (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
11864 CONST_OK_FOR_P any more.
11865 * config/h8300/h8300.md (andqi3): Adjust to the new prototype
11866 of fix_bit_operand.
11867 (iorqi3): Likewise.
11868 (xorqi3): Likewise.
11870 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11872 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11873 (CPP_PREDEFINES): Make sure this is undefined.
11874 (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
11875 since it is no longer in CPP_PREDEFINES. Don't -U__MIPSEL__
11876 or -U__MIPSEB__ before defining one or the other. Instead,
11877 use %(subtarget_endian_default) if neither -EB nor -EL are
11879 (SUBTARGET_EXTRA_SPECS): Define.
11880 (SUBTARGET_CPP_SPEC): Remove __LONG64 handling. Use
11881 %(netbsd_cpp_spec).
11883 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
11885 * doc/md.texi (Patterns): Note pattern condition pitfall
11888 2002-05-29 Aldy Hernandez <aldyh@redhat.com>
11890 * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
11891 when TARGET_ALTIVEC. Move handling of generic unary, binary, and
11892 ternary operations from here...
11893 (rs6000_expand_builtin): ...to here.
11894 New argument expandedp.
11895 Change all instances of altivec_expand_binop_builtin to
11896 rs6000_expand_binop_builtin.
11897 (altivec_expand_unop_builtin): Rename to
11898 rs6000_expand_unop_builtin.
11899 (altivec_expand_binop_builtin): Rename to
11900 rs6000_expand_binop_builtin.
11901 (altivec_expand_ternop_builtin): Rename to
11902 rs6000_expand_ternop_builtin.
11904 2002-05-29 Richard Henderson <rth@redhat.com>
11906 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
11907 (TARGET_BI_ARCH): Likewise.
11908 * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
11909 (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
11910 (TARGET_64BIT_DEFAULT): Default to 0.
11911 (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
11913 2002-05-29 Richard Henderson <rth@redhat.com>
11915 * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
11916 (get_pc_thunk_name): New.
11917 (output_set_got): Use it.
11918 (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
11919 into linkonce sections.
11921 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11923 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11924 (CPP_PREDEFINES): Make sure this is undefined.
11925 (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
11926 (CPP_SUBTARGET_SPEC): Don't provide different versions for
11927 default-32 and default-64. Just always use %(netbsd_cpp_spec).
11928 (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
11929 cpp_subtarget_spec64. Add netbsd_cpp_spec.
11930 * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11931 (CPP_PREDEFINES): Make sure this is undefined.
11932 (SUBTARGET_EXTRA_SPECS): Define.
11933 (CPP_SPEC): Use %(netbsd_cpp_spec).
11935 2002-05-29 Jeff Law <law@redhat.com>
11937 * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
11939 * flow.c (propagate_one_insn): Do not remove a dead insn if it
11940 contains a REG_RETVAL note.
11942 * haifa-sched (sched_analyze): Remove another useless clearing
11943 of SCHED_GROUP_P I missed yesterday.
11945 * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
11946 * pa.c (pa_asm_output_mi_thunk): New function.
11947 * pa-protos.h (pa_asm_output_mi_thunk): Declare.
11949 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
11950 Marek Michalkiewicz <marekm@amelek.gda.pl>
11952 * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
11953 (avr_asm_only_p): Make non-static.
11954 (enum avr_arch): Remove.
11955 (avr_arch_types): New.
11956 (avr_mcu_types): Update.
11957 (avr_override_options): Use avr_arch_types table instead of switch.
11958 * avr.h (CPP_PREDEFINES): Die.
11959 (avr_base_arch_macro, avr_extra_arch_macro): New.
11960 (TARGET_CPU_CPP_BUILTINS): New.
11961 (CPP_SPEC, EXTRA_SPECS): Simplify.
11962 (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
11963 CPP_AVR5_SPEC): Die.
11965 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
11967 * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11968 NETBSD_OS_CPP_BUILTINS_AOUT.
11969 (SUBTARGET_EXTRA_SPECS): Define.
11970 (CPP_SPEC): Use %(netbsd_cpp_spec).
11972 2002-05-29 Richard Henderson <rth@redhat.com>
11974 * config/i386/i386.c (ix86_output_function_epilogue): New.
11975 (TARGET_ASM_FUNCTION_EPILOGUE): New.
11976 (pic_label_name): Remove.
11977 (pic_labels_used): New.
11978 (ix86_asm_file_end): Emit one pc load stub for each register used.
11979 (output_set_got): Generate deep pc load to any register.
11980 (ix86_select_alt_pic_regnum): New.
11981 (ix86_save_reg): Don't save pic register if we can find a valid
11982 call-clobbered replacement.
11983 (ix86_expand_prologue): If we found a valid replacement, renumber
11984 pic_offset_table_rtx.
11985 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
11986 pic_offset_table_rtx after reload.
11987 (REAL_PIC_OFFSET_TABLE_REGNUM): New.
11988 * config/i386/i386.md (set_got): Make insn, not expander.
11989 (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
11991 2002-05-29 Richard Henderson <rth@redhat.com>
11993 * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
11994 alignment for alloca.
11996 2002-05-29 Richard Henderson <rth@redhat.com>
11998 * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
11999 (print_operand_address): Only add rip for symbolic addresses
12000 for which we do not have another relocation type.
12002 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
12004 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12005 (EXTRA_SPECS): Add netbsd_cpp_spec.
12006 (CPP_SPEC): Use %(netbsd_cpp_spec).
12007 (CPP_PREDEFINES): Remove.
12008 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12009 (EXTRA_SPECS): Define.
12010 (CPP_SPEC): Use %(netbsd_cpp_spec).
12011 (CPP_PREDEFINES): Remove.
12013 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
12015 PR preprocessor/6844
12016 * cppmacro.c (cpp_macro_definition): Reserve space for terminating
12019 2002-05-29 Eric Christopher <echristo@redhat.com>
12021 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
12022 mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
12024 2002-05-29 Nick Clifton <nickc@cambridge.redhat.com>
12026 * config/fr30/fr30.md: Remove previous restriction on splits.
12027 Enforce conformance through gen_lowpart and cont_int_operand.
12028 * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
12029 as the assembler does not support ".bss".
12031 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
12033 * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
12034 (CPP_PREDEFINES): Remove.
12035 (SUBTARGET_EXTRA_SPECS): Define.
12036 (CPP_SPEC): Use %(netbsd_cpp_spec).
12037 * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
12038 (CPP_PREDEFINES): Remove.
12039 (SUBTARGET_EXTRA_SPECS): Define.
12040 (CPP_SPEC): Use %(netbsd_cpp_spec).
12041 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
12042 (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
12043 (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
12044 Add netbsd_cpp_spec.
12045 (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
12047 2002-05-29 Neil Booth <neil@daikokuya.demon.co.uk>
12048 Zack Weinberg <zack@codesourcery.com>
12050 * cppexp.c (cpp_num): Move to cpplib.h.
12051 (CPP_ERROR): Remove.
12052 (interpret_float_suffix, interpret_int_suffix): New.
12053 (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
12054 (cpp_classify_number, cpp_interpret_integer): New.
12055 (interpret_number): Remove.
12056 (eval_token): Update to use new routines.
12057 * cpphash.h (cpp_num_part): Move to cpplib.h.
12058 * cppinit.c (cpp_post_options): Set warn_long_long.
12059 * cpplib.h (struct cpp_options): Add warn_long_long.
12060 (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
12061 CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
12062 CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
12063 CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
12064 cpp_interpret_integer): New.
12066 2002-05-29 Joel Sherrill <joel@OARcorp.com>
12068 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
12070 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
12072 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
12073 NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
12074 (CPP_SUBTARGET_SPEC): Define.
12075 (SUBTARGET_EXTRA_SPECS): Define.
12076 (CPP_SPEC): Remove.
12078 2002-05-29 Chris Lattner <sabre@nondot.org>
12080 * ssa.c (rename_insn_1): Rename uses of undefined registers to
12081 prevent confusion if/when the register is defined.
12083 2002-05-29 Hans-Peter Nilsson <hp@axis.com>
12086 * config/cris/cris.md: Fix typos and thinkos in comments.
12087 ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
12088 second alternative.
12089 ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
12090 ("*mov_sideqi_mem"): Similar, but for operand 3.
12091 ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
12092 (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
12093 Remove spurious mode specifier on operand 2.
12095 2002-05-29 Kazu Hirata <kazu@cs.umass.edu>
12097 * config/h8300/h8300-protos.h: Remove the prototype for
12099 Add prototypes for single_one_operand and single_zero_operand.
12100 * config/h8300/h8300.c (o_operand): Remove.
12101 (single_one_operand): New.
12102 (single_zero_operand): Likewise.
12103 (print_operand): For 'V' operand, and the operand with 0xff.
12104 For 'V' and 'W' operands, do not and the bit position with 7.
12105 * config/h8300/h8300.md (various anonymous patterns): Replace
12106 use of exact_log2 with single_one_operand/single_zero_operand.
12108 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
12110 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
12112 2002-05-29 Ulrich Weigand <uweigand@de.ibm.com>
12114 * config/s390/s390.c (legitimate_pic_operand_p): Do not
12115 accept symbolic LARL operands.
12116 (s390_emit_epilogue): Do not set FRAME_RELATED_P on
12119 2002-05-29 Hartmut Penner <hpenner@de.ibm.com>
12121 * config/s390/s390.md (cmpstr_64/31): Mark whole
12122 input registers as used.
12124 2002-05-28 Richard Henderson <rth@redhat.com>
12126 * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
12127 not current_function_uses_pic_offset_table and
12128 current_function_uses_const_pool; examine current_function_profile.
12129 (ix86_expand_prologue): Likewise. Add pic_offset_table_rtx as
12130 input to blockage if needed.
12131 (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
12132 (legitimize_pic_address): Likewise. Set regs_ever_live for
12133 pic_offset_table_rtx when invoked during reload.
12134 * config/i386/i386.h (FINALIZE_PIC): Remove.
12135 * config/i386/i386.md (tablejump): Reformat. Do not set
12136 current_function_uses_pic_offset_table.
12137 (tls_global_dynamic, tls_local_dynamic_base): Likewise.
12138 (blockage): Accept anything as operand 0.
12140 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
12142 * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
12143 common CPP built-ins for all NetBSD a.out targets.
12144 * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
12145 common CPP built-ins for all NetBSD ELF targets.
12146 * config/netbsd.h: Add missing notice.
12147 (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
12148 for all NetBSD targets.
12149 (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
12150 for all NetBSD targets using an LP64 code model.
12151 (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
12154 2002-05-28 Richard Henderson <rth@redhat.com>
12156 * flow.c (update_life_info_in_dirty_blocks): Only do a partial
12157 update if UPDATE_LIFE_LOCAL.
12159 2002-05-28 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12161 * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
12163 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
12164 Jason R. Thorpe <thorpej@wasabisystems.com>
12166 config/sh reorganization to factor out endianness and coff:
12168 * config/sh/little.h: New file.
12169 * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
12170 defined, define to 0 to select big-endian.
12171 (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
12172 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12173 * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12174 * config/sh/t-be: New file.
12175 * config/sh/t-le: New file.
12177 * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
12178 (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
12179 (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
12180 (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
12181 (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
12182 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
12183 (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
12184 (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
12185 (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
12186 (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
12187 CPP_DEFAULT_CPU_SPEC. Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
12188 SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
12189 (LINK_SPEC): Define to SH_LINK_SPEC.
12190 (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
12191 (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
12192 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12193 (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
12194 (TARGET_ENDIAN_DEFAULT): Define if not already defined.
12195 * config/sh/coff.h: New file.
12196 (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
12197 (TARGET_OBJFMT_CPP_BUILTINS): Define.
12198 * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
12199 (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
12200 (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
12201 (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
12202 (PTRDIFF_TYPE): Likewise.
12203 ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
12204 (CPP_PREDEFINES): Don't define.
12205 (TARGET_OBJFMT_CPP_BUILTINS): Define.
12206 (LINK_SPEC): Define to SH_LINK_SPEC.
12207 (LINK_EMUL_PREFIX): Redefine.
12208 * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
12209 (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
12210 (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
12211 (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
12212 (TARGET_OS_CPP_BUILTINS): Define.
12213 (TARGET_DEFAULT): Redefine.
12214 (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
12215 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
12216 (LINK_SPEC): Don't redefine.
12217 (LINK_DEFAULT_CPU_EMUL): Redefine.
12218 (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
12219 * sh.c (sh_asm_named_section): Don't declare / define.
12220 * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
12221 * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
12222 (sh64-*-elf* tm_file): Likewise.
12223 (sh-*-rtemself* tm_file): Likewise.
12224 (sh-*-linux* tm_file): Likewise. Add sh/little.h.
12225 (sh-*-linux* tmake_file): Add sh/t-le.
12226 (sh-*-rtems* tm_file): Add sh/coff.h
12227 (sh-*-* tm_file): Likewise.
12229 Tue May 28 21:16:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
12231 * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
12232 CONSTANT_POOL_ADDRESS_P.
12234 * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
12236 2002-05-28 David Edelsohn <edelsohn@gnu.org>
12237 Jeff Law <law@redhat.com>
12239 * optabs.c (expand_binop): Fix nwords sign warnings.
12240 generate pseudo for add_optab.
12242 * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
12243 * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
12245 2002-05-28 Marc Espie <espie@openbsd.org>
12247 * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN): Remove,
12248 inherited from gas.h.
12249 (ASM_QUAD): Undef. OpenBSD does not support it.
12251 2002-05-28 Danny Smith <dannysmith@users.sourceforge.net>
12253 * doc/install.texi (binaries): Change mingw binaries
12254 link to www.mingw.org.
12256 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12258 * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
12260 2002-05-28 Richard Henderson <rth@redhat.com>
12262 * config/i386/i386.c (ix86_compute_frame_layout): Do not add
12263 bottom alignment for leaf functions.
12265 2002-05-28 Zack Weinberg <zack@codesourcery.com>
12267 * config/pa/milli32.S, config/pa/lib1funcs.asm,
12268 config/sparc/sol2-g1.asm: Delete unused files.
12270 2002-05-28 Richard Henderson <rth@redhat.com>
12272 * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
12274 * flow.c (calculate_global_regs_live): Rename call_used to
12275 invalidated_by_call. Initialize from regs_invalidated_by_call
12276 instead of call_used_regs.
12278 * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
12281 2002-05-28 Zack Weinberg <zack@codesourcery.com>
12283 * tree.h: Don't include real.h.
12284 Forward-declare struct realvaluetype.
12285 (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
12287 (TREE_REAL_CST_PTR): New accessor.
12288 (TREE_REAL_CST): Update.
12289 * real.h: Include machmode.h.
12290 (realvaluetype): Make it struct realvaluetype, not a typedef.
12291 (build_real): Prototype here.
12293 * tree.c: Include real.h.
12294 (build_real): Allocate the REAL_VALUE_TYPE as a separate
12295 object in GC memory, set TREE_REAL_CST_PTR to point to it.
12296 (build_real_from_int_cst): Use build_real.
12297 * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
12300 * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
12301 fold-const.c, print-tree.c, real.c: Include real.h.
12302 * Makefile.in: Update dependency lists.
12304 2002-05-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12306 * basic-block.h (last_basic_block): Declare.
12307 (expunge_block_nocompact): Declaration removed.
12308 (compact_blocks): Declare.
12309 * cfg.c (last_basic_block): New variable.
12310 (expunge_block_nocompact): Removed.
12311 (expunge_block): Do not compact basic blocks.
12312 (compact_blocks): New.
12313 * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
12315 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
12317 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
12318 real positions of blocks.
12319 (delete_unreachable_blocks): Simplified -- quadratic behavior now
12321 (cleanup_cfg): Compact blocks.
12322 * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
12323 basic_block_info varray.
12324 (flow_delete_block): Comment update.
12325 (back_edge_of_syntactic_loop_p): Modify position check code.
12326 (verify_flow_info): Update checking.
12327 * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
12328 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12329 (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
12330 indices no longer change.
12331 * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
12333 * predict.c (estimate_bb_frequencies): Remove unneccessary code.
12334 * profile.c (branch_prob): Compact blocks.
12335 * sched-rgn.c (find_rgns): Replace n_basic_blocks with
12338 2002-05-28 Kazu Hirata <kazu@cs.umass.edu>
12340 * config/h8300/h8300.md (two anonymous patterns): New.
12342 2002-05-28 David S. Miller <davem@redhat.com>
12344 * config/sparc/sparc.md (cpu): Tidy.
12345 (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
12347 (in_call_delay): Delete reference to 'return' type.
12348 (eligible_for_return_delay, in_return_delay, define_delay
12349 referencing those): Delete.
12350 (rest of file): Use new type attributes as appropriate.
12351 * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
12352 * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
12353 * config/sparc/ultra1_2.md (us1_single): New reservation.
12354 (us1_ialuX): Likewise.
12355 * config/sparc/ultra3.md (us3_single): Likewise.
12356 (us3_ialuX): Likewise.
12357 (us3_imul, us3_idiv): Tweak.
12359 2002-05-28 Richard Henderson <rth@redhat.com>
12361 * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
12364 2002-05-28 Richard Henderson <rth@redhat.com>
12366 * config.gcc: Obsolete mn10200.
12368 2002-05-28 Neil Booth <neil@daikokuya.demon.co.uk>
12370 * cppexp.c (interpret_number): Optimize for single-digit
12371 and less-than-half-precision cases.
12372 (num_trim, num_positive, num_div_op): Cast constants.
12374 2002-05-27 Bo Thorsen <bo@suse.de>
12376 * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
12377 3.1 branch. The file was made by Jakub Jelinek.
12378 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
12379 support so multilib doesn't break. And don't define this at all
12380 when -Dinhibit_libc is used.
12381 (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
12382 * config/i386/t-linux64: Implement full multilib support. Patch
12383 originally done by Andreas Jaeger and Jakub Jelinek.
12385 2002-05-27 Roger Sayle <roger@eyesopen.com>
12387 * c-common.c: Add support for __attribute__((nothrow)) to specify
12388 that a function cannot throw an exception (using TREE_NOTHROW).
12389 (handle_nothrow_attribute): New function to process this attribute.
12391 * doc/extend.texi: Document the new nothrow function attribute.
12393 2002-05-27 H.J. Lu (hjl@gnu.org)
12395 * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
12396 (num_positive): Likewise.
12397 (num_div_op): Likewise.
12399 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
12401 * c-common.c (c_common_init): Always use intmax_t.
12403 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
12405 * c-common.c (c_common_init): Use intmax_t for now.
12407 2002-05-24 Andrew Haley <aph@redhat.com>
12409 * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
12410 if T is a boolean type.
12412 2002-05-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12414 * basic-block.h (last_basic_block): Defined as synonym for
12416 * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
12417 flow_depth_first_order_compute, flow_preorder_transversal_compute,
12418 flow_dfs_compute_reverse_init): Replaced relevant occurences of
12419 n_basic_blocks with last_basic_block.
12420 * cfgbuild.c (make_edges): Likewise.
12421 * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
12422 * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
12423 * combine.c (combine_instructions): Likewise.
12424 * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
12425 iterative_dataflow_bitmap): Likewise.
12426 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12427 calc_idoms, idoms_to_doms): Likewise.
12428 * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
12430 * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
12431 compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
12432 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
12433 one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
12434 delete_null_pointer_checks, compute_code_hoist_vbeinout,
12435 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12436 compute_store_table, build_store_vectors): Likewise.
12437 * haifa-sched.c (sched_init): Likewise.
12438 * ifcvt.c (if_convert): Likewise.
12439 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12440 pre_edge_lcm, compute_available, compute_nearerout,
12441 compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
12443 * predict.c (estimate_probability, process_note_prediction,
12444 note_prediction_to_br_prob): Likewise.
12445 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
12446 * recog.c (split_all_insns, peephole2_optimize): Likewise.
12447 * regrename.c (copyprop_hardreg_forward): Likewise.
12448 * resource.c (init_resource_info): Likewise.
12449 * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
12450 init_regions, schedule_insns): Likewise.
12451 * ssa-ccp.c (ssa_const_prop): Likewise.
12452 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12453 * ssa.c (compute_dominance_frontiers,
12454 compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
12456 * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
12457 * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
12458 sizes consistently.
12460 Mon May 27 14:28:12 CEST 2002 Jan Hubicka <jh@suse.cz>
12462 * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
12464 * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
12465 hoist_insn_after, hoist_insn_to_edge): New.
12467 Mon May 27 12:14:02 CEST 2002 Jan Hubicka <jh@suse.cz>
12469 * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
12470 (PROP_FINAL): Include.
12471 * flow.c (life_analysis, update_life_info,
12472 init_propagate_block_info, mark_set_1, mark_used_rgs):
12473 Support SCAN_DEAD_STORE.
12475 2002-05-27 Neil Booth <neil@daikokuya.demon.co.uk>
12477 * c-common.c (c_common_init): Set CPP arithmetic precision.
12478 * cppexp.c (cpp_num_part): Move typedef ...
12479 * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
12480 * cppinit.c (cpp_create_reader): Default to host long arithmetic.
12481 (sanity_checks): Update.
12483 2002-05-26 Geoffrey Keating <geoffk@redhat.com>
12485 * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
12486 (mkheaders): New rule.
12487 (install-mkheaders): New rule.
12488 * configure.in (all_outputs): Add mkheaders.
12489 * configure: Regenerate.
12490 * mkheaders.in: New file.
12492 2002-05-26 Jakub Jelinek <jakub@redhat.com>
12494 * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
12496 2002-05-26 Andreas Jaeger <aj@suse.de>
12498 * cfg.c (dump_flow_info): Remove extra argument to fprintf.
12500 2002-05-26 Neil Booth <neil@daikokuya.demon.co.uk>
12502 * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
12503 right_shift): Remove.
12504 (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
12506 (struct op): Use cpp_num.
12507 (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
12508 num_part_mul, num_unary_op, num_binary_op, num_negate,
12509 num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
12510 num_div_op, num_lshift, num_rshift, append_digit): New.
12511 (interpret_number, parse_defined, eval_token, reduce): Update
12512 for two-integer arithmetic.
12513 (binary_handler): New typedef.
12515 (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
12516 (_cpp_parse_expr, reduce): Update to handle two-integers.
12517 * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
12519 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
12521 * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
12522 * config/avr/avr.c (jump_over_one_insn_p): Take length of the
12523 branch insn into account, do not assume 1.
12524 (avr_out_sbxx_branch): New function. Optimize cases of skipping
12525 over single word insn. Handle upper half of I/O space too.
12526 * config/avr/avr.md (*sbrx_branch): Use it.
12527 (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
12528 (*sbix_branch, *sbix_branch_bit7): Likewise.
12529 (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
12530 Use RTL peepholes to optimize register operand sign tests.
12532 2002-05-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
12534 * config/avr/avr.c (avr_asm_only_p): New variable.
12535 (avr_override_options): Set it here if AVR1.
12536 (asm_file_start): Test it here, report an error if set.
12538 2002-05-26 Kazu Hirata <kazu@cs.umass.edu>
12540 * alias.c: Fix formatting.
12541 * attribs.c: Likewise.
12542 * bb-reorder.c: Likewise.
12543 * bitmap.c: Likewise.
12544 * bitmap.h: Likewise.
12545 * builtins.c: Likewise.
12547 Sun May 26 14:00:44 CEST 2002 Jan Hubicka <jh@suse.cz>
12549 * reload.c (find_valid_class): Accept new argument DEST,
12550 choose class accordingly.
12551 (push_reload): Update callers.
12553 2002-05-26 Andreas Jaeger <aj@suse.de>
12555 * combine.c (combine_instructions): Do not indent #if for
12558 2002-05-25 Richard Henderson <rth@redhat.com>
12560 * c-pragma.c (apply_pragma_weak): Convert value identifier to
12561 string for decl_attributes.
12562 (handle_pragma_weak): Call assemble_alias if we're modifying
12565 2002-05-25 Richard Henderson <rth@redhat.com>
12568 * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
12569 using rtl instead of fprintf.
12570 * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
12571 * config/sparc/sparc-protos.h: Update.
12573 2002-05-25 Neil Booth <neil@daikokuya.demon.co.uk>
12575 * Makefile.in (C_COMMON_H): Fix.
12576 Update other targets.
12577 * c-common.c: Don't include c-lex.h.
12578 (builtin_define_with_value): Make static and prototype.
12579 (builtin_define_std): Move from c-lex.h.
12580 * c-common.h (init_c_lex): Move from c-lex.h.
12581 * c-decl.c: Don't include c-lex.h.
12582 (make_pointer_declarator): Move from c-parse.in.
12583 * c-lex.c: Don't include c-lex.h.
12585 * c-parse.in: Don't include c-lex.h; include c-pragma.h.
12586 (make_pointer_declarator): Move to c-decl.c.
12587 * c-pragma.c: Don't include c-lex.h.
12588 * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
12589 * c-tree.h (make_pointer_declarator): New.
12591 * passes.texi, tm.texi: Update.
12593 * Make-lang.in: Update and correct.
12594 * objc-act.c: Don't include c-lex.h or cpplib.h.
12596 * treetree.c: Don't include c-lex.h.
12598 * darwin-c.c: Don't include c-lex.h.
12599 * c4x/c4x-c.c: Don't include c-lex.h.
12600 * c4x/t-c4x: Update.
12601 * i370/i370-c.c: Don't include c-lex.h.
12602 * i370/t-i370: Update.
12603 * i960/i960-c.c: Don't include c-lex.h.
12604 * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
12605 * i960/t-960bare: Update.
12606 * i960/t-vxworks: Update.
12607 * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
12608 * rs6000/t-darwin: Update.
12609 * rs6000/t-rs6000-c-rule: Update.
12610 * v850/v850-c.c: Don't include c-lex.h.
12611 * v850/v850.c: Don't include c-lex.h or cpplib.h.
12614 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
12616 * tree.def: Fix typos.
12617 * doc/install.texi: Likewise.
12619 2002-05-25 Richard Henderson <rth@redhat.com>
12621 * configure.in (HAVE_AS_TLS): Add ia64 test.
12622 * configure: Rebuild.
12623 * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
12624 (override_options): Set it.
12625 (TARGET_HAVE_TLS): New.
12626 (sdata_symbolic_operand): Look for 's'.
12627 (tls_symbolic_operand): New.
12628 (ia64_expand_load_address): Abort for tls symbols.
12629 (gen_tls_get_addr): New.
12630 (gen_thread_pointer): New.
12631 (ia64_expand_move): Split out from movdi. Handle tls symbols.
12632 (rtx_needs_barrier): Add new unspecs.
12633 (ia64_encode_section_info): Handle tls symbols.
12634 (ia64_strip_name_encoding): Strip two encoding chars.
12635 * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
12636 (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
12637 (TARGET_OPTIONS): Add tls-size.
12638 (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
12639 * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
12640 UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
12641 (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
12642 (movsf, movdf): Likewise.
12643 (movdi_symbolic): Use match_scratch. Don't split if we won't
12644 have a scratch availiable.
12645 (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
12646 add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
12647 load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
12648 * config/ia64/ia64-protos.h: Update.
12649 * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
12650 sdata_symbolic_operand.
12651 (ASM_OUTPUT_LABELREF): Strip two characters.
12653 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
12655 * combine.c (simplify_set): Remove an unnecessary subreg.
12657 2002-05-25 Marek Michalkiewicz <marekm@amelek.gda.pl>
12659 * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
12661 * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
12663 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
12665 * toplev.c (output_clean_symbol_name): Fix another thinko. Gosh.
12667 2002-05-25 Roger Sayle <roger@eyesopen.com>
12669 * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
12670 (cond (compare x y) 0) into the equivalent (cond x y).
12672 2002-05-25 Gabriel Dos Reis <gdr@codesourcery.com>
12674 * toplev.c (output_clean_symbol_name): Use xstrdup. Fix thinko.
12676 2002-05-24 Zack Weinberg <zack@codesourcery.com>
12678 * config.gcc: Remove all stanzas for previously obsoleted
12679 systems. Where necessary, add explicit error stanzas to
12680 prevent removed systems from being misidentified as something
12681 else. Begin a fresh obsoletions list, with the systems that
12682 were reprieved last round.
12683 * doc/install.texi: Remove all mention of dead targets.
12684 * fixinc/mkfixinc.sh: Likewise.
12686 * config/arm/arm.h: Bit 31 of target_flags is no longer
12689 * config/1750a/1750a-protos.h, config/1750a/1750a.c,
12690 config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
12691 config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
12692 config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
12693 config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
12694 config/alpha/osf12.h, config/alpha/osf2or3.h,
12695 config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
12696 config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
12697 config/clipper/clipper-protos.h, config/clipper/clipper.c,
12698 config/clipper/clipper.h, config/clipper/clipper.md,
12699 config/clipper/clix.h, config/convex/convex-protos.h,
12700 config/convex/convex.c, config/convex/convex.h,
12701 config/convex/convex.md, config/convex/fixinc.convex,
12702 config/convex/proto.h, config/elxsi/elxsi-protos.h,
12703 config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
12704 config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
12705 config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
12706 config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
12707 config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
12708 config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
12709 config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
12710 config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
12711 config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
12712 config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
12713 config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
12714 config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
12715 config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
12716 config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
12717 config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
12718 config/m68k/altos3068.h, config/m68k/apollo68.h,
12719 config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
12720 config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
12721 config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
12722 config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
12723 config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
12724 config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
12725 config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
12726 config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
12727 config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
12728 config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
12729 config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
12730 config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
12731 config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
12732 config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
12733 config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
12734 config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
12735 config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
12736 config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
12737 config/mips/dec-osf1.h, config/mips/elflorion.h,
12738 config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
12739 config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
12740 config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
12741 config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
12742 config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
12743 config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
12744 config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
12745 config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
12746 config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
12747 config/ns32k/pc532-min.h, config/ns32k/pc532.h,
12748 config/ns32k/sequent.h, config/ns32k/tek6000.h,
12749 config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
12750 config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
12751 config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
12752 config/sparc/rtems.h, config/we32k/we32k-protos.h,
12753 config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
12756 2002-05-24 Richard Henderson <rth@redhat.com>
12758 * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
12759 * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
12760 * config/i386/i386.c (tls_model_chars): Add leading space.
12761 (tls_symbolic_operand): Don't bias by 1.
12762 (legitimize_address): Don't unbias by 1.
12764 2002-05-24 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
12766 * lcm.c (optimize_mode_switching): Change bb used as indices
12769 2002-05-24 Richard Henderson <rth@redhat.com>
12771 * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
12772 of update_life_info_in_dirty_blocks.
12774 2002-05-24 Jakub Jelinek <jakub@redhat.com>
12777 * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
12779 2002-05-24 Neil Booth <neil@daikokuya.demon.co.uk>
12781 PR preprocessor/6780
12782 * cppmacro.c (enter_macro_context): Clear state.angled_headers.
12784 2002-05-24 Jim Blandy <jimb@redhat.com>
12786 * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
12787 entry with a type code of zero, marking the end of the compilation
12790 2002-05-24 Richard Henderson <rth@redhat.com>
12792 * varasm.c (asm_output_bss): Always output one byte.
12793 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
12795 2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
12797 * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
12800 2002-05-24 Andreas Jaeger <aj@suse.de>
12802 * ggc-page.c (alloc_page): Cast variables of type size_t to
12803 unsigned long, adjust printf format string.
12804 (ggc_alloc): Likewise.
12805 (ggc_print_statistics): Likewise.
12806 (ggc_print_statistics): Correct printf format string for SCALE to
12809 2002-05-24 Danny Smith <dannysmith@users.sourceforge.net>
12811 * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
12813 2002-05-23 Gabriel Dos Reis <gdr@codesourcery.com>
12814 Zack Weinberg <zack@codesourcery.com>
12816 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
12818 * dwarf2out.c (lookup_filename): Properly quote filename in .file
12819 directive in assembly file.
12820 * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12821 * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12822 * config/pj/pj.h (ASM_FILE_START): Likewise.
12823 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12824 * config/avr/avr.c (asm_file_end): Likewise.
12825 * toplev.c (output_quoted_string): Handle possibly signed plain
12827 * toplev.h (output_clean_symbol_name): Declare
12828 * toplev.c (output_clean_symbol_name): Define.
12829 * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
12830 * config/1750a/1750a.h (ASM_FILE_START): Likewise.
12832 2002-05-24 Alan Modra <amodra@bigpond.net.au>
12834 * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
12836 2002-05-23 Vladimir Makarov <vmakarov@redhat.com>
12838 * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
12839 of size of unsigned.
12841 2002-05-23 Richard Henderson <rth@redhat.com>
12843 * configure.in (HAVE_AS_TLS): New test.
12844 * config.in, configure: Rebuild.
12845 * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
12846 (ix86_tls_dialect_string, ix86_tls_dialect): New.
12847 (override_options): Set it.
12848 (tls_model_chars, tls_symbolic_operand): New.
12849 (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
12850 (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
12851 (local_exec_symbolic_operand): New.
12852 (get_pic_label_name): Merge into output_set_got.
12853 (ix86_asm_file_end): Emit pic_label_name if defined.
12854 (legitimate_constant_p, constant_address_p): New.
12855 (legitimate_pic_operand_p): New.
12856 (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
12857 (legitimate_address_p): Likewise.
12858 (ix86_encode_section_info): Rename from i386_; handle tls decls.
12859 (ix86_strip_name_encoding): New.
12860 (get_thread_pointer): New.
12861 (legitimize_address): Handle tls symbols.
12862 (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
12864 (struct machine_function): Add some_ld_name.
12865 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
12866 (print_operand) [&]: Use it. Handle UNSPEC_TP.
12867 (output_addr_const_extra): New.
12868 (maybe_get_pool_constant): New.
12869 (ix86_split_to_parts): Use it.
12870 (ix86_expand_move): Handle tls symbols.
12871 (ix86_tls_get_addr): New.
12872 * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
12873 (TARGET_OPTIONS): Add tls-dialect.
12874 (CONSTANT_ADDRESS_P): Use new out-of-line function.
12875 (LEGITIMATE_CONSTANT_P): Likewise.
12876 (LEGITIMATE_PIC_OPERAND_P): Likewise.
12877 (TARGET_STRIP_NAME_ENCODING): New.
12878 (ASM_OUTPUT_LABELREF): New.
12879 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
12880 (OUTPUT_ADDR_CONST_EXTRA): New.
12881 (PREDICATE_CODES): Update.
12882 (ix86_tls_dialect, ix86_tls_dialect_string): New.
12883 * config/i386/i386.md: Regroup and renumber unspec constants.
12884 (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
12885 (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
12886 (tls_global_dynamic, tls_local_dynamic_base): New.
12887 (tls_local_dynamic_once): New.
12888 * config/i386/i386-protos.h: Update.
12890 2002-05-23 Richard Henderson <rth@redhat.com>
12892 * genemit.c (gen_insn): Print file:lineno comment before function.
12894 * gensupport.c (struct queue_elem): Add filename member.
12895 (queue_pattern): Initialize it; update all callers.
12896 (process_include): Don't free filename.
12897 (read_md_rtx): Set read_rtx_filename.
12899 2002-05-23 Hans Boehm <Hans_Boehm@hp.com>
12901 * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
12903 2002-05-23 Richard Henderson <rth@redhat.com>
12905 * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
12907 2002-05-23 Richard Henderson <rth@redhat.com>
12909 * doc/extend.texi (C++98 Thread-Local Edits): Update with
12910 commentary from Mark.
12912 2002-05-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12914 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
12915 Use FOR_EACH_BB macros to iterate over basic block chain.
12916 * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
12917 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
12919 * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
12920 find_unreachable_blocks, create_edge_list, verify_edge_list,
12921 remove_fake_edges, add_noreturn_fake_exit_edges,
12922 flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
12924 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
12925 find_sub_basic_blocks): Likewise.
12926 * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
12928 * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
12930 * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
12932 * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
12933 commit_edge_insertions, commit_edge_insertions_watch_calls,
12934 print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
12935 * combine.c (combine_instructions, reg_dead_at_p): Likewise.
12936 * conflict.c (conflict_graph_compute): Likewise.
12937 * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12938 df_modified_p, df_refs_unlink, df_dump): Likewise.
12939 * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
12940 * final.c (compute_alignments): Likewise.
12941 * flow.c (update_life_info, update_life_info_in_dirty_blocks,
12942 delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
12943 count_or_remove_death_notes): Likewise.
12944 * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
12945 compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
12946 classic_gcse, compute_transp, cprop, compute_pre_data,
12947 compute_transpout, invalidate_nonnull_info,
12948 delete_null_pointer_checks_1, delete_null_pointer_checks,
12949 compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
12950 compute_store_table, build_store_vectors, store_motion): Likewise.
12951 * global.c (global_conflicts, mark_elimination): Likewise.
12952 * graph.c (print_rtl_graph_with_bb): Likewise.
12953 * haifa-sched.c (sched_init): Likewise.
12954 * ifcvt.c (if_convert): Likewise.
12955 * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12956 compute_available, compute_nearerout, compute_rev_insert_delete,
12957 optimize_mode_switching): Likewise.
12958 * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
12959 * predict.c (estimate_probability, note_prediction_to_br_prob,
12960 propagate_freq, counts_to_freqs, expensive_function_p,
12961 estimate_bb_frequencies): Likewise.
12962 * profile.c (instrument_edges, get_exec_counts,
12963 compute_branch_probabilities, compute_checksum, branch_prob,
12964 find_spanning_tree): Likewise.
12965 * recog.c (split_all_insns, peephole2_optimize): Likewise.
12966 * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
12968 * regclass.c (scan_one_insn, regclass): Likewise.
12969 * regmove.c (mark_flags_life_zones, regmove_optimize,
12970 record_stack_memrefs): Likewise.
12971 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
12972 * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
12973 * resource.c (find_basic_block): Likewise.
12974 * sched-ebb.c (schedule_ebbs): Likewise.
12975 * sched-rgn.c (is_cfg_nonregular, build_control_flow,
12976 find_single_block_region, find_rgns, schedule_insns)
12977 * sibcall.c (optimize_sibling_and_tail_recursive_call)
12978 * ssa-ccp.c (optimize_unexecutable_edges,
12979 ssa_ccp_df_delete_unreachable_insns): Likewise.
12980 * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12981 * ssa.c (find_evaluations, compute_dominance_frontiers_1,
12982 rename_block, convert_to_ssa, compute_conservative_reg_partition,
12983 compute_coalesced_reg_partition, rename_equivalent_regs,
12984 convert_from_ssa): Likewise.
12985 * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
12986 process_for_unwind_directive): Likewise.
12988 * df.c (FOR_ALL_BBS): Removed.
12989 * gcse.c (struct null_pointer_info): Type of current_block field
12991 (struct reg_avail_info): Type of last_bb field changed.
12992 * config/ia64/ia64.c (block_num): Removed.
12993 (need_copy_state): Type changed.
12996 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
12998 * cppinit.c (mark_named_operators): Split out from init_builtins.
12999 (cpp_finish_options): Call it from here instead.
13001 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
13003 * builtin-attrs.def: Update copyright years.
13004 (ATTR_NONNULL): New attribute identifier.
13005 (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
13006 attribute tree lists.
13007 (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
13009 (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
13010 (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
13011 attribute lists. Chain the appropriate nonnull attribute.
13012 * c-format.c (check_format_arg): Remove null format string
13014 * testsuite/gcc.dg/format/null-1.c: New test.
13016 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13018 * Makefile.in (ADAC): Define.
13020 (.SUFFIXES): Move before language makefile fragments.
13021 (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
13023 2002-05-23 Mark Mitchell <mark@codesourcery.com>
13025 * varasm.c (make_decl_rtl): Don't allow weak variables to be
13028 Thu May 23 19:43:41 CEST 2002 Jan Hubicka <jh@suse.cz>
13030 * cfg.c (dump_flow_info): Print results of
13031 maybe_hot/probably_never_executed predicates.
13032 * toplev.c (open_dump_file): Print function frequency.
13034 2002-05-23 David S. Miller <davem@redhat.com>
13036 * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
13039 2002-05-23 Jason Thorpe <thorpej@wasabisystems.com>
13041 * c-common.c (warn_nonnull): Declare.
13042 (c_common_attribute_table): Add "nonnull" attribute.
13043 (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
13044 check_nonnull_arg, get_nonnull_operand, check_function_arguments,
13045 check_function_arguments_recurse): New functions.
13046 * c-common.h (warn_nonnull): Declare extern.
13047 (check_function_arguments, check_function_arguments_recurse): New
13049 * c-decl.c (c_decode_option): Add -Wnonnull option.
13050 * c-format.c (set_Wformat): Set warn_nonnull if enabling
13052 (format_check_context): New structure.
13053 (check_format_info_recurse): Remove recursion and rename to...
13054 (check_format_arg): ...this. Update comment.
13055 (check_format_info): Use check_function_arguments_recurse.
13056 * c-typeck.c (build_function_call): Call check_function_arguments
13057 instead of check_function_format.
13058 * doc/extend.texi: Document "nonnull" attribute.
13059 * doc/invoke.texi: Docuemnt -Wnonnull option.
13060 * testsuite/gcc.dg/nonnull-1.c: New test.
13061 * testsuite/gcc.dg/nonnull-2.c: New test.
13063 2002-05-23 David S. Miller <davem@redhat.com>
13065 * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
13066 * cfgcleanup.c (cleanup_cfg): If it is set do not
13067 attempt to delete trivially dead insns.
13068 * except.c (finish_eh_generation): Pass it to cleanup_cfg.
13069 * toplev.c (rest_of_compilation): Document non-trivial aspect
13070 the RTL before optimize_save_area_alloca is run.
13072 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
13074 * c-lex.c (indent_level): Remove.
13075 (cb_file_change, c_lex): Remove indent level handling.
13076 * c-lex.h (indent_level): Remove.
13077 * input.h (struct file_stack): Remove indent_level.
13078 * toplev.c (push_srcloc): Remove indent_level handling.
13080 2002-05-23 Jakub Jelinek <jakub@redhat.com>
13083 * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
13084 of x in constraints for clarity.
13085 (sse_mov?fcc split): abort if op2 == op3.
13086 (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
13087 sse_movsfcc_const0_4): Add earlyclobber.
13088 (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
13089 sse_movdfcc_const0_4): Likewise. Use DFmode, not SFmode.
13090 Use Y instead of x in constraints.
13092 2002-05-23 Richard Henderson <rth@redhat.com>
13094 * doc/extend.texi (C99 Thread-Local Edits): New subsection.
13095 (C++98 Thread-Local Edits): New subsection.
13097 * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
13098 (ix86_arch): Set type to enum processor_type.
13100 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
13101 LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
13103 2002-05-23 Jakub Jelinek <jakub@redhat.com>
13105 * configure.in: Fix as version test for binutils 2.12.1 releases
13107 * configure: Rebuilt.
13109 2002-05-23 Richard Henderson <rth@redhat.com>
13111 * config/i386/i386.c (get_pic_label_name): New.
13112 (load_pic_register): Remove.
13113 (output_set_got): New.
13114 (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
13115 * config/i386/i386.md (UNSPEC_SET_GOT): New.
13116 (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
13117 (prologue_set_got, prologue_get_pc): Remove.
13118 (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
13119 (builtin_setjmp_receiver): Use gen_set_got.
13120 * config/i386/i386-protos.h: Update.
13122 Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
13124 * gcse.c (hash_expr): Do not use alias set for hashing.
13126 2002-05-22 Kevin Buettner <kevinb@redhat.com>
13128 * dbxout.c (dbxout_class_name_qualifiers): New function.
13129 (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
13131 2002-05-23 Neil Booth <neil@daikokuya.demon.co.uk>
13133 * cpperror.c (_cpp_begin_message): No special casing
13134 of CPP_FATAL_LIMIT.
13135 * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
13136 (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
13137 * cpplib.c (do_include_common): Use DL_ERROR.
13138 * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
13139 (DL_ICE): Renumber.
13140 * fix-header.c (read_scan_file): Update.
13142 2002-05-22 Richard Henderson <rth@redhat.com>
13144 * config/i386/i386.c (ix86_expand_call): New function, extracted
13145 from md call patterns. Add pic_offset_table_rtx to
13146 CALL_INSN_FUNCTION_USAGE when needed.
13147 * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
13148 (call_value_pop, call_value, untyped_call): Likewise.
13149 (call_exp, call_value_exp): Remove.
13150 * config/i386/i386-protos.h: Update.
13152 2002-05-22 Richard Henderson <rth@redhat.com>
13154 * varasm.c (default_section_type_flags): Check for VAR_DECL
13155 before using DECL_THREAD_LOCAL.
13157 2002-05-22 David Edelsohn <edelsohn@gnu.org>
13159 * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
13160 (STARTFILE_SPEC): Delete PE crt0.o.
13161 * config/rs6000/aix51.h: Same.
13162 * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
13163 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
13164 function descriptor symbol. Use RS6000_OUTPUT_BASENAME.
13165 (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
13166 * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
13168 2002-05-22 Richard Henderson <rth@redhat.com>
13170 * varasm.c (default_section_type_flags): Handle tls data and
13172 (default_unique_section): Handle tls sections.
13174 2002-05-23 Alan Modra <amodra@bigpond.net.au>
13176 * configure.in (CROSS): Define NATIVE_CROSS.
13177 * configure: Regenerate.
13178 * gcc.c (STARTFILE_PREFIX_SPEC): Define.
13179 (startfile_prefix_spec): New var.
13180 (static_specs): Add startfile_prefix_spec.
13181 (do_spec_2): Split out from..
13183 (main): Process startfile_prefix_spec.
13184 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
13186 (STARTFILE_PREFIX_SPEC): Define.
13187 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
13190 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
13192 * cpperror.c: Fix formatting.
13193 * cppexp.c: Likewise.
13194 * cppfiles.c: Likewise.
13195 * cpphash.c: Likewise.
13196 * cpphash.h: Likewise.
13197 * cppinit.c: Likewise.
13198 * cpplex.c: Likewise.
13199 * cpplib.c: Likewise.
13200 * cppmacro.c: Likewise.
13201 * cppmain.c: Likewise.
13202 * cppspec.c: Likewise.
13204 2002-05-22 Jakub Jelinek <jakub@redhat.com>
13206 * combine.c (force_to_mode): Use gen_int_mode.
13207 Don't clear CONST_INT bits outside of mode.
13209 2002-05-22 Richard Henderson <rth@redhat.com>
13211 * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
13212 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13214 2002-05-22 Jakub Jelinek <jakub@redhat.com>
13217 * emit-rtl.c (widen_memory_access): Only call compare_tree_int
13218 if DECL_SIZE_UNIT is INTEGER_CST.
13220 2002-05-22 Richard Henderson <rth@redhat.com>
13222 * flow.c (life_analysis): Delete broken reg_label check.
13224 2002-05-22 Richard Henderson <rth@redhat.com>
13226 * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
13227 * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
13229 Wed May 22 18:39:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
13231 * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
13232 (embed-bb.c): New rule.
13233 * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
13234 * config/sh/embed_bb.c: Delete.
13236 Wed May 22 18:25:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
13238 * c-common.c (cb_register_builtins): Don't indent '#' of #define.
13240 2002-05-22 Kazu Hirata <kazu@cs.umass.edu>
13242 * config/h8300/h8300.md (*andorqi3): New.
13244 2002-05-22 Neil Booth <neil@daikokuya.demon.co.uk>
13246 PR preprocessor/6517
13247 * Makefile.in: Update.
13248 * c-common.c (c_common_post_options): Add preprocessor
13249 errors to the error count.
13250 * c-lang.c (c_post_options): Kill.
13251 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13252 * hooks.h: Add header guards.
13253 * langhooks-def.h: Include hooks.h.
13254 (LANG_HOOKS_POST_OPTIONS): Update.
13255 * langhooks.h (struct lang_hooks): Update post_options.
13256 * toplev.c (parse_options_and_default_flags): Update.
13258 * objc-lang.c (objc_post_options): Kill.
13259 (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
13261 2002-05-21 Bruce Korb <bkorb@gnu.org>
13263 * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
13264 * fixinc/inclhack.def(thread_keyword): use c_fix = format.
13265 * fixinc/fixincl.x: regen.
13267 2002-05-21 Kazu Hirata <kazu@cs.umass.edu>
13269 * cfgbuild.c: Fix formatting.
13271 * cfgcleanup.c: Likewise.
13272 * cfglayout.c: Likewise.
13273 * cfgloop.c: Likewise.
13274 * cfgrtl.c: Likewise.
13276 2002-05-21 Richard Henderson <rth@redhat.com>
13278 * c-common.h (enum rid): Add RID_THREAD.
13279 * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
13280 (grokdeclarator): Grok __thread.
13281 * c-parse.in (reswords): Add __thread.
13282 (rid_to_yy): Add RID_THREAD.
13284 * tree.h (DECL_THREAD_LOCAL): New.
13285 (struct tree_decl): Add thread_local_flag.
13286 * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
13287 * tree.c (staticp): TLS variables are not static.
13289 * target-def.h (TARGET_HAVE_TLS): New.
13290 * target.h (have_tls): New.
13291 * output.h (SECTION_TLS): New.
13292 * varasm.c (assemble_variable): TLS variables can't be common for now.
13293 (default_section_type_flags): Handle .tdata and .tbss.
13294 (default_elf_asm_named_section): Handle SECTION_TLS.
13295 (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
13297 * flags.h (flag_tls_default): Declare.
13298 * toplev.c (flag_tls_default): Define.
13299 (display_help): Display help for it.
13300 (decode_f_option): Set it.
13302 * doc/extend.texi (Thread-Local): New node describing language-level
13303 thread-local storage.
13304 * doc/invoke.texi (-ftls-model): Document.
13306 * fixinc/inclhack.def (thread_keyword): New.
13307 * fixinc/fixincl.x: Rebuild.
13309 2002-05-21 Jeffrey A Law <law@redhat.com>
13311 * optabs.c (expand_binop): For double-word integer multiplies,
13312 do not compute intermediate results into something that is
13313 not a register (such as a SUBREG or MEM).
13315 * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
13316 (ix86_sched_reorder): Make sure to initialize scheduling
13317 data even when there's only one insn in the ready queue.
13319 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
13321 * genautomata.c (reserv_sets_hash_value): Fix a typo.
13323 2002-05-21 Vladimir Makarov <vmakarov@redhat.com>
13325 * genautomata.c (reserv_sets_hash_value): Define hash_value as
13326 set_el_t. Transform the hash value into unsigned.
13327 (output_cycle_reservs): Fix bug with output of repeated `nothing'.
13328 (transform_3): Add code to process `(A,B)+(D,E)'.
13330 2002-05-21 NIIBE Yutaka <gniibe@m17n.org>
13332 * reload1.c (do_output_reload): Run delete_output_reload
13333 only if optimizing.
13335 2002-05-21 Roger Sayle <roger@eyesopen.com>
13338 * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
13339 larger than INTEGER_CST. (store_by_pieces_1): Use it here...
13340 (can_store_by_pieces): ... and here to limit the largest mode used.
13341 Add a comment to document this function.
13343 2002-05-21 Richard Henderson <rth@redhat.com>
13345 * flow.c (life_analysis): Fix test for deleted label.
13347 2002-05-21 Neil Booth <neil@daikokuya.demon.co.uk>
13349 * doc/tm.texi: Fix typo.
13351 2002-05-21 Zack Weinberg <zack@codesourcery.com>
13353 * c-common.c (c_common_init): Set options->unsigned_char from
13355 (cb_register_builtins): Define __STRICT_ANSI__ and
13356 __CHAR_UNSIGNED__ here...
13357 * cppinit.c (init_builtins): Not here.
13358 (cpp_create_reader): unsigned_char option defaults to 0, not
13359 !DEFAULT_SIGNED_CHAR.
13360 (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
13361 and -funsigned-char.
13363 * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
13364 * cpphash.c (_cpp_init_hashtable): Don't set it.
13365 * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
13366 directly. Clarify comment.
13368 2002-05-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13370 * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
13371 neighboring basic blocks. Use ENTRY_BLOCK_PTR->next_bb instead of
13372 BASIC_BLOCK (0). Use EXIT_BLOCK_PTR->prev_bb instead of
13373 BASIC_BLOCK (n_basic_blocks - 1).
13374 * cfganal.c (can_fallthru, flow_call_edges_add,
13375 flow_preorder_transversal_compute): Too.
13376 * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
13377 find_sub_basic_blocks): Too.
13378 * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
13379 * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
13380 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
13381 * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
13382 * combine.c (this_basic_block): Type changed to basic_block.
13383 (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
13384 nonzero_bits, num_sign_bit_copies, get_last_value_validate,
13385 get_last_value, distribute_notes, distribute_links): Too.
13386 * final.c (compute_alignments): Too.
13387 * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
13388 * function.c (thread_prologue_and_epilogue_insns): Too.
13389 * gcse.c (compute_code_hoist_vbeinout): Too.
13390 * global.c (build_insn_chain): Too.
13391 * ifcvt.c (find_if_block, find_cond_trap): Too.
13392 * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
13393 * regmove.c (regmove_optimize): Too.
13394 * resource.c (find_basic_block): Too.
13395 * sched-ebb.c (schedule_ebbs): Too.
13396 * ssa-dce.c (find_control_dependence, find_pdom): Too.
13398 2002-05-21 Andreas Jaeger <aj@suse.de>
13400 * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
13402 2002-05-21 Richard Henderson <rth@redhat.com>
13404 * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
13405 unspec names, not numbers.
13407 2002-05-21 Joseph S. Myers <jsm28@cam.ac.uk>
13409 * doc/sourcebuild.texi: Mention snapshot-README and
13410 snapshot-index.html as needing updating for new front ends.
13412 2002-05-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13414 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
13415 disabling checking, and avoid multiple evaluation of RTX.
13417 2002-05-21 Richard Earnshaw <rearnsha@arm.com>
13419 * bitmap.c (bitmap_find_bit): Return early if we have the correct
13422 Tue May 21 10:51:54 CEST 2002 Jan Hubicka <jh@suse.cz>
13424 * profile.c (gen_edge_profiler): Set alias set before the memory is
13427 2002-05-20 David S. Miller <davem@redhat.com>
13429 * cselib.c (max_value_regs): New.
13430 (cselib_lookup, cselib_invalidate_regno): Initialize it when
13431 adding new entries to the REG_VALUES table and we are dealing with
13433 (clear_table): Initialize it.
13434 (cselib_invalidate_regno): Use it to determine which hard
13435 registers to scan when mode is not VOIDmode.
13437 2002-05-20 Duraid Madina <duraid@fl.net.au>
13439 * tradcpp.c (fixup_newlines): Use old-style function header.
13441 2002-05-20 Krister Walfridsson <cato@df.lth.se>
13443 * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
13445 2002-05-20 H.J. Lu (hjl@gnu.org)
13447 Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
13449 * config/mips/mips.h (DFMODE_NAN): Defined.
13450 (SFMODE_NAN): Likewise.
13452 2002-05-20 Dale Johannesen <dalej@apple.com>
13454 * combine.c (cant_combine_insn_p): Back out my
13457 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
13459 * params.c: Fix formatting.
13460 * params.h: Likewise.
13461 * predict.c: Likewise.
13462 * prefix.c: Likewise.
13463 * print-rtl.c: Likewise.
13464 * print-tree.c: Likewise.
13465 * profile.c: Likewise.
13467 2002-05-20 H.J. Lu (hjl@gnu.org)
13469 * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
13471 2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
13473 * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
13474 switches straight on to the assembler, do not abbreviate them.
13475 * config/arm/elf.h (ASM_SPEC): As above.
13476 * config/arm/semi.h (ASM_SPEC): As above.
13477 * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
13478 * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
13479 -mcpu=xscale on to the assembler by default.
13480 * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
13482 2002-05-20 Richard Henderson <rth@redhat.com>
13484 * cse.c (canon_hash): Reorder do_not_record test. Always
13485 allow pic_offset_table_rtx.
13487 2002-05-19 Toon Moene <toon@moene.indiv.nluug.nl>
13489 * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
13490 (expand_binop): Ditto (3 times).
13492 2002-05-19 Mark Mitchell <mitchell@doubledemon.codesourcery.com>
13494 * Makefile.in (distclean): Remove QMTest stuff.
13495 (QMTEST_PATH): New variable.
13496 (QMTESTFLAGS): Likewise.
13497 (QMTESTRUNFLAGS): Likewise.
13498 (QMTEST): Likewise.
13499 (QMTEST_GPP_TESTS): Likewise.
13500 (QMTEST_DIR): Likewise.
13501 (QMTEST_DIR/context): New target.
13502 (qmtest-g++): Likeise.
13503 (qmtest-gui): Likewise.
13504 (QMTEST_DIR/gpp-expected.qmr): Likewise.
13506 2002-05-19 Aldy Hernandez <aldyh@redhat.com>
13508 * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
13509 an altivec register if TARGET_ALTIVEC.
13511 * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
13512 to ALTIVEC_VECTOR_MODE.
13513 (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
13514 (rs6000_va_arg): Vectors may go in registers if they are not
13517 2002-05-19 Kazu Hirata <kazu@cs.umass.edu>
13519 * protoize.c: Fix formatting.
13521 2002-05-19 Richard Henderson <rth@redhat.com>
13523 * gensupport.c (init_include_reader): Merge into ...
13524 (process_include): ... here. Simplify composite path creation.
13525 Plug memory leaks. Fix file/line number tracking. Do not
13526 process_define_cond_exec. Return void.
13527 (process_rtx): Don't check process_include return value.
13529 2002-05-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13531 * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
13533 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
13534 traversing basic block chain.
13535 (create_basic_block_structure, create_basic_block): Declaration changed.
13536 (link_block, unlink_block): Declare.
13537 * cfg.c (entry_exit_blocks): Initialize new fields.
13538 (link_block, unlink_block): New.
13539 (expunge_block_nocompact): Unlink basic block.
13540 (dump_flow_info): Print prev_bb/next_bb fields.
13541 * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
13542 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
13543 * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
13544 * cfgrtl.c (create_basic_block_structure, create_basic_block,
13545 split_block, force_nonfallthru_and_redirect, split_edge): Modified.
13546 (verify_flow_info): Check that list agrees with numbering.
13548 2002-05-19 Neil Booth <neil@daikokuya.demon.co.uk>
13550 * c-common.c (preprocessing_asm): New macro.
13551 * c-lex.h (builtin_define, builtin_assert): Use pfile.
13555 * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
13556 (CPP_SPEC): Simplify.
13557 (TARGET_CPU_CPP_BUILTINS): Update.
13558 * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
13559 (CPP_SPEC): Simplify.
13560 * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
13561 (TARGET_OS_CPP_BUILTINS): Update.
13562 * osf.h (CPP_XFLOAT_SPEC): Kill.
13563 (TARGET_OS_CPP_BUILTINS): Update.
13564 (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
13565 * osf5.h (CPP_XFLOAT_SPEC): Kill.
13566 * vms.h (CPP_SUBTARGET_SPEC): Kill.
13567 (TARGET_OS_CPP_BUILTINS): Update.
13569 2002-05-19 Richard Henderson <rth@redhat.com>
13571 * varasm.c (default_binds_local_p): Fix typo.
13573 2002-05-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
13575 * config/avr/avr.c (machine_dependent_reorg): Sign extend the
13576 CONST_INT operand to the correct mode after adding 1 to it.
13578 2002-05-19 Mark Mitchell <mark@codesourcery.com>
13580 * config.gcc (powerpc-wrs-windiss*): New target.
13582 2002-05-19 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13584 * config/rs6000/rs6000.md (ashrdi3_no_power): New.
13587 2002-05-18 Mark Mitchell <mark@codesourcery.com>
13589 * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
13591 * config.in: Regenerated.
13592 * configure: Regenerated.
13594 2002-05-19 Richard Henderson <rth@redhat.com>
13596 * target-def.h (TARGET_BINDS_LOCAL_P): New.
13597 * target.h (struct gcc_target): Move boolean fields to the end.
13599 * varasm.c (default_binds_local_p): New.
13600 * output.h: Declare it.
13602 * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
13603 * config/cris/cris.c (cris_encode_section_info): Likewise.
13604 * config/i386/i386.c (i386_encode_section_info): Likewise.
13605 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13606 * config/sh/sh.c (sh_encode_section_info): Likewise.
13608 * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
13609 (TARGET_BINDS_LOCAL_P): New.
13611 2002-05-19 Richard Henderson <rth@redhat.com>
13613 * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
13614 FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
13615 MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
13617 * toplev.c (display_help): Kill -a -ax help.
13619 * config/1750a/1750a.h, config/alpha/alpha.h,
13620 config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
13621 config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
13622 config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
13623 (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
13625 * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
13626 * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
13628 * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
13629 (ix86_output_function_block_profiler): Kill.
13630 * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
13631 (m68hc11_function_block_profiler): Kill.
13632 * config/m68hc11/m68hc11-protos.h: Update.
13633 * config/m88k/m88k.c (output_block_profiler): Kill.
13634 (output_function_block_profiler): Kill.
13635 * config/m88k/m88k-protos.h: Update.
13637 2002-05-19 Richard Henderson <rth@redhat.com>
13639 * system.h (STRIP_NAME_ENCODING): Poison it.
13640 * output.h (STRIP_NAME_ENCODING): Remove.
13641 (default_strip_name_encoding): Declare.
13642 * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
13643 * target.h (strip_name_encoding): New.
13644 * varasm.c (default_strip_name_encoding): New.
13646 * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
13647 config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
13648 config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
13649 config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
13650 config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
13651 config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
13652 config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
13653 config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
13654 config/v850/v850.h: Use the hook, not the macro.
13656 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
13657 config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
13658 config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
13659 config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
13660 config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
13661 config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
13662 config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13663 config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
13664 config/v850/v850.c, config/v850/v850.h:
13665 Move STRIP_NAME_ENCODING to out-of-line function and add
13666 TARGET_STRIP_NAME_ENCODING.
13668 * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
13669 config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
13670 with TARGET_STRIP_NAME_ENCODING referencing existing function;
13671 make function static.
13673 * xcoffout.c: Include target.h
13674 * Makefile.in (xcoffout.o): Update.
13676 * config/avr/avr.c (avr_encode_section_info): Correct prototype.
13677 * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
13678 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
13679 reloc argument unused.
13680 * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
13682 * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
13683 STRIP_NAME_ENCODING docs.
13685 2002-05-19 Andreas Jaeger <aj@suse.de>
13687 * gengenrtl.c: Add prototype for excluded_rtx.
13689 * real.h: Add prototype for exact_real_truncate.
13691 2002-05-18 Richard Henderson <rth@redhat.com>
13693 * system.h (ENCODE_SECTION_INFO): Poison it.
13694 * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
13695 * target.h (encode_section_info): New.
13696 * varasm.c (make_decl_rtl, output_constant_def): Use it.
13697 * hooks.c (hook_tree_int_void): New.
13698 * hooks.h: Declare it.
13700 * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
13701 config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
13702 config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
13703 config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
13704 config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
13705 config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
13706 config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
13707 config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
13708 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
13709 config/mcore/mcore-protos.h, config/mcore/mcore.c,
13710 config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
13711 config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
13712 config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
13713 config/stormy16/stormy16.c, config/stormy16/stormy16.h:
13714 Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
13715 referencing existing function. Make function static.
13717 * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
13718 config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
13719 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
13720 config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
13721 config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
13722 config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
13723 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
13724 config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
13725 config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
13726 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
13727 config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
13728 config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
13729 config/xtensa/xtensa.c, config/xtensa/xtensa.h:
13730 Move ENCODE_SECTION_INFO to out-of-line function and add
13731 TARGET_ENCODE_SECTION_INFO.
13733 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
13734 (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13736 * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
13738 (switch_to_section): Replace in_rdata case with in_readonly_data.
13740 * config/h8300/h8300.c (h8300_encode_label): Make static.
13741 * config/h8300/h8300-protos.h: Update.
13743 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
13744 from rs6000_encode_section_info; make static.
13745 (rs6000_xcoff_encode_section_info): New.
13747 * config/v850/v850.c (v850_encode_data_area): Make static.
13748 * config/v850/v850-protos.h: Update.
13750 * config/vax/vax.c: Include flags.h.
13751 (vms_select_section): Fix typo.
13753 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
13754 ENCODE_SECTION_INFO docs.
13756 2002-05-18 Richard Henderson <rth@redhat.com>
13758 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
13759 REGISTER_TARGET_PRAGMAS.
13760 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
13762 * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
13764 2002-05-18 Richard Henderson <rth@redhat.com>
13766 * system.h (SELECT_RTX_SECTION): Poison.
13767 * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
13768 * target.h (select_rtx_section): New.
13769 * varasm.c (output_constant_pool): Use it.
13770 (default_select_rtx_section, default_elf_select_rtx_section): New.
13771 * output.h: Declare them.
13773 * config/darwin.h (SELECT_RTX_SECTION): Move ...
13774 * config/darwin.c (machopic_select_rtx_section): ... here.
13775 * config/darwin-protos.h: Update.
13777 * config/nextstep.h (SELECT_RTX_SECTION): Move ...
13778 * config/nextstep.c (machopic_select_rtx_section): ... here.
13779 (nextstep_select_section): Rename variable to avoid macro clash.
13780 * config/nextstep-protos.h: Update.
13782 * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
13783 config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
13784 config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
13785 config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
13786 config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
13787 config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
13788 config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
13789 config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
13790 config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
13791 (SELECT_RTX_SECTION): Remove.
13793 * config/darwin.h, config/elfos.h, config/nextstep.h,
13794 config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
13795 config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
13796 config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
13797 config/sparc/lynx.h, config/xtensa/xtensa.c
13798 (TARGET_ASM_SELECT_RTX_SECTION): New.
13800 * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
13801 * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
13802 * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
13803 * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
13804 (ia64_aix_select_rtx_section): New.
13805 * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
13807 * config/mips/mips.c (mips_select_rtx_section): Make static.
13808 Support ELF SHF_MERGE features.
13809 * config/mips/mips-protos.h: Update.
13810 * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
13811 * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
13812 (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
13813 make static, fall back to default_elf_select_rtx_section.
13814 * config/rs6000/rs6000-protos.h: Update.
13815 * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
13816 * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
13817 * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
13818 * config/romp/romp.c (romp_select_rtx_section): New.
13819 * config/s390/s390.c (s390_select_rtx_section): New.
13820 * config/xtensa/xtensa.c: Include output.h. Shuffle local function
13821 declarations before target macro definition.
13822 (xtensa_emit_call): Use static buffer.
13823 (xtensa_select_rtx_section): New.
13824 * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
13825 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
13826 (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
13828 * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
13829 SELECT_RTX_SECTION docs.
13831 Sun May 19 00:24:23 CEST 2002 Jan Hubicka <jh@suse.cz>
13833 * i386.md (movsi/movdi): Fix template.
13834 (sse2 patterns): Set attributes consistently.
13836 * i386.md (pushqi2, ashrqi_*): Fix constraint.
13838 2002-05-18 Toon Moene <toon@moene.indiv.nluug.nl>
13840 * optabs.c (complex_part_zero_p): New.
13841 * (expand_cmplxdiv_straight): Use it.
13842 * (expand_cmplxdiv_wide): Ditto.
13843 * (expand_binop): Ditto.
13845 2002-05-18 Richard Henderson <rth@redhat.com>
13847 * final.c (HAVE_READONLY_DATA_SECTION): New.
13848 (shorten_branches): Use it instead of ifdefs.
13849 * varasm.c (enum in_section): Add in_readonly_data.
13850 (text_section, data_section): Tidy.
13851 (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
13853 * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
13854 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
13855 (READONLY_DATA_SECTION): Don't undef.
13857 * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
13858 config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
13859 config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
13861 * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
13862 config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
13863 config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
13864 config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
13866 * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
13867 config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
13868 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13869 config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
13870 config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
13871 config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
13872 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
13873 config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
13874 CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
13876 * config/elfos.h, config/netware.h, config/1750a/1750a.h,
13877 config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
13878 config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
13879 config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
13880 config/pa/pa64-hpux.h, config/sparc/litecoff.h
13881 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13883 * config/elfos.h, config/netware.h, config/svr3.h,
13884 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13885 config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13886 config/h8300/h8300.h, config/i386/i386-interix.h,
13887 config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13888 config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
13890 * config/elfos.h, config/netware.h, config/svr3.h,
13891 config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13892 config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
13893 config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13894 config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
13896 * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
13897 config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
13898 config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
13899 config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
13900 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
13901 config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
13902 config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
13903 config/rs6000/sysv4.h, config/v850/v850.h
13904 (EXTRA_SECTIONS): Remove in_const/in_rdata.
13905 (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
13907 * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
13908 config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
13909 config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
13910 config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
13911 * config/alpha/alpha.c (alpha_start_function): Likewise.
13912 (alpha_write_linkage): Likewise.
13913 * config/m32r/m32r.c (m32r_select_section): Likewise.
13914 * config/m88k/m88k.c (m88k_select_section): Likewise.
13915 * config/mips/mips.c (mips_select_rtx_section): Likewise.
13916 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
13917 (rs6000_elf_select_section): Likewise.
13918 * config/v850/v850.c (v850_select_section): Likewise.
13920 * config/1750a/1750a.h, config/i860/sysv3.h
13921 (READONLY_DATA_SECTION_ASM_OP): New.
13922 READONLY_DATA_SECTION_ASM_OP.
13923 * config/i386/interix.c, config/i386/winnt.c
13924 (i386_pe_unique_section): Always use .rdata prefix.
13925 * config/pa/som.h (readonly_data): Always switch to read-only section.
13926 (READONLY_DATA_SECTION): Predicate on flag_pic.
13927 * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
13928 * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
13929 (READONLY_DATA_SECTION): Update.
13931 2002-05-18 Jason Thorpe <thorpej@wasabisystems.com>
13933 * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
13934 is used without -Wformat.
13935 * c-common.h (warn_format_zero_length): Declare extern.
13936 * c-decl.c (warn_options): Add "format-zero-length".
13937 * c-format.c (warn_format_zero_length): Declare.
13938 (set_Wformat): Set warn_format_zero_length for -Wformat.
13939 (check_format_info): Only warn about zero-length formats if
13940 warn_format_zero_length is true. Include the format type
13941 name in the warning message.
13942 * doc/invoke.texi: Document -Wformat-zero-length.
13943 * testsuite/gcc.dg/format/zero-length-1.c: New test.
13945 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
13947 * timevar.c: Fix formatting.
13948 * tlink.c: Likewise.
13949 * toplev.c: Likewise.
13950 * tree-dump.c: Likewise.
13951 * tree-inline.c: Likewise.
13953 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
13955 * cppinit.c (cpp_post_options): If preprocessed, turn off
13956 traditional. If traditional, turn off column numbers.
13957 * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
13958 * cpptrad.c (handle_newline): Update line_base.
13959 (skip_comment): Handle -Wcomment.
13961 2002-05-17 Zack Weinberg <zack@codesourcery.com>
13963 * cppinit.c (struct builtin): Remove unused fields.
13964 (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
13965 (operator_array): New - was second half of builtin_array.
13966 (init_builtins): Simplify loop over builtin_array/operator_array.
13968 2002-05-18 Neil Booth <neil@daikokuya.demon.co.uk>
13970 * defaults.h (UNIQUE_SECTION): Remove.
13971 * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
13973 2002-05-17 Richard Henderson <rth@redhat.com>
13975 * expr.c (init_expr_once): Don't use start/end_sequence.
13976 Use rtx_alloc instead of emit_insn.
13977 * toplev.c (lang_dependent_init): Run init_expr_once here ...
13978 (lang_independent_init): ... not here.
13980 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
13982 * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
13984 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
13986 * config/avr/avr.c (avr_regs_to_save): New function. Also check
13987 for fixed registers, possibly used for global register variables.
13988 (initial_elimination_offset, avr_output_function_prologue,
13989 avr_output_function_epilogue): Move common code to avr_regs_to_save.
13991 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
13993 * Makefile.in: Update for cpptrad.c.
13994 * cpphash.h (struct cpp_buffer): New members for buffer
13996 (struct cpp_reader): New members for traditional output.
13997 (_cpp_read_logical_line, _cpp_overlay_buffer): New.
13998 * cppinit.c (cpp_create_reader): Set trad_line.
13999 (cpp_destroy): Free trad_out_base if used.
14000 (cpp_read_main_file): Overlay an empty buffer if traditional.
14001 (cpp_finish_options): Don't do builtins.
14002 (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
14003 (cpp_handle_option): Handle it.
14004 * cpplex.c (continue_after_nul): New.
14005 (_cpp_lex_direct): Use handle_nul.
14006 * cpplib.h (struct cpp_options): New traditional option.
14007 * cpptrad.c: New file.
14009 2002-05-17 Neil Booth <neil@daikokuya.demon.co.uk>
14011 * c-common.c (c_common_init_options): Use C89 for Objective-C,
14012 and set the options flag.
14013 * cppinit.c (lang_flags): Remove objc.
14014 (lang_defaults): Remove OBJC and OBJCXX.
14015 (set_lang): Update.
14016 (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
14017 (cpp_handle_option): Remove -+ and -lang-objc++.
14018 For ObjC, just set a flag.
14019 (print_help): Update.
14020 * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
14022 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14024 * doc/install.texi (Specific, mips-sgi-irix6): Document need to
14025 bootstrap with -mips3.
14027 2002-05-17 Kazu Hirata <kazu@cs.umass.edu>
14029 * final.c: Fix formatting.
14030 * fix-header.c: Likewise.
14031 * flow.c: Likewise.
14032 * fold-const.c: Likewise.
14033 * function.c: Likewise.
14035 2002-05-17 David S. Miller <davem@redhat.com>
14037 PR c/6689, PR optimization/6615
14038 * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
14039 and make it a pointer to rtx. Update comments.
14040 (update_equiv_regs): When scanning for equivalences, record
14041 address of SET_SRC (set) in reg_equiv[].src_p. Dereference
14042 it while making the equiv replacements.
14044 2002-05-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14046 * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
14048 2002-05-17 kaz Kojima <kkojima@rr.iij4u.or.jp>
14050 * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
14051 when encoding visibility into SYMBOL_REF_FLAG.
14053 2002-05-17 Richard Sandiford <rsandifo@redhat.com>
14055 * expr.c (force_operand): Fix reversed move.
14057 2002-05-17 Kurt Wall <kwall@kurtwerks.com>
14059 * doc/install.texi (Testing): Mention two common DejaGnu warnings
14060 that can be ignored.
14062 2002-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14064 * doc/install.texi (Final install): Recommend to install into a
14065 "clean" target directory.
14067 2002-05-17 Richard Henderson <rth@redhat.com>
14069 * config/ia64/ia64.md: Use braced strings instead of quoted strings
14070 for code blocks. Tidy whitespace.
14072 2002-05-17 Richard Henderson <rth@redhat.com>
14074 * hooks.c (hook_tree_bool_false): New.
14075 * hooks.h: Declare it.
14076 * target-def.h (TARGET_ASM_SELECT_SECTION): New.
14077 (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
14078 * target.h (select_section, unique_section): New.
14079 (in_small_data_p): New.
14080 * varasm.c (resolve_unique_section): Use hooks instead of macros.
14081 (variable_section, output_constant_def_contents): Likewise.
14082 (default_select_section, default_unique_section): New.
14083 (categorize_decl_for_section, default_elf_select_section): New.
14084 * output.h: Declare them.
14086 * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
14087 (TARGET_ASM_SELECT_SECTION): New.
14088 (SELECT_SECTION): Move ...
14089 * config/darwin.c (machopic_select_section): ... here.
14090 * config/darwin-protos.h: Update.
14092 * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
14093 (SELECT_SECTION): Move ...
14094 * config/nextstep.c (nextstep_select_section): ... here.
14095 * config/nextstep-protos.h: Update.
14097 * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
14098 (TARGET_ASM_SELECT_SECTION): New.
14099 * config/svr3.h (SELECT_SECTION): Remove.
14101 * config/alpha/alpha.c (unicosmk_unique_section): Make static.
14102 (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
14103 (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
14104 (alpha_encode_section_info): Use it.
14105 * config/alpha/alpha-protos.h: Update.
14106 * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
14107 (SELECT_SECTION, UNIQUE_SECTION): Remove.
14108 (TARGET_ASM_SELECT_SECTION): New.
14109 * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
14111 * config/arm/pe.h (UNIQUE_SECTION): Remove.
14112 (TARGET_ASM_UNIQUE_SECTION): New.
14114 * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
14115 (avr_unique_section): Rename from unique_section; make static.
14116 * config/avr/avr-protos.h: Update.
14117 * config/avr/avr.h (UNIQUE_SECTION): Remove.
14119 * config/c4x/c4x.h (SELECT_SECTION): Remove.
14121 * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
14122 (TARGET_ASM_UNIQUE_SECTION): New.
14123 * config/i386/i386-interix.h: Likewise.
14124 * config/i386/win32.h: Likewise.
14125 * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
14126 * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
14127 * config/i386/sco5.h (SELECT_SECTION): Remove.
14128 (TARGET_ASM_SELECT_SECTION): New.
14129 * config/i386/svr3gas.h (SELECT_SECTION): Remove.
14131 * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
14132 instead of SELECT_SECTION.
14133 * config/m68k/dpx2.h: Likewise.
14134 * config/rs6000/lynx.h: Likewise.
14136 * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14137 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
14138 * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
14139 (ia64_in_small_data_p): New.
14140 (ia64_encode_section_info): Use it. Reorganize overlarge conditional.
14141 (ia64_aix_select_section, ia64_aix_unique_section): New.
14142 * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
14143 (SELECT_SECTION, UNIQUE_SECTION): Remove.
14145 * config/m32r/m32r.h (SELECT_SECTION): Remove.
14146 (TARGET_ASM_SELECT_SECTION): New.
14147 * config/m32r/m32r.c (m32r_select_section): Take align argument.
14148 * config/m32r/m32r-protos.h: Update.
14150 * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
14151 (SELECT_SECTION): Move ...
14152 * config/m88k/m88k.c (m88k_select_section): ... here.
14154 * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
14155 * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
14156 * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
14157 (mcore_unique_section): Make static.
14158 * config/mcore/mcore-protos.h: Update.
14160 * config/mips/elf.h (UNIQUE_SECTION): Remove.
14161 (TARGET_ASM_UNIQUE_SECTION): New.
14162 * config/mips/elf64.h: Likewise.
14163 * config/mips/iris6gld.h: Likewise.
14164 * config/mips/linux.h: Likewise.
14165 * config/mips/mips-protos.h: Update.
14166 * config/mips/mips.c (mips_select_section): Add align argument.
14167 * config/mips/mips.h (SELECT_SECTION): Remove.
14168 (TARGET_ASM_SELECT_SECTION): New.
14170 * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14171 * config/mmix/mmix.c (mmix_select_section): Remove.
14172 (mmix_unique_section): Remove.
14173 * config/mmix/mmix-protos.h: Update.
14175 * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
14176 (SELECT_SECTION): Move ...
14177 * config/pa/pa.c (pa_select_section): ... here.
14178 * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
14180 * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
14181 from rs6000_select_section and make static.
14182 (rs6000_elf_unique_section): Similarly.
14183 (rs6000_xcoff_select_section): From xcoff.h.
14184 (rs6000_xcoff_unique_section): Likewise.
14185 * config/rs6000/rs6000-protos.h: Update.
14186 * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
14187 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
14188 * config/rs6000/xcoff.h: Likewise.
14190 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
14191 (SELECT_SECTION): Move ...
14192 * config/sparc/sparc.c (sparc_aout_select_section): ... here.
14194 * config/v850/v850.h (SELECT_SECTION): Move ...
14195 * config/v850/v850.c (v850_select_section): ... here.
14196 (TARGET_ASM_SELECT_SECTION): New.
14198 * config/vax/vms.h (SELECT_SECTION): Move ...
14199 * config/vax/vax.c (vms_select_section): ... here.
14200 (TARGET_ASM_SELECT_SECTION): New.
14202 * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
14203 for the target hooks.
14205 2002-05-17 Nick Clifton <nickc@cambridge.redhat.com>
14207 * config/arm/arm.c (emit_multi_reg_push): Do not set
14208 RTX_FRAME_RELATED_P on the SEQUENCE.
14210 2002-05-16 Richard Henderson <rth@redhat.com>
14212 * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
14213 splitting. Use split_all_insns; update_life_info_in_dirty_blocks.
14215 2002-05-16 Richard Henderson <rth@redhat.com>
14217 * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
14219 * config/ia64/ia64.c (saveable_obstack): Do not declare.
14221 2002-05-16 Richard Henderson <rth@redhat.com>
14223 * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
14224 cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
14225 conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
14226 gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
14227 local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
14228 recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
14229 reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
14230 sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
14231 Revert "Basic block renumbering removal", and two followup patches.
14233 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
14235 * lcm.c (optimize_mode_switching): Revert previous change.
14237 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14239 * sched-rgn.c (schedule_insns): Initialize large_region_blocks
14240 with only extant block numbers.
14242 2002-05-16 Jason Thorpe <thorpej@wasabisystems.com>
14244 * lcm.c (optimize_mode_switching): Fix typo.
14246 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14248 * flow.c (calculate_global_regs_live): Queue blocks in program order.
14250 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14252 * doc/install.texi (Configuration): Document PWDCMD.
14254 2002-05-16 Dale Johannesen <dalej@apple.com>
14256 * combine.c (cant_combine_insn_p): Reenable combinations
14257 involving hard regs unless CLASS_LIKELY_SPILLED_P.
14259 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
14261 * c-common.c (cb_register_builtins): Handle more built-ins
14262 here rather than in gcc.c specs.
14263 * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
14264 (cpp_options): Pass -O flags even when only preprocessing.
14265 * toplev.c (set_fast_math_flags): New prototype.
14266 (fast_math_flags_set_p): New.
14267 (set_no_fast_math_flags): Remove.
14268 (decode_f_option): Update.
14269 * toplev.h (set_fast_math_flags): Update.
14270 (fast_math_flags_set_p): New.
14271 (set_no_fast_math_flags): Remove.
14273 * c4x/c4x.c (c4x_override_options): Update.
14275 2002-05-16 Zack Weinberg <zack@codesourcery.com>
14277 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
14278 Default-define here.
14279 (builtin_define_with_value): Can now wrap the expansion in
14280 quotation marks if such is wanted.
14281 (cb_register_builtins): Update calls to builtin_define_with_value.
14282 Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
14284 (c_common_init): Set options->stdc_0_in_system_headers.
14285 * c-lex.h: Update prototype of builtin_define_with_value.
14286 * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
14287 and REGISTER_PREFIX.
14289 * cppinit.c (VERS, ULP, C, X): Kill.
14290 (builtin_array): Remove entries for __VERSION__,
14291 __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
14292 __HAVE_BUILTIN_SETJMP__. Make __STDC__ always a builtin, not
14294 (init_builtins): Kill off a bunch of now-dead code.
14295 (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
14296 -fno-leading-underscore.
14297 (cpp_handle_option): Remove code to set user_label_prefix.
14298 (cpp_post_options): Likewise.
14300 * cpplib.h (struct cpp_options): Remove user_label_prefix.
14301 (stdc_0_in_system_headers): New.
14302 * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
14303 stdc_0_in_system_headers) too to decide the value of __STDC__.
14305 * tradcpp.c (user_label_prefix): Kill.
14306 (main): Remove code handling -f(no-)leading-underscore.
14307 (initialize_builtins): Don't define __REGISTER_PREFIX__
14308 or __USER_LABEL_PREFIX__.
14309 (install_value): Wrap compound statement in dummy loop so the
14310 macro works properly in an if statement.
14313 2002-05-16 Janis Johnson <janis187@us.ibm.com>
14315 * loop.h (struct loop_info): Add member has_prefetch.
14316 * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
14317 (prescan_loop): Initialize has_prefetch.
14318 (struct prefetch_info): Change prefetch_in_loop and
14319 prefetch_before_loop from bit fields to ints.
14320 (emit_prefetch_instructions): Several small fixes.
14321 (check_dbra_loop): Don't reverse loop that uses prefetch.
14323 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14325 * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
14326 * configure.in: Likewise.
14327 * fixinc/check.tpl: Likewise.
14328 * fixinc/fixinc.dgux: Likewise.
14329 * fixinc/fixinc.svr4: Likewise.
14330 * fixinc/fixinc.winnt: Likewise.
14331 * fixinc/fixincl.sh: Likewise.
14332 * fixproto: Likewise.
14333 * configure: Regenerate.
14335 2002-05-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14337 Basic block renumbering removal:
14338 * basic_block.h (struct basic_block_def): Renamed index to sindex,
14339 added prev_bb and next_bb fields.
14340 (n_basic_blocks): Renamed to num_basic_blocks.
14341 (last_basic_block): New, index of last basic block.
14342 (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
14343 traversing basic block chain.
14344 (BLOCK_NUM): index -> sindex.
14345 (create_basic_block_structure, create_basic_block): Declaration changed.
14346 (debug_num2bb): Declare.
14347 (expunge_block_nocompact): Declaration removed.
14348 (link_block, unlink_block, compact_blocks): Declare.
14349 * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
14350 * cfg.c (entry_exit_blocks): Initialize new fields.
14351 (clear_edges, alloc_block, expunge_block, cached_make_edge,
14352 redirect_edge_pred, dump_flow_info, dump_edge_info,
14353 alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
14354 free_aux_for_edges): Modified.
14355 (link_block, unlink_block, compact_blocks, debug_num2bb): New.
14356 (expunge_block_nocompact): Removed.
14357 * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
14358 find_unreachable_blocks, create_edge_list, print_edge_list,
14359 verify_edge_list, flow_edge_list_print, remove_fake_successors,
14360 remove_fake_edges, flow_reverse_top_sort_order_compute,
14361 flow_depth_first_order_compute, flow_preorder_transversal_compute,
14362 flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
14363 flow_dfs_compute_reverse_execute): Modified.
14364 * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
14365 find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
14367 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14368 merge_blocks_move_predecessor_nojumps,
14369 merge_blocks_move_successor_nojumps, merge_blocks,
14370 outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
14371 try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
14372 * cfglayout.c (skip_insns_after_block, label_for_bb,
14373 record_effective_endpoints, scope_to_insns_finalize,
14374 fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
14375 fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
14376 cfg_layout_duplicate_bb): Modified.
14377 * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
14378 flow_loop_entry_edges_find, flow_loop_exit_edges_find,
14379 flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
14380 flow_loops_find, flow_loop_outside_edge_p): Modified.
14381 * cfgrtl.c (create_basic_block_structure, create_basic_block,
14382 flow_delete_block, compute_bb_for_insn, split_block,
14383 try_redirect_by_replacing_jump, redirect_edge_and_branch,
14384 force_nonfallthru_and_redirect, tidy_fallthru_edge,
14385 back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
14386 commit_edge_insertions, commit_edge_insertions_watch_calls,
14387 dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
14388 purge_all_dead_edges): Modified.
14389 * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
14390 try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
14391 get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
14393 * conflict.c (conflict_graph_compute): Modified.
14394 * df.c (FOR_ALL_BBS): Removed.
14395 (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
14396 df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
14397 df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
14398 * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
14399 * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
14400 calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
14401 * final.c (compute_alignments, final_scan_insn): Modified.
14402 * flow.c (verify_local_live_at_start, update_life_info,
14403 update_life_info_in_dirty_blocks, free_basic_block_vars,
14404 delete_noop_moves, calculate_global_regs_live,
14405 initialize_uninitialized_subregs, allocate_bb_life_data,
14406 regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
14407 mark_used_reg, count_or_remove_death_notes): Modified.
14408 * function.c (thread_prologue_and_epilogue_insns): Modified.
14409 * gcse.c (struct null_pointer_info): Change typo of current_block
14411 (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
14412 oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
14413 compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
14414 alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
14415 expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
14416 classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
14417 one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
14418 pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
14419 pre_delete, one_pre_gcse_pass, compute_transpout,
14420 invalidate_nonnull_info, delete_null_pointer_checks_1,
14421 free_code_hoist_mem, compute_code_hoist_vbeinout,
14422 hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
14423 compute_ld_motion_mems, store_ops_ok, find_moveable_store,
14424 compute_store_table, build_store_vectors, insert_insn_start_bb,
14425 insert_store, replace_store_insn, free_store_memory, store_motion):
14427 * global.c (global_alloc, global_conflicts, mark_elimination,
14428 build_insn_chain): Modified.
14429 * graph.c (print_rtl_graph_with_bb): Modified.
14430 * haifa-sched.c (sched_init): Modified.
14431 * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
14432 (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
14433 if_convert): Modified.
14434 * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
14435 compute_insert_delete, pre_edge_lcm, compute_available,
14436 compute_farthest, compute_nearerout, compute_rev_insert_delete,
14437 pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
14439 * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
14440 * loop.c (loop_dump_aux): Modified.
14441 * predict.c (combine_predictions_for_insn, estimate_probability,
14442 last_basic_block_p, process_note_prediction, process_note_predictions,
14443 note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
14444 expensive_function_p, estimate_bb_frequencies,
14445 compute_function_frequency): Modified.
14446 * print-rtl.c (print_rtx): Modified.
14447 * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
14448 get_exec_counts, compute_branch_probabilities, compute_checksum,
14449 branch_prob, find_spanning_tree): Modified.
14450 * recog.c (split_all_insns, peephole2_optimize): Modified.
14451 * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
14452 convert_regs_1, convert_regs_2, convert_regs): Modified.
14453 * regclass.c (scan_one_insn, regclass): Modified.
14454 * regmove.c (mark_flags_life_zones, regmove_optimize,
14455 combine_stack_adjustments): Modified.
14456 * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
14457 * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
14458 * reorg.c (dbr_schedule): Modified.
14459 * resource.c (find_basic_block, init_resource_info): Modified.
14460 * sbitmap.c (sbitmap_intersection_of_succs,
14461 sbitmap_intersection_of_preds, sbitmap_union_of_succs,
14462 sbitmap_union_of_preds): Modified.
14463 * sched-deps.c (init_dependency_caches): Modified.
14464 * sched-ebb.c (schedule_ebbs): Modified.
14465 * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
14466 find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
14467 * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
14468 * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
14469 ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
14470 ssa_const_prop): Modified.
14471 * ssa-dce.c (set_control_dependent_block_to_edge_map_,
14472 find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
14473 * ssa.c (remove_phi_alternative, find_evaluations,
14474 compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
14475 insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
14476 make_regs_equivalent_over_bad_edges,
14477 make_equivalent_phi_alternatives_equival,
14478 compute_conservative_reg_partition,
14479 coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
14480 rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
14483 2002-05-16 Mark Mitchell <mark@codesourcery.com>
14485 * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
14487 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
14489 * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
14490 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14491 (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
14492 calling CONSTANT_POOL_ADDRESS_P.
14493 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
14494 to decide whether to define __arm__ or __thumb.
14495 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
14496 SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
14498 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
14500 * config/arc/arc.h (CPP_PREDEFINES): Remove.
14501 (CPP_SPEC): Update.
14502 (TARGET_CPU_CPP_BUILTINS): New.
14504 2002-05-16 Neil Booth <neil@daikokuya.demon.co.uk>
14506 * cpphash.h (cpp_macro): Move here, and make expansion a union.
14507 * cppmacro.c (cpp_macro): Remove.
14508 (enter_macro_context, replace_args, warn_of_redefinition,
14509 _cpp_create_definition, cpp_macro_definition): Update.
14511 2002-05-16 Jason Merrill <jason@redhat.com>
14513 * config/mips/mips.c (mips_output_external): Don't do sdata
14514 optimization for a variable with DECL_COMDAT set.
14516 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
14518 * config/rs6000/altivec.h: Cleanups for tighter typechecking.
14519 Cleanups for accepting modifiers on pointers.
14520 Fix predicate typos.
14521 Allow long pointers as well as int pointers.
14523 2002-05-15 Richard Henderson <rth@redhat.com>
14525 * varasm.c (merge_weak): Remove special case for extern and common.
14527 2002-05-15 Matt Hiller <hiller@redhat.com>
14529 * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
14531 * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
14532 * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
14533 * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
14534 * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
14535 * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
14536 * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
14538 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
14540 * reload1.c (forget_old_reloads_1): Do not use subreg offset.
14542 2002-05-15 Aldy Hernandez <aldyh@redhat.com>
14544 * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
14545 ("altivec_mfvscr"): Read from VSCR.
14547 Add vscr sets for the following insns: altivec_vctuxs,
14548 altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
14549 altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
14550 altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
14551 altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
14552 altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
14553 altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
14554 altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
14555 altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
14556 altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
14557 altivec_vsum2sws, altivec_vsumsws.
14559 * config/rs6000/rs6000.h: Add VSCR fixed register.
14560 (CALL_REALLY_USED_REGISTERS): Add vscr.
14561 (CALL_USED_REGISTERS): Same.
14562 (FIXED_REGISTERS): Same.
14563 (REG_ALLOC_ORDER): Same.
14564 (reg_class): Add VSCR_REGS.
14565 (REG_CLASS_NAMES): Same.
14566 (REG_CLASS_CONTENTS): Same.
14568 (REGISTER_NAMES): Add vscr.
14569 (DEBUG_REGISTER_NAMES): Same.
14570 (ADDITIONAL_REGISTER_NAMES): Same.
14571 (FIRST_PSEUDO_REGISTER): Increment.
14572 (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
14574 2002-05-15 Jakub Jelinek <jakub@redhat.com>
14576 * fold-const.c (fold): Fix a typo.
14578 2002-05-15 Eric Botcazou <ebotcazou@multimania.com>
14580 * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
14581 comparison against the highest or lowest integer value before
14582 the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
14583 transformation and that of an unsigned comparison against 0
14586 2002-05-15 Richard Henderson <rth@redhat.com>
14588 * varasm.c (merge_weak): Error for any weakening after definition.
14589 Adjust weakening after use warning to catch more cases.
14590 (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
14591 * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
14593 Wed May 15 10:38:27 CEST 2002 Jan Hubicka <jh@suse.cz>
14595 * invoke.texi (-malign-double): Re-add lost warning.
14597 * i386-protos.h (x86_output_mi_thunk): Declare.
14598 * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
14599 * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
14601 * dwarf2out.c (output_call_frame_info): Do not skip unwind info
14602 when flag_asynchronous_unwind_tables is set.
14604 * flags.h (flag_reorder_functions): Declare.
14605 * function.c (prepare_function_start): Initialize frequnecy.
14606 * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
14607 * Makefile.in (predict.o): Add dependency on target.h and params.h
14608 * defaults.h (HOT_TEXT_SECTION_NAME,
14609 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
14610 * predict.c (choose_function_section): New function.
14611 (estimate_bb_frequencies): Use it.
14612 * toplev.c (flag_reorder_functions): New global variable.
14613 (lang_independent_options): New.
14614 (parse_options_and_default_flags): Set.
14615 * varasm.c (assemble_start_function): Bypass functdion alignment
14616 for never executed functions.
14617 * invoke.texi (-freorder-blocks, -freorder-functions): Document.
14618 (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
14619 * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
14622 Thu Jan 3 21:52:09 CET 2002 Jan Hubicka <jh@suse.cz>
14624 * predict.c: Inlude profile.h
14625 (MIN_COUNT): Rename to MIN_COUNT_FRACTION
14626 (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
14627 Use the information about maximal counter in the program.
14629 Thu Dec 20 22:14:00 CET 2001 Jan Hubicka <jh@suse.cz>
14631 * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
14632 probably_never_executed_bb_p): New functions.
14633 * cfgcleanup.c (outgoing_edges_match): Use them.
14634 * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
14635 (maybe_hot_bb_p, probably_cold_bb_p,
14636 probably_never_executed_bb_p): New functions.
14638 * function.h (function): Add new field function_frequency.
14639 * predict.c (compute_function_frequency): New function.
14640 (estimate_probability): Call it.
14642 2002-03-09 Jakub Jelinek <jakub@redhat.com>
14644 PR optimization/5172, optimization/5200
14645 * gcse.c (gcse_main): Disable store_motion.
14647 2002-05-14 Zack Weinberg <zack@codesourcery.com>
14649 * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
14650 (c_common_nodes_and_builtins): Use it.
14651 (builtin_define_with_value): New function.
14652 (cb_register_builtins): Define __SIZE_TYPE__,
14653 __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
14654 using builtin_define_with_value. Use consistent notation when
14655 defining __GXX_WEAK__.
14656 (WCHAR_TYPE_SIZE): Don't redefine.
14657 (combine_strings): Don't use WCHAR_TYPE_SIZE.
14659 * cppdefault.h: Don't provide defaults for SIZE_TYPE,
14660 PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
14661 * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
14662 * tradcpp.c (initialize_builtins): Likewise.
14663 * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
14665 * c-lex.h (builtin_define_with_value): Prototype.
14666 * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
14667 NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
14668 * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
14670 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14671 config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
14672 config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
14673 config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
14674 config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
14675 config/sparc/linux64.h, config/sparc/netbsd-elf.h,
14676 config/sparc/sol2-bi.h, config/sparc/sparc.h:
14677 Do not define NO_BUILTIN_SIZE_TYPE etc. Remove all references
14678 to __SIZE_TYPE__ etc from all spec strings. When this makes
14679 extra specs empty, delete them.
14681 2002-05-14 John David Anglin <dave@hiauly1.hia.nrc.ca>
14683 * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
14684 for PA8000 or generating dwarf2 call frame information.
14685 (output_call): Remove DO_FRAME_NOTES check from return pointer
14687 (following_call): Return 0 when scheduling for PA8000 or generating
14688 dwarf2 call frame information. Revise comment.
14690 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
14693 * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
14694 and __IEEE_FP_INEXACT as appropriate.
14695 (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
14696 (CPP_SPEC): Remove ieee defines.
14697 * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
14699 2002-05-14 Richard Henderson <rth@redhat.com>
14701 * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
14702 (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
14704 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
14706 * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
14707 (CPP_SPEC): Update.
14708 (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
14709 CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
14710 CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
14711 CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
14712 (EXTRA_SPECS): Update.
14713 * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
14714 arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
14715 arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
14716 define TARGET_OS_CPP_BUILTINS if necessary.
14718 2002-05-14 Neil Booth <neil@daikokuya.demon.co.uk>
14720 * gcc.c (cpp_options): Must pass -m* and -f* options
14721 to the front end even when only preprocessing.
14722 (cc1_options): Remove redundant -lang-c.
14723 * tradcpp.c (main): Ignore -m options.
14725 * lang-specs.h: Similarly.
14727 2002-05-14 Vladimir Makarov <vmakarov@redhat.com>
14729 * genautomata.c (transform_3): Add code for transformation
14730 `(A,B,...)+C -> A+C,B,...'.
14732 Tue May 14 12:48:22 CEST 2002 Jan Hubicka <jh@suse.cz>
14734 * final.c (end_final): Do not output profile_arcs constructor, when
14735 no functions are instrumented.
14737 Tue May 14 12:38:30 CEST 2002 Jan Hubicka <jh@suse.cz>
14739 * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
14741 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
14743 * doc/install.texi: Remove special markup originally required for
14744 HTML generation with texi2html.
14746 2002-05-14 Andreas Schwab <schwab@suse.de>
14748 * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
14750 (UNIQUE_SECTION): Define to get small data correctly.
14752 * varasm.c (resolve_unique_section): Add third parameter
14753 flag_function_or_data_sections and use it instead of
14754 flag_function_sections.
14755 (assemble_start_function): Pass flag_function_sections.
14756 (asm_emit_uninitialised): Pass flag_data_sections.
14757 (assemble_variable): Likewise.
14759 2002-05-14 Richard Henderson <rth@redhat.com>
14761 * config/i386/i386.md: Use define_constants for unspec numbers.
14762 * config/i386/i386.c: Likewise.
14764 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
14766 * doc/contrib.texi: Update my entry.
14768 2002-05-13 Mark Mitchell <mark@codesourcery.com>
14770 * fixinc/inclhack.def (winidss_valist): Limit applicability.
14771 * fixinc/fixincl.x: Regenerated.
14772 * fixinc/tests/base/math.h: Update.
14773 * fixinc/tests/base/testing.h: Likewise.
14775 2002-05-13 Zack Weinberg <zack@codesourcery.com>
14777 * genattr.c (gen_attr): Don't emit a comma after the last
14780 2002-05-13 Richard Henderson <rth@redhat.com>
14782 * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
14783 by non-local gotos.
14784 * recog.c (peephole2_optimize): Likewise.
14786 2002-05-13 Andris Pavenis <pavenis@lanet.lv>
14788 * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
14791 2002-05-13 Jeffrey A Law (law@redhat.com)
14793 * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
14794 Update prototype and callers.
14795 (propagate_one_insn): Stack pointer adjustments kill MEMs on
14796 the mem_set_list which reference the stack pointer, as do
14797 calls to constant functions as they may clobber outgoing
14800 * i386.c (ia32_multipass_dfa_lookahead): Prototype.
14802 * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14803 (ia32_multipass_dfa_lookahead): New function.
14805 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
14807 * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
14808 (translate_options): Remove 'V'.
14809 (process_command): Similarly.
14811 * invoke.texi: Remove documentation of 'V'.
14813 2002-05-13 Ulrich Weigand <uweigand@de.ibm.com>
14815 * config/s390/linux.h: Revert 2002-04-22 changes.
14817 2002-05-13 Scott Marks <SMarks@mobile-mind.com>
14819 * config/fr30/fr30.md: Only allow splits of immediate loads
14820 if the destination is a register.
14822 2002-05-13 Neil Booth <neil@daikokuya.demon.co.uk>
14824 * Makefile.in (c-common.o, cppinit.o): Update.
14825 * c-common.c: Include except.h.
14826 (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
14827 Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
14828 * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
14829 * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
14830 CPP_PREDEFINES): Handle here.
14832 * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
14833 alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
14834 alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
14835 TARGET_OS_CPP_BUILTINS.
14836 * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
14837 (CPP_SPEC, EXTRA_SPECS): Update.
14838 (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
14839 CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
14840 CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
14841 CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
14842 CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
14844 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
14845 (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
14847 2002-05-12 Zack Weinberg <zack@codesourcery.com>
14849 * emit-rtl.c (global_rtl): Update comment.
14850 (const_double_htab, const_double_htab_hash,
14851 const_double_htab_hash, lookup_const_double): New.
14852 (const_int_htab_hash, const_int_htab_eq): Remove const
14853 qualifiers, which cause tons of warnings with RTL checking on.
14854 (gen_rtx_CONST_DOUBLE): Deleted.
14855 (const_double_from_real_value): New function - bears some
14856 resemblance to the former immed_real_const_1.
14857 (immed_double_const): Moved here from varasm.c and
14859 (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
14860 (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
14861 (gen_rtx): Use immed_double_const.
14862 (init_emit_once): Initialize the const_double_htab. Use
14863 REAL_VALUE_FROM_INT where possible. Can now use
14864 CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
14865 * varasm.c (struct varasm_status): Remove x_const_double_chain.
14866 (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
14867 (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
14868 (init_varasm_status, mark_varasm_status): Don't touch
14869 x_const_double_chain.
14871 * output.h: Delete prototype for clear_const_double_mem.
14872 * real.h: Make REAL_VALUE_TYPE a macro again. Remove leading
14873 '0' slot from all CONST_DOUBLE_FORMAT definitions. Prototype
14874 const_double_from_real_value, not immed_real_const_1, and use
14875 it to define CONST_DOUBLE_FROM_REAL_VALUE. Define new macro
14877 * rtl.h (CONST_DOUBLE_CHAIN): Kill.
14878 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
14879 (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
14880 (gen_rtx_REG): Second arg is unsigned.
14882 * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
14883 (excluded_rtx): New, return true for CONST_DOUBLE.
14884 (genmacro): Write nothing for excluded codes.
14885 * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
14886 * expr.c (expand_expr): Likewise.
14887 * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
14888 CONST_DOUBLE_CHAIN.
14889 * toplev.c (rest_of_compilation): Don't call
14890 clear_const_double_mem.
14892 * config/rs6000/rs6000.c (rs6000_float_const): Delete.
14893 (rs6000_hash_constant): Remove CONST_DOUBLE special case.
14894 (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
14895 * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
14896 * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
14897 * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
14898 config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
14899 * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
14901 2002-05-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14903 * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
14905 2002-05-12 Tom Tromey <tromey@redhat.com>
14907 * tree.h (copy_node): Don't mention TREE_PERMANENT.
14909 2002-05-12 Zack Weinberg <zack@codesourcery.com>
14911 * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
14912 (scan_comma_elt): New function. Accepts whitespace in comma lists.
14913 * gensupport.h: Prototype new routines.
14914 * genattr.c (gen_attr): Use scan_comma_elt. Avoid unnecessary
14916 * genattrtab.c (n_comma_elts): Moved to gensupport.c.
14917 (next_comma_elt): Use scan_comma_elt.
14919 * config/i386/i386.md: Use new attribute notation to break up
14920 long lines in define_attr forms.
14922 2002-05-12 Richard Henderson <rth@redhat.com>
14924 * expr.c (compress_float_constant): New.
14925 (emit_move_insn): Use it.
14926 (float_extend_from_mem): New.
14927 (init_expr_once): Initialize it.
14928 * real.c (exact_real_truncate): New.
14930 * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
14931 dropped into memory; penalize for size.
14932 (RTX_COSTS): FLOAT_EXTEND is free.
14933 * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
14934 extenddfxf2, extenddftf2): Accept constants and drop them to memory.
14936 2002-05-12 Richard Henderson <rth@redhat.com>
14938 * profile.h (profile_info): Add missing extern to declaration.
14939 * profile.c (profile_info): Define it.
14941 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14943 * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
14944 used for DImode and TImode.
14946 2002-05-11 Neil Booth <neil@daikokuya.demon.co.uk>
14948 * cpplex.c (_cpp_lex_direct): When in a directive at EOF
14951 2002-05-11 Zack Weinberg <zack@codesourcery.com>
14953 * config/rs6000/rs6000.c (rs6000_default_long_calls,
14954 rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
14955 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
14956 (rs6000_override_options): Handle -m(no-)longcall.
14957 (init_cumulative_args, output_mi_thunk): Check for both
14958 longcall and shortcall attributes on the function.
14959 (rs6000_attribute_table): Add "shortcall".
14960 (rs6000_handle_longcall_attribute): Update comment.
14961 (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
14962 altivec_expand_ternop_builtin): Add default clauses to switches
14963 to silence warnings.
14965 * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
14966 rs6000_default_long_calls. Define REGISTER_TARGET_PRAGMAS.
14967 (TARGET_OPTIONS): Add longcall and no-longcall.
14969 * config/rs6000/rs6000.md (call_nonlocal_sysv,
14970 call_value_nonlocal_sysv): Split by alternatives. One pair
14971 accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
14972 the call cookie. The other pair accepts only LR/CTR and has
14975 * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
14976 Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
14978 * config/rs6000/rs6000-c.c: New file.
14979 * config/rs6000/t-rs6000-c-rule: New file.
14980 * config/rs6000/rs6000-protos.c: Add multiple-include guard.
14981 Prototype rs6000_pragma_longcall.
14983 * doc/extend.texi: Document shortcall attribute.
14984 * doc/invoke.texi: Document -mlongcall, -mno-longcall.
14986 2002-05-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
14988 * reorg.c (dbr_schedule): Remove unnecessary test.
14990 Sat May 11 14:34:35 CEST 2002 Jan Hubicka <jh@suse.cz>
14992 * i386.md (testsi to testqi spliters): New.
14994 2002-01-14 Josef Zlomek <zlomek@matfyz.cz>
14996 cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
14998 Wed Jan 9 2002 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
15000 * basic-block.h: New flag EDGE_CAN_FALLTHRU
15001 * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
15002 that can be made fallthru.
15004 Mon Nov 12 16:25:53 CET 2001 Jan Hubicka <jh@suse.cz>
15006 * cfglayout.c (cleanup_unconditional_jumps): New static function.
15007 (cfg_layout_initialize): Use it.
15009 2002-05-11 Marek Michalkiewicz <marekm@amelek.gda.pl>
15011 * config/avr/avr.c (avr_mcu_types): Update supported devices.
15012 * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
15013 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15015 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
15017 * dbxout.c: Fix formatting.
15018 * dependence.c: Likewise.
15020 * diagnostic.c: Likewise.
15021 * doloop.c: Likewise.
15022 * dominance.c: Likewise.
15023 * doschk.c: Likewise.
15024 * dwarf2asm.c: Likewise.
15025 * dwarf2out.c: Likewise.
15026 * dwarfout.c: Likewise.
15028 2002-05-10 Richard Henderson <rth@redhat.com>
15030 * final.c (end_final): Tidy whitespace. Don't honor flag_pack_struct.
15031 Convert integers constants as needed. Replace "nwords" field with
15033 (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
15034 * function.h: Fix typo in comment.
15035 * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
15037 2002-05-10 Roger Sayle <roger@eyesopen.com>
15039 * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
15040 into the equivalent (signed char)c > 0.
15042 2002-05-10 Janis Johnson <janis187@us.ibm.com>
15044 * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
15045 (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
15046 (struct prefetch_info): Fix spelling of member bytes_accessed.
15047 (emit_prefetch_instructions): Make dump messages more regular;
15048 restructure code to add more dump messages; use new macros for
15049 heuristics. (There are no code generation changes in any of this).
15051 2002-05-10 David S. Miller <davem@redhat.com>
15053 * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
15054 (struct rtx_def): Update unchanging flag comment.
15055 * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
15056 * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
15057 to be handled to INSN too.
15058 (dbr_schedule): Likewise.
15059 * resource.c (next_insn_no_annul): Likewise.
15061 * cse.c (rtx_cost): Remove multiplication by power of 2 special
15064 2002-05-14 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
15066 * doc/install.texi (Specific, *-*-solaris2*): Update passus on
15067 setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
15068 (possibly) work around broken /bin/sh.
15070 2002-05-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15072 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
15073 . as N64/N32 libgcc_s.so subdirs.
15075 2002-05-10 David S. Miller <davem@redhat.com>
15077 * config/sparc/sparc.md: Use define_constants for unspec numbers.
15079 * rtl.h (struct rtx_def): Document unchanging and in_struct flags
15081 (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
15083 (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
15084 * doc/rtl.texi: Document these macros more accurately.
15085 * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
15086 JUMP_INSNs and CALL_INSNs.
15087 * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
15088 or INSN_FROM_TARGET_P if the code is appropriate.
15090 2002-05-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
15092 * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
15093 before using SYMBOL_REF_FLAG (addr).
15095 * config/avr/avr-protos.h (avr_io_address_p): Declare.
15096 * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
15097 Make non-static. Update all callers.
15098 * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
15099 New insns to clear/set/test a single bit in I/O address space.
15101 2002-05-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15103 * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
15105 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
15107 * Makefile.in: Update.
15108 * c-common.c (flag_iso, flag_undef, cb_register_builtins,
15109 builtin_define_std): New.
15110 (c_common_init): Register CPP builtins callback.
15111 * c-common.h (flag_iso, flag_undef): New.
15112 * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
15113 * c-lex.c: Don't include target.h.
15114 (cb_register_builtins): Move to c-common.c.
15115 (init_c_lex): Don't register hook here.
15116 * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
15117 (cpp_define, cpp_assert): Remove.
15118 * gcc.c (cc1_options): Pass -undef to front end.
15119 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
15120 (TARGET_INITIALIZER): Update.
15121 * target.h (struct cpp_reader): Don't predeclare.
15122 (struct gcc_target): Remove cpp builtin hook.
15123 * tree.c (default_register_cpp_builtins): Remove.
15127 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
15129 * cppexp.c (_cpp_expand_op_stack): Set op_limit.
15131 2002-05-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15133 * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
15134 (SHLIB_LINK, SHLIB_INSTALL): Adjust.
15136 2002-05-09 Jakub Jelinek <jakub@redhat.com>
15138 * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
15139 * config/sparc/libgcc-sparc-glibc.ver: New file.
15140 * config/cris/t-linux (SHLIB_MAPFILES): Remove.
15141 * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
15143 2002-05-09 Jakub Jelinek <jakub@redhat.com>
15146 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
15147 * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
15148 shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
15150 * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
15151 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
15152 * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
15153 * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
15155 2002-05-09 Richard Henderson <rth@redhat.com>
15157 * config/ia64/ia64.md: Use define_constants for unspec numbers.
15158 * config/ia64/ia64.c: Likewise.
15160 2002-05-09 Richard Sandiford <rsandifo@redhat.com>
15162 * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
15163 (save_restore_insns): Likewise.
15164 (mips_expand_prologue, mips_expand_epilogue): Update callers.
15165 (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
15167 Thu May 9 11:50:09 2002 Jeffrey A Law (law@redhat.com)
15169 * athlon.md, k6.md, pentium.md, ppro.md): New files.
15170 * i386.md: Move scheduling information into new files.
15172 * i386.md (type attribute): Add "rotate" for rotate insns.
15173 (rotate insns): Set type to "rotate".
15174 (various attributes and function units): Treat rotate like shift.
15175 (pent_pair attribute): Only rotates by one bit position are
15177 (sbb insns): Explicitly set pent_pair attribute on a couple
15178 that were missing it.
15180 Thu May 9 18:29:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
15182 * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
15183 make sure that buffer starts on odd word address.
15184 (sh_va_arg): Skip odd fp registers when reading a double precision
15187 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
15189 * tree.h (preserve_data, object_permanent_p, type_precision):
15192 2002-05-09 Neil Booth <neil@daikokuya.demon.co.uk>
15194 * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
15195 * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
15197 * cpp.texi: Update for removal of obsolete features.
15199 Thu May 9 07:46:18 2002 Jan Hubicka <jh@suse.cz>
15200 Jeffrey A Law (law@redhat.com)
15202 * i386.c (ia32_use_dfa_pipeline_interface): New function. Use
15203 the DFA interface for Pentium processors.
15204 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
15205 (attr_pent_pair, ix86_pent_find_pair): Remove.
15206 (ix86_sched_reorder_pentium): Remove.
15207 (ix86_sched_reorder): Remove reordering for Pentium.
15208 * i386.md (Pentium scheduling): Rewrite using DFA description.
15210 Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
15212 * cfganal.c (can_fallthru): Fix fast path.
15213 * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
15214 with edges to the next block.
15216 Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
15217 Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
15219 * final.c (end_final): Use C trees to output data structures for profiling.
15221 * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
15222 (profile.o): New dependency profile.h
15223 (final.o): New dependency profile.h
15224 * profile.h: New file. New global structure profile_info.
15225 * final.h (count_edges_instrumented_now): Declare.
15226 (current_function_cfg_checksum): Declare.
15227 (function_list): New structure.
15228 (functions_head, functions_tail): New static variables.
15229 (end_final): Emits more data, removed some -ax stuff.
15230 (final): Stores function names and chcksums.
15231 * gcov-io.h (__write_gcov_string): New function.
15232 (__read_gcov_string): New function.
15233 * gcov.c (read_profile): New function.
15234 (create_program_flow_graph): Uses read_profile instead of reading
15236 (read_files): Removed da_file checking, it's done by read_profile now.
15237 * libgcc2.c (bb_function_info): New structure.
15238 (bb): New field in structure, removed some -ax stuff.
15239 (__bb_exit_func): Changed structure of da_file.
15240 * profile.c (count_edges_instrumented_now): New global variable.
15241 (current_function_cfg_checksum): New global variable.
15242 (max_counter_in_program): New global variable.
15243 (get_exec_counts): New function.
15244 (compute_checksum): New function.
15245 (instrument_edges): Sets count_edges_instrumented_now.
15246 (compute_branch_probabilities): Uses get_exec_counts instead of
15248 (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
15249 (init_branch_prob): Removed da_file checking, done in get_exec_counts
15251 (end_branch_prob): Removed da_file checking, done in get_exec_counts
15253 * gcov.texi: Updated information about gcov file format.
15255 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
15257 * sbitmap.c: Fix formatting.
15258 * scan.c: Likewise.
15259 * scan-decls.c: Likewise.
15260 * sched-deps.c: Likewise.
15261 * sched-ebb.c: Likewise.
15262 * sched-rgn.c: Likewise.
15263 * sched-vis.c: Likewise.
15264 * sdbout.c: Likewise.
15265 * sibcall.c: Likewise.
15266 * simplify-rtx.c: Likewise.
15268 * ssa-ccp.c: Likewise.
15269 * ssa-dce.c: Likewise.
15270 * stmt.c: Likewise.
15271 * stor-layout.c: Likewise.
15272 * stringpool.c: Likewise.
15274 2002-05-09 David S. Miller <davem@redhat.com>
15276 * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
15278 2002-05-07 David S. Miller <davem@redhat.com>
15280 * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
15281 * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
15282 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
15283 library implementation clobbers the output before the inputs
15284 are fully consumed, use stack temporary for the output.
15286 2002-05-09 Jason Thorpe <thorpej@wasabisystems.com>
15288 * config/netbsd.h (CPP_SPEC): Remove.
15289 * config/i386/netbsd-elf.h (CPP_SPEC): Define.
15290 * config/i386/netbsd.h (CPP_SPEC): Define.
15291 * config/ns32k/netbsd.h (CPP_SPEC): Define.
15292 * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
15293 * config/sparc/netbsd.h (CPP_SPEC): Define.
15294 * config/vax/netbsd.h (CPP_SPEC): Define.
15296 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
15298 * read-rtl.c: Fix formatting.
15299 * real.c: Likewise.
15300 * recog.c: Likewise.
15301 * regclass.c: Likewise.
15302 * regmove.c: Likewise.
15303 * reg-stack.c: Likewise.
15304 * reload1.c: Likewise.
15305 * reload.c: Likewise.
15306 * resource.c: Likewise.
15307 * rtlanal.c: Likewise.
15309 * rtl-error.c: Likewise.
15311 2002-05-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
15313 * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
15314 * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
15316 2002-05-08 Bernd Schmidt <bernds@redhat.com>
15318 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
15319 use __SSE2__ macro instead.
15320 * config/i386/xmmintrin.h: Likewise.
15322 2002-05-08 Janis Johnson <janis187@us.ibm.com>
15324 * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
15325 and use it in all invocations of these macros. Clean up comments.
15326 * rtl.c (rtl_check_failed_flag): Add an argument for the name
15327 of the flag access macro whose check failed.
15328 * doc/rtl.texi (Flags): Document additional flag uses.
15330 2002-05-08 Robert Spier <rspier@pobox.com>
15331 Neil Booth <neil@daikokuya.demon.co.uk>
15333 PR preprocessor/6521
15334 * cppfiles.c (handle_missing_header): Don't do anything
15335 different for <> includes.
15337 * cppopts.texi: Update documentation for -MG.
15339 2002-05-08 Neil Booth <neil@daikokuya.demon.co.uk>
15341 * cpplex.c (cpp_interpret_charconst): Truncate as well as
15344 * cpp.texi: Clarify multichar charconst valuation.
15346 2002-05-08 Mark Mitchell <mark@codesourcery.com>
15348 * doc/invoke.texi: Document -mwindiss option.
15350 2002-05-08 Jason Merrill <jason@redhat.com>
15352 * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
15354 * dwarf2out.c (gen_type_die): Abort on broken recursion.
15357 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
15360 2002-05-08 Nick Clifton <nickc@cambridge.redhat.com>
15362 * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
15363 little-endian multilibs to override arm/thumb multilibs.
15364 Do not build hardware floating point multilibs, nor apcs-26
15365 multilibs for the Thumb.
15367 2002-05-08 Mark Mitchell <mark@codesourcery.com>
15370 * varasm.c (mark_weak): New function.
15371 (merge_weak): Use it. Do not call declare_weak.
15372 (declare_weak): Use merge_weak.
15374 Wed May 8 13:12:11 CEST 2002 Jan Hubicka <jh@suse.cz>
15376 * cse.c (dead_libcall_p): Update counts.
15377 (delete_trivially_dead_insns): Update call of dead_libcall_p.
15379 Wed May 8 11:08:50 CEST 2002 Jan Hubicka <jh@suse.cz>
15381 * cfglayout.c (function_tail_eff_head): Rename to ...
15382 (function_footer): ... this one.
15383 (unlink_insn_chain): New functions.
15384 (label_for_bb): Only call block_label and emit debug message.
15385 (record_effective_endpoints): Actually unlink the headers and footers.
15386 (fixup_reorder_cahin): Re-insert the unlinked sequences.
15387 (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
15388 * cfglayout.h (struct reorder_block_def): New fields footer/header;
15389 remove eff_head/eff_end.
15390 * rtl.h (set_first_insn): Declare.
15391 * emit-rtl.c (set_first_insn): New function.
15393 * cfglayout.c (fixup_reorder_chain): Dump duplicated
15394 (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15395 cfg_layout_duplicate_bb): New global function.
15396 (duplicate_insn_chain): New static function.
15397 * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
15398 cfg_layout_duplicate_bb): Declare.
15399 (struct reorder_block_def): Add "original" field.
15400 * emit-rtl.c (emit_copy_of_insn_after): New function.
15401 * rtl.h (emit_copy_of_insn_after): Declare.
15403 * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
15404 (fixup_reorder_chain): properly handle edges to exit block.
15406 Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15407 Jan Hubicka <jh@suse.cz>
15409 * basic-block.h (note_prediction_to_br_prob): declare.
15410 * c-semantics.c: Inlucde predit.h
15411 (expand_stmt): predict GOTO_STMT as not taken.
15412 * cfgcleanup.c: (delete_unreachable_blocks): Make global.
15413 (cleanup_cfg): Do not free tail_recursion_list.
15414 * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
15415 (flow_delete_block): Kill predictions past end of basic block.
15416 * output.h (delete_unreachable_blocks): Declare.
15417 * predict.c (predicted_by_p, process_note_predictions,
15418 process_note_prediction, last_block_p): New function.
15419 (estimate_probability): Bypass loop on PRED_CONTINUE;
15420 do not handle noreturn heuristics; kill PRED_RETURN; add
15422 * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
15423 PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
15424 * predict.h (IS_TAKEN): New constant.
15425 * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
15426 * rtl.c (NOTE_INSN_PREDICTION): New.
15427 * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
15429 (insn_note): add NOTE_INSN_PREDICTION.
15430 * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
15431 CFG; free tail_recursion_label_list.
15432 * stmt.c: Include predict.h;
15433 (return_prediction): New.
15434 (expand_value_return): Use it.
15435 * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
15437 2002-05-08 Richard Sandiford <rsandifo@redhat.com>
15439 * config/mips/mips.md: Name the unspecs with define_constant.
15440 (*HILO_delay): Rename to 'hilo_delay' (no star).
15441 (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
15442 (reload_outdi, reload_outsi): Likewise.
15444 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
15446 * toplev.c: Fix formatting.
15448 2002-05-07 Janis Johnson <janis187@us.ibm.com>
15450 * config.in (ENABLE_RTL_FLAG_CHECKING): New.
15451 * configure.in (ac_rtlflag_checking): New.
15452 * doc/install.texi (--enable-checking): Document RTL flag checking.
15454 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
15456 * c-common.c (c_common_init): Set options->unsigned_wchar.
15457 * cppinit.c (cpp_create_reader): Default unsigned_wchar,
15458 group target dependencies.
15459 (init_builtins, cpp_handle_option): Update.
15460 * cpplex.c (cpp_interpret_charconst): Update.
15461 * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
15462 signed_char to unsigned_char, group target dependencies.
15463 * defaults.h (WCHAR_UNSIGNED): Remove.
15464 * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
15466 * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
15467 i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
15468 i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
15469 i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
15470 sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
15472 * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
15474 2002-05-07 Mark Mitchell <mark@codesourcery.com>
15476 * fixinc/inclhack.def (windiss_math1): New fix.
15477 (windiss_math2): Likewise.
15478 (windiss_valist): Likewise.
15479 * fixinc/fixincl.x: Regenerated.
15481 2002-05-07 Andreas Jaeger <aj@suse.de>
15483 * genautomata.c (output_internal_min_issue_delay_func): Add
15484 ATTRIBUTE_UNUSED to avoid warning with empty dfa.
15485 (output_internal_trans_func): Likewise.
15487 Tue May 7 10:06:22 2002 Jeffrey A Law (law@redhat.com)
15489 * pa.c (hppa_profile_hook): Use force_reg to get the address
15490 of the profile hook into an appropriate pseudo register.
15492 2002-05-07 Mark Mitchell <mark@codesourcery.com>
15494 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
15495 (LINK_START_SPEC): Handle it.
15496 (LINK_OS_SPEC): Likewise.
15497 (CPP_SPEC): Likewise.
15498 (STARTFILE_SPEC): Likewise.
15499 (LIB_SPEC): Likewise.
15500 (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on
15502 (CRTSAVRES_DEFAULT_SPEC): New macro.
15503 (LIB_WINDISS_SPEC): New macro.
15504 (CPP_OS_WINDISS_SPEC): Likewise.
15505 (STARTFILE_WINDISS_SPEC): Likewise.
15506 (ENDFILE_WINDISS_SPEC): Likewise.
15507 (LINK_START_WINDISS_SPEC): Likewise.
15508 (LINK_OS_WINDISS_SPEC): Likewise.
15509 * config/rs6000/windiss.h: New file.
15511 2002-05-07 Aldy Hernandez <aldyh@redhat.com>
15513 * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
15515 2002-05-06 David S. Miller <davem@redhat.com>
15517 * config/sparc/sparc.md (shift insns): Do not mask off
15518 second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
15521 2002-05-06 Richard Henderson <rth@redhat.com>
15524 * expr.c (highest_pow2_factor_for_type): New.
15525 (expand_assignment): Use it.
15527 2002-05-06 Aldy Hernandez <aldyh@redhat.com>
15529 * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
15531 ("altivec_mfvscr"): Same.
15533 2002-05-06 Janis Johnson <janis187@us.ibm.com>
15535 * rtl.h (struct rtx_def): Update comments.
15536 (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare.
15537 (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use
15538 RTL_FLAG_CHECK macros with list of expected RTL codes.
15539 * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
15540 (rtl_check_failed_flag): New.
15541 * reload1.c (reload): Use REG macro before changing rtx to MEM.
15542 (reload_cse_noop_set_p): Check rtx code before using access macro.
15543 * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
15544 before using access macro.
15546 2002-05-06 Janis Johnson <janis187@us.ibm.com>
15548 * doc/rtl.texi (Flags): Update to reflect current usage.
15550 2002-05-06 Roger Sayle <roger@eyesopen.com>
15553 * fold-const.c (sign_bit_p): New function.
15554 (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
15555 (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
15556 Reapply fold when converting (A & C) == C into (A & C) != 0.
15557 (fold_binary_op_with_conditional_arg): Fix typo in comment.
15559 2002-05-07 Neil Booth <neil@daikokuya.demon.co.uk>
15561 * c-common.c (warn_multichar): New.
15562 (c_common_init): Set CPP's warn_multichar.
15563 * c-common.h (warn_multichar): New.
15564 * c-decl.c (warn_multichar): Remove.
15565 * c-lex.c (lex_charconst): Update.
15566 * c-tree.h (warn_multichar): Remove.
15567 * cppexp.c (eval_token): Sign-extend charconst value.
15568 * cppinit.c (cpp_create_reader): Set warn_multichar.
15569 * cpplex.c (cpp_interpret_charconst): Don't sign-extend
15570 each character. Update prototype. Sign-extend the result.
15571 * cpplib.h: Fix conditions.
15572 (struct cpp_options): Add new warning flag.
15573 (cpp_interpret_charconst): Update prototype.
15575 * cpp.texi: Update documentation.
15577 2002-05-06 Vladimir Makarov <vmakarov@redhat.com>
15579 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
15580 Fix typo in usage of allof instead of unit.
15582 2002-05-06 Richard Henderson <rth@redhat.com>
15584 * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
15585 and any jump or call for IN.
15587 2002-05-06 Bernd Schmidt <bernds@redhat.com>
15589 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
15591 * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
15593 2002-05-06 Roger Sayle <roger@eyesopen.com>
15595 * fold-const.c (lshift-double): Cast the high word to an unsigned
15596 HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
15597 (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
15598 avoid compiler warning. (fold): Remove redundant code from
15599 BIT_AND_EXPR as integer operands are canonicalized to be arg1.
15601 2002-05-06 Jeff Law <law@redhat.com>
15603 * pa-protos.h (hppa_fpstore_bypass_p): Declare.
15604 * pa.c (pa_adjust_cost): Remove all true dependency cost
15605 adjustments. Also remove support for non-DFA scheduling.
15606 * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
15607 to adjust true dependency costs. Update various comments.
15608 (7100lc, 7200, 7300 scheduling): Simplify by combining the
15609 FP ALU & MPY units into a single unit.
15611 2002-05-06 Catherine Moore <clm@redhat.com>
15613 * config/v850/v850.c (compute_register_save_size): Make sure
15614 to count all of the registers that will be saved.
15616 Mon May 6 18:03:11 CEST 2002 Jan Hubicka <jh@suse.cz>
15618 * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
15620 2002-05-06 David S. Miller <davem@redhat.com>
15622 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
15623 allow result to overlap input operands in memory.
15625 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
15628 * cpp.texi: Update multichar charconst docs.
15630 2002-05-06 Neil Booth <neil@daikokuya.demon.co.uk>
15632 * cpplex.c (cpp_interpret_charconst): Sign-extend each
15633 character. Don't ignore excess characters. Treat
15634 multicharacter character constants as signed.
15635 (cpp_parse_escape): Clarify diagnostic.
15637 2002-05-05 Jakub Jelinek <jakub@redhat.com>
15639 * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
15640 use add instead of shift.
15641 (ashldi3_sp64): Likewise.
15642 (ashlsi3_const1, ashldi3_const1): Remove.
15643 * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
15644 * config/sparc/sparc.c (const1_operand): New.
15646 2002-05-05 Jason Thorpe <thorpej@wasabisystems.com>
15648 * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
15650 2002-05-05 Jakub Jelinek <jakub@redhat.com>
15653 * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
15655 2002-05-05 Richard Henderson <rth@redhat.com>
15657 * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
15658 memory latency adjustments.
15659 (alpha_variable_issue): Remove.
15660 (alpha_use_dfa_pipeline_interface): New.
15661 (alpha_multipass_dfa_lookahead): New.
15662 * config/alpha/alpha.md: Remove define_function_unit scheduling;
15663 include new dfa scheduling.
15664 (attr type): Add none.
15665 (blockage): Use it.
15666 * config/alpha/ev4.md: New.
15667 * config/alpha/ev5.md: New.
15668 * config/alpha/ev6.md: New.
15670 2002-05-05 David S. Miller <davem@redhat.com>
15672 * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
15674 2002-05-05 Kazu Hirata <kazu@cs.umass.edu>
15676 * cse.c: Fix formatting.
15677 * emit-rtl.c: Likewise.
15679 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
15681 * genautomata.c (initiate_states): Add additional guard to
15682 initialize `units_array'.
15684 2002-05-05 Vladimir Makarov <vmakarov@redhat.com>
15686 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
15687 process_unit_to_form_the_same_automaton_unit_lists,
15688 form_the_same_automaton_unit_lists
15689 check_unit_distributions_to_automata): New prototypes and
15691 (check_automata): Rename it into `check_automata_insn_issues'.
15692 (unit_decl): New fields `the_same_automaton_unit' and
15693 `the_same_automaton_message_reported_p'.
15694 (unit_decl_t): New typedef.
15695 (the_same_automaton_lists): New gloval variable.
15696 (unit_regexp, unit_set_el, units_array, units_cmp,
15697 output_get_cpu_unit_code_func): Use the typedef.
15698 (evaluate_max_reserv_cycles): Increment
15699 `description->max_insn_reserv_cycles'.
15700 (initiate_states): Don't increment `max_cycles_num'.
15701 (transform_insn_regexps): Move code around transformation of
15702 regexps from `generate'.
15703 (generate): Remove call of `transform_insn_regexps'.
15704 (expand_automata): Call `transform_insn_regexps' and
15705 `check_unit_distributions_to_automata'. Check errors before
15708 * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
15709 automaton `ultrasparc3_1'.
15711 2002-05-05 Neil Booth <neil@daikokuya.demon.co.uk>
15713 * c-common.c (c_common_init): Set up CPP arithmetic.
15714 * cppinit.c (cpp_create_reader): Default CPP arithmetic to
15715 something reasonable for the host.
15716 (sanity_checks): Add checks.
15717 (cpp_read_main_file): Call sanity_checks() from here...
15718 (cpp_post_options): ... not here.
15719 * cpplex.c (cpp_interpret_charconst): Get max_chars right.
15720 * cpplib.h (struct cpp_options): New member int_precision.
15722 2002-05-05 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
15724 * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
15726 2002-05-04 David S. Miller <davem@redhat.com>
15728 * config/sparc/linux.h, config/sparc/linux64.h
15729 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
15731 * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
15733 * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
15735 * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
15738 2002-05-05 Tim Josling <tej@melbpc.org.au>
15740 * treelang; New directory for new sample language treelang.
15742 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
15744 * Makefile.in (c-lex.o): Update.
15745 * c-lex.c: Include target.h.
15746 (cb_register_builtins): New.
15747 (init_c_lex): Set builtins callback.
15748 * c-lex.h (cpp_define, cpp_assert): New prototypes.
15749 * cppinit.c (init_builtins): Use callback, including for
15751 * cpplib.h (struct cpp_callbacks): New member.
15752 * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
15753 (TARGET_INITIALIZER): Update.
15754 * target.h (struct gcc_target): New hook.
15755 * tree.c (default_register_cpp_builtins): New.
15756 * tree.h (default_register_cpp_builtins): New.
15758 * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
15760 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
15762 * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
15763 (cpp_post_options): Move sanity checks to...
15764 (sanity_checks): New.
15765 * cpplex.c (maybe_read_ucs): Fix prototype.
15766 (parse_string, cpp_parse_escape): Cast for %c format specifier.
15767 * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
15770 2002-05-04 Bernd Schmidt <bernds@redhat.com>
15772 * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
15773 builtins. Use V2DI patterns instead of TI for logical operations.
15774 (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
15775 Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
15776 (ix86_expand_builtins): Change the pattern used for movntdq.
15777 * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
15778 sse2_nandv2di3): New patterns.
15779 (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
15781 (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
15782 (cvtdq2pd): Correct mode on operand 1.
15783 (sse2_umulsidi3): Describe without unspec.
15784 (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
15786 (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
15787 (ashlv2di3): Likewise, from sse2_ashlv2di3.
15788 (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
15789 ashlv4si3, ashlv2di3): Use SImode for shift count.
15790 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
15791 lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
15793 * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
15795 (__m128i, __m128d): New macros.
15796 (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
15797 _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
15798 _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
15799 _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
15800 _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
15801 _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
15802 _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
15803 _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
15804 _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
15805 _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
15806 _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
15807 _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
15808 _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
15809 _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
15810 _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
15811 _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
15812 _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
15813 _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
15814 _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
15815 _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
15816 _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
15817 _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
15818 _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
15819 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
15820 _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
15821 _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
15822 _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
15823 _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
15824 _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
15825 _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
15826 _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
15827 _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
15828 _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
15829 _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
15830 _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
15831 _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
15832 _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
15834 (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
15835 _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
15837 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
15839 * dwarf2out.c: Fix formatting.
15840 * varasm.c: Likewise.
15842 2002-05-04 David Edelsohn <edelsohn@gnu.org>
15845 * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
15846 clobber and use result as temporary value.
15848 Sat May 4 13:20:54 CEST 2002 Jan Hubicka <jh@suse.cz>
15850 * expr.c (force_operand): Use expand_simple_* to handle more
15853 2002-05-04 Neil Booth <neil@daikokuya.demon.co.uk>
15855 * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
15856 and sign-extension.
15857 (lex_charconst): Update for change in prototype of
15858 cpp_interpret_charconst. Extend from cppchar_t to HOST_WIDE_INT
15860 * cpphash.h (BITS_PER_CPPCHAR_T): New.
15861 * cppinit.c (cpp_create_reader): Initialize them for no
15862 change in semantics.
15863 (cpp_post_options): Add sanity checks.
15864 * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
15865 and truncation issues. Calculate in type cppchar_t.
15866 (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
15867 (cpp_interpret_charconst): Calculate in type cppchar_t. Handle
15868 run-time dependent precision correctly. Return whether the
15869 result is signed or not.
15870 * cpplib.c (dequote_string): Use cppchar_t; update.
15871 * cpplib.h (cppchar_signed_t): New.
15872 struct cpp_options): New precision members.
15873 (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
15874 * cppexp.c (eval_token): Update.
15876 2002-05-03 David S. Miller <davem@redhat.com>
15878 * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
15879 * config/sparc/sparc.c (sparc_rtx_costs): New function
15880 implementing RTX_COSTS and CONST_COSTS.
15881 * config/sparc/sparc.h (CONST_COSTS): Delete.
15882 (RTX_COSTS_CASES): Define.
15883 (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
15886 * config/sparc/sparc.md (DFA schedulers): Split out...
15887 * config/sparc/cypress.md, config/sparc/hypersparc.md,
15888 config/sparc/sparclet.md, config/sparc/supersparc.md,
15889 config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
15891 * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
15892 checks on it, always defined for SPARC.
15894 * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
15895 Tweak, and add more detailed comments.
15897 2002-05-03 Zack Weinberg <zack@codesourcery.com>
15899 * Re-apply patch accidentally reverted with
15900 DFA scheduler merge: remove all rules and variables to slurp
15901 source files out of libiberty and rebuild them with HOST_CC.
15902 ($(HOST_PREFIX_1)varray.o): New rule.
15903 (genattrtab rule): Word wrap.
15905 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
15907 * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
15908 (CPP_SUBTARGET_SPEC): Define.
15909 (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
15910 cpp_subtarget specs.
15911 (CPP_SPEC): Redefine to include %(cpp_subtarget).
15913 2002-05-03 David S. Miller <davem@redhat.com>
15915 * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
15916 * target.h (struct gcc_target): Delete cycle_display member.
15918 * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
15919 (rtx_needs_barrier): Delete reference to cycle_display unspec.
15920 (ia64_sched_reorder2): Mention need for cycle display handling
15921 once such notes exist.
15923 2002-05-03 Richard Henderson <rth@redhat.com>
15925 * real.c (etoasc): Strip most trailing zeros for clarity.
15926 * sched-vis.c: Include real.h.
15927 (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
15928 * Makefile.in (sched-vis.o): Add real.h.
15930 2002-05-03 David S. Miller <davem@redhat.com>
15932 * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
15935 2002-05-03 Aldy Hernandez <aldyh@redhat.com>
15937 * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
15938 when we get an out of range literal.
15939 (altivec_expand_ternop_builtin): Same.
15940 (altivec_expand_unop_builtin): Same.
15941 (altivec_expand_builtin): Same, for dss.
15942 (altivec_expand_builtin): Use trees instead of rtl when
15943 determining literal argument validity.
15945 2002-05-03 David S. Miller <davem@redhat.com>
15947 Delete cycle display scheduling hook.
15948 * config/ia64/ia64.c (ia64_cycle_display,
15949 TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
15950 (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
15951 and use emit_insn_before instead of ia64_emit_insn_before.
15952 * config/ia64/ia64.md (unspec usage): Delete cycle display.
15953 (cycle_display): Delete insn pattern.
15954 * config/sparc/sparc.md (unspec usage): Delete cycle display.
15955 (cycle_display): Delete insn pattern.
15956 * config/sparc/sparc.c (sparc_cycle_display,
15957 TARGET_SCHED_CYCLE_DISPLAY): Delete.
15958 * doc/md.texi (cycle_display): Don't mention.
15959 * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
15961 2002-05-03 Richard Henderson <rth@redhat.com>
15963 * recog.c (store_data_bypass_p, if_test_bypass_p): New.
15964 * recog.h: Declare them.
15966 * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
15967 * config/sparc/sparc.md: Use store_data_bypass_p instead.
15968 * config/sparc/sparc-protos.h: Update.
15970 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
15972 * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
15973 -D__arch64__. Add -D_LP64.
15974 (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
15976 (CPP_ARCH64_SPEC): Likewise.
15977 (NO_BUILTIN_PTRDIFF_TYPE): Undef.
15978 (NO_BUILTIN_SIZE_TYPE): Undef.
15980 2002-05-03 Vladimir Makarov <vmakarov@redhat.com>
15982 * genautomata.c (min_issue_delay_pass_states): Change return type
15984 (min_issue_delay_pass_states): Change the algorithm.
15985 (min_issue_delay): Set up min_insn_issue_delay for the state.
15986 (output_min_issue_delay_table): Interchange the nested loops and
15987 and initiate min_insn_issue_delay for states.
15989 Fri May 3 22:59:15 CEST 2002 Jan Hubicka <jh@suse.cz>
15991 * cfgcleanup.c (try_optimize_cfg): Call merge_block only when
15992 jump is simplejump.
15994 Fri May 3 22:53:37 CEST 2002 Jan Hubicka <jh@suse.cz>
15996 * i386.c (expand_movstr, expand_clrstr): Fix inline-all-stringops
15999 2002-05-03 Richard Henderson <rth@redhat.com>
16002 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
16003 noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
16004 noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
16005 code before JUMP, not EARLIEST.
16007 2002-05-03 Joseph S. Myers <jsm28@cam.ac.uk>
16009 * c-format.c (check_format_info_main): Don't check for presence of
16010 parameter for * width until after operand number has been read,
16011 and only check for it if format parameters are available.
16014 2002-05-03 Jason Thorpe <thorpej@wasabisystems.com>
16016 * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
16017 (LINK_SPEC): Undef before defining.
16019 2002-05-03 Jakub Jelinek <jakub@redhat.com>
16021 PR preprocessor/6489
16022 * tradcpp.c (fixup_newlines): New.
16023 (main, finclude): Use it.
16025 2002-05-03 Richard Sandiford <rsandifo@redhat.com>
16027 * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
16028 * config/mips/mips.c (mips_unique_section): Strip encoding from
16031 2002-05-03 Jakub Jelinek <jakub@redhat.com>
16033 * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
16036 2002-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16038 * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
16039 (Specific): Removed buildstats references.
16040 (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
16041 (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
16042 Accomodate Solaris versions beyond 8.
16043 (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
16044 (Specific, *-*-solaris2.8): Removed, obsolete.
16046 2002-05-03 Jakub Jelinek <jakub@redhat.com>
16049 * config/sparc/sparc.h (leaf_reg_remap): Remove const.
16050 (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
16051 fill leaf_reg_remap with identity.
16052 * config/sparc/sparc.c (leaf_reg_remap): Remove const.
16054 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
16056 * config/h8300/crti.asm: Remove trailing spaces.
16057 * config/h8300/h8300.c: Likewise.
16058 * config/h8300/lib1funcs.asm: Likewise.
16060 2002-05-02 Jason Merrill <jason@redhat.com>
16062 * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
16063 * c-decl.c (c_init_decl_processing): Use it.
16064 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
16065 * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
16066 * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
16068 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
16070 * regrename.c: Fix formatting.
16071 * tree.c: Likewise.
16073 Fri May 3 13:34:43 CEST 2002 Jan Hubicka <jh@suse.cz>
16075 * i386.md (attribute memory): Handle compares properly.
16077 Fri May 3 10:51:38 CEST 2002 Jan Hubicka <jh@suse.cz>
16079 * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
16082 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
16084 * function.c: Fix formatting.
16086 2002-05-02 Jan Hubicka <jh@suse.cz>
16088 * haifa-sched.c (schedule_insn): Print table of instructions and
16090 (sched_block): Do not print ready list at verbosity level 1.
16091 * sched-vis.c (print_insn): Make global.
16092 * sched-ebb.c (ebb_print_insn): Rename from...
16093 (print_insn): ... this one.
16094 * sched-int.h (print_insn): Declare
16096 2002-05-02 Richard Henderson <rth@redhat.com>
16098 * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
16099 emitted by cycle_display.
16101 2002-05-02 Loren J. Rittle <ljrittle@acm.org>
16103 * doc/install.texi (*-*-freebsd*): Update to latest status.
16105 2002-05-02 Jakub Jelinek <jakub@redhat.com>
16108 * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
16109 * config/float-sparc.h: Assume 128-bit long double if
16110 __LONG_DOUBLE_128__ is defined.
16112 2002-05-02 Vladimir Makarov <vmakarov@redhat.com>
16114 * genattrtab.c (write_function_unit_info): Add a dummy element
16115 when num_units == 0.
16117 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16119 * predict.c: (propagate_freq, estimate_bb_frequencies): Use
16120 TYPE_MODE (double_type_node) instead of DFmode.
16122 Thu May 2 19:50:04 CEST 2002 Jan Hubicka <jh@suse.cz>
16124 * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
16126 * toplev.c (rest_of_compilation): Revert Richard's patch.
16128 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
16130 * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
16132 2002-05-02 Catherine Moore <clm@redhat.com>
16134 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
16136 2002-05-02 Kazu Hirata <kazu@hxi.com>
16138 * combine.c: Fix comment typos.
16139 * expr.c: Likewise.
16140 * genautomata.c: Likewise.
16141 * stmt.c: Likewise.
16142 * tree.h: Likewise.
16144 2002-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
16146 * doc/install.texi: State GNAT version requirements.
16148 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
16150 * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
16151 of the frame pointer or arg pointer register which strict register
16152 checking is not enabled.
16154 2002-05-02 Aldy Hernandez <aldyh@redhat.com>
16156 * gcc.dg/altivec-8.c: New.
16158 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
16159 PRE_INC and PRE_DEC for altivec modes.
16161 2002-05-01 Bruce Korb <bkorb@gnu.org>
16163 * fixinc/check.tpl(set-writable): make sure the function exists first
16164 * fixinc/inclhack.def(alpha_assert): fix test_text
16165 * fixinc/tests/base/assert.h: add in missing result
16167 2002-05-01 Jeff Law <law@redhat.com>
16169 * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
16172 2002-05-01 Joel Brobecker <brobecker@gnat.com>
16174 * dbxout.c (dbxout_type): Emit size information for range types,
16175 as well, but only when using GDB extensions.
16177 2002-05-01 Richard Henderson <rth@redhat.com>
16179 * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
16180 target-independent gnu binutils date test.
16182 2002-05-01 Richard Henderson <rth@redhat.com>
16184 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
16185 info before expunging the block.
16187 2002-05-01 Jakub Jelinek <jakub@redhat.com>
16189 * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
16190 (cpp_post_options): ...but here. Disable -dD, -dN and -dI when
16191 -M -or -MM is in effect.
16193 2002-05-01 Zack Weinberg <zack@codesourcery.com>
16195 * config.gcc: Correct test of --enable-obsolete. Obsolete all
16196 A29k configurations.
16197 * doc/install.texi: Update to match.
16199 2002-05-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16202 * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
16203 for duplicates. Always loop over whole list.
16205 Wed May 1 10:32:37 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16207 * reload.c (find_reloads, case 'p'): Set BADOP to 0.
16209 2002-05-01 Joel Sherrill <joel@OARcorp.com>
16211 * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
16214 2002-05-01 Joel Sherrill <joel@OARcorp.com>
16216 * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
16218 2002-05-01 David Edelsohn <edelsohn@gnu.org>
16220 * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
16221 (nabs_nopower): Same.
16222 (floatdisf2): New pattern.
16223 (absdi2): Convert to define_insn_and_split.
16225 (trunctfsf2): Same.
16226 (floatditf2): Same.
16227 (floatsitf2): Same.
16228 (fix_trunctfdi2): Same.
16229 (fix_trunctfsi2): Same.
16231 2002-05-01 Joseph S. Myers <jsm28@cam.ac.uk>
16233 * doc/install.texi: Update Texinfo version requirement
16236 2002-05-01 Jakub Jelinek <jakub@redhat.com>
16238 PR target/6512, PR target/5628
16239 * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
16240 when memory is not aligned.
16241 (movdf_insn_v9only_vis): Likewise.
16242 * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
16243 temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
16244 (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
16246 2002-05-01 Aldy Hernandez <aldyh@redhat.com>
16248 * gcc.dg/altivec-7.c: New.
16250 * config/rs6000/altivec.h: Cleanup.
16252 2002-04-30 Aldy Hernandez <aldyh@redhat.com>
16254 * doc/invoke.texi (Option Summary): Add -mvrsave=.
16255 (RS/6000 and PowerPC Options): Document -mvrsave=.
16257 * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
16258 (rs6000_altivec_vrsave_string): Same.
16259 (rs6000_override_options): Call rs6000_parse_vrsave_option.
16260 (rs6000_parse_vrsave_option): New.
16261 (rs6000_stack_info): Only generate vrsave instructions when
16262 TARGET_ALTIVEC_VRSAVE.
16264 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
16265 (rs6000_altivec_vrsave_string): Define extern.
16266 (rs6000_altivec_vrsave): Same.
16267 (TARGET_ALTIVEC_VRSAVE): New.
16269 2002-04-30 Richard Henderson <rth@redhat.com>
16272 * toplev.c (rest_of_compilation): Don't run cross-jump before
16275 2002-04-30 Tom Rix <trix@redhat.com>
16277 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
16278 check which_alternative.
16280 2002-04-30 Kazu Hirata <kazu@hxi.com>
16282 * cpplex.c: Fix comment formatting.
16283 * function.c: Likewise.
16284 * integrate.c: Likewise.
16285 * regrename.c: Likewise.
16286 * sibcall.c: Likewise.
16287 * simplify-rtx.c: Likewise.
16288 * tree-inline.c: Likewise.
16290 2002-04-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
16292 * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
16293 hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
16294 hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
16295 hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
16296 * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
16297 * pa/x-ada: New file. Define ADA_CFLAGS.
16299 2002-04-30 Hans-Peter Nilsson <hp@bitrange.com>
16301 * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
16302 from MMIX_LAST_REGISTER_FILE_REGNUM.
16303 (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
16304 (struct machine_function): New member highest_saved_stack_register
16305 previously static variable in mmix.c.
16306 (MACHINE_DEPENDENT_REORG): Define.
16307 * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
16308 (MMIX_OUTPUT_REGNO): New.
16309 (mmix_target_asm_function_prologue): Move calculation of last used
16310 saved-stack-register into...
16311 (mmix_machine_dependent_reorg): New function. Update to also handle
16313 (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
16314 register names, simplify somewhat by new variable regno.
16315 <case 'p'>: Remove fixed FIXME. Always emit highest used saved
16317 (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
16318 emitting register names.
16319 (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
16320 (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
16321 Remove fixed FIXME.
16322 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
16325 * config/mmix/mmix.md ("divmoddi4"): Update head comment.
16327 2002-04-30 Richard Henderson <rth@redhat.com>
16329 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
16330 emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
16331 emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
16332 emit_tfmode_cvt): New.
16333 * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
16334 trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
16335 fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
16336 addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
16337 * config/sparc/sparc-protos.h: Update.
16339 2002-04-30 Janis Johnson <janis187@us.ibm.com>
16341 * install.texi (Final install): Add to the list of info to include
16342 in a report of a successful bootstrap, and add link to 3.1 list.
16344 Tue Apr 30 19:15:36 CEST 2002 Jan Hubicka <jh@suse.cz>
16346 * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
16347 (mode): Add vector modes
16348 (i387): Kill attribute.
16349 (unit): New attribute.
16350 (length_immediate): Grok new types.
16351 (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
16352 (modrm): Use "unit".
16353 (memory): Handle MMX/SSE properly.
16354 (scheduling descriptions): Kill uses of fop1.
16355 (sse, mmx, fp patterns): Set type and mode properly.
16357 Tue Apr 30 09:31:59 2002 Jeffrey A Law (law@redhat.com)
16359 * pa.c (override_options): Default to PA8000 scheduling.
16360 * doc/invoke.texi (HP-PA options): Mention newly added 7300
16361 scheduling parameter.
16363 * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
16364 handling of double precision multiplies.
16366 * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
16367 fpdiv and fpsqrt instructions.
16368 (7200 & 7300 scheduling): Fix typo in handling of
16369 store-load and store-store penalties.
16371 2002-04-30 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16373 * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
16374 mips. Add two missing commas.
16376 2002-04-30 Paolo Carlini <pcarlini@unitus.it>
16378 * doc/contrib.texi (Contributors): Update Paolo Carlini's
16379 and Benjamin Kosnik's entries.
16381 2002-04-29 David S. Miller <davem@redhat.com>
16383 * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
16384 SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
16385 * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
16386 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
16388 2002-04-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16390 * combine.c (find_split_point): Use gen_int_mode.
16392 2002-04-29 Vladimir Makarov <vmakarov@redhat.com>
16394 Merging code from dfa-branch:
16396 2002-04-24 Vladimir Makarov <vmakarov@redhat.com>
16398 * genautomata.c (output_reserv_sets): Fix typo.
16400 2002-04-23 Vladimir Makarov <vmakarov@redhat.com>
16402 * genautomata.c (output_reserv_sets): Remove
16403 next_cycle_output_flag.
16405 Thu Apr 18 08:57:06 2002 Jeffrey A Law (law@redhat.com)
16407 * sched-rgn.c (init_ready_list): Make the DFA code handle
16408 USE/CLOBBER insns in the same way as the traditional
16410 (new_ready): Similarly..
16412 2002-04-17 Vladimir Makarov <vmakarov@redhat.com>
16414 * haifa-sched.c (schedule_block): Change the DFA state only after
16417 Wed Apr 17 15:38:36 2002 Jeffrey A Law (law@redhat.com)
16419 * pa.c (hppa_use_dfa_pipeline_interface): New function.
16420 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
16421 (override_options): Add PA7300 scheduling support.
16422 (pa_adjust_cost): Update various comments. Properly
16423 handle anti and output dependencies when using the
16425 (pa_issue_rate): Add PA7300 scheduling support.
16426 (pa_can_combine_p): Call extract_insn before calling
16427 constrain_operands (taken from mainline tree).
16428 * pa.h (enum processor_type): Add PROCESSOR_PA7300.
16429 * pa.md (cpu attr): Add 7300. Rewrite pipeline
16430 descriptions using DFA descriptions. Add PA7300
16431 scheduling support.
16433 2002-03-30 David S. Miller <davem@redhat.com>
16435 Add UltraSPARC-III DFA scheduling support.
16436 * config/sparc/sparc.md (define_attr type): Add fpcrmove.
16437 Update FP conditional move on register insn patterns to use it, as
16439 (define_attr cpu): Add ultrasparc3.
16440 (define_attr us3load_type): New, update integer load patterns to
16441 set it, as appropriate.
16442 (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
16443 (rest): Add UltraSPARC3 scheduling description.
16444 * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
16445 (PROCESSOR_ULTRASPARC3): New.
16446 ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
16447 ({ASM,CPP}_CPU_SPEC): Likewise.
16448 (REGISTER_MOVE_COST): Likewise.
16449 (RTX_COSTS): Likewise.
16450 * config/sparc/sparc.c (sparc_override_options,
16451 sparc_initialize_trampoline, sparc64_initialize_trampoline,
16452 sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16453 sparc_issue_rate): Likewise.
16454 * config/sparc/sol2.h: Likewise.
16455 * config/sparc/sol2-sld-64.h: Likewise.
16456 * config/sparc/linux64.h: Likewise.
16458 2002-03-22 Vladimir Makarov <vmakarov@redhat.com>
16460 * doc/md.texi: Add comments about usage the latency time for the
16461 different dependencies and about case when two or more conditions
16462 in different define_insn_reservations returns TRUE for an insn.
16464 * doc/md.texi: Add reference for automaton based pipeline
16467 2002-03-04 Vladimir Makarov <vmakarov@redhat.com>
16469 * doc/passes.texi: Add missed information about genattrtab.
16471 2002-03-01 Vladimir Makarov <vmakarov@redhat.com>
16473 * genautomata.c (output_automata_list_transition_code): Check
16474 automata_list on NULL.
16476 2002-02-28 Vladimir Makarov <vmakarov@redhat.com>
16478 * genautomata.c (output_insn_code_cases,
16479 output_automata_list_min_issue_delay_code,
16480 output_automata_list_transition_code,
16481 output_automata_list_state_alts_code): Comment the functions.
16483 2002-02-22 Vladimir Makarov <vmakarov@redhat.com>
16485 * genautomata.c (automata_list_el_t): New typedef.
16486 (get_free_automata_list_el,free_automata_list_el,
16487 free_automata_list, automata_list_hash, automata_list_eq_p,
16488 initiate_automata_lists, automata_list_start, automata_list_add,
16489 automata_list_finish, finish_automata_lists,
16490 output_insn_code_cases, output_automata_list_min_issue_delay_code,
16491 output_automata_list_transition_code,
16492 output_automata_list_state_alts_code, add_automaton_state,
16493 form_important_insn_automata_lists): New functions and prototypes.
16494 (insn_reserv_decl): Add members important_automata_list and
16496 (ainsn): Add members important_p.
16497 (automata_list_el): New structure.
16498 (first_free_automata_list_el, current_automata_list,
16499 automata_list_table): New global variables.
16500 (create_ainsns): Initiate member important_p.
16501 (output_internal_min_issue_delay_func): Generate the switch and
16502 call output_insn_code_cases.
16503 (output_internal_trans_func, output_internal_state_alts_func):
16505 (generate): Call initiate_automata_lists.
16506 (automaton_states): New global variable.
16507 (expand_automata): Call form_important_insn_automata_lists.
16508 (write_automata): Call finish_automata_lists.
16510 2002-02-21 Vladimir Makarov <vmakarov@redhat.com>
16512 * genautomata.c (add_excls, add_presence_absence): Check that
16513 cpu units in the sets belong the same automaton.
16515 * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
16516 about that cpu units in the sets belong the same automaton.
16518 * doc/md.texi: Ditto.
16520 2001-12-20 Naveen Sharma <naveens@noida.hcltech.com>
16521 Nitin Gupta <niting@noida.hcltech.com>
16523 * config/sh/sh.c (sh_use_dfa_interface): New function.
16525 (sh_issue_rate): New Function.
16526 TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
16527 TARGET_SCHED_ISSUE_RATE: define.
16529 * config/sh/sh.md: Add DFA based pipeline description for SH4.
16531 (define_attr insn_class): New attribute used for DFA
16533 (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
16534 (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
16535 cmpeqdi_t): Likewise.
16537 (add,addc1,addsi3,subc,subc1,*subsi3_internal,
16538 negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
16540 (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
16542 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16544 * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
16547 2001-10-03 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
16549 * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
16550 (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
16552 (output_dfa_start_func): Initiate new variable insn_codes_length,
16553 (write_automata): Output definition of the new variable.
16555 2001-10-02 David S. Miller <davem@redhat.com>
16557 * haifa-sched.c (advance_one_cycle): New function.
16558 (schedule_block): Use it.
16559 (queue_to_ready): Use it, and also make sure to advance the DFA
16560 state on all stall cycles, not just those where insn_queue links
16563 2001-10-02 Richard Sandiford <rsandifo@redhat.com>
16565 * haifa-sched.c (max_issue): Remove last_p argument. Only return
16566 non-zero if the highest-priority instruction could be scheduled.
16567 (choose_ready): Remove last argument from max_issue call.
16569 2001-09-28 David S. Miller <davem@redhat.com>
16571 * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
16572 ultrasparc and 3 for other multi-issue sparcs.
16574 2001-09-27 David S. Miller <davem@redhat.com>
16576 * config/sparc/sparc.md (cycle_display): New pattern.
16577 * config/sparc/sparc.c (sparc_cycle_display): New.
16578 (TARGET_SCHED_CYCLE_DISPLAY): Set it.
16580 2001-09-25 David S. Miller <davem@redhat.com>
16582 Convert all of SPARC scheduling to DFA
16583 * config/sparc/sparc.md: Kill all define_function_unit
16584 directives and replace with DFA equivalent.
16585 * config/sparc/sparc.c (ultrasparc_adjust_cost,
16586 mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
16587 ultra_fpmode_conflict_exists, ultra_find_type,
16588 ultra_build_types_avail, ultra_flush_pipeline,
16589 ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
16590 ultrasparc_variable_issue, ultrasparc_sched_init,
16591 sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
16592 ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
16593 ultra_cur_hist, ultra_cycles_elapsed): Kill.
16594 (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
16595 ultrasparc_store_bypass_p): New.
16596 * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
16599 2001-09-24 David S. Miller <davem@redhat.com>
16601 * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
16602 ready->vec[foo] not ready[foo].
16604 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
16606 * doc/md.texi: Correct examples for define_insn_reservations
16609 2001-09-07 Vladimir Makarov <vmakarov@redhat.com>
16611 * genautomata.c (create_automata): Print message about creation of
16613 (generate): Remove printing meease about creation of
16616 2001-09-05 David S. Miller <davem@redhat.com>
16618 * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
16619 * config/sparc/linux64.h: Likewise.
16621 2001-08-31 Vladimir Makarov <vmakarov@redhat.com>
16623 * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
16624 schedule_block, sched_init, sched_finish): Add missed calls of
16625 use_dfa_pipeline_interface.
16627 * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
16630 * sched-vis.c (get_visual_tbl_length): Ditto.
16632 2001-08-27 Richard Henderson <rth@redhat.com>
16634 * genattr.c (main): Emit state_t even when not doing scheduling.
16636 2001-08-27 Richard Henderson <rth@redhat.com>
16638 * genautomata.c (expand_automata): Always create a description.
16640 2001-08-27 Vladimir Makarov <vmakarov@touchme.toronto.redhat.com>
16642 * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
16643 PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
16644 AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
16647 * genattr.c (main): New variable num_insn_reservations. Increase
16648 it if there is DEFINE_INSN_RESERVATION. Output automaton based
16649 pipeline hazard recognizer interface.
16651 * genattrtab.h: New file.
16653 * genattrtab.c: Include genattrtab.h.
16654 (attr_printf, check_attr_test, make_internal_attr,
16655 make_numeric_value): Move protypes into genattrtab.h. Define them
16657 (num_dfa_decls): New global variable.
16658 (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
16659 DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
16660 DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
16661 DEFINE_INSN_RESERVATION. Call expand_automata and write_automata.
16663 * genautomata.c: New file.
16665 * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
16667 * sched-int.h: (curr_state): Add the external definition for
16668 automaton pipeline interface.
16669 (haifa_insn_data): Add comments for members blockage and units.
16671 * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16672 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16673 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16674 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16675 TARGET_SCHED_DFA_POST_CYCLE_INSN,
16676 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16677 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
16679 (TARGET_SCHED): Use the new macros.
16681 * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
16682 dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
16683 first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
16684 dfa_bubble): New members in gcc_target.sched.
16686 * haifa-sched.c (insert_schedule_bubbles_p): New variable.
16687 (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
16688 (insn_queue): Redefine it as pointer to array.
16689 (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
16691 (max_insn_queue_index_macro_value): New variable.
16692 (curr_state, dfa_state_size, ready_try): New varaibles for
16693 automaton interface.
16694 (ready_element, ready_remove, max_issue): New function prototypes
16695 for automaton interface.
16696 (choose_ready): New function prototype.
16697 (insn_unit, blockage_range): Add comments.
16698 (unit_last_insn, unit_tick, unit_n_insns): Define them for case
16699 FUNCTION_UNITS_SIZE == 0.
16700 (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
16701 actual_hazard, potential_hazard): Add comments.
16702 (insn_cost): Use cost -1 as undefined value. Remove
16703 LINK_COST_ZERO and LINK_COST_FREE. Add new code for automaton
16704 pipeline interface.
16705 (ready_element, ready_remove): New functions for automaton
16707 (schedule_insn): Add new code for automaton pipeline interface.
16708 (queue_to_ready): Add new code for automaton pipeline interface.
16709 Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
16710 (debug_ready_list): Print newline when the queue is empty.
16711 (max_issue): New function for automaton pipeline interface.
16712 (choose_ready): New function.
16713 (schedule_block): Add new code for automaton pipeline interface.
16714 Print ready list before scheduling each insn.
16715 (sched_init): Add new code for automaton pipeline interface.
16716 Initiate insn cost by -1.
16717 (sched_finish): Free the current automaton state and finalize
16718 automaton pipeline interface.
16720 * sched-rgn.c: Include target.h.
16721 (init_ready_list, new_ready, debug_dependencies): Add new code for
16722 automaton pipeline interface.
16724 * sched-vis.c: Include target.h.
16725 (get_visual_tbl_length): Add code for automaton interface.
16726 (target_units, print_block_visualization): Add comments.
16728 * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
16729 USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
16730 (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
16731 (getruntime.o, genautomata.o): New entries.
16732 (genattrtab.o): Add new dependency file genattrtab.h.
16733 (genattrtab): Add new dependencies. Link it with `libm.a'.
16734 (getruntime.o, hashtab.o): New entries for canadian cross.
16736 * doc/md.texi: Description of automaton based model.
16738 * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
16740 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16741 TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16742 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16743 TARGET_SCHED_DFA_POST_CYCLE_INSN,
16744 TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16745 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16746 TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
16748 (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
16749 MAX_DFA_ISSUE_RATE): New macro descriptions.
16751 * doc/contrib.texi: Add dfa based scheduler contribution.
16753 * doc/gcc.texi: Add more information about genattrtab.
16755 Mon Apr 29 17:19:10 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16757 * reload1.c (eliminate_regs, case SUBREG): Fix typo in
16758 adjust_address_nv call.
16760 2002-04-29 Janis Johnson <janis187@us.ibm.com>
16762 * doc/install.texi (Testing): Provide additional information, and
16763 a stronger encouragement, for running the testsuites.
16765 2002-04-29 DJ Delorie <dj@redhat.com>
16767 * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
16768 given in upper case.
16770 2002-04-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16772 * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
16773 Solaris 2 <widec.h> if missing.
16774 * fixinc/fixincl.x: Regenerate.
16775 * fixinc/tests/base/widec.h: New file.
16777 2002-04-29 Nick Clifton <nickc@cambridge.redhat.com>
16779 * toplev.c (f_options): Add "profile" switch so that
16780 -fno-profile can be used to disable -p.
16782 2002-04-29 Bernd Schmidt <bernds@redhat.com>
16784 * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
16786 * tree.c (build_common_tree_nodes_2): Likewise.
16787 * tree.h (enum tree_index): Likewise.
16788 (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
16790 * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
16792 (init_mmx_sse_builtins): Initialize SSE2 builtins.
16793 (ix86_expand_builtin): Add support for SSE2 builtins.
16794 * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
16795 (VALID_SSE_REG_MODE): Use it.
16796 (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
16797 (enum ix86_builtins): Add SSE2 builtins.
16798 * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
16799 movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
16800 addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
16801 divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
16802 sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
16803 vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
16804 vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
16805 sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
16806 cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
16807 cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
16808 cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
16809 ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
16810 subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
16811 mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
16812 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
16813 sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
16814 sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
16815 gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
16816 ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
16817 ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
16818 sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
16819 sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
16820 sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
16821 sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
16822 sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
16823 sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
16824 lfence_insn): New patterns.
16825 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
16826 sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
16828 Mon Apr 29 17:03:24 CEST 2002 Jan Hubicka <jh@suse.cz>
16830 * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
16832 2002-04-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
16834 * doc/contrib.texi (Contributors): Add Paolo Carlini and
16836 Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
16837 Refer to Objective-C instead of ObjC, SPARC instead of sparc,
16838 and CPU instead of cpu.
16840 Mon Apr 29 13:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
16842 * toplev.c (flag_if_conversion, flag_if_conversion2): New static
16844 (lang_independent_options): Add -fif-conversion, -fif-conversion2
16845 (rest_of_compilation): Do if conversion only when asked for.
16846 (parse_options_and_default_flags): Set new variables to 1 for -O1
16847 * invoke.texi (-fif-conversion, -fif-conversion2): Document.
16849 Mon Apr 29 13:02:50 CEST 2002 Jan Hubicka <jh@suse.cz>
16851 * i386.c (dbx64_register_map): Fix typo.
16853 Mon Apr 29 12:18:35 CEST 2002 Jan Hubicka <jh@suse.cz>
16855 * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
16856 real_one_half, real_bb_freq_max): New static variables.
16857 (debug_profile_bbauxs): Kill.
16858 (process_note_predictions): Kill unused variable.
16859 (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
16861 (propagate_freq): Use REAL_ARITHMETICS.
16862 (estimate_bb_frequencies): Likevise; init new static variables.
16863 * Makefile.in (predict.o): Add dependency on real.h
16865 2002-04-28 David S. Miller <davem@redhat.com>
16868 * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
16869 64-bit TARGET_V9. Do not use prefetch page, use prefetch for
16870 several {reads,writes} instead.
16871 * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
16874 2002-04-27 David S. Miller <davem@redhat.com>
16877 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
16880 * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
16881 including signal.h and sys/ucontext.h, not needed.
16883 2002-04-29 Hans-Peter Nilsson <hp@bitrange.com>
16885 * varasm.c (output_constant_def): Correct test for not calling
16886 ENCODE_SECTION_INFO for INTEGER_CST.
16888 2002-04-29 Neil Booth <neil@daikokuya.demon.co.uk>
16890 * cppexp.c (lex): Move some code to _cpp_parse_expr, but
16891 keep most cases as function eval_token.
16892 (eval_token): New function.
16893 (_cpp_parse_expr): Read token here for improved diagnostics.
16894 Don't use op_as_text. Detect bad ':' here.
16895 (reduce): Don't detect bad ':' here.
16896 (op_as_text): Remove.
16897 * cpphash.h (_cpp_test_assertion): Change prototype.
16898 * cpplib.c (_cpp_test_assertion): Change prototype.
16900 2002-04-28 Richard Henderson <rth@redhat.com>
16903 * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
16904 (ggc_mark_rtx_children): New.
16906 2002-04-28 Jakub Jelinek <jakub@redhat.com>
16909 * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
16910 after call peepholes for UltraSPARC.
16911 (call + jump 64-bit peepholes): Remove.
16913 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16916 * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
16917 result as temporary value.
16919 2002-04-28 Jakub Jelinek <jakub@redhat.com>
16922 * toplev.c (rest_of_compilation): Only run regrename and copy
16923 propagation if optimizing.
16925 2002-04-28 Jakub Jelinek <jakub@redhat.com>
16927 PR optimization/6475
16928 * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
16929 register of REGNO_DECL (i).
16930 * Makefile.in (reload1.o): Add $(TREE_H).
16932 2002-04-28 Neil Booth <neil@daikokuya.demon.co.uk>
16934 * cppexp.c (lex): Update to use state.skip_eval.
16935 (struct op): Remove prio and flags members.
16936 (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
16937 SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
16938 (LEFT_ASSOC): New macro.
16939 (optab): New table of operator priorities and flags.
16941 (_cpp_parse_expr): Clean up logic. Return bool. Use a
16942 malloc-ed parser stack.
16943 (reduce): New; reduce the operator stack.
16944 (_cpp_expand_op_stack): Expand the operator stack as necessary.
16945 * cpphash.h (struct op): Predeclare.
16946 (struct cpp_reader): New members op_stack, op_limit.
16947 (struct lexer_state): New member skip_eval.
16948 (_cpp_parse_expr): Update.
16949 (_cpp_expand_op_stack): New.
16950 * cpplib.c (do_if): Update.
16951 * cppinit.c (cpp_create_reader): Create op stack.
16952 (cpp_destroy): And destroy it.
16953 * cpplib.h (CPP_LAST_CPP_OP): Correct.
16954 (TTYPE_TABLE): Correct.
16956 2002-04-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16959 * c-decl.c (duplicate_decls): Call merge_weak.
16960 * c-pragma.c (apply_pragma_weak): Warn about misuse.
16961 * output.h (merge_weak): Prototype merge_weak.
16962 * varasm.c (merge_weak): New function.
16963 (declare_weak): Make sure we don't give an error on VAR_DECLs.
16964 Mark RTL with SYMBOL_REF_WEAK.
16966 2002-04-27 Kurt Garloff <garloff@suse.de>
16968 * tree-inline.c (inlinable_function_p): Improve heuristics
16969 by using a smoother function to cut down allowable inlinable size.
16970 * param.def: Add parameters max-inline-insns-single,
16971 max-inline-slope, min-inline-insns that determine the exact
16972 shape of the above function.
16973 * param.h: Likewise.
16975 2002-04-26 Richard Henderson <rth@redhat.com>
16977 * c-parse.in (malloced_yyss, malloced_yyvs): New.
16978 (yyoverflow): Re-add. Set them.
16979 (free_parser_stacks): New.
16980 * c-common.h: Declare it.
16981 * c-lex.c (c_common_parse_file): Call it.
16983 2002-04-26 Richard Henderson <rth@redhat.com>
16985 * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
16986 for fallthru search.
16988 2002-04-26 Eric Christopher <echristo@redhat.com>
16990 PR optimization/3700
16991 * config/mips/mips.c (mips_issue_rate): Define. New function.
16992 (TARGET_SCHED_ISSUE_RATE): Use.
16994 2002-04-25 David S. Miller <davem@redhat.com>
16997 * reorg.c (optimize_skip): Do not allow exception causing
16998 instructions to be considered for delay slots.
16999 (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
17000 (relax_delay_slots): Do not try to consider exception causing
17001 instructions as redundant.
17003 2002-04-26 Richard Henderson <rth@redhat.com>
17006 * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
17008 2002-04-26 Mark Mitchell <mark@codesourcery.com>
17011 * config/i386/i386.md (untyped_call): Return the value in a float
17012 register if TARGET_FLOAT_RETURNS_IN_80387, not just if
17015 2002-04-26 Alexandre Oliva <aoliva@redhat.com>
17017 * tree.c (tree_int_cst_lt): Compare constants whose types differ
17018 in unsigned-ness correctly.
17020 2002-04-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
17022 * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
17023 portable runtime model.
17025 2002-04-26 Richard Henderson <rth@redhat.com>
17027 * c-parse.in (yyoverflow): Revert.
17029 2002-04-26 David Edelsohn <edelsohn@gnu.org>
17030 Richard Henderson <rth@redhat.com>
17032 * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
17033 result as temporary value.
17035 2002-04-26 Richard Henderson <rth@redhat.com>
17038 * c-common.c (fix_string_type): Split out of ...
17039 (combine_strings): ... here. Take a varray, not a tree list.
17040 (c_expand_builtin_printf): Use fix_string_type.
17041 * c-common.h: Update decls.
17042 * c-parse.in (string): Remove. Update all uses to use STRING
17043 instead, and not call combine_strings.
17044 (yylexstring): New.
17046 * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
17047 (build_asm_stmt): Likewise.
17048 * objc/objc-act.c (my_build_string): Use fix_string_type.
17049 (build_objc_string_object): Build varray for combine_strings.
17051 2002-04-26 Bo Thorsen <bo@suse.co.uk>
17053 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
17056 2002-04-26 Neil Booth <neil@daikokuya.demon.co.uk>
17058 * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
17059 (HAVE_NO_R_OPERAND): Remove.
17060 (HAVE_VALUE): Remove.
17061 (op_to_prio): Update.
17062 (UNARY): Don't alter flags.
17063 (_cpp_parse_expr): want_value used to indicate whether
17064 a number or unary operator is expected next. Distinguish
17065 unary and binary +/-.
17066 (op_as_text): Update for unary operators.
17068 2002-04-25 Richard Henderson <rth@redhat.com>
17071 * c-parse.in (yyoverflow): New.
17073 2002-04-25 Richard Henderson <rth@redhat.com>
17076 * c-common.c (shorten_compare): Simplfy conditions leading to
17077 the generation of a warning.
17079 2002-04-25 Richard Henderson <rth@redhat.com>
17082 * expmed.c (extract_bit_field): Fall through to generic code rather
17083 than aborting on subreg special case.
17085 2002-04-25 David S. Miller <davem@redhat.com>
17087 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
17088 for DECL being NULL.
17090 2002-04-25 Steve Christiansen <smc@us.ibm.com>
17092 * doc/md.texi (Machine Constraints): Add IA-64 constraints.
17094 2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
17096 * c-decl.c (grokdeclarator): Remove outdated ??? note
17097 on invalid declaration of flexible array members.
17099 2002-04-25 Richard Henderson <rth@redhat.com>
17101 * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
17103 2002-04-25 Ulrich Weigand <uweigand@de.ibm.com>
17105 * config/s390/s390.c (s390_emit_epilogue): Always restore registers
17106 needed by the compiler, even if they are used as global regs.
17108 2002-04-25 Matt Hiller <hiller@redhat.com>
17110 * mips.c (mips_class_max_nregs, mips_register_move_cost): New
17112 * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
17113 of the corresponding functions.
17114 * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
17117 2002-04-25 Matt Hiller <hiller@redhat.com>
17119 * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
17121 (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
17122 (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
17123 registers, adjust comment accordingly.
17124 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
17125 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
17126 DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
17127 for coprocessor registers.
17128 (ADDITIONAL_REGISTER_NAMES): Include
17129 ALL_COP_ADDITIONAL_REGISTER_NAMES.
17131 (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
17132 COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
17133 COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
17134 COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
17135 COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
17137 (mips_char_to_class): Adjust comment to include coprocessor
17138 constraint letters.
17140 * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
17142 (mips_reg_names, mips_regno_to_class): Include coprocessor
17144 (mips_sw_reg_names): Ditto, make non-static.
17145 (mips_move_1word): Handle moves to and from coprocessor registers.
17146 (mips_move_2words): Handle moves to and from coprocessor
17148 (mips_class_max_nregs, mips_register_move_cost): Handle
17149 coprocessor register classes.
17150 (override_options): Initialize mips_char_to_class and
17151 mips_hard_regno_mode_ok properly for coprocessor registers.
17153 * config/mips/mips.md (movdi_internal, movdi_internal2,
17154 movsi_internal1, movsi_internal2): Add constraint-sets for
17155 coprocessor registers.
17156 * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
17157 * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
17159 * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
17160 * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
17162 * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
17163 * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
17165 * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
17166 * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
17169 * doc/tm.texi: Document feature.
17171 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
17173 * integrate.c (function_attribute_inlinable_p): Simplify.
17174 Check the table pointer is not NULL.
17176 2002-04-25 Steven Bosscher <S.Bosscher@student.tudelft.nl>
17178 * doc/c-tree.texi: Fix typo in introduction.
17180 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
17182 * c-common.h (c_common_parse_file): Update.
17183 * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
17184 * c-lex.c (YYDEBUG): Get from c-lex.h.
17185 (c_common_parse_file): Update.
17186 * c-lex.h (YYDEBUG, yydebug): New.
17187 * c-parse.in (YYDEBUG): Get from c-lex.h.
17188 (c_set_yydebug): Remove.
17189 * c-tree.h (c_set_yydebug): Remove.
17190 * langhooks-def.h (lhd_do_nothing_i): New.
17191 (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
17192 (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
17193 * langhooks.c (lhd_do_nothing_i): New.
17194 (lhd_set_yydebug): Remove.
17195 * langhooks.h (struct lang_hooks): Update.
17196 * toplev.c (set_yydebug): New.
17197 (compile_file): Update call to parse_file hook.
17198 (decode_d_option): Update.
17200 * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
17202 Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
17204 * loop.c (load_mems): Don't change the interface of called functions.
17206 * calls.c (expand_call): Take current_function_pretend_args_size
17207 into account when setting argblock for sibcalls.
17209 2002-04-24 Matt Hiller <hiller@redhat.com>
17211 * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
17214 * cpplex.c (skip_line_comment): Process comment one multibyte
17215 character at a time rather than one char at a time, if
17217 (parse_string): Process string one multibyte character at a time
17218 rather than one char at a time, if appropriate.
17219 * c-lex.c (lex_string): Lex and copy multibyte strings
17221 * cpplib.h (cppchar_t): Change to unsigned.
17223 2002-04-24 Richard Henderson <rth@redhat.com>
17226 * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
17229 Wed Apr 24 21:51:54 2002 J"orn Rennecke <joern.rennecke@superh.com>
17231 * sh.c (sh_va_arg): If argument was passed by reference,
17232 dereference the pointer.
17234 * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
17236 * sh.md (divsi3_i4_media): Use match_operand for input values
17237 rather than hard registers.
17238 (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
17239 unnecessarily through hard registers. Keep copies of pseudo
17240 registers outside of the libcall sequence.
17242 * sh.md (casesi_shift_media): Add modes.
17244 * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
17247 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
17249 * attribs.c (c_common_attribute_table): Move table and handlers
17251 (format_attribute_table, lang_attribute_table,
17252 lang_attribute_common): Remove.
17253 (init_attributes): Replace NULL pointers with pointers to the
17255 (handle_packed_attribute, handle_nocommon_attribute,
17256 handle_common_attribute, handle_noreturn_attribute,
17257 handle_noinline_attribute, handle_always_inline_attribute,
17258 handle_used_attribute, handle_unused_attribute,
17259 handle_const_attribute, handle_transparent_union_attribute,
17260 handle_constructor_attribute, handle_destructor_attribute,
17261 handle_mode_attribute, handle_section_attribute,
17262 handle_aligned_attribute, handle_weak_attribute,
17263 handle_alias_attribute, handle_visibility_attribute,
17264 handle_no_instrument_function_attribute, handle_malloc_attribute,
17265 handle_no_limit_stack_attribute, handle_pure_attribute,
17266 handle_deprecated_attribute, handle_vector_size_attribute,
17267 vector_size_helper): Move to c-common.c.
17268 * c-common.c (c_common_attribute_table,
17269 handle_packed_attribute, handle_nocommon_attribute,
17270 handle_common_attribute, handle_noreturn_attribute,
17271 handle_noinline_attribute, handle_always_inline_attribute,
17272 handle_used_attribute, handle_unused_attribute,
17273 handle_const_attribute, handle_transparent_union_attribute,
17274 handle_constructor_attribute, handle_destructor_attribute,
17275 handle_mode_attribute, handle_section_attribute,
17276 handle_aligned_attribute, handle_weak_attribute,
17277 handle_alias_attribute, handle_visibility_attribute,
17278 handle_no_instrument_function_attribute, handle_malloc_attribute,
17279 handle_no_limit_stack_attribute, handle_pure_attribute,
17280 handle_deprecated_attribute, handle_vector_size_attribute,
17281 vector_size_helper): Move from attribs.c.
17282 * c-common.h (c_common_attribute_table,
17283 c_common_format_attribute_table): New.
17284 * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17285 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17286 * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17287 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
17288 (LANG_HOOKS_INITIALIZER): Update.
17289 * langhooks.h (struct lang_hooks): 3 new attribute hooks.
17290 * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
17291 * target.h: Update comment.
17292 * tree.c (default_target_attribute_table): Remove.
17293 * tree.h (default_target_attribute_table, format_attribute_table,
17294 lang_attribute_table, lang_attribute_common): Remove.
17296 * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
17297 LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
17299 2002-04-24 Jason Merrill <jason@redhat.com>
17301 * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
17302 * dwarf2out.c (dwarf_attr_name): Support it.
17303 (gen_array_type_die): Emit it.
17304 (lookup_type_die): No special handling for VECTOR_TYPE.
17305 (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
17307 2002-04-24 Richard Henderson <rth@redhat.com>
17309 * config/mips/mips.md (movdi_usd): Renumber.
17311 2002-04-24 David S. Miller <davem@redhat.com>
17314 * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
17315 32-bit SPARC and current_function_returns_struct is true.
17317 Wed Apr 24 13:48:25 CEST 2002 Jan Hubicka <jh@suse.cz>
17319 * loop.c (canonicalize_condition): Use gen_int_mode.
17321 2002-04-24 Aldy Hernandez <aldyh@redhat.com>
17323 * config/rs6000/altivec.h: Cleanup file. Add non individual
17325 (vec_vaddubm): New.
17326 (vec_vadduhm): New.
17327 (vec_vadduwm): New.
17329 (vec_vaddcuw): New.
17330 (vec_vaddubs): New.
17331 (vec_vaddsbs): New.
17332 (vec_vadduhs): New.
17333 (vec_vadduws): New.
17334 (vec_vaddsws): New.
17344 (vec_vcmpbfp): New.
17345 (vec_vcmpequb): New.
17346 (vec_vcmpequh): New.
17347 (vec_vcmpequw): New.
17348 (vec_vcmpeqfp): New.
17349 (vec_vcmpgefp): New.
17350 (vec_vcmpgtub): New.
17351 (vec_vcmpgtsb): New.
17352 (vec_vcmpgtuh): New.
17353 (vec_vcmpgtsh): New.
17354 (vec_vcmpgtuw): New.
17355 (vec_vcmpgtsw): New.
17356 (vec_vcmpgtfp): New.
17357 (vec_vcmpgefp): New.
17362 (vec_vexptefp): New.
17367 (vec_lde): Add vector float variant.
17370 (vec_vlogefp): New.
17371 (vec_vmaddfp): New.
17372 (vec_vmhaddshs): New.
17394 (vec_vmladduhm): New.
17395 (vec_vmhraddshs): New.
17396 (vec_msumubm): New.
17397 (vec_vmsummbm): New.
17398 (vec_vmsumuhm): New.
17399 (vec_vmsumshm): New.
17400 (vec_vmsumuhs): New.
17401 (vec_vmsumshs): New.
17402 (vec_vmuleub): New.
17403 (vec_vmulesb): New.
17404 (vec_vmuleuh): New.
17405 (vec_vmulesh): New.
17406 (vec_vmuloub): New.
17408 (vec_vmulouh): New.
17409 (vec_vmulosh): New.
17410 (vec_vnmsubfp): New.
17413 (vec_vpkuhum): New.
17414 (vec_vpkuwum): New.
17416 (vec_vpkuhus): New.
17417 (vec_vpkshss): New.
17418 (vec_vpkuwus): New.
17419 (vec_vpkswss): New.
17420 (vec_vpkshus): New.
17421 (vec_vpkswus): New.
17428 (vec_vrsqrtefp): New.
17439 (vec_vspltisb): New.
17440 (vec_vspltish): New.
17441 (vec_vspltisw): New.
17455 (vec_vsububm): New.
17456 (vec_vsubuhm): New.
17457 (vec_vsubuwm): New.
17459 (vec_vsubcuw): New.
17460 (vec_vsububs): New.
17461 (vec_vsubsbs): New.
17462 (vec_vsubuhs): New.
17463 (vec_vsubshs): New.
17464 (vec_vsubuws): New.
17465 (vec_vsubsws): New.
17466 (vec_vsum4ubs): New.
17467 (vec_vsum4sbs): New.
17468 (vec_vsum4shs): New.
17469 (vec_vsum2sws): New.
17470 (vec_vsumsws): New.
17472 (vec_vupkhsb): New.
17473 (vec_vupkhpx): New.
17474 (vec_vupkhsh): New.
17475 (vec_vupklsb): New.
17476 (vec_vupklpx): New.
17477 (vec_vupklsh): New.
17480 2002-04-23 Eric Botcazou <ebotcazou@multimania.com>
17483 * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
17484 added literals from substracted literals.
17485 (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
17486 (fold) [associate]: Preserve MINUS_EXPR if needed.
17488 2002-04-23 Zack Weinberg <zack@codesourcery.com>
17490 * doc/install.texi: Clarify which versions of alpha*-dec-osf*
17493 2002-04-23 Tom Tromey <tromey@redhat.com>
17495 * gcc.c: Added --resource. For PR java/6314.
17497 2002-04-23 David O'Brien <obrien@FreeBSD.org>
17499 * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
17500 * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
17503 2002-04-23 David O'Brien <obrien@FreeBSD.org>
17505 * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
17507 Tue Apr 23 14:24:25 CEST 2002 Jan Hubicka <jh@suse.cz>
17509 * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
17511 (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
17512 (ix86_expand_clrstr): Fix typo.
17513 * loop.c (gen_load_of_final_value): New.
17514 (loop_givs_rescan, strength_reduce, check_dbra_loop):
17517 2002-04-23 Roger Sayle <roger@eyesopen.com>
17519 * builtins.c (builtin_memset_gen_str): New function.
17520 (expand_builtin_memset): Optimize the case of constant length, but
17523 2002-04-23 Aldy Hernandez <aldyh@redhat.com>
17525 * config/rs6000/altivec.h (vec_step): Remove extraneous
17527 (vec_ctu): Cast return.
17529 2002-04-23 Alan Modra <amodra@bigpond.net.au>
17532 * function.h: (struct function): Add profile_label_no field.
17533 (current_function_profile_label_no): Define.
17534 * function.c: (profile_label_no): New static var.
17535 (expand_function_start): Increment it, and copy to
17536 current_function_profile_label_no.
17537 * output.h (profile_label_no): Delete.
17538 * final.c (profile_label_no): Delete.
17539 (profile_function): Use current_function_profile_label_no.
17540 (final_end_function): Don't increment profile_label_no here.
17541 * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
17542 profile_label_no with current_function_profile_label_no.
17543 * config/pa/pa.c (current_function_number): Delete.
17544 (pa_output_function_prologue): Don't output profile label here.
17545 (hppa_profile_hook): Use label_no param rather than
17546 current_function_number.
17547 (FUNC_BEGIN_PROLOG_LABEL): Move to ..
17548 * config/pa/pa.h: .. here.
17549 (FUNCTION_PROFILER): Output profile label here.
17551 2002-04-22 Eric Christopher <echristo@redhat.com>
17553 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
17554 patch of 2002-04-09 due to binutils issues.
17555 (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
17557 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
17559 * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
17560 constraint to 'o' for m=r and r=m alternatives.
17561 ("*movv8hi_internal1"): Same.
17562 ("*movv16qi_internal1"): Same.
17563 ("*movv4sf_internal1"): Same.
17565 2002-04-22 Janis Johnson <janis187@us.ibm.com>
17567 * rtl.h (RTX_FLAG): New macro.
17568 * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
17569 * final.c (alter_subreg): Use macro to access rtx flag.
17570 * integrate.c (copy_rtx_and_substitute): Use new access macro.
17571 * print-rtl.c (print_rtx): Use new access macro.
17573 * cse.c (insert): Check rtx code before accessing flag.
17575 * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
17576 ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
17577 (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
17578 convert_const_symbol_ref, make_canonical, make_alternative_compare,
17579 evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
17580 simplify_test_exp, optimize_attrs, simplify_by_exploding,
17581 find_and_mark_used_attributes, unmark_used_attributes,
17582 add_values_to_cover, simplify_with_current_value,
17583 simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
17584 copy_rtx_unchanging, main): Use new access macros.
17586 2002-04-22 Tom Rix <trix@redhat.com>
17588 * expmed.c (init_expmed): Generate shifted constant once.
17590 2002-04-22 Zack Weinberg <zack@codesourcery.com>
17592 * c-lex.c (lex_charconst): Call convert to get constant in
17593 proper type; don't just smash the type field.
17596 * config.gcc: Add list of obsolete configurations. Disallow
17597 building these without --enable-obsolete.
17598 * doc/install.texi: Document --enable-obsolete and obsoletion
17599 policy. Mention obsoletion of individual targets in
17600 appropriate places.
17602 2002-04-22 Richard Henderson <rth@redhat.com>
17604 * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
17606 2002-04-22 Mark Mitchell <mark@codesourcery.com>
17609 * function.c (fixup_memory_subreg): Add promoted_mode parameter.
17610 (walk_fixup_memory_subreg): Likewise.
17611 (fixup_var_refs_insn): Adjust accordingly.
17612 (fixup_var_refs_1): Likewise.
17614 2002-04-22 Ulrich Weigand <uweigand@de.ibm.com>
17616 * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
17617 LIBPATH_ARCH64_SPEC): Define.
17618 (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
17619 (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
17620 (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
17621 (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
17623 2002-04-22 Joel Sherrill <joel@OARcorp.com>
17625 * gthr-rtems.h: Correct prototypes to remove warnings.
17627 2002-04-22 Richard Henderson <rth@redhat.com>
17630 * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
17632 * gcse.c (free_insn_expr_list_list): New.
17633 (clear_modify_mem_tables): Use it. Fix bit set usage.
17634 (canon_list_insert): Use EXPR_LISTs for expressions.
17635 (record_last_mem_set_info): Factor BLOCK_NUM (insn).
17637 2002-04-22 Neil Booth <neil@daikokuya.demon.co.uk>
17639 * cppfiles.c (_cpp_pop_file_buffer): Return void. Move
17640 file change and include code to _cpp_pop_buffer.
17641 * cpphash.h (struct pending_option): Predeclare.
17642 (struct cpp_reader): New member next_include_file.
17643 (_cpp_pop_file_buffer): Update.
17644 (_cpp_push_next_buffer): Update, rename.
17645 * cppinit.c (cpp_destroy): Free include chain and pending here.
17646 (cpp_finish_options): Simplify.
17647 (_cpp_push_next_buffer): Rename and clean up.
17648 * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
17650 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
17652 2002-04-22 Aldy Hernandez <aldyh@redhat.com>
17654 * config/rs6000/altivec.h (vec_xor): Add variant for both args
17655 being vector signed int.
17657 (vec_xor): Add variant for both args being vector signed char.
17658 Remove redundant variant.
17661 2002-04-21 David S. Miller <davem@redhat.com>
17663 * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
17664 compare mode in output RTL.
17666 2002-04-22 David Edelsohn <edelsohn@gnu.org>
17668 * config/rs6000/rs6000.c (rs6000_override_options): Correct
17669 style and formatting of previous patch.
17671 2002-04-22 Alan Modra <amodra@bigpond.net.au>
17673 * config/rs6000/rs6000.c (rs6000_override_options): Always clear
17674 flag_pic for ABI_AIX.
17676 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
17678 * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
17679 * cppfiles.c (read_include_file): Similarly.
17680 * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
17681 uxstrdup ustrchr, ufputs): Similarly.
17682 * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
17683 * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
17684 cpp_ideq, parse_identifier, parse_number): Similarly.
17685 * cpplib.c (struct directive, dequote_string, D, run_directive,
17686 cpp_push_buffer): Similarly.
17687 * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
17688 _cpp_create_definition, check_trad_stringification,
17689 cpp_macro_definition): Similarly.
17691 2002-04-21 Neil Booth <neil@daikokuya.demon.co.uk>
17693 * cppmacro.c (funlike_invocation_p): Don't step back
17696 2002-04-21 David Edelsohn <edelsohn@gnu.org>
17698 * config/rs6000/rs6000.c (output_profile_hook): Do not increment
17701 2002-04-20 Joseph S. Myers <jsm28@cam.ac.uk>
17703 * doc/invoke.texi: Remove Chill references.
17704 * doc/gcc.texi: Update last modified date.
17706 2002-04-20 Kazu Hirata <kazu@hxi.com>
17708 * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
17709 push and pop. Replace add.l with add.w.
17711 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
17713 * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
17714 multiply instructions for H8/300H case.
17716 2002-04-20 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
17718 * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
17719 Bum three instructions from each routine.
17721 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
17723 * Makefile.in: Update.
17724 * decl.c (push_c_function_context, pop_c_function_context,
17725 mark_c_function_context): Rename for consistency.
17726 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
17727 * c-tree.h (push_c_function_context, pop_c_function_context,
17728 mark_c_function_context): Rename for consistency.
17729 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17730 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17731 * function.c (init_lang_status, save_lang_status,
17732 restore_lang_status, mark_lang_status, free_lang_status):
17733 Move to langhooks.h.
17734 (push_function_context_to, pop_function_context_from,
17735 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
17737 * function.h (init_lang_status, save_lang_status,
17738 restore_lang_status, mark_lang_status, free_lang_status):
17739 Move to langhooks.h.
17740 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
17741 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17742 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
17743 LANG_HOOKS_FUNCTION_INITIALIZER): New.
17744 (LANG_HOOKS_INITIALIZER): Update.
17745 (lhd_do_nothing_f): New.
17746 * langhooks.h (struct lang_hooks_for_functions): New.
17747 (struct lang_hooks): New hooks.
17748 * langhooks.c (lhd_do_nothing_f): New.
17750 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17751 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17753 2002-04-19 David S. Miller <davem@redhat.com>
17755 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
17756 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
17758 2002-04-19 Jakub Jelinek <jakub@redhat.com>
17760 PR optimization/3756
17761 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
17762 x = ((int) y < 0) ? cst1 : cst2.
17764 2002-04-19 Jakub Jelinek <jakub@redhat.com>
17767 * function.c: Reapply patch for c/6358.
17768 (expand_function_end): Copy decl_rtl's mode, not
17769 current_function_return_rtx mode.
17771 2002-04-19 Joel Sherrill <joel@OARcorp.com>
17773 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
17776 2002-04-19 Tom Tromey <tromey@redhat.com>
17778 * doc/install.texi (Specific): Update status of Solaris 2.8.
17779 For PR libgcj/6158.
17781 2002-04-19 Andreas Schwab <schwab@suse.de>
17783 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
17784 (PUT_REAL): Restore old definition.
17786 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
17787 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17789 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
17790 binutils 2.11.2 and higher generate smaller binaries than Sun's
17793 2002-04-19 Mark Mitchell <mark@codesourcery.com>
17796 * toplev.c (rest_of_compilation): Do not defer functions for which
17797 TREE_SYMBOL_REFERENCED has already been set.
17799 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
17801 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
17804 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
17806 * builtins.c: Include langhooks.h.
17807 (lang_type_promotes_to): Remove.
17808 (expand_builtin_va_arg): Use new hook.
17809 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
17810 (simple_type_promotes_to): Move to c-typeck.c.
17811 * c-common.h (simple_type_promotes_to): Remove.
17812 * c-decl.c (duplicate_decls, grokdeclarator): Update.
17813 * c-format.c: Include langhooks.h.
17814 (check_format_types): Update.
17815 * c-tree.h (c_type_promotes_to): New.
17816 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
17817 (type_lists_compatible_p): Update.
17818 * langhooks-def.h (lhd_type_promotes_to): New.
17819 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
17820 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17821 * langhooks.c (lhd_type_promotes_to): New.
17822 * langhooks.h (struct lang_hooks_for_types): New hook.
17823 * tree.h (lang_type_promotes_to): Remove.
17825 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
17827 2002-04-18 Richard Henderson <rth@redhat.com>
17829 * function.c: Revert patch for c/6358.
17831 2002-04-18 Richard Henderson <rth@redhat.com>
17833 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
17834 blocks. Handle multiple references to the TRAP block. Handle
17835 non-adjacent THEN and OTHER blocks.
17837 2002-04-18 Richard Henderson <rth@redhat.com>
17839 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
17840 crash with no type for by-mode libcalls.
17842 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
17844 2002-04-18 Bob Wilson <bob.wilson@acm.org>
17846 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
17847 __xtensa_nonlocal_goto): Use a syscall instructions to flush
17848 the register windows.
17850 2002-04-18 Zack Weinberg <zack@codesourcery.com>
17852 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
17853 appropriate. Document need for extended precision even when
17854 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
17855 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
17856 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
17857 instead of relying on later syntax error when REAL_WIDTH > 5.
17858 * real.c: Define NE based only on whether or not we have a
17859 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
17860 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
17861 define GET_REAL and PUT_REAL as simple memcpy operations; no
17862 need to byteswap or round.
17863 Use #error instead of #ifdef-ing out the entire file, for
17864 prompt error detection.
17866 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
17868 2002-04-18 David S. Miller <davem@redhat.com>
17870 * config/sparc/sparc.h (BRANCH_COST): Define.
17872 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
17875 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
17877 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
17878 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
17879 propagate_block calls after relaxation loop using new variable
17880 stabilized_prop_flags.
17882 2002-04-18 Richard Henderson <rth@redhat.com>
17884 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
17885 (ia64_va_arg): Expect variable sized types by reference.
17886 * config/ia64/ia64-protos.h: Update.
17887 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
17888 ia64_function_arg_pass_by_reference.
17890 2002-04-18 Richard Henderson <rth@redhat.com>
17892 * ifcvt.c: Include except.h.
17893 (block_has_only_trap): Break out from find_cond_trap.
17894 (find_cond_trap): Use it. Always delete the trap block.
17895 (merge_if_block): Allow then block null. Be less simplistic about
17896 what insns can end a block.
17897 * Makefile.in (ifcvt.o): Depend on except.h.
17899 * config/ia64/ia64.md (trap, conditional_trap): New.
17901 2002-04-18 Jakub Jelinek <jakub@redhat.com>
17904 * function.c (assign_parms): Assign hard current_function_return_rtx
17906 (expand_function_end): ...not here.
17908 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
17910 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17911 * c-tree.h (c_incomplete_type_error): New.
17912 * c-typeck.c (require_complete_type, build_component_ref): Update.
17913 (incomplete_type_error): Rename.
17914 * langhooks-def.h (lhd_incomplete_type_error): New.
17915 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
17916 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17917 * langhooks.c (lhd_incomplete_type_error): New.
17918 * langhooks.h (struct lang_hooks_for_types): New hook.
17919 * tree.c (size_in_bytes): Use new hook.
17920 * tree.h (incomplete_type_error): Remove.
17922 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17924 2002-04-18 Zack Weinberg <zack@codesourcery.com>
17926 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
17927 TARGET_FLOAT_FORMAT blocks.
17929 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17931 * doc/install.texi (Downloading the source): Do not mention Chill
17932 any longer, but mention Ada.
17933 (Configuration): Do not mention Chill any longer.
17935 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
17937 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
17939 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
17941 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
17944 2002-04-18 Jakub Jelinek <jakub@redhat.com>
17946 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
17947 instead of unsigned_type.
17949 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
17951 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
17952 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
17955 2002-04-18 Bernd Schmidt <bernds@redhat.com>
17957 * attribs.c (vector_type_node_list): New static variable.
17958 (handle_vector_size_attribute): Use it to avoid generating a
17959 new type node each time we are called.
17961 * combine.c (subst): Avoid trying to make a vector mode subreg of
17962 an integer constant.
17963 (gen_lowpart_for_combine): Likewise.
17965 2002-04-18 Roger Sayle <roger@eyesopen.com>
17966 Jakub Jelinek <jakub@redhat.com>
17968 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
17969 for integer constant c (if x has unsigned type or sign bit is not
17970 set in c). This folds the zero/sign extension into the bit-wise and
17973 2002-04-18 Jakub Jelinek <jakub@redhat.com>
17976 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
17979 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
17981 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
17983 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
17985 * gcc.c (read_specs): Detect and fail if an attempt is made to
17986 rename a spec string to an already existing string.
17988 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17990 * config/s390/s390.c (legitimize_pic_address): Do not generate
17991 illegal address constant without CONST.
17993 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17995 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
17996 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17998 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
18000 PR optimization/6305
18001 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
18002 to make sure previous reloads are taken into account. Generate
18003 better code if one operand is an in-range immediate constant.
18005 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
18007 * doc/install.texi (Building): libgcj requires GNU make.
18009 2002-04-17 Jakub Jelinek <jakub@redhat.com>
18012 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
18013 even if hard quad and register is not floating.
18014 (movtf reg<-mem split): Disallow splitting if hard quad and
18015 register is floating.
18016 (movtf mem<-reg split): Likewise.
18017 * config/sparc/sparc.c (fp_register_operand): New predicate.
18018 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
18020 2002-04-17 Zack Weinberg <zack@codesourcery.com>
18022 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
18023 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
18024 (unprotoize.o): Ditto. Build from protoize.c. Define
18025 UNPROTOIZE on command line.
18026 * protoize.c: Include cppdefault.h. Delete include_defaults.
18027 (in_system_include_dir): Use cpp_include_defaults (defined in
18029 * unprotoize.c: Delete file.
18031 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
18033 * config/rs6000/altivec.h (vec_ld): Add array variants.
18037 2002-04-17 Alan Matsuoka <alanm@redhat.com>
18038 Aldy Hernandez <aldyh@redhat.com>
18040 * config/rs6000/altivec.h: Define __ALTIVEC__.
18045 (vec_vmaddfp): New.
18047 Add parentheses to all macro arguments.
18049 2002-04-16 Richard Henderson <rth@redhat.com>
18052 * except.c (remove_eh_handler): Insert inner regions at beginning
18053 of sibling chain. Refactor expressions.
18055 2002-04-16 Richard Henderson <rth@redhat.com>
18057 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
18058 * config/sparc/sol2-gas-bi.h: New file.
18059 * config.gcc (sparc*-solaris): Add it as needed.
18060 * configure.in (AS_SPARC64_FLAG): Remove check.
18061 * config.in, configure: Regenerate.
18063 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
18065 2002-04-16 Richard Henderson <rth@redhat.com>
18067 * config/mips/mips.c (override_options): Don't override N32 for
18071 * config/mips/mips.md (can_delay): Split out of existing define_delays.
18072 (HILO_delay): Set can_delay false.
18074 2002-04-16 Dale Johannesen <dalej@apple.com>
18076 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
18077 instruction addresses.
18078 (rs6000_output_function_epilogue): Likewise.
18080 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
18082 * c-parse.in (poplevel, compstmt_start,
18083 compstmt_primary_start): Add ending ';', in accordance
18086 2002-04-16 Richard Henderson <rth@redhat.com>
18088 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
18089 Adjust tm_file order to get TARGET_DEFAULT set properly.
18090 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
18091 * doc/install.texi (sparc-solaris): Update.
18093 2002-04-16 Dale Johannesen <dalej@apple.com>
18095 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
18096 comparison operands do not match each other or if modes of
18097 conditions do not match result.
18099 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
18102 * config/s390/s390.md (mulsidi3): Set both subregs of the
18103 multiword register.
18105 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
18107 * config/rs6000/altivec.h (vec_addc): Type check.
18109 2002-04-16 Jakub Jelinek <jakub@redhat.com>
18112 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
18114 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
18116 2002-04-15 Richard Henderson <rth@redhat.com>
18118 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
18119 call_really_used_regs too.
18121 2002-04-15 Richard Henderson <rth@redhat.com>
18123 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
18125 2002-04-15 David S. Miller <davem@redhat.com>
18127 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
18128 as being CLOBBERed.
18130 2002-04-16 Jakub Jelinek <jakub@redhat.com>
18133 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
18134 CONST_VECTOR is { 0, ... 0 }.
18136 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
18138 * doc/install.texi (Installing GCC: Configuration): Clarify
18139 the only supported ways to configure gcc.
18141 2002-04-15 Roland McGrath <roland@frob.com>
18143 * config.gcc (alpha*-*-gnu*): New target configuration.
18144 * config/alpha/gnu.h: New file for it.
18145 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
18147 2002-04-16 Mark Mitchell <mark@codesourcery.com>
18149 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
18150 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
18151 * tree.h (expand_start_stmt_expr): Update prototype.
18152 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
18153 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
18154 on the STMT_EXPR created for the inline function.
18156 2002-04-15 Richard Henderson <rth@redhat.com>
18158 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
18159 config/i386/linux-aout.h, config/i386/linux-oldld.h,
18160 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
18161 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
18162 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
18163 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
18164 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
18165 Define __gnu_linux__, not gnu_linux.
18166 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
18168 2002-04-15 Mark Mitchell <mark@codesourcery.com>
18170 Remove Chill front end.
18171 * gcc.c (default_compilers): Remove Chill entries.
18172 * ch: Remove directory.
18173 * doc/frontends.texi: Remove information about Chill.
18174 * doc/sourcebuild.texi: Likewise.
18175 * doc/standards.texi: Likewise.
18177 2002-04-15 Douglas B Rupp <rupp@gnat.com>
18179 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
18180 (LONGLONG_STANDALONE): Define.
18182 2002-04-15 David S. Miller <davem@redhat.com>
18184 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
18185 Call emit_library_call with LCT_NORMAL.
18186 (sparc_initialize_trampoline): Use LCT_foo instead of
18187 magic constant in emit_library_call invocations.
18188 (sparc64_initialize_trampoline): Likewise.
18189 (sparc_profile_hook): Likewise.
18190 * config/sparc/sparc.md: Likewise.
18192 * config/sparc/sparc.c (sparc_extra_constraint_check):
18193 Fix type of argument 'c'.
18194 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
18197 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
18199 * diagnostic.h (output_buffer_state): Redefine.
18200 (output_format_decoder): New macro.
18201 (output_prefixing_rule): Likewise.
18202 (output_line_cutoff): Likewise.
18203 (diagnostic_format_decoder): Adjust.
18204 (diagnostic_prefixing_rule): Likewise.
18205 (diagnostic_line_cutoff): Likewise.
18206 (diagnostic_state): Likewise.
18207 (diagnostic_kind_count): Likewise.
18208 (diagnostic_buffer): Now a macro.
18210 * diagnostic.c (diagnostic_buffer): Remove definition.
18211 (output_is_line_wrapping): Adjust.
18212 (set_real_maximum_length): Likewise.
18213 (output_set_maximum_length): Likewise.
18214 (init_output_buffer): Likewise.
18215 (lhd_print_error_function): Likewise.
18216 (output_do_verbatim): Likewise.
18218 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
18220 * cpperror.c (print_location): Don't print include chain
18222 (cpp_begin_message): Update to use DL_ macros.
18223 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18224 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18225 cpp_notice, cpp_notice_from_errno): Remove.
18226 (cpp_error, cpp_error_with_line): Update to take a diagnostic
18229 * cppexp.c (CPP_ICE): Remove.
18230 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
18231 lex, integer_overflow, _cpp_parse_expr): Update.
18232 * cppfiles.c (read_include_file, find_include_file,
18233 handle_missing_header, _cpp_read_file, remap_filename): Update.
18234 * cpphash.h (enum error_type): Remove.
18235 (_cpp_begin_message): Update.
18236 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
18237 cpp_handle_option, cpp_post_options): Update.
18238 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
18239 skip_whitespace, parse_identifier, parse_slow, parse_string,
18240 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
18241 cpp_interpret_charconst): Update.
18242 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
18243 lex_macro_node, do_undef, glue_header_name, parse_include,
18244 do_include_common, read_flag, do_line, do_linemarker, do_ident,
18245 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
18246 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
18247 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
18248 _cpp_pop_buffer, do_diagnostic): Update.
18249 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
18250 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
18251 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
18252 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
18253 cpp_notice, cpp_notice_from_errno): Remove.
18254 (cpp_error, cpp_error_with_line): Update to take a diagnostic
18257 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
18258 collect_args, enter_macro_context, save_parameter, parse_params,
18259 _cpp_create_definition, check_trad_stringification,
18260 cpp_macro_definition): Update.
18261 * cppmain.c (cpp_preprocess_file): Update.
18262 * fix-header.c (read_scan_file): Update.
18264 2002-04-14 Andreas Schwab <schwab@suse.de>
18266 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
18268 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
18270 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
18272 2002-04-13 Mark Mitchell <mark@codesourcery.com>
18274 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
18277 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
18279 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
18281 2002-04-13 Joel Sherrill <joel@OARcorp.com>
18283 * config/sparc/t-elf: Enable v8 multilibs. Impacts
18284 sparc-elf and sparc-rtems targets.
18286 2002-04-13 Mark Mitchell <mark@codesourcery.com>
18288 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
18289 defined, and __gnu_hurd__ wherever __GNU__ is defined.
18290 * arm/linux-elf.h: Likewise.
18291 * cris/aout.h: Likewise.
18292 * cris/linux.h: Likewise.
18293 * i370/linux.h: Likewise.
18294 * i386/gnu.h: Likewise.
18295 * i386/linux-aout.h: Likewise.
18296 * i386/linux-oldld.h: Likewise.
18297 * i386/linux.h: Likewise.
18298 * i386/linux64.h: Likewise.
18299 * ia64/linux.h: Likewise.
18300 * m68k/linux-aout.h: Likewise.
18301 * m68k/linux.h: Likewise.
18302 * mips/linux.h: Likewise.
18303 * pa/pa-linux.h: Likewise.
18304 * pj/linux.h: Likewise.
18305 * rs6000/sysv4.h: Likewise.
18306 * s390/linux.h: Likewise.
18307 * sh/linux.h: Likewise.
18308 * sparc/linux-aout.h: Likewise.
18309 * sparc/linux.h: Likewise.
18310 * sparc/linux64.h: Likewise.
18311 * xtensa/linux.h: Likewise.
18313 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
18315 * stmt.c (check_unique_operand_names): Expect operand names to
18316 be strings rather than identifiers. Use simple_cst_equal to
18318 (resolve_operand_name_1): Make same identifier to string change here.
18319 * c-parse.in (asm_operand): Convert a named operand into a string.
18320 * cp/parse.y (asm_operand): Likewise.
18322 2002-04-13 Andreas Schwab <schwab@suse.de>
18324 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
18326 2002-04-12 Mark Mitchell <mark@codesourcery.com>
18328 Revert these changes:
18330 2002-04-06 Mark Mitchell <mark@codesourcery.com>
18333 * stor-layout.c (layout_decl): Reset the RTL for the decl.
18335 2002-04-12 Richard Henderson <rth@redhat.com>
18337 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
18338 (sparc*-*-solaris): Clean up header files.
18339 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
18340 and plan on generating 64-bit code.
18341 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
18342 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
18343 * config/sparc/sol2-sld-64.h: Rename ...
18344 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
18345 for AS_SPARC64_FLAG not defined.
18346 * config/sparc/sol2-gld-bi.h: New.
18347 * config/sparc/sol2-sld.h: Remove.
18348 * config/sparc/sol26-sld.h: New.
18349 * config/sparc/sol2.h: Tidy comments.
18350 * doc/install.texi: Document sparc-solaris configury changes.
18352 2002-04-12 Richard Henderson <rth@redhat.com>
18354 * recog.c (offsettable_address_p): Match the logic in adjust_address.
18356 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
18357 in 64-bit mode only. Use only for 32-bit or MEDLOW.
18359 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18361 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
18363 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
18365 * pa.c (pa_can_combine_p): Call extract_insn before calling
18366 constrain_operands.
18368 2002-04-12 Douglas B Rupp <rupp@gnat.com>
18370 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
18371 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
18372 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
18373 (CPP_PREDEFINES): Handle __declspec.
18374 * config/i386/t-interix (USER_H): Remove.
18376 2002-04-12 DJ Delorie <dj@redhat.com>
18378 * integrate.c (compare_blocks): Make comparisons safe for when
18379 sizeof(int) < sizeof(char *).
18380 (find_block): Likewise.
18382 2002-04-12 Jan Hubicka <jh@suse.cz>
18383 David Edelsohn <edelsohn@gnu.org>
18385 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
18387 (symbol_ref_operand): New.
18388 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
18389 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
18391 2002-04-12 Andreas Schwab <schwab@suse.de>
18393 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
18394 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
18395 overrides the definition in config/svr4.h.
18397 2002-04-12 Eric Norum <eric.norum@usask.ca>
18399 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
18400 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
18401 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
18402 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
18403 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
18404 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
18405 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
18406 definitions to config/rtems.h and make the targets more similar.
18408 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18410 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
18411 POINTERS_EXTEND_UNSIGNED.
18412 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
18413 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
18415 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
18418 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
18420 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
18421 depends on TARGET_SHMEDIA, not TARGET_SH5.
18423 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
18425 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
18426 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
18428 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
18430 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
18433 2002-04-12 Andreas Schwab <schwab@suse.de>
18435 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
18437 2002-04-12 Richard Henderson <rth@redhat.com>
18440 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
18442 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
18443 modes spanning multiple hard regs.
18445 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
18447 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
18449 * pa.c (pa_output_function_prologue): Don't accumulate the total
18450 number of code bytes when using TARGET_64BIT, or gas, SOM and not
18451 the portable runtime.
18452 (output_deferred_plabels): Handle 64bit plabels.
18453 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
18454 generating pic code using the GAS assembler for object formats that
18455 are not SOM (ie., ELF32 and ELF64).
18456 (output_millicode_call): Check attribute type if attribute length is 28.
18457 Likewise use $PIC_pcrel$0. Only call get_attr_length and
18458 dbr_sequence_length once.
18459 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
18460 dbr_sequence_length once.
18461 * pa.h (TARGET_SOM): Define if not defined.
18462 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
18463 with GAS and not SOM.
18464 (jump, call_internal_reg, call_value_internal_reg): Likewise.
18465 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
18467 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18469 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
18470 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
18471 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
18472 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
18473 elfos.h and dbxelf.h values are fine now.
18474 * config/i386/freebsd.h, config/alpha/freebsd.h
18475 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
18477 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18479 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
18480 or set Acpu or Amachine. Reformat.
18481 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18483 (LINK_SPEC): Do not need to undef.
18484 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
18485 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
18486 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18488 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
18489 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
18490 (LINK_SPEC): Do not need to undef.
18491 (DONT_USE_BUILTIN_SETJMP): Do not define.
18492 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
18493 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
18494 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
18495 Remove trailing spaces.
18496 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
18497 __ELF__, or set Acpu or Amachine. Reformat.
18498 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
18501 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18503 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
18504 all other *-*-freebsd* targets.
18506 2002-04-11 Richard Henderson <rth@redhat.com>
18508 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
18510 2002-04-11 David O'Brien <obrien@FreeBSD.org>
18512 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
18513 Include {cpu}/{cpu}.h thru tm_file.
18514 (alpha*-*-linux*ecoff): Remove target.
18515 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
18516 (LINK_SPEC): Remove, is not OS independent.
18517 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
18518 (LINK_SPEC): Do not need to #undef any longer.
18519 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
18521 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
18523 (LINK_SPEC): Moved here from alpha/elf.h.
18524 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
18525 SUB_CPP_PREDEFINES.
18526 * config/alpha/linux-ecoff.h: Remove.
18527 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
18528 (CPP_SPEC): Define _POSIX_SOURCE as needed.
18529 (CPP_SUBTARGET_SPEC): Do not define.
18530 (LINK_SPEC): Do not need to #undef any longer.
18531 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
18532 * config/alpha/vms.h: Likewise.
18534 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
18536 * doc/extend.texi: Remove old claim that typedefs cannot have
18537 an alignment attribute.
18539 2002-04-11 Jakub Jelinek <jakub@redhat.com>
18541 PR optimization/6177
18542 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
18543 bitpos is 0 and bitsize CONCAT size.
18545 2002-04-11 Jakub Jelinek <jakub@redhat.com>
18548 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
18550 2002-04-10 David O'Brien <obrien@FreeBSD.org>
18552 * config/alpha/freebsd.h: Minor reformatting.
18553 (CPP_SPEC): Define ELF and add cpp_subtarget.
18554 (ASM_SPEC): No longer needed.
18556 2002-04-11 Richard Henderson <rth@redhat.com>
18558 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
18559 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
18560 (dimode mem/zero splitter): New.
18562 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
18564 * config/cris/cris.c (cris_override_options): Tweak error message
18565 for PIC not implemented.
18567 * config/cris/cris.h: Tweak comments related to parameter-passing.
18569 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
18571 2002-04-10 Richard Henderson <rth@redhat.com>
18573 * except.c (add_ehl_entry): Allow duplicates after landing pad
18576 2002-04-10 David Edelsohn <edelsohn@gnu.org>
18578 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
18580 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
18582 * c-decl.c (c_init_decl_processing): Move generation of
18583 decls for g77_integer_type_node and friends from here ...
18584 * c-common.c (c_common_nodes_and_builtins): ... to here.
18586 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
18588 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
18589 is only used as frame pointer when frame_pointer_needed is true.
18591 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
18594 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
18595 for the fact that the pool entry uses two words.
18596 (movdf_hard_insn): Similarly. Also, ADR instruction can span
18598 (movdf_soft_insn): Similarly.
18599 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
18600 for the fact that the pool entry uses three words.
18602 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
18604 * config/mips/mips.c (mips_va_arg): When using the struct version
18605 of the EABI va_list, allow arguments in the register save area to
18606 take up less room than a stack argument.
18608 2002-04-10 Richard Henderson <rth@redhat.com>
18610 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
18611 if EXPAND_INITIALIZER.
18613 2002-04-09 Richard Henderson <rth@redhat.com>
18615 * config/alpha/alpha.md (movdi_er_maybe_g): New.
18616 * config/alpha/alpha.c (alpha_expand_mov): Use it.
18618 2002-04-10 Alan Modra <amodra@bigpond.net.au>
18620 PR optimization/6233
18621 * rtlanal.c (pure_call_p): New function.
18622 * rtl.h (pure_call_p): Declare.
18623 * loop.c (prescan_loop): Use it to set has_nonconst_call.
18624 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
18626 2002-04-09 Eric Christopher <echristo@redhat.com>
18628 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
18629 information to .comm directive.
18631 2002-04-09 Richard Henderson <rth@redhat.com>
18634 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
18636 2002-04-09 Richard Henderson <rth@redhat.com>
18638 * basic-block.h (flow_delete_block_noexpunge): Declare.
18639 (expunge_block_nocompact): Declare.
18640 * cfg.c (expunge_block_nocompact): Split out from ...
18641 (expunge_block): ... here.
18642 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
18643 (flow_delete_block_noexpunge): Split out from ...
18644 (flow_delete_block): ... here.
18645 * cfgcleanup.c (delete_unreachable_blocks): Compact while
18646 removing dead blocks.
18647 * except.c (exception_handler_labels): Remove.
18648 (exception_handler_label_map): New.
18649 (struct eh_region): Add aka member.
18650 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
18651 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
18652 (for_each_eh_label, for_each_eh_label_1): New.
18653 (init_eh): Register exception_handler_label_map.
18654 (free_eh_status): Use free_region.
18655 (find_exception_handler_labels): Use the map, not the list.
18656 (remove_exception_handler_label): Likewise.
18657 (maybe_remove_eh_handler): Likewise.
18658 (remove_eh_handler): Use the region aka bitmap.
18659 * except.h (exception_handler_labels): Remove.
18660 (for_each_eh_label): Declare.
18661 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
18662 * loop.c (invalidate_loops_containing_label): New.
18663 (find_and_verify_loops): Use it. Use for_each_eh_label.
18664 * sched-rgn.c (is_cfg_nonregular): Use
18665 current_function_has_exception_handlers.
18667 2002-04-09 Richard Henderson <rth@redhat.com>
18669 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
18670 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
18671 Do not return changed status.
18672 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
18673 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
18674 New functions that do return changed status.
18675 * sbitmap.h: Update decls.
18676 * gcse.c, lcm.c: Use _cg functions as needed.
18678 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
18680 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
18681 (sh64-*-elf*, sh-*-rtemself*): Likewise.
18682 * config/sh/embed_bb.c: New file.
18683 * config/sh/embed-elf.h: New file.
18684 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
18685 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
18686 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18688 (SUBTARGET_CPP_PTR_SPEC): Don't define.
18689 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
18690 Add subtarget_asm_endian_spec.
18691 (ASM_SPEC): Use subtarget_asm_endian_spec.
18692 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
18693 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
18694 (WCHAR_UNSIGNED): Define.
18695 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
18696 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18697 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
18699 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
18700 (sh_adjust_cost): Likewise.
18701 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
18703 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
18704 (WCHAR_TYPE_SIZE): Likewise.
18705 (ASM_SPEC): Use subtarget_asm_endian_spec.
18706 (SH_ELF_WCHAR_TYPE): #undef/ #define.
18707 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
18708 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
18709 (MAX_WCHAR_TYPE_SIZE): Don't #define .
18710 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
18711 (USER_LABEL_PREFIX): Don't #undef /#define .
18712 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
18713 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
18714 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
18715 (ASM_SPEC): Likewise.
18716 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
18717 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
18718 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
18719 (LIB2FUNCS_EXTRA): Define.
18720 * t-sh64 (LIB2FUNCS_EXTRA): Define.
18721 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
18722 (LIB1ASMFUNCS_CACHE): Define.
18723 (LIB2FUNCS_EXTRA): Redefine empty.
18725 2002-04-08 Richard Henderson <rth@redhat.com>
18727 * reorg.c (get_branch_condition): Use reversed_comparison_code.
18729 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
18731 * config/m68hc11/larith.asm (__map_data_section): Fix condition
18732 and optimize for size.
18733 (__do_global_ctors): Fix pointer comparison.
18734 (__do_global_dtors): Likewise.
18736 2002-04-09 David S. Miller <davem@redhat.com>
18738 * config/sparc/sparc.c (sparc_extra_constraint_check): New
18739 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
18740 allow reloading pseudos.
18741 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
18742 * config/sparc/sparc-protos.h: Declare it.
18744 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
18745 unsigned comparison warning.
18746 (output_restore_regs): Mark leaf_function as unused.
18748 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18750 * expr.c (is_aligning_offset): New function.
18751 (expand_expr, case COMPONENT_EXPR): Call it.
18753 2002-04-08 David S. Miller <davem@redhat.com>
18756 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
18758 Make init_priority work on SPARC when using GNU ld.
18759 * config/sparc/linux.h, config/sparc/linux64.h,
18760 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
18761 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
18762 * config/sparc/sol2-gld.h: New file to do the same.
18763 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
18764 sparc/sol2-gld.h to tm_file.
18766 PR optimization/4328
18767 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
18768 * doc/md.texi: Document it.
18769 * config/sparc/sparc.md (movdi_insn_sp64_novis,
18770 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
18771 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
18772 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
18773 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
18775 2002-04-08 Andreas Jaeger <aj@suse.de>
18777 * stmt.c (expand_asm_operands): Revert last patch from Richard
18780 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18782 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
18783 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
18785 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18787 * doc/contrib.texi (Contributors): Add David O'Brien.
18789 2002-04-08 Alan Modra <amodra@bigpond.net.au>
18791 * configure.in (auto-build.h): Use target_alias and build_alias
18792 when running configure.
18793 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
18794 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
18795 * configure: Regenerate.
18797 2002-04-07 David S. Miller <davem@redhat.com>
18799 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
18801 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
18804 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
18805 generating 32-bit pic code.
18807 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
18809 * cppinit.c (cpp_create_reader): Initialize
18810 discard_comments_in_macro_exp.
18811 (COMMAND_LINE_OPTIONS): Add "-CC" option.
18812 (cpp_handle_option): Handle "-CC" option.
18813 * cpplex.c (save_comment): If saving a C++ comment in
18814 a directive, convert it to a C comment.
18815 (_cpp_lex_direct): Pass second comment start character to
18816 save_comment to indicate comment type.
18817 * cpplib.c (_cpp_handle_directive): If processing
18818 a "#define" directive and discard_comments_in_macro_exp
18819 is false, re-enable saving of comments.
18820 (lex_macro_node): If discard_comments_in_macro_exp is false,
18821 discard any comments before the macro identifier.
18822 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
18824 * cppmacro.c (cpp_get_token): If expanding a macro while
18825 processing a directive, discard any comments we might encounter.
18826 (parse_params): If discard_comments_in_macro_exp is false,
18827 ignore comments in the macro parameter list.
18828 * gcc.c (cpp_unique_options): Add "-CC" option.
18829 (option_map): Map "--comments-in-macros" to "-CC".
18830 * doc/cppopts.texi: Document "-CC" option.
18831 * f/lang-specs.h: Add "-CC" option.
18832 * testsuite/gcc.dg/cpp/maccom1.c: New test.
18833 * testsuite/gcc.dg/cpp/maccom2.c: New test.
18834 * testsuite/gcc.dg/cpp/maccom3.c: New test.
18835 * testsuite/gcc.dg/cpp/maccom4.c: New test.
18836 * testsuite/gcc.dg/cpp/maccom5.c: New test.
18837 * testsuite/gcc.dg/cpp/maccom6.c: New test.
18839 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
18842 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
18844 2002-04-06 Mark Mitchell <mark@codesourcery.com>
18847 * stor-layout.c (layout_decl): Reset the RTL for the decl.
18850 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
18851 RTX_UNCHANGING_P for the functions arguments when a tail call
18854 2002-04-06 Jason Merrill <jason@redhat.com>
18856 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
18857 (parse_options_and_default_flags): Set them appropriately.
18858 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
18860 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
18862 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
18865 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
18868 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
18869 types come in by-reference. Fix typo in comment.
18871 2002-04-05 David S. Miller <davem@redhat.com>
18873 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
18874 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
18875 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
18876 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
18878 2002-04-05 David S. Miller <davem@redhat.com>
18880 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
18881 are not going to emit return instructions, emit at least a nop
18882 for the sake of sane backtraces.
18884 2002-04-05 Richard Henderson <rth@redhat.com>
18886 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
18888 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
18890 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
18892 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
18894 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
18895 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
18896 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
18898 2002-04-05 Andreas Schwab <schwab@suse.de>
18900 * c-convert.c: Include c-common.h.
18901 * Makefile.in (c-convert.o): Updated.
18903 2002-04-05 Jakub Jelinek <jakub@redhat.com>
18905 * mklibgcc.in: Use separate libgcc.map for each multilib.
18906 * Makefile.in (distclean): Don't remove libgcc.map here.
18908 2002-04-05 Jakub Jelinek <jakub@redhat.com>
18910 * Makefile.in (s-mlib): Handle --disable-multilib by separate
18911 genmultilib invocation.
18913 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
18915 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
18916 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
18917 to num_gprs for symmetry.
18918 * config/mips/mips.c: Adjust accordingly.
18920 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
18922 * c-common.c (truthvalue_conversion): Rename, update.
18923 * c-common.h (c_common_truthvalue_conversion): New.
18924 * c-convert.c (convert): Update.
18925 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18926 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
18927 * c-typeck.c (build_binary_op, build_unary_op,
18928 build_conditional_expr): Update.
18929 * fold-const.c (constant_boolean_node, fold): Use langhook.
18930 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
18931 * langhooks.h (struct lang_hooks): New hook.
18932 * stmt.c (expand_decl_cleanup): Use langhook.
18933 * tree.h (truthvalue_conversion): Remove.
18935 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18937 2002-04-05 Alan Modra <amodra@bigpond.net.au>
18939 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
18940 Add rules to make null object file.
18942 2002-04-04 Jim Blandy <jimb@redhat.com>
18944 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
18945 macro formal parameter names.
18947 2002-04-04 David S. Miller <davem@redhat.com>
18949 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
18951 2002-04-04 Richard Henderson <rth@redhat.com>
18954 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
18955 Support copies into and out of memory. Don't accept allows_reg
18956 and allows_mem as gospel.
18958 2002-04-04 Richard Henderson <rth@redhat.com>
18961 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
18962 (write_dependence_p): Likewise.
18964 2002-04-04 Richard Henderson <rth@redhat.com>
18966 * predict.c (estimate_bb_frequencies): Do frequency calculation
18967 with a volatile temporary.
18969 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
18971 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
18973 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18976 * final.c (final_start_function): Don't bump profile_label_no here...
18977 (final_end_function): ...but here.
18979 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18981 * config/sparc/sparc.md (pic): New attribute.
18982 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
18984 (split after do_builtin_setjmp_setup): New.
18986 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18989 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
18992 2002-04-04 Jakub Jelinek <jakub@redhat.com>
18994 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
18995 UNITS_PER_WORD for zero sized aggregates.
18997 2002-04-03 David S. Miller <davem@redhat.com>
18999 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
19000 one-character spec for this, just use %(link_gcc_c_sequence).
19002 2002-04-03 David S. Miller <davem@redhat.com>
19004 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
19007 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
19009 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
19010 (DWARF_FRAME_RETURN_COLUMN): Move.
19011 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
19012 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
19013 * pa.c (except.h, predict.h): Include.
19015 (store_reg_modify, set_reg_plus_d): Revise prototypes.
19016 (output_ascii): Add cast.
19017 (store_reg_modify): Revise to add frame notes.
19018 (set_reg_plus_d): Likewise.
19019 (compute_frame_size): Include space for eh data registers in frame if
19020 the current function calls eh_return.
19021 (hppa_expand_prologue): Ensure register %r2 is saved if the current
19022 function calls eh_return. Save eh data registers if the current
19023 function calls eh_return. Fix code to add frame notes. Emit
19024 blockage to prevent insns with frame notes being scheduled in the
19025 delay slot of calls.
19026 (hppa_expand_epilogue): Restore eh data registers and do final stack
19027 adjustment if the current function calls eh_return. Don't add frame
19029 (output_call): Revise for change in length of call insn. Don't do
19030 return pointer adjustment for an unconditional jump in the delay slot
19031 of a call when using frame notes.
19032 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
19033 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
19034 (ARG_POINTER_CFA_OFFSET): Define.
19035 * pa.md (return_external_pic): New pattern.
19036 (prologue): Correct formatting. Use return_external_pic if current
19037 function calls eh_return.
19038 (call_internal_symref, call_value_internal_symref,
19039 sibcall_internal_symref, sibcall_value_internal_symref): Change default
19040 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
19042 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
19044 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
19045 list of targets to check using "nop" insn.
19046 * configure: Rebuilt.
19048 2002-04-04 Alan Modra <amodra@bigpond.net.au>
19050 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
19052 2002-04-03 David S. Miller <davem@redhat.com>
19054 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
19055 library sequence passed to the linker.
19056 (LINK_COMMAND_SPEC): Use it.
19057 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
19058 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
19059 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19061 2002-04-03 Jason Merrill <jason@redhat.com>
19063 * except.c (struct eh_status): Remove protect_list.
19064 (begin_protect_partials, end_protect_partials): Remove.
19065 (add_partial_entry): Remove.
19066 * except.h: Remove prototypes.
19068 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
19069 expand_decl_cleanup_eh.
19072 * tree.h (CLEANUP_EH_ONLY): New macro.
19073 * stmt.c (expand_decl_cleanup_eh): New fn.
19074 (expand_cleanups): Check CLEANUP_EH_ONLY.
19075 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
19076 Use expand_decl_cleanup_eh.
19077 (expand_stmt): Adjust.
19078 * c-common.h: Adjust prototype.
19080 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
19082 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
19083 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
19084 (cris_target_asm_function_epilogue): Ditto.
19085 (cris_initial_frame_pointer_offset): Ditto.
19086 (cris_simple_epilogue): Ditto.
19087 (cris_expand_builtin_va_arg): Variable-size types come in
19090 2002-04-03 David S. Miller <davem@redhat.com>
19092 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
19094 (set_fast_math): Correct 'fsr' type.
19096 2002-04-03 Richard Henderson <rth@redhat.com>
19099 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
19100 * toplev.c (check_global_declarations): Use it.
19101 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
19102 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19103 (LANG_HOOKS_DECLS): Add it.
19104 * langhooks.c (lhd_warn_unused_global_decl): New.
19105 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19106 * c-objc-common.c (c_warn_unused_global_decl): New.
19107 * c-tree.h (c_warn_unused_global_decl): Declare.
19108 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
19110 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
19112 * langhooks-def.h (lhd_set_decl_assembler_name,
19113 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
19114 (LANG_HOOKS_INITIALIZER): Update.
19115 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
19116 * langhooks.h (struct lang_hooks): New hook.
19117 * tree.c (set_decl_assembler_name): Move to langhooks.c.
19118 (lang_set_decl_assembler_name): Remove.
19119 (init_obstacks): Don't set hook.
19120 (decl_assembler_name): New function.
19121 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
19122 (decl_assembler_name): New.
19123 (lang_set_decl_assembler_name): Remove.
19125 2002-04-03 Jakub Jelinek <jakub@redhat.com>
19127 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
19128 works properly with .hidden symbols.
19129 * configure: Rebuilt.
19130 * config.in: Rebuilt.
19131 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
19132 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
19133 properly with .hidden symbols.
19135 2002-04-03 Jakub Jelinek <jakub@redhat.com>
19138 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
19141 2002-04-03 Richard Henderson <rth@redhat.com>
19144 * sched-rgn.c (sets_likely_spilled): New.
19145 (sets_likely_spilled_1): New.
19146 (add_branch_dependences): Use it.
19148 2002-04-02 Richard Henderson <rth@redhat.com>
19151 * loop.h (LOOP_FIRST_PASS): New.
19152 * loop.c (strength_reduce): Mind it when deciding to unroll.
19153 * toplev.c (rest_of_compilation): Set it.
19155 2002-04-02 David S. Miller <davem@redhat.com>
19157 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
19158 mems_ok_for_ldd_peep when the order of the loads being examined
19160 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
19161 existing comment to increase comprehension of this situation.
19163 2002-04-02 Zack Weinberg <zack@codesourcery.com>
19165 * config/sh/sh.md: Don't use union real_extract.
19167 2002-04-02 Richard Henderson <rth@redhat.com>
19169 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
19171 2002-04-02 David O'Brien <obrien@FreeBSD.org>
19173 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
19174 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
19175 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
19176 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
19177 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
19178 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
19179 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
19180 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
19181 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
19182 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
19183 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
19184 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
19185 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
19186 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
19187 Include as many configury headers via tm_file as possible. This
19188 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
19189 * config/openbsd-oldgas.h: New file.
19190 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
19191 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
19192 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
19193 config/i386/i386-coff.h, config/i386/i386-interix.h,
19194 config/i386/iscdbx.h, config/i386/linux-aout.h,
19195 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
19196 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
19197 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
19198 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
19199 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
19200 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
19201 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
19202 config/i386/vxi386.h: Do not directly include configury headers.
19203 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
19204 Directly include configury headers that are no longer automatically
19205 included by the above headers.
19206 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
19207 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
19208 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
19209 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
19210 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
19211 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
19212 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
19213 (TARGET_VERSION): Define.
19214 * config/i386/beos-elf.h, config/i386/freebsd.h,
19215 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
19216 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
19217 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
19218 config/i386/sco5.h, config/i386/sysv4.h
19219 (TARGET_VERSION): Do not need to protect.
19220 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
19221 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
19222 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
19223 config/i386/i386-interix.h, config/i386/linux-aout.h,
19224 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
19225 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
19226 (YES_UNDERSCORES): Do not define - not needed.
19227 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
19228 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19229 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
19230 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
19231 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
19232 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
19233 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
19234 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
19236 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
19237 Richard Henderson <rth@redhat.com>
19240 * function.c (assign_temp): Accept either type or decl argument.
19241 Detect variables whose size is too large to fit into an integer.
19242 * stmt.c (expand_decl): Pass the decl, not the type.
19244 2002-04-02 David O'Brien <obrien@FreeBSD.org>
19246 * protoize.c: Match include directory usage with cppdefault.c.
19248 2002-04-03 Jeffrey A Law (law@redhat.com)
19249 Hans-Peter Nilsson <hp@bitrange.com>
19251 * combine.c (simplify_comparison): Avoid narrowing a comparison
19252 with a paradoxical subreg when doing so would drop signficant bits.
19254 2002-04-02 Steve Ellcey <sje@cup.hp.com>
19256 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
19257 if POINTERS_EXTEND_UNSIGNED is defined.
19259 2002-04-02 Richard Henderson <rth@redhat.com>
19262 * local-alloc.c (contains_replace_regs): LO_SUM may contain
19265 2002-04-02 Richard Henderson <rth@redhat.com>
19267 * doc/standards.texi: Document required freestanding libc entry points.
19269 2002-04-02 Alan Modra <amodra@bigpond.net.au>
19271 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
19272 associated splitter. Remove MQ constraint.
19273 (ctrdi_internal4): Correct CCmode clobber.
19275 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
19277 * milli64.S ($$dyncall): New function.
19278 * t-linux (LIB1ASMFUNCS): Revise module list.
19279 (LIB1ASMSRC): Use pa/milli64.S.
19281 2002-04-02 Richard Henderson <rth@redhat.com>
19283 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
19284 rename solaris_sys_varargs_h.
19286 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19288 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
19289 the same mode as its component.
19291 2002-04-02 Richard Henderson <rth@redhat.com>
19294 * final.c (this_is_asm_operands): Export.
19295 * output.h (this_is_asm_operands): Declare.
19296 * config/i386/i386.c (print_operand): Error odd asm operands.
19298 2002-04-02 Richard Henderson <rth@redhat.com>
19301 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
19303 2002-04-01 Richard Henderson <rth@redhat.com>
19306 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
19307 * fixinc/fixincl.x: Rebuild.
19309 2002-04-01 Richard Henderson <rth@redhat.com>
19311 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
19312 (atomic_alloc, atomic_free): New.
19313 (SIZE, MASK_FOR, PTR_IN): New.
19314 (emergency_reg_state, emergency_reg_state_free): New.
19315 (emergency_labeled_state, emergency_labeled_state_free): New.
19316 (reg_state_alloced, labeled_state_alloced): New.
19317 (alloc_reg_state, free_reg_state): New.
19318 (alloc_label_state, free_label_state, free_label_states): New.
19319 (push, pop, dup_state_stack, free_state_stack): Use them.
19320 (desc_label_state): Likewise.
19321 (uw_frame_state_for): Free label states and state stack.
19322 (uw_update_reg_address): Eliminate warnings.
19324 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
19326 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
19327 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
19329 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19331 * c-decl.c (grokdeclarator): Update.
19332 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19333 * c-tree.h (c_mark_addressable): New.
19334 * c-typeck.c (default_function_array_conversion, build_unary_op,
19335 build_array_ref, convert_for_assignment): Update.
19336 (mark_addressable): Rename.
19337 * calls.c (try_to_integrate, expand_call): Use langhook.
19338 * expr.c (expand_expr): Use langhook.
19339 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
19340 * langhooks.h (struct lang_hooks): New hook.
19341 * stmt.c (expand_asm_operands): Use langhook.
19342 * tree.h (mark_addressable): Remove.
19344 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19346 2002-04-01 Bob Wilson <bob.wilson@acm.org>
19348 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
19349 in previous change.
19351 2002-04-01 Bob Wilson <bob.wilson@acm.org>
19353 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
19354 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
19356 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19358 * c-common.c (unsigned_conversion_warning, convert_and_check,
19359 unsigned_type, signed_type, shorten_compare,
19360 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
19361 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
19362 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
19364 * c-decl.c (grokdeclarator): Update.
19365 * c-format.c (check_format_types): Update.
19366 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19367 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19368 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
19369 * convert.c (convert_to_integer): Use new hooks.
19370 * expmed.c (make_tree): Use new hooks.
19371 * expr.c (store_expr): Use new hooks.
19372 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
19373 all_ones_mask_p, unextend, fold): Use new hooks.
19374 * langhooks.h (struct lang_hooks_for_types): New hooks.
19375 * tree.h (signed_or_unsigned_type, signed_type,
19376 unsigned_type): Remove.
19378 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19379 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19381 2002-03-31 Richard Henderson <rth@redhat.com>
19383 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
19384 (desc_frgr_mem): Fix reference to f16-f31.
19386 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19388 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
19389 RTVEC_ELT): Const-ify.
19390 * varray.h (VARRAY_CHECK): Const-ify.
19391 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
19392 ggc_mark_rtvec, ggc_mark): Const-ify.
19394 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19396 * diagnostic.c: Include langhooks-def.h.
19397 * Makefile.in (diagnostic.o): Update.
19399 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
19401 * c-common.c (c_unsafe_for_reeval): Rename.
19402 * c-common.h (c_unsafe_for_reeval): Rename.
19403 * c-decl.c (finish_incomplete_decl): Rename.
19404 (c_init_decl_processing): Don't set langhook.
19405 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19406 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19407 * c-objc-common.c (c_objc_common_init): Don't set langhook.
19408 * c-tree.h (finish_incomplete_decl): Rename.
19409 * langhooks-def.h (lhd_unsafe_for_reeval): New.
19410 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
19411 (LANG_HOOKS_INITIALIZER): Update.
19412 * langhooks.c (lhd_unsafe_For_reeval): New.
19413 * langhooks.h (struct langhooks): New hooks.
19414 * toplev.c (incomplete_decl_finalize_hook): Remove.
19415 (wrapup_global_declarations): Update.
19416 * tree.c (lang_unsafe_for_reeval): Remove.
19417 (unsafe_for_reeval): Update.
19418 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
19421 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
19422 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
19424 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
19426 * diagnostic.c (print_error_function): Remove.
19427 (default_print_error_function): Rename.
19428 (report_error_function): Update.
19429 * diagnostic.h (print_error_function): Remove.
19430 (default_print_error_function): Remove.
19431 * langhooks-def.h (struct diagnostic_context): Predeclare.
19432 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
19433 (LANG_HOOKS_INITIALIZER): Update.
19434 * langhooks.h (struct diagnostic context): Predeclare.
19435 (struct lang_hooks): New hook.
19437 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19439 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
19440 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
19442 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
19443 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
19444 of PIC_OFFSET_TABLE_REGNUM thruout.
19445 * config/rs6000/rs6000.md: Likewise.
19446 * config/rs6000/darwin.h: Likewise.
19448 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19450 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
19451 unsigned HOST_WIDE_INT, not unsigned int.
19453 2002-03-31 Jakub Jelinek <jakub@redhat.com>
19455 PR middle-end/6096, middle-end/6098, middle-end/6099
19456 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
19458 (fill_slots_from_thread): Likewise.
19460 2002-03-31 Jakub Jelinek <jakub@redhat.com>
19462 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
19463 floating fields in float regs.
19464 (function_arg_record_value_2): Likewise.
19466 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
19468 * config/mmix/mmix.md (define_constants): Remove misleading
19469 FIXME. Add MMIX_fp_rO_OFFSET.
19470 ("nonlocal_goto_receiver"): Don't have stack-frame address of
19471 saved rO as part of the pattern. Remove FIXME.
19472 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
19473 here, at output-time.
19475 2002-03-31 Jakub Jelinek <jakub@redhat.com>
19478 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
19480 (output_v9branch): Likewise.
19482 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
19484 * gcc.c: Revert previous patch for now.
19485 * config/i386/djgpp.h: Likewise.
19487 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
19489 * config/mmix/crti.asm (_init): Register _fini with atexit.
19490 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
19492 2002-03-31 Richard Henderson <rth@redhat.com>
19495 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
19496 (ASM_OUTPUT_DEF_FROM_DECLS): New.
19498 2002-03-31 Richard Henderson <rth@redhat.com>
19500 * libgcc2.c (__bb_exit_func): Make static.
19502 * config/alpha/alpha.md (trap): New.
19504 2002-03-31 Richard Henderson <rth@redhat.com>
19506 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
19507 promoted argument types; build trap.
19508 (expand_builtin_trap): New.
19509 (expand_builtin): Use it.
19510 * stmt.c (expand_nl_goto_receivers): Likewise.
19511 * expr.h (expand_builtin_trap): Declare.
19512 * libfuncs.h (LTI_abort, abort_libfunc): New.
19513 * optabs.c (init_optabs): Init abort_libfunc.
19515 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
19517 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
19518 (LINK_COMMAND_SPEC): ... from here.
19519 (init_gcc_specs): Duplicate it here too, omitting
19520 shared_name in the second copy.
19521 (init_spec): Test for duplicate
19522 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
19524 2002-03-30 David S. Miller <davem@redhat.com>
19526 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19527 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
19529 2002-03-30 Roger Sayle <roger@eyesopen.com>
19530 Richard Henderson <rth@redhat.com>
19532 * regmove.c (combine_stack_adjustments_for_block): Avoid
19533 emitting a stack adjustment of zero bytes. Let delete_insn
19536 2002-03-30 Richard Henderson <rth@redhat.com>
19538 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
19539 (sparc_emitting_epilogue): New.
19540 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
19541 * config/sparc/sparc-protos.h: Update.
19542 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
19543 (TARGET_SWITCHES): Update.
19544 * config/sparc/sparc.md (return): Remove.
19545 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
19546 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
19547 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
19548 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
19549 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
19550 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
19551 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
19552 Remove MASK_EPILOGUE.
19553 * doc/invoke.texi: Update.
19555 2002-03-30 Daniel Berlin <dan@dberlin.org>
19557 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
19558 CPP will start the file for us.
19560 2002-03-30 Richard Henderson <rth@redhat.com>
19563 * config/ia64/ia64.c (group_barrier_needed_p): Special case
19564 prologue_allocate_stack.
19565 (ia64_single_set): Use insn codes for recognition of special
19566 cases, not rtl matching.
19567 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
19569 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
19571 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
19573 2002-03-30 Richard Henderson <rth@redhat.com>
19576 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
19577 or -fomit-frame-pointer with profiling.
19578 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
19579 (FUNCTION_PROFILER): Do nothing.
19580 (PROFILE_HOOK): New.
19581 * config/sparc/sparc.c (sparc_override_options): Don't check
19582 code models for profiling.
19583 (sparc_function_profiler): Remove.
19584 (sparc_profile_hook): New.
19585 * config/sparc/sparc-protos.h: Update.
19587 2002-03-30 Jakub Jelinek <jakub@redhat.com>
19589 PR optimization/6086
19590 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
19591 of SUBREG of volatile MEM or because the MEM was mode dependent,
19592 return CLOBBER instead of unmodified SUBREG.
19594 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
19596 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
19597 when not optimizing.
19599 * toplev.c (rest_of_compilation): Cann mark_constant_function
19600 only when optimizing.
19602 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
19605 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
19606 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
19607 (try_optimize_cfg): clear all AUX fields.
19609 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19610 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19611 (ix86_address_cost): Be prepared for SUBREGed registers.
19612 (legitimate_address_p): Accept SUBREGed registers.
19614 2002-03-29 Richard Henderson <rth@redhat.com>
19617 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
19619 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19621 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
19622 for aggregate and TFmode types.
19624 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
19626 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
19628 2002-03-29 Richard Henderson <rth@redhat.com>
19631 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
19632 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
19634 2002-03-29 Richard Henderson <rth@redhat.com>
19637 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
19638 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
19639 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
19640 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
19642 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
19644 2002-03-29 Dale Johannesen <dalej@apple.com>
19646 * loop.c (combine_movables): Do allow combination of pseudos.
19648 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
19650 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
19651 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
19652 No functional change except ...
19653 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
19654 * doc/install.texi (*-*-freebsd*): Document port configuration.
19656 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
19658 * Makefile.in (convert.o, calls.o, expmed.o): Update.
19659 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
19661 * builtin-types.def (BT_PTRMODE): Update.
19662 * c-common.c (type_for_size): Rename c_common_type_for_size.
19663 (type_for_mode): Similarly.
19664 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
19666 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
19667 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
19668 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
19670 * c-typeck.c (common_type, comptypes, default_conversion):
19672 * calls.c: Include langhooks.h.
19673 (emit_library_call_value_1): Use new hooks. Avoid redundant
19675 * convert.c: Include langhooks.h
19676 (convert_to_pointer, convert_to_integer): Use new hooks.
19677 * except.c (init_eh): Similarly.
19678 * expmed.c: Include langhooks.h.
19679 (expand_mult_add): Use new hooks.
19680 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
19681 try_casesi): Similarly.
19682 * fold-const.c (optimize_bit_field_compare, make_range,
19683 decode_field_reference, fold_truthop, fold): Similarly.
19684 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
19685 put_var_into_stack): Similarly.
19686 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
19687 LANG_HOOKS_TYPE_FOR_SIZE): New.
19688 (LANG_HOOKS_TYPES_INITIALIZER): Update.
19689 * langhooks.h (lang_hooks_for_types): New hooks.
19690 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
19691 * tree.c (get_unwidened, get_narrower): Similarly.
19692 * tree.h (type_for_mode, type_for_size): Remove.
19693 * varasm.c (force_const_mem): Use new hooks.
19694 * utils2.c (nonbinary_modular_operation): Update.
19696 * objc-act.c (handle_impent): Update.
19697 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
19700 2002-03-29 Steve Ellcey <sje@cup.hp.com>
19702 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
19703 * config/ia64/ia64.c (basereg_operand): New.
19704 * config/ia64/ia64-protos.h (basereg_operand): Declare.
19705 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
19707 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
19709 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
19710 unwind information when frame_pointer_needed.
19711 (mmix_assemble_integer): Tweak wording in comment.
19713 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
19715 * Makefile.in (except.o): Update.
19716 * except.c: Include langhooks.h.
19717 (init_eh): Use langhook.
19718 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
19719 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
19720 (LANG_HOOKS_INITIALIZER): Update.
19721 * langhooks.h (lang_hooks_for_types): New.
19722 (struct lang_hooks): Add it.
19723 * tree.c (make_lang_type_fn, make_lang_type): Remove.
19724 * tree.h (make_lang_type_fn, make_lang_type): Remove.
19726 * alpha/alpha.c: Include langhooks.h.
19727 (alpha_build_va_list): Use langhook.
19728 * d30v/d30v.c: Include langhooks.h.
19729 (d30v_build_va_list): Use langhook.
19730 * i386/i386.c: Include langhooks.h.
19731 (ix86_build_va_list): Use langhook.
19732 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
19733 * s390/s390.c: Include langhooks.h.
19734 (s390_build_va_list): Use langhook.
19735 * stormy16/stormy16.c: Include langhooks.h.
19736 (stormy16_build_va_list): Use langhook.
19738 2002-03-29 Jakub Jelinek <jakub@redhat.com>
19741 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
19743 (length): Compute variable length for branches/calls/jumps here.
19744 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
19745 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
19746 define branch_type attribute.
19747 (divsi3_sp32): Maximum length is 6 not 7.
19748 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
19749 call_address_untyped_struct_value_sp32,
19750 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
19751 * config/sparc/sparc.c (empty_delay_slot): New function.
19752 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
19753 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
19755 2002-03-29 Jakub Jelinek <jakub@redhat.com>
19757 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
19758 nonzero_bits if not needed.
19759 (nonzero_bits) [XOR]: Likewise.
19760 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
19761 reg_last_set_mode and mode are both MODE_INT, but not equal.
19762 (record_value_for_reg): Compute reg_last_set_nonzero_bits
19763 in nonzero_bits_mode for MODE_INT modes.
19765 2002-03-28 Richard Henderson <rth@redhat.com>
19768 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
19769 to GAS. Correct drift between alternatives.
19771 2002-03-28 Richard Henderson <rth@redhat.com>
19774 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
19776 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
19778 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
19779 emulation to the linker.
19781 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
19783 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
19784 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19786 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
19788 * combine.c (simplify_and_const_int): Make sure to apply mask
19789 when force_to_mode returns a constant integer. PR3311.
19791 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
19793 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
19795 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
19797 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
19798 and Objective-C Dialect Options.
19800 2002-03-28 Richard Henderson <rth@redhat.com>
19802 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
19803 comparison should be done vs !=0 not >0 return code. Tidy cases.
19805 2002-03-28 Richard Henderson <rth@redhat.com>
19807 * c-decl.c (finish_function): New arg can_defer_p. Pass it
19808 on to c_expand_body.
19809 * c-tree.h (finish_function): Update decl.
19810 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
19812 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
19814 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
19816 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
19818 * rtlanal.c: Include flags.h
19819 (may_trap_p): Do not mark FP operations if trapping
19820 if !flag_trapping_math
19821 * Makefile.in (rtlanal.o): Add dependency on flag.h
19822 * ifcvt.c (noce_operand_ok): Avoid the lameness.
19824 2002-03-27 Zack Weinberg <zack@codesourcery.com>
19826 * mips.md: Use dconst1, not 1.0, as first argument of
19827 REAL_VALUE_LDEXP. Don't use union real_extract.
19829 2002-03-28 Alan Modra <amodra@bigpond.net.au>
19831 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
19832 rather than $target. Heed program_prefix and
19833 program_transform_name. Search for gas in cross-compiler case too.
19834 "test -x" rather than "test -f".
19835 (gcc_cv_ld): Likewise.
19836 (gcc_cv_nm): Heed program_prefix and program_transform_name.
19837 (gcc_cv_objdump): Likewise.
19838 * configure: Regenerate.
19840 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19842 * Makefile.in (attribs.o): Update.
19843 * attribs.c: Include langhooks.h.
19844 (decl_attributes): Use langhook.
19845 * c-decl.c (insert_default_attributes): Rename.
19846 * c-tree.h (c_insert_default_attributes): New.
19847 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
19848 (LANG_HOOKS_INITIALIZER): Update.
19849 * langhooks.h (struct lang_hooks): New hook.
19850 * tree.h (insert_default_attributes): Remove.
19852 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
19854 2002-03-27 Andreas Schwab <schwab@suse.de>
19856 * config/i386/i386.c (classify_argument): Also check for
19859 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19861 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
19864 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
19866 * i960.md (ret): Set PC.
19867 (nonlocal_goto): Fix expander.
19868 * builtins.c (epxand_builin_longjmp): Check that we've emitted
19871 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
19873 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
19874 of libcall regions.
19876 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19878 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
19879 assigning to BLOCK_FOR_INSN directly.
19881 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
19883 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
19885 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19887 * c-common.c (c_expand_expr): Fix prototype.
19888 * c-common.h (c_expand_expr): Always declare, update.
19889 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19890 * c-objc-common.c (c_objc_common_init): No global hook.
19891 * expr.c (expand_expr): Use langhook.
19892 * expr.h (enum expand_modifier): Conditionally declare.
19893 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
19894 (LANG_HOOKS_INITIALIZER): Update.
19895 * langhooks.c (lhd_expand_expr): New.
19896 * langhooks.h (struct lang_hooks): New hook.
19897 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
19898 (lang_independent_init): Don't default hook.
19900 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19902 2002-03-27 Richard Henderson <rth@redhat.com>
19905 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
19906 TARGET_CONST_GP. Simplify conditions.
19908 2002-03-27 Richard Henderson <rth@redhat.com>
19910 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
19911 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
19912 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
19914 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
19916 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
19917 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
19918 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
19919 Remove unnecessary masks.
19920 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
19921 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
19922 -mwindows, -mdll switches and their negations.
19924 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19926 * gcc-common.c (lang_mark_false_label_stack): Remove.
19927 * ggc.h (lang_mark_false_label_stack): Similarly.
19929 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
19931 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
19933 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
19934 or __rtems_ is defined.
19936 2002-03-26 Richard Henderson <rth@redhat.com>
19938 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
19939 if a non-trivial load was emitted.
19940 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
19941 in high+extra+low case.
19943 2002-03-26 Richard Henderson <rth@redhat.com>
19945 * config.gcc (sparc*-solaris): Use float_format=sparc.
19947 2002-03-26 Richard Henderson <rth@redhat.com>
19949 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19950 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
19951 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
19952 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
19953 (WINT_TYPE_SIZE): Fix at 32.
19955 2002-03-26 Richard Henderson <rth@redhat.com>
19957 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
19958 until after eh landing pad generation.
19959 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
19960 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
19962 2002-03-26 Richard Henderson <rth@redhat.com>
19964 * expr.h (ADD_PARM_SIZE): One more convert for INC.
19966 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
19968 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
19969 and warning switches.
19970 (cc1_options): Likewise.
19972 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
19974 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
19975 Restore more of the signal context. Set no_reg_stack_frame.
19976 * config/ia64/unwind-ia64.c (unw_state_record):
19977 Add no_reg_stack_frame, comments.
19978 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
19979 (uw_update_context): Adjust bsp when unwinding from leaf,
19980 but not signal frame.
19982 2002-03-26 David Edelsohn <edelsohn@gnu.org>
19984 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
19986 2002-03-26 Bob Wilson <bob.wilson@acm.org>
19988 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
19990 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
19993 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
19994 "Add a pool_range attribute", which was lost during the ARM/Thumb
19997 2002-03-26 Bob Wilson <bob.wilson@acm.org>
19999 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
20000 a register into the MAC16 accumulator.
20002 2002-03-26 Andrew Cagney <ac131313@redhat.com>
20004 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
20005 (Warning Options): Document -Wswitch-enum.
20006 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
20008 (warn_switch_enum): Define variables.
20009 * flags.h (warn_switch_enum): Declare variables.
20010 * stmt.c (expand_end_case_type): When warn_switch_enum /
20011 -Wswitch-enum, perform switch checks.
20014 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
20016 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
20017 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
20018 (reload_muladdsi_compare0_scratch): Delete.
20020 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
20022 * doc/install.texi (*-*-freebsd*): Update.
20024 2002-03-26 Richard Henderson <rth@redhat.com>
20026 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
20027 (SUB_PARM_SIZE): Cast DEC to ssizetype.
20029 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
20030 types from the normal argument frame.
20032 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
20033 variable sized objects by reference.
20034 (sparc_va_arg): Receive them by reference too.
20036 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
20038 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
20039 code to not restoring global registers.
20041 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
20043 * Makefile.in (ggc-common.o): Update.
20044 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
20045 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
20046 * c-tree.h (c_mark_tree): New.
20047 * ggc-common.c: Include langhooks.h.
20048 (gcc_mark_trees): Use new langhook.
20049 * ggc-callbacks.c: Delete file.
20050 * ggc.h (lang_mark_tree): Remove.
20051 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
20052 (LANG_HOOKS_INITIALIZER): Update.
20053 * langhooks.h (struct lang_hooks): New hook.
20055 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
20057 2002-03-25 Zack Weinberg <zack@codesourcery.com>
20059 * doc/cpp.texi: Exclude entire Top node from printed manual.
20060 Move option index after directive index. Insert page breaks
20061 before GFDL and concept index. Index environment variables
20062 with command line options.
20063 * doc/cppenv.texi: Use @vtable for environment variable list.
20064 Add paragraph explaining semantics of empty elements in path
20065 variables. Exclude a cross-reference to Fishkill from the
20066 manpage. Remove an unnecessary cross-reference of the entry
20067 right above the referer. Don't use @anchor in text that goes
20069 * doc/cppopts.texi: Cross-reference the environment variables
20070 section, not the specific environment variable, for consistency.
20072 2002-03-25 Richard Henderson <rth@redhat.com>
20074 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
20075 anywhere in the block. Don't refer to insns that have been
20076 removed from the chain. Iterate backward through the new insns.
20077 Don't refer to edges that have been removed.
20079 2002-03-26 Alan Modra <amodra@bigpond.net.au>
20081 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
20082 test for overflow of constant.
20084 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
20087 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
20088 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
20089 these patterns on arm_archv4.
20091 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
20093 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
20096 2002-03-25 Zack Weinberg <zack@codesourcery.com>
20098 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
20099 float_handled, float_handler, float_signal, set_float_handler,
20100 and do_float_handler. Set handler for SIGFPE to crash_signal.
20101 * toplev.h: Don't prototype do_float_handler.
20103 * c-lex.c: Fold parse_float into lex_number. Make warning
20104 about portability of hex float constants more informative, and
20105 don't issue it on top of a syntax error.
20106 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
20108 * real.h: Define REAL_VALUE_ABS here...
20109 * simplify-rtx.c: ... not here. Fold check_fold_consts,
20110 simplify_unary_real, simplify_binary_real, and
20111 simplify_binary_is2orm1 into their callers.
20112 * tree.c: Fold build_real_from_int_cst_1 into caller.
20114 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
20116 * tsystem.h: Include float.h here...
20117 * libgcc2.c: ... not here.
20119 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
20121 Fixes for: PR bootstrap/3591, target/5676
20122 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
20123 defined. Do not disable exceptions or rtti.
20124 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
20125 mcore.h. Disable exceptions and rtti, since they are not
20128 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
20130 * c-decl.c (maybe_build_cleanup): Remove.
20131 * expr.c (expand_expr): Use langhook.
20132 * langhooks-def.h (lhd_return_null_tree,
20133 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
20134 (LANGHOOKS_INITIALIZER): Update.
20135 * langhooks.c (lhd_return_null_tree): New.
20136 * langhooks.h (struct lang_hooks): New hook.
20137 * tree-inline.c (initialize_inlined_parameters): Use langhook.
20138 * tree.h (maybe_build_cleanup): Remove.
20140 2002-03-25 Jakub Jelinek <jakub@redhat.com>
20142 * regrename.c (build_def_use): Move recog_memoized
20143 before extract_insn.
20145 2002-03-25 Jakub Jelinek <jakub@redhat.com>
20148 * expr.c (emit_group_store): Handle storing into CONCAT.
20150 2002-03-25 Jakub Jelinek <jakub@redhat.com>
20152 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
20153 corresponding MATCH_DUP.
20155 2002-03-24 Richard Henderson <rth@redhat.com>
20157 * unroll.c (unroll_loop): Zero label_map.
20159 * gcse.c: Include except.h.
20160 * Makefile.in (gcse.o): Update.
20162 2002-03-24 Richard Henderson <rth@redhat.com>
20164 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
20165 Do resolve_unique_section before shared data clause.
20167 2002-03-24 Richard Henderson <rth@redhat.com>
20169 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
20171 2002-03-24 Richard Henderson <rth@redhat.com>
20173 * recog.c (peephole2_optimize): Split blocks when EH insns are
20174 generated in the middle of a block. Do global life update if
20177 2002-03-24 Richard Henderson <rth@redhat.com>
20179 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
20181 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
20184 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
20185 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
20186 (init_dependency_output): Don't make no_output decision here.
20188 2002-03-24 Andrew Cagney <ac131313@redhat.com>
20190 * stmt.c (check_for_full_enumeration_handling): Remove tests of
20191 warn_switch. Update description.
20192 (expand_end_case_type): Call check_for_full_enumeration_handling
20195 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20197 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
20198 (m68hc11_split_move): Call it to see if the source and destination
20199 operands use the same direction auto inc/dec mode, otherwise make the
20200 source an offsetable memory operand and generate an add.
20202 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
20204 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
20205 register for operand 2.
20206 ("*subsi3_zero_extendqi"): Likewise.
20207 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
20208 bits so that it is compatible with a pop.
20209 ("*andhi3_gen"): Likewise.
20210 ("xorhi3"): Likewise.
20212 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
20214 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
20216 (cpp_post_options): ... not here.
20218 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
20219 Aldy Hernandez <aldyh@redhat.com>
20221 Removal of separate preprocessor cpp0.
20223 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
20224 cpp0, install-common): Update.
20225 * c-common.c (flag_preprocess_only): New.
20226 (c_common_init): Preprocess for -E.
20227 * c-common.h (flag_preprocess_only): New.
20228 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
20229 * c-objc-common.c (c_init_decl_processing): Exit quickly
20230 for NULL return from c_common_init.
20231 * cpplib.h (cpp_preprocess_file): New.
20232 * cppmain.c (main, general_init, pfile, progname): Remove.
20233 (do_preprocessing): Rename cpp_preprocess_file, don't call
20234 cpp_finish. Don't close stdout here.
20235 (setup_callbacks): Update prototype.
20236 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
20238 * tradcpp.c (main): Ignore -quiet.
20240 * lang-specs.h (default_compilers): Preprocess with cc1obj.
20242 2002-03-24 Richard Henderson <rth@redhat.com>
20244 PR optimization/5742
20245 * machmode.def: Add inner mode field to complex modes.
20246 * config/mips/mips.c (mips_function_value): Always define. Add
20247 new argument to handle libcalls.
20248 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
20249 (FUNCTION_VALUE): Likewise.
20250 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
20251 * config/mips/mips-protos.h: Update.
20253 2002-03-23 Richard Henderson <rth@redhat.com>
20255 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
20256 * config/sparc/sparc-protos.h: Update.
20257 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
20259 2002-03-23 Richard Henderson <rth@redhat.com>
20261 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
20262 _start or _init begins the text segment.
20264 2002-03-23 David Edelsohn <edelsohn@gnu.org>
20266 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
20267 not HOST_WIDEST_INT.
20268 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
20270 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
20273 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
20274 operand argument to output_return_instruction.
20275 * arm.c (arm_print_operand, case 'd'): If the operand is
20276 const_true_rtx then just return.
20277 (arm_print_operand, case 'D'): If the operand is const_true_rtx
20280 2002-03-23 Andrew Cagney <ac131313@redhat.com>
20282 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
20283 (Warning Options): Document -Wswitch-default.
20284 * toplev.c (W_options): Add -Wswitch-default. Update comment on
20286 (warn_switch_default): Define variable.
20287 (warn_switch): Update comment.
20288 * flags.h (warn_switch_default): Declare variable.
20289 (warn_switch): Update comment.
20290 * stmt.c (expand_end_case): Check for and, when
20291 warn_switch_no_default, warn of a missing default case.
20293 2002-03-23 Alan Modra <amodra@bigpond.net.au>
20295 * real.h (N): Special case 128 bit doubles.
20297 * combine.c (simplify_comparison): When widening modes, ignore
20298 sign extension on CONST_INTs.
20300 2002-03-22 Bob Wilson <bob.wilson@acm.org>
20302 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
20303 passed to adjust_address. Fix comment formatting.
20306 2002-03-22 Zack Weinberg <zack@codesourcery.com>
20308 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
20309 Always make REAL_VALUE_TYPE a struct containing an array of
20310 HOST_WIDE_INT, not a double. Tidy up the code deciding how
20311 big it is. Don't declare or use union real_extract.
20313 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
20314 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
20315 (print_operand), config/arm/arm.c (output_move_double),
20316 config/arm/arm.md (consttable_4, consttable_8),
20317 config/romp/romp.c (output_fpops), config/s390/s390.h
20318 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
20319 (xtensa_output_literal): Don't use union real_extract.
20321 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
20322 (sfmode_constant_to_ulong), config/ns32k/merlin.h
20323 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
20324 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
20325 (PRINT_OPERAND): Don't use local version of union
20328 * config/convex/convex.c (check_float_value), config/vax/vax.c
20329 (vax_float_literal), config/m88k/m88k.md (divdf3),
20330 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
20331 config/pdp11/pdp11.c (output_move_quad): Don't do host
20332 arithmetic on target floating point quantities.
20334 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
20335 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
20337 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
20338 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
20340 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
20341 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
20343 * print-rtl.c (print_rtx): Disable code which needs
20344 floating-point emulator.
20345 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
20346 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
20347 depending on HOST_FLOAT_FORMAT to be defined properly.
20349 * config/1750a/1750a.c (get_double, float_label): Delete.
20350 (print_operand): Delete huge commented-out chunk. Use
20351 REAL_VALUE_TO_DECIMAL.
20352 * config/1750a/1750a-protos.h: Delete prototypes of deleted
20354 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
20356 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
20357 Use REAL_VALUE_TO_DECIMAL as ELF version does.
20358 * config/m88k/m88k.c (real_power_of_2_operand,
20359 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
20360 real_extract out of the union; run the input through
20361 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
20362 from that into the union.
20363 * config/pdp11/pdp11.c (output_move_double): Rearrange
20364 parentheses to make automatic indenter happy.
20366 * doc/tm.texi (Cross-compilation): Rename node to "Floating
20367 Point" and rewrite to describe current situation. Also adjust
20368 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
20370 * doc/rtl.texi: Adjust cross reference.
20372 2002-03-22 Bob Wilson <bob.wilson@acm.org>
20374 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
20375 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
20376 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
20377 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
20378 prevent use of sp as a reload register.
20379 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
20380 non_acc_reg_operand.
20381 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
20382 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
20383 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
20384 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
20386 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
20388 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
20389 * cpplex.c (unterminated): Delete.
20390 (parse_string): No string literal may extend over multiple
20391 lines. Suppress the error when preprocessing assembly.
20392 * cppmain.c (scan_translation_unit): Strings are single-line.
20394 * doc/cpp.texi: Update to match.
20396 2002-03-22 Jakub Jelinek <jakub@redhat.com>
20398 PR optimization/5854
20399 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
20401 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
20402 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
20403 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
20404 const0 if scratch register was not allocated.
20405 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
20406 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
20407 with GEN_INT (...).
20408 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
20409 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
20410 with GEN_INT (...) everywhere. Remove constraints in define_split
20412 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
20413 require scratch register for setting 0 into regs/non-pushable memory.
20415 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
20417 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
20418 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
20420 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
20422 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
20423 * cppinit.c (cpp_create_reader): On by default.
20424 (cpp_handle_option): Handle -W[no-]endif-labels.
20425 (cpp_post_options): Also enable if -pedantic.
20426 * cpplib.c (do_else): Use it.
20427 (do_endif): Likewise.
20428 * doc/cppopts.texi: Document new option.
20429 * doc/invoke.texi: Document new option.
20431 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
20433 * config/i386/i386.c, config/i386/i386.md: Change all occurences
20434 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
20436 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
20438 * flow.c (calculate_global_regs_live): Clear aux fields of
20441 2002-03-22 Jakub Jelinek <jakub@redhat.com>
20443 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
20444 REG or MEM subregs, pass rtx * instead of rtx to it.
20445 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
20446 rtx * instead of rtx to alter_subreg.
20447 * config/m32r/m32r.c (gen_split_move_double): Likewise.
20448 * config/pj/pj.c (pj_output_rval): Likewise.
20450 2002-03-22 Richard Henderson <rth@redhat.com>
20453 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
20454 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
20455 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
20456 (ia64_expand_prologue): Look at int_regs, not words, for number
20457 of incomming int regs.
20459 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
20461 * expr.c (expand_expr): A RESULT_DECL is part of a call.
20463 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
20465 * toplev.c (flag_loop_optimize, flag_crossjumping):
20466 New static variables.
20467 (rest_of_compilation): Conditionalize crossjumping and
20469 (parse_options_and_default_flags): Default loop_optimize and
20471 (lang_independent_options): Add -fcrossjumping and -floop-optimize
20472 * invoke.texi (crossjumping, loop-optimize): Document.
20474 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
20476 * real.c (eiisneg): Move outside #ifdef NANS.
20478 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
20480 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
20481 frequencies match; avoid match on different loop depths.
20482 (try_crossjump_to_bb): Kill tests that no longer brings time
20484 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
20486 (split_edge): Likewise.
20488 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
20491 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
20492 * cfgrtl.c: Include insn-config.h
20493 (split_block) Dirtify block in presence of conditional execution
20495 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
20497 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
20498 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
20499 (function_arg): Constify CUMULATIVE_ARGS.
20500 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
20501 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
20502 (UNITS_PER_DOUBLE): New macro.
20503 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
20504 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
20505 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
20506 fp_regs and stack_words.
20507 (EABI_FLOAT_VARARGS_P): New macro.
20508 * config/mips/mips.c (struct mips_arg_info): New.
20509 (mips_arg_info): New function.
20510 (function_arg_advance): Use it. Add adjustment instructions here
20511 rather than in function_arg.
20512 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
20513 for VOIDmode at the beginning of the function.
20514 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
20515 (function_arg_pass_by_reference): Likewise.
20516 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
20517 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
20518 (mips_va_start): Likewise. Use the new stack_words field of
20519 CUMULATIVE_ARGS to set up overflow area. Reformat.
20520 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
20521 doubles and other types, aligning the overflow pointer for non-doubles
20522 too. Remove some code duplication. Replace hard-coded constants.
20524 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
20526 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
20527 (CLASS_UNITS): Undefine.
20528 (CLASS_MAX_NREGS): Use FP_INC.
20529 * config/mips/mips.c (compute_frame_size): Likewise.
20530 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
20532 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
20534 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
20535 prototype, and handle lexing numbers and identifiers.
20536 (parse_identifier): Update to new form of parse_slow.
20537 (parse_number): Fast path only, use parse_slow otherwise.
20538 (_cpp_lex_direct): Update calls to parse_number.
20540 2002-03-21 DJ Delorie <dj@redhat.com>
20542 * bb-reorder.c (make_reorder_chain_1): Protect against
20543 when redundant edges are omitted.
20544 * predict.c (dump_prediction): Likewise.
20546 2002-03-21 Richard Henderson <rth@redhat.com>
20549 * fixinc/inclhack.def (solaris_stdio_tag): New.
20550 * fixinc/fixincl.x: Regenerate.
20552 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
20555 * c-typeck.c (process_init_element): Flag non-static
20556 initialization of a flexible array member as illegal.
20558 2002-03-22 Alan Modra <amodra@bigpond.net.au>
20560 * config/rs6000/t-linux64: New.
20561 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
20562 t-ppccomm. Use t-rs6000 and t-linux64.
20563 (powerpc64-*-gnu* <tmake_file>): Likewise.
20564 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
20565 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
20566 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
20568 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
20570 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
20571 flag_really_no_inline instead of optimize == 0.
20573 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
20575 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
20577 * flags.h (flag_really_no_inline): New.
20579 * c-common.c (c_common_post_options): Initialize
20580 flag_really_no_inline.
20582 * toplev.c (flag_really_no_inline): New.
20584 2002-03-21 Jakub Jelinek <jakub@redhat.com>
20586 * config/avr/avr.md (length): Fix length computation for
20587 conditional branches.
20589 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
20591 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
20592 sdbout.o, profile.o): Update.
20593 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
20595 * c-common.h (gettags): Move here from tree.h.
20596 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
20597 insert_block, getdecls, kept_level_p, global_bindings_p): New.
20598 * dbxout.c (dbxout_init): Use getdecls langhook.
20599 * expr.c (expand_expr): Use insert_block langhook.
20600 * fold-const.c: Include langhooks.h.
20601 (fold_range_test, fold_binary_op_with_conditional_arg,
20602 fold): Use global_bindings_p langhook.
20603 * integrate.c (expand_inline_function): Use insert_block langhook.
20604 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
20605 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
20606 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
20607 LANG_HOOKS_GETDECLS): New.
20608 (LANG_HOOKS_INITIALIZER): Update.
20609 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
20611 * langhooks.h (struct lang_hooks_for_decls): New.
20612 (struct lang_hooks): Update.
20613 * profile.c: Include langhooks.h.
20614 (output_func_start_profiler): Use new langhooks.
20615 * sdbout.c: Include langhooks.h.
20616 (sdbout_init, sdbout_finish): Use getdecls langhook.
20617 * stmt.c: Include langhooks.h.
20618 (expand_fixup, fixup_gotos): Use new langhooks.
20619 * stor-layout.c: Include langhooks.h.
20620 (variable_size): Use global_bindings_p langhook.
20621 * toplev.c (compile_file): Use getdecls langhook.
20622 * tree-inline.c (remap_block): Use insert_block langhook.
20623 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
20624 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
20626 2002-03-21 Richard Henderson <rth@redhat.com>
20628 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
20629 constants in .data when -fpic.
20631 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20633 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
20636 2002-03-21 Tom Tromey <tromey@redhat.com>
20638 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
20640 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20642 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
20644 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
20646 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
20647 Richard Henderson <rth@redhat.com>
20650 * c-common.c (c_expand_expr): Preserve result of a statement
20651 expression if needed.
20653 2002-03-21 Jakub Jelinek <jakub@redhat.com>
20656 * genrecog.c (maybe_both_true_mode): Remove.
20657 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
20658 * machmode.def (Pmode): Likewise.
20660 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
20662 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
20663 (nonlocal_mentioned_p_1): New function.
20664 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
20665 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
20666 (mark_constant_function): Recognize pure functions.
20667 * rtl.h (global_reg_mentioned_p): New prototype.
20668 * rtlanal.c (global_reg_mentioned_p,
20669 global_reg_mentioned_p_1): New function.
20671 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20673 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
20675 * fixinc/fixincl.x: Regenerate.
20677 2002-03-20 Jason Merrill <jason@redhat.com>
20679 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
20681 2002-03-20 Michael Meissner <meissner@redhat.com>
20683 * doc/invoke.texi (Optimize Options): Document that -O2 sets
20686 2002-03-20 Bob Wilson <bob.wilson@acm.org>
20688 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
20689 ".literal_position" directive before the constant pool.
20691 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
20693 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
20694 Add Craig Rodrigues.
20695 Add Brad Lucier to testers.
20697 2002-03-20 Jakub Jelinek <jakub@redhat.com>
20700 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
20702 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
20703 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
20704 instead of insn_extract.
20706 2002-03-20 Jakub Jelinek <jakub@redhat.com>
20709 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
20711 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
20712 stmt if some case has been output.
20714 2002-03-20 Jakub Jelinek <jakub@redhat.com>
20717 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
20718 movsfcc_1, movdfcc_1): Add %O2.
20719 * config/i386/i386.c (print_operand): Handle %ON.
20720 Print . before float condition codes in Sun as cmov syntax.
20721 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
20722 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
20725 2002-03-20 Philip Blundell <pb@nexus.co.uk>
20727 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
20728 return instruction if PC was popped.
20730 2002-03-20 Bob Wilson <bob.wilson@acm.org>
20732 * config/xtensa/xtensa.md: Remove unused type attributes.
20733 (adddi_carry, subddi_carry): Change type attribute to "multi".
20735 2002-03-19 Dale Johannesen <dalej@apple.com>
20737 PR optimization/5999, middle-end/5731
20738 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
20739 multiplications by reciprocals.
20741 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
20743 * Makefile.in: Update.
20744 * c-common.c: Include langhooks.h.
20745 (inline_forbidden_p): Use new hook.
20746 * diagnostic.c: Include langhooks.h.
20747 (format_with_decl, announce_function,
20748 default_print_error_function): Use new hook.
20749 * dwarf2out.c (dwarf2_name): Use new hook.
20750 * function.c: Include langhooks.h.
20751 (init_function_start): Use new hook.
20752 * langhooks-def.h (lhd_decl_printable_name): New.
20753 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
20754 (LANGHOOKS_INITIALIZER): Update.
20755 * langhooks.c (lhd_decl_printable_name): New.
20756 * langhooks.h (struct lang_hooks): New hook.
20757 * toplev.c (decl_name, decl_printable_name): Remove.
20758 (open_dump_file): Use new hook.
20759 (process_options): Remove old hook.
20760 * tree.h (decl_printable_name): Remove.
20762 * objc-act.c (objc_init): Remove old hook.
20763 (objc_printable_name): Export.
20764 * objc-act.h (objc_printable_name): New.
20765 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20767 2002-03-19 Jim Blandy <jimb@redhat.com>
20769 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
20770 the start_source_file debug hook, not the current line number.
20772 2002-03-19 Richard Henderson <rth@redhat.com>
20774 * flow.c (EH_USES): Provide default.
20775 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
20776 * doc/tm.texi (EH_USES): New.
20778 * config/ia64/ia64.c (ia64_eh_uses): New.
20779 * config/ia64/ia64-protos.h: Update.
20780 * config/ia64/ia64.h (EH_USES): New.
20782 2002-03-19 Richard Henderson <rth@redhat.com>
20784 * varasm.c (output_constant_def): Fix stupid typo.
20786 2002-03-19 Richard Henderson <rth@redhat.com>
20789 * except.c (current_function_has_exception_handlers): New.
20790 * except.h: Declare it.
20791 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
20792 Combine tests that disable all sibcalls for the function.
20794 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
20796 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
20799 2002-03-19 Richard Henderson <rth@redhat.com>
20802 * config/ia64/ia64.c: Revert 2002-03-01 patch.
20803 * config/ia64/ia64.h (INIT_EXPANDERS): New.
20805 2002-03-19 Jim Blandy <jimb@redhat.com>
20807 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
20808 name, even if the replacement list contains no tokens, as required
20811 2002-03-19 Jason Merrill <jason@redhat.com>
20813 * varasm.c (globalize_decl): Get the name from the RTL, not
20814 DECL_ASSEMBLER_NAME.
20816 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
20818 2002-03-19 Bob Wilson <bob.wilson@acm.org>
20820 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
20821 subdi_carry): Define.
20823 2002-03-19 David Edelsohn <edelsohn@gnu.org>
20825 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
20826 about -fpic/-fPIC if extra_warnings set.
20828 2002-03-19 David Edelsohn <edelsohn@gnu.org>
20830 * expr.c (expand_expr): Sign-extend CONST_INT generated from
20831 TREE_STRING_POINTER.
20832 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
20834 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20836 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
20837 in favor of SP if FRAME_POINTER_REQUIRED is false.
20839 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
20841 * emit-rtl.c (gen_int_mode): New function.
20842 * rtl.h: Prototype for it.
20843 * combine.c (make_extraction, simplify_comparison), expmed.c
20844 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
20845 (convert_modes, store_field), optabs.c (expand_fix),
20846 simplify-rtx.c (neg_const_int, simplify_unary_real),
20848 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
20849 Use it instead of GEN_INT (trunc_int_for_mode (...)).
20851 2002-03-19 Jakub Jelinek <jakub@redhat.com>
20854 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
20855 convert_parm_for_inlining.
20856 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
20858 * langhooks-def.h: Likewise.
20859 * objc/objc-lang.c: Likewise.
20860 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
20862 * tree-inline.c (initialize_inlined_parameters):
20863 Call convert_parm_for_inlining lang hook if needed.
20864 * c-typeck.c (c_convert_parm_for_inlining): New function.
20865 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
20867 2002-03-18 Mark Mitchell <mark@codesourcery.com>
20869 * calls.c (precompute_arguments): Do not assume that temporaries
20870 can be destroyed after expanding the argument.
20871 (expand_call): Likewise.
20873 2002-03-15 Eric Christopher <echristo@redhat.com>
20875 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
20876 Fix register preference on last change.
20877 * config/mips/mips.c (mips_return_in_memory): New function.
20878 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
20879 * config/mips/mips-protos.h: Declare.
20880 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
20881 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
20883 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
20885 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
20887 (anddi3, iorsi3): Likewise.
20889 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
20890 use %gprel for symbols that are going to be placed in linkonce
20893 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
20894 RETURN_ADDRESS_POINTER_REGNUM to $ra.
20895 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
20896 not needed. Disregard leaf_function_p().
20897 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
20898 mips16 frame pointer.
20899 * config/mips/mips.md (store ra): Only to small SP offsets.
20900 2001-08-22 Graham Stott <grahams@redhat.com>
20901 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
20902 return a REG rtx for the return address register.
20904 2002-03-18 Bob Wilson <bob.wilson@acm.org>
20906 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
20907 constant-pool addresses as "mode-dependent".
20908 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
20910 2002-03-18 Jakub Jelinek <jakub@redhat.com>
20913 * expr.c (emit_group_load): Use extract_bit_field if
20914 needed for CONCAT arguments.
20916 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
20919 * arm.md (tablejump): Make this a define_expand. For PIC add the
20920 offset to the base of the table.
20921 (thumb_tablejump): Matcher for Thumb tablejump insn.
20922 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
20923 as the difference of two labels.
20924 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20925 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
20926 tables in the code.
20927 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
20928 * arm.c (get_jump_table_size): If the table is not in the text
20929 section, return zero.
20931 2002-03-18 Bernd Schmidt <bernds@redhat.com>
20933 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
20935 (arm_reload_out_hi): Use gen_lowpart instead of
20936 gen_rtx_SUBREG to access QImode components.
20937 * config/arm/arm.md: Disable zero_extend split for QImode
20938 subregs in BIG_ENDIAN mode.
20939 (storehi_bigend): Match use of least significant byte.
20940 (storeinthi): Remove extraneous SUBREG.
20941 Add missing construction of operands[2].
20942 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
20943 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
20944 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
20946 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
20948 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
20951 2002-03-17 Richard Henderson <rth@redhat.com>
20953 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
20956 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
20958 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
20959 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
20961 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20963 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
20965 * predict.c (estimate_bb_frequencies): Delete unused variables.
20967 2002-03-17 Richard Henderson <rth@redhat.com>
20969 * config/ia64/ia64.c (ia64_attribute_table): Move before
20970 targetm definition. Make static.
20972 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
20974 * c-common.h (yyparse, c_common_parse_file): New.
20975 * c-lang.c: Include c-common.h.
20976 (LANG_HOOKS_PARSE_FILE): Redefine.
20977 * c-lex.c: Include c-common.h.
20978 (yyparse): Rename c_common_parse_file. Call yyparse.
20979 * c-parse.in (yyparse): Remove macro.
20980 * c-tree.h (yyparse_1): Remove.
20981 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
20982 (LANG_HOOKS_INITIALIZER): Update.
20983 * langhooks.h (struct lang_hoooks): New hook parse_file.
20984 * toplev.c (compile_file): Use parse_file hook.
20985 * tree.h (yyparse): Remove.
20986 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
20988 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
20990 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
20991 float_truncate, not fix.
20992 ("*truncdfsf2_real"): Ditto.
20993 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
20995 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
20997 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
20999 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
21000 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
21001 where appropriate. Make the second reference to
21002 leaf_function_p a function call, as intended. Reindented.
21004 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
21005 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
21007 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
21008 add register to non-constant into sp.
21010 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
21011 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
21012 (mips16_gp_pseudo_rtx): Lose.
21013 (INIT_EXPANDERS): Deleted.
21014 * config/mips/mips.c (mips_init_machine_status): New.
21015 (mips_free_machine_status): New.
21016 (mips_mark_machine_status): New.
21017 (override_options): Set them.
21018 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
21019 (struct machine_function): ... new. Replaced all references.
21020 (mips_add_gc_roots): Don't mark them.
21021 (embedded_pic_fnaddr_reg): New, extracted from...
21022 (embedded_pic_offset): ... here.
21023 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
21026 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
21028 * cppinit.c: Revert -MD removal.
21030 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21032 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
21033 soft registers by default for 68HC12.
21034 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
21035 when compiling with -fomit-frame-pointer.
21036 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
21037 (expand_epilogue): Likewise.
21038 (m68hc11_gen_rotate): Use exg when rotating by 8.
21040 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21042 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
21043 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
21044 (splits): Remove unused add splits.
21045 ("*addhi3_68hc12"): Tune constraints.
21046 ("addhi_sp"): Try to use X instead of Y in all cases and if the
21047 constant fits in 8-bits and D is dead use abx/aby instructions.
21048 ("*addhi3"): Remove extern declaration of ix_reg.
21049 ("*subsi3"): Optimize and provide new split.
21050 ("subhi3"): Cleanup.
21051 ("*subhi3_sp"): Avoid saving X if we know it is dead.
21052 (arith splits): For 68hc12 save the address register on the stack
21053 and do the arithmetic operation with a pop.
21055 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21057 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
21058 allocating QImode in address registers.
21059 ("*movqi_m68hc11"): Likewise.
21061 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
21063 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
21065 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
21067 * cppinit.c (print_help): Display -MD and -MMD.
21068 Don't display usage string. Update assertion syntax and
21070 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
21071 (cpp_handle_option): Update.
21073 2002-03-15 Chris Demetriou <cgd@broadcom.com>
21075 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
21076 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
21077 and define it so that regardless of target CPU size,
21078 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
21079 of "int" rather than "long."
21081 2002-03-15 Richard Henderson <rth@redhat.com>
21083 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
21086 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21088 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
21089 ("tstqi" split): Avoid using memory for tstqi on address register.
21090 (splits): Remove constraints.
21091 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
21092 ("cmpdf", "cmpsf"): Remove since not used.
21093 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
21094 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
21096 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21098 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
21099 ("neghi2"): Tighten constraints.
21100 ("one_cmplsi2"): Optimize and simplify split.
21101 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
21103 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21105 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
21106 and split of AND operation to clear the upper bits.
21107 ("*logicalsi3_zextqi"): Likewise.
21108 ("*logicallhi3_zexthi_ashift8"): Likewise.
21109 ("*logicalsi3_silshr16"): Likewise.
21110 ("logicalsi3_silshl16"): Likewise.
21111 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
21113 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21115 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
21116 (m68hc11_indirect_p): New function.
21117 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
21118 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
21120 (asm_print_register): Likewise.
21121 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
21122 (m68hc11_indirect_p): Declare.
21123 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
21124 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
21125 (TARGET_SWITCHES): New option -mrelax.
21126 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
21128 ("iorsi3", "xorsi3"): Likewise.
21129 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
21130 ("*andhi3_mem"): New to handle destination in memory with bclr
21131 and a scratch register.
21132 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
21133 ("*andhi3_const"): New when operand2 is constant.
21134 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
21135 ("*andhi3_gen"): Cleanup of the old "andhi3".
21136 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
21137 ("xorqi3"): Update constraints.
21139 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21141 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
21142 for reg_equiv_memory_loc when the operand is a register that does
21143 not get a hard register (stack location).
21144 (tst_operand): After reload, accept all memory operand.
21145 (symbolic_memory_operand): Fix detection of symbolic references.
21146 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
21147 accept symbols and any constant.
21149 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21151 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
21152 note on the insn that sets the soft frame register.
21153 (must_parenthesize): ix and iy are also reserved names.
21154 (print_operand_address): One more place where parenthesis are required
21155 to avoid confusion with register names.
21156 (m68hc11_gen_movhi): Allow push of stack pointer.
21157 (m68hc11_check_z_replacement): Fix handling of parallel with a
21159 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
21160 the replacement register is.
21161 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
21162 and D8_REGS classes.
21163 (MODES_TIEABLE_P): All modes are tieable except QImode.
21165 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21167 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
21168 (___subdi3): Likewise.
21169 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
21170 (__map_data_section): Optimize 68hc11 case.
21172 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
21174 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
21175 than a shift to avoid adding a register with itself.
21176 (m68hc11_memory_move_cost): Take into account NO_REGS.
21177 (m68hc11_register_move_cost): Update and use memory move cost
21178 for soft registers.
21179 (m68hc11_address_cost): Make cost of valid offset not 0 so that
21180 it gives more opportunities to cse to optimize.
21181 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
21182 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
21184 2002-03-15 Mark Mitchell <mark@codesourcery.com>
21186 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
21187 * c-common.def (CLEANUP_STMT): New tree node.
21188 * c-common.h (CLEANUP_DECL): New macro.
21189 (CLEANUP_EXPR): Likewise.
21190 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
21191 * expr.c (expand_expr): Tidy.
21192 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
21193 * tree-inline.c (initialize_inlined_parameters): Clean up
21194 new local variables.
21196 2002-03-15 Jakub Jelinek <jakub@redhat.com>
21199 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
21200 before movrXX only, use reg_overlap_mentioned_p.
21201 Only special case NE if just one insn can be generated.
21203 2002-03-15 Jason Merrill <jason@redhat.com>
21205 * varasm.c (assemble_variable): Call resolve_unique_section before
21206 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
21207 of error_mark_node.
21209 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
21212 * arm.md (split pattern for thumb shiftable immediates): Add comment
21213 explaining non-obvious test.
21215 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
21218 * arm.md (movaddr, movaddr_insn): Delete.
21220 2002-03-15 Jason Merrill <jason@redhat.com>
21222 * toplev.c (wrapup_global_declarations): Clarify variable handling.
21223 -fkeep-static-consts doesn't apply to comdats.
21225 2002-03-14 Richard Henderson <rth@redhat.com>
21227 * c-decl.c: Include c-pragma.h.
21228 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
21229 (finish_function): Tidy.
21230 * c-pragma.c: Include c-common.h.
21231 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
21232 (handle_pragma_weak): Use them.
21233 (init_pragma): Register pending_weaks.
21234 * c-pragma.h (maybe_apply_pragma_weak): Declare.
21235 * print-tree.c (print_node): Print DECL_WEAK.
21236 * varasm.c (mark_weak_decls): Remove.
21237 (remove_from_pending_weak_list): Remove.
21238 (add_weak): Remove.
21239 (asm_emit_uninitialised): Call globalize_decl for weak commons.
21240 (weak_decls): Make a tree_list.
21241 (declare_weak): Cons weak_decls directly.
21242 (globalize_decl): Remove weak_decls elements directly.
21243 (weak_finish): Simplify weak_decls walk. Don't weaken unused
21244 symbols. Don't pretend to handle aliases.
21245 (init_varasm_once): Update weak_decls registry.
21246 * Makefile.in: Update dependencies.
21248 2002-03-14 Richard Henderson <rth@redhat.com>
21251 * config/ia64/ia64.c: Include tm_p.h last.
21252 (gen_nop_type): Remove duplicate definition.
21253 (cycle_end_fill_slots): Set sched_data for second L slot.
21254 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
21255 (nop_cycles_until): Fix typos.
21257 2002-03-15 Jakub Jelinek <jakub@redhat.com>
21259 PR optimization/5891
21260 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
21262 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
21264 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
21265 descriptors correctly.
21267 2002-03-14 Michael Meissner <meissner@redhat.com>
21269 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
21270 100, allowing MAX_UNROLLED_INSNS to be overridden.
21272 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
21275 * unroll.c (params.h): Include.
21276 (MAX_UNROLLED_INSNS): Delete, now in params.h.
21278 * doc/invoke.texi (--param max-unroll-insns): Document.
21280 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
21282 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
21284 * arm.md: Fix warnings about constraints in peepholes and splits.
21286 2002-03-14 Zack Weinberg <zack@codesourcery.com>
21288 * cpphash.h (struct lexer_state): Remove line_extension member.
21289 * cpplib.c (dequote_string, do_linemarker): New functions.
21290 (linemarker_dir): New data object.
21291 (DIRECTIVE_TABLE): No longer need to interpret #line in
21292 preprocessed source. Delete obsolete comment about return
21293 values of handlers.
21294 (end_directive, directive_diagnostics, _cpp_handle_directive):
21295 Don't muck with line_extension.
21296 (directive_diagnostics): No need to issue warnings for
21298 (_cpp_handle_directive): Issue warnings for linemarkers here,
21299 when appropriate. Dispatch linemarkers to do_linemarker, not
21301 (do_line): Code to handle linemarkers split out to do_linemarker.
21302 Convert escape sequences in filename argument, both places.
21304 * cppmacro.c (quote_string): Rename cpp_quote_string and
21305 export. All callers changed.
21306 * cpplib.h (cpp_quote_string): Prototype.
21307 * cppmain.c (print_line): Call cpp_quote_string on to_file
21308 before printing it.
21310 * doc/cpp.texi: Document that escapes are now interpreted in
21311 #line and in linemarkers, and that non-printing characters are
21312 converted to octal escapes when linemarkers are generated.
21314 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
21316 * emit-rtl.c (try_split): Use delete_insns.
21317 * recog.c (split_all_insns): Fix terminating condition.
21319 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
21320 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21323 * arm.c (arm_output_epilogue): Fix floating-point register save
21324 adjustment when using a frame pointer.
21326 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
21328 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
21329 * config/mips/mips.c (compute_frame_size): Retrofit them here.
21330 (save_restore_insns, mips_expand_epilogue): And here.
21331 (build_mips16_call_stub): And here.
21332 (mips_function_value): Use the new macros to decide whether a single
21333 or complex float can be returned in floating-point registers. Return
21334 a parallel rtx in the complex case.
21336 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
21338 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
21339 call after liveness analysis.
21341 * recog.c (split_insn): Use delete_insn_and_edges.
21343 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
21344 instructions to have branch prediction notes.
21345 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
21347 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
21349 * configure.in: Don't pass -Wno-long-long to a ADA compiler
21350 that doesn't support it.
21351 * configure: Regenerate.
21353 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21356 * config/sparc/sparc.md (normal_branch, inverted_branch,
21357 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
21358 inverted_fp_branch): Adjust calls to output_cbranch.
21359 Set length attribute.
21360 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
21361 output_v9branch. Set length attribute.
21362 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
21364 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
21365 (output_cbranch): Likewise. Handle far branches.
21366 (output_v9branch): Handle far branches.
21367 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
21369 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
21370 noov_compare64_op predicates.
21372 2002-03-13 Jason Merrill <jason@redhat.com>
21374 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
21375 into the function and constify it.
21376 * gthr-dce.h, gthr-solaris.h: Likewise.
21378 2002-03-13 David Edelsohn <edelsohn@gnu.org>
21380 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
21381 * config/rs6000/rs6000.c (rs6000_va_arg): Use
21382 std_expand_builtin_va_arg if not ABI_V4.
21384 2002-03-13 Jason Merrill <jason@redhat.com>
21386 * varasm.c (globalize_decl): New fn.
21387 (assemble_start_function): Use it.
21388 (asm_emit_uninitialized): Use it.
21389 (assemble_alias): Use it.
21390 (assemble_variable): Use it.
21392 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
21394 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
21395 2002-03-12 internal visibility change.
21396 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
21397 visibility into SYMBOL_REF_FLAG.
21399 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
21401 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
21402 VOIDmode operand. Add compile-time optimization for constant results.
21404 2002-03-12 Jason Merrill <jason@redhat.com>
21406 * c-typeck.c (convert_for_assignment): Don't allow conversions
21407 between pointers and references. Only allow lvalues to convert to
21410 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
21412 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
21413 before prologue, to avoid scheduling problems.
21415 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21417 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
21418 (ELIMINABLE_REGS): Add sfp->sp.
21419 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
21421 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21423 PR optimization/5892
21424 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
21426 2002-03-13 Jakub Jelinek <jakub@redhat.com>
21428 * loop.c (basic_induction_var): Don't call convert_modes if mode
21429 classes are different.
21431 2002-03-12 Richard Henderson <rth@redhat.com>
21433 PR optimization/5901
21434 * function.c (reposition_prologue_and_epilogue_notes): Position
21435 the markers after/before the last/first insn not deleted.
21437 2002-03-12 Richard Henderson <rth@redhat.com>
21439 PR optimization/5878
21440 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
21441 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
21442 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
21444 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
21445 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
21446 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
21448 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
21449 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
21450 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
21451 also. Don't set it if not flag_pic.
21452 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
21453 to be INVALID_REGNUM when not used.
21455 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
21457 * expmed.c (store_bit_field): Reset alias set for memory.
21458 (extract_bit_field): Same.
21460 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21462 * c-common.c (c_tree_code_type, c_tree_code_length,
21463 c_tree_code_name, add_c_tree_codes): Delete.
21464 * c-common.h (add_c_tree_codes): Delete.
21465 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
21467 * c-objc-common.c (c_objc_common_init): Don't call
21468 add_c_tree_codes, instead set lang_unsafe_for_reeval.
21469 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
21470 objc_tree_code_name, add_objc_tree_codes): Delete.
21471 (objc_init): Don't call add_objc_tree_codes.
21472 * objc/objc-lang.c (tree_code_type, tree_code_length,
21473 tree_code_name): Define.
21474 * toplev.c (lang_independent_init): Don't set
21475 tree_code_length[IDENTIFIER_NODE].
21476 * tree.c (tree_code_type, tree_code_length, tree_code_name):
21477 Delete definitions, moved to language front-ends.
21478 * tree.def (IDENTIFIER_NODE): Hardwire the length.
21479 * tree.h (tree_code_type, tree_code_length, tree_code_name):
21481 (tree_code_length): Change type to unsigned char.
21483 2002-03-12 Richard Henderson <rth@redhat.com>
21485 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
21486 internal visibility change.
21488 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21490 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
21491 validize_mem() instead of change_address to avoid clobbering
21494 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
21496 * c-lex.h (position_after_whitespace): Remove.
21498 2002-03-12 Jakub Jelinek <jakub@redhat.com>
21500 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
21501 (lex_string): Use unsigned char pointers.
21503 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
21505 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
21506 is not a valid memory_operand.
21508 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21510 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
21511 * config/xtensa/lib1funcs.asm: Fix copyright to include
21512 special case for libgcc files.
21513 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
21514 (__divsi3): Likewise.
21515 (__umodsi3): Likewise.
21516 (__modsi3): Likewise.
21517 * config/xtensa/lib2funcs.S: Fix copyright to include
21518 special case for libgcc files.
21520 2002-03-12 Tom Rix <trix@redhat.com>
21522 * collect2.c (resolve_lib_name): Move outside of
21523 OBJECT_FORMAT_COFF ifdef.
21524 (ignore_library): Same.
21526 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21528 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
21530 2002-03-12 Bob Wilson <bob.wilson@acm.org>
21532 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
21533 to function_section before writing out the constant pool.
21535 2002-03-12 David Edelsohn <edelsohn@gnu.org>
21537 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
21539 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
21541 2002-03-12 Alan Modra <amodra@bigpond.net.au>
21543 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
21544 (adddi3): Likewise.
21547 (cmpsi splitter): Likewise.
21548 (modsi3): Fail if <= 0.
21549 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
21550 redundant test when HOST_BITS_PER_WIDE_INT != 32.
21551 (reg_or_sub_cint64_operand): Likewise.
21552 (num_insns_constant_wide): Optimize sign extension.
21553 (rs6000_legitimize_address): Likewise.
21555 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
21557 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21558 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
21560 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
21562 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
21563 address calculation.
21565 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
21567 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
21568 scratch register to DImode / TImode.
21569 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
21570 register used does not overlap the target.
21572 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21574 * Makefile.in (debug.o): Depend on debug.h.
21575 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
21576 * debug.c (do_nothing_debug_hooks): Likewise.
21577 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
21578 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
21579 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
21580 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
21581 * dwarfout.c (dwarf_debug_hooks): Likewise.
21582 * integrate.c (output_inline_function): Likewise.
21583 * objc/objc-act.c (synth_module_prologue): Likewise.
21584 * sdbout.c (sdb_debug_hooks): Likewise.
21585 * toplev.c (debug_hooks): Likewise.
21586 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21588 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21590 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
21591 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
21592 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
21593 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
21594 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
21595 * defaults.h (POINTER_SIZE): Define.
21596 * doc/tm.texi (POINTER_SIZE): Document default.
21598 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21600 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
21602 2002-03-11 Richard Henderson <rth@redhat.com>
21604 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
21605 if rebuild_label_notes_after_reload.
21607 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
21609 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
21610 emit pic register load if "internal" visibility.
21611 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
21612 (cris_expand_builtin_va_arg): Do all computations on trees.
21614 2002-03-11 Richard Henderson <rth@redhat.com>
21616 * rtlanal.c: Include recog.h.
21617 (keep_with_call_p): Fix thinko.
21618 * Makefile.in (rtlanal.o): Update dependencies.
21620 2002-03-11 Chris Meyer <cmeyer@gatan.com>
21622 * genflags.c (gen_insn): Use IS_VSPACE.
21623 * genoutput.c (output_insn_data): Likewise.
21624 (process_template): Likewise.
21626 2002-03-11 Richard Henderson <rth@redhat.com>
21628 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
21630 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
21632 * Makefile.in: Update.
21633 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
21634 Update documentation.
21635 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
21636 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
21638 2002-03-11 Zack Weinberg <zack@codesourcery.com>
21640 * Makefile.in: Give texi2pod its input file as a command line
21641 argument, not on stdin.
21643 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
21644 Daniel Berlin <dan@dberlin.org>
21646 C++ alias analysis improvement.
21647 * alias.c (record_component_aliases): Record aliases for base
21650 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
21652 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
21654 2002-03-11 Douglas B Rupp <rupp@gnat.com>
21656 * toplev.c (vms_fopen): Remove, not needed.
21658 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
21660 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
21662 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
21663 for FP, already done later.
21665 * toplev.c (debug_args): Add entry for VMS_DEBUG.
21666 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
21668 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
21670 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
21671 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
21672 LARGEST_EXPONENT_IS_NORMAL for the given mode.
21673 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
21674 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
21675 (ediv, emul, eldexp, esqrt): Likewise.
21676 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
21677 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
21678 (saturate): New function.
21679 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
21680 (make_nan): Use a saturation value instead of a NaN if
21681 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
21682 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
21683 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
21684 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
21685 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
21686 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
21687 !ROUND_TOWARDS_ZERO.
21688 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
21689 (ROUND_TOWARDS_ZERO): Document.
21691 2002-03-11 Andreas Jaeger <aj@suse.de>
21693 * cfg.c (dump_flow_info): Remove unused variable.
21695 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
21697 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
21698 computations on trees.
21700 2002-03-10 Richard Henderson <rth@redhat.com>
21703 * reload.c (copy_replacements_1): New.
21704 (copy_replacements): Use it to recurse through the rtx.
21706 2002-03-10 Richard Henderson <rth@redhat.com>
21708 * loop.c (strength_reduce): Compute number of iterations as
21709 unsigned HOST_WIDE_INT.
21711 2002-03-10 Richard Henderson <rth@redhat.com>
21713 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
21714 to move away from the end of the block.
21716 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
21718 PR preprocessor/5899
21719 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
21721 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21723 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
21725 * attribs.c (decl_attributes): Fix signed/unsigned warning.
21727 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
21729 * config/mmix/mmix.c: Improve comments.
21730 (mmix_target_asm_function_prologue): Drop variable
21731 empty_stack_frame. Don't allocate unused slot above fp.
21732 (mmix_target_asm_function_epilogue): Mirror prologue changes.
21733 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
21734 brace in first column.
21735 (enum reg_class): Ditto.
21736 (FIRST_PARM_OFFSET): Now 0.
21737 (USER_LABEL_PREFIX): Remove #if 0:d definition.
21739 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21741 * combine.c (make_extraction): Fix error in last change.
21743 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21745 * c4x.c (c4x_fp_reglist): Const-ify.
21746 * cris.c (cris_print_operand): Likewise.
21747 * i386.c (ix86_va_arg): Likewise.
21748 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
21749 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
21750 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
21751 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
21752 * mcore.h (regno_reg_class): Likewise.
21753 * mips.c (gen_int_relational): Likewise.
21754 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
21755 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
21756 * pdp11.c (move_costs): Likewise.
21757 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
21758 * s390.c (s390_branch_condition_mnemonic, regclass_map):
21760 * s390.h (regclass_map): Likewise.
21761 * sh.c (shift_amounts): Likewise.
21762 * sh.md (rotlsi3): Likewise.
21764 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
21766 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
21767 (ne0+5): Use new clobber to generate proper shift pattern.
21768 Patch by Michael Matz <matz@kde.org>.
21770 2002-03-09 Andreas Schwab <schwab@suse.de>
21772 * gcc.c (validate_all_switches): Also handle `%W{...}'.
21774 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
21776 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
21778 2002-03-09 Jakub Jelinek <jakub@redhat.com>
21781 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
21782 even for non-representable constants.
21784 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21786 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
21787 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
21788 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
21789 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
21790 (pop_function_context): Compute MAY_SHARE parameter for
21792 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
21793 (gen_mem_addressof): Call fixup_var_refs with new parm.
21795 * combine.c (make_extraction): Don't make extension of CONST_INT.
21797 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
21799 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
21800 in o32 and o64 ABIs.
21801 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
21802 but getting fixed-size structs passed in registers regardless of
21803 padding in o32 and o64 ABIs.
21805 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
21806 offset before loading address of argument passed by transparent
21809 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
21811 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
21813 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
21815 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
21816 marker such that registers after it are saved.
21818 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21820 * sparc.c (arith_4096_operand): Fix error in last change.
21822 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
21824 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
21825 defaults for MEABI.
21827 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
21829 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
21832 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
21834 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
21836 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
21838 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
21839 removed; fix return value.
21840 * combine.c (combine_instructions): Dirtify blocks where we failed to
21841 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
21842 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
21844 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21846 * gcse.c (insert_insn_end_bb): Fix typo in last change.
21848 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
21850 * recog.c (peephole2_optimize): Re-distribute EH edges.
21852 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
21854 * expr.c (expand_expr): Use unsave lang hook.
21855 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
21856 (LANG_HOOKS_INITIALIZER): Update.
21857 * langhooks.h (struct lang_hooks): New hook unsave.
21858 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
21859 (unsave_expr_1): Remove unused lang_unsave_expr_now.
21860 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
21861 (unsave_expr_now): Remove.
21862 * tree.h (unsave_expr_now, lang_unsave,
21863 lang_unsave_expr_now): Remove.
21866 2002-03-08 Andreas Jaeger <aj@suse.de>
21868 * flow.c (propagate_block_delete_insn): Remove unused variable.
21870 2002-03-08 Kazu Hirata <kazu@hxi.com>
21872 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
21873 insn length for memory load/store.
21875 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
21877 * doc/install.texi (--with-libiconv-prefix): Document.
21879 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
21881 * doc/sourcebuild.texi: Fix typo.
21883 2002-03-08 Jakub Jelinek <jakub@redhat.com>
21886 * builtins.c (std_expand_builtin_va_arg): Do all computations on
21889 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21891 * rtl.c (copy_most_rtx): Move from here ...
21892 * emit-rtl.c (copy_most_rtx): ... to here.
21894 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
21896 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
21897 SUBTARGET_CPP_SIZE_SPEC.
21898 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
21900 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
21902 2002-03-07 Matt Hiller <hiller@redhat.com>
21904 * gensupport.c (first_dir_md_include): Renamed from include;
21905 change all references.
21906 (last_dir_md_include): Renamed from last_include; change all
21908 (init_md_reader): Unconditionally initialize base_dir whether or
21909 not filename is a relative path.
21911 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
21913 * config/fp-bit.c (_unord_f2): Compile it in even if
21914 US_SOFTWARE_GOFAST is enabled.
21916 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
21917 NULL_RTX. Set all HFmode operations as NULL_RTX.
21918 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
21919 NULL_RTX, try reversing the comparison and the operands.
21921 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
21923 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
21924 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
21927 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
21929 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
21931 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
21933 * basic-block.h (fixup_abnormal_edges): Declare.
21934 * reload1.c (fixup_abnormal_edges): New function.
21935 * reg-stack.c (convert_regs): Use it.
21937 * gcse.c (insert_insn_end_bb): Handle trapping insns.
21939 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
21941 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
21943 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
21944 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
21945 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
21946 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
21947 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
21948 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
21949 unless x and y could be infinite.
21950 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
21951 Check that the common type of both arguments is a real, even for
21952 targets without unordered comparisons. Allow an integer argument
21953 to be compared against a real.
21954 (expand_tree_builtin): Use expand_unordered_cmp.
21955 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
21956 * cse.c (fold_rtx): Likewise. Fix indentation.
21957 * fold-const.c (fold_real_zero_addition_p): New.
21958 (fold): Use it, and the new HONOR_... macros.
21959 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
21960 * jump.c (reversed_comparison_code_parts): After searching for
21961 the true comparison mode, use HONOR_NANS to decide whether it
21962 can be safely reversed.
21963 (reverse_condition_maybe_unordered): Remove IEEE check.
21964 * simplify-rtx.c (simplify_binary_operation): Use the new macros
21965 to decide which simplifications are valid. Allow the following
21966 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
21967 and (a - -b) to (a + b).
21968 (simplify_relational_operation): Use HONOR_NANS.
21969 * doc/tm.texi: Document the MODE_HAS_... macros.
21971 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
21973 * combine.c (simplify_comparison): If simplifying a logical shift
21974 right and compare with constant, force the comparison to unsigned.
21976 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
21978 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
21980 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
21982 (alt_reg_names): Remove % for vrsave.
21984 2002-03-06 Richard Henderson <rth@redhat.com>
21986 PR optimization/5844
21987 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
21988 if used indicates we've already emitted one copy of an operand.
21989 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
21990 (gen_split): Supply a non-null used.
21992 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
21994 * reload1.c (reload): Unshare all rtl after reload is done.
21996 * simplify-rtx.c (simplify_plus_minus): Do not abort,
21997 but simply fail if the expression is too complex to simplify.
21998 (simplify_gen_binary): Handle simplify_plus_minus failures.
22000 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
22002 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
22003 consistently call delete_trivially_dead_insns after CSE and GCSE;
22004 fix DFI_life dumping; do jump threading after liveness; do crossjumping
22005 after liveness2; update comment in last crossjumping.
22006 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
22008 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
22010 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
22011 after completing fast dead code elimination.
22013 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
22016 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
22018 * version.c: Fix misplaced leading blanks on first line.
22020 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
22022 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
22024 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
22026 * cfgcleanup.c (mentions_nonequal_regs): New function.
22027 (thread_jump): Use it.
22028 * toplev.c (rest_of_compilation): Run jump threading after
22031 2002-03-06 Jakub Jelinek <jakub@redhat.com>
22033 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
22036 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
22038 * predict.c (estimate_bb_frequencies): Do not reload the
22039 frequencies from notes.
22041 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
22043 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
22044 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
22046 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
22047 delete_noop_moves): Return indeger.
22048 * flow.c (ndead): New variable.
22049 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
22050 BB argument; update callers.
22051 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
22052 (life_analysis): Do not call purge_all_dead_edges.
22053 (update_life_info): Return number of deleted insns; print statistics.
22054 (update_life_info_in_dirty_blocks): likewise.
22055 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
22056 return number of insns deleted.
22058 * cse.c: Include timevar.h
22059 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
22060 iterate until stabilizes; print statistics; return number of killed
22062 * Makefile.in: (cse.o): Add timevar.h dependency
22063 * rtl.h (delete_trivially_dead_insns): New.
22064 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
22065 * toplev.c (rest_of_compilation): Update callers.
22067 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
22068 (try_optimize_cfg): Do not update liveness.
22069 (cleanup-cfg): Loop until try_optimize_cfg and dead code
22070 removal stabilizes; use delete_trivially_dead_insns.
22072 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
22074 2002-03-05 Zack Weinberg <zack@codesourcery.com>
22076 * cppmain.c (setup_callbacks): Disable #pragma and #ident
22077 callbacks when processing assembly language.
22079 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
22081 * pa.h (ASM_FILE_END): Define.
22082 * som.h (ASM_FILE_END): Delete.
22084 * pa.c (function_arg): Don't pass floats in general registers in
22085 indirect calls if TARGET_ELF32.
22087 2002-03-05 Richard Henderson <rth@redhat.com>
22089 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
22091 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
22093 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
22095 2002-03-05 Jakub Jelinek <jakub@redhat.com>
22097 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
22098 -r command line. Don't hide any symbols if not building
22101 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
22103 * cfg.c (dump_flow_info): Warn about profile mismatches.
22104 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
22105 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
22107 2002-03-05 Jakub Jelinek <jakub@redhat.com>
22109 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
22110 wide volatile memory by parts.
22112 2002-03-05 Jakub Jelinek <jakub@redhat.com>
22114 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
22117 2002-03-05 Richard Henderson <rth@redhat.com>
22119 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
22121 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
22123 * toplev.c (documented_lang_options): Document more
22124 language-specific options.
22125 * doc/invoke.texi (Warning Options): Correct documentation for
22126 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
22127 * c-decl.c (c_decode_option): Use a table to handle warning options.
22129 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
22131 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
22132 parameter to mmix_encode_section_info.
22133 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
22134 relocatably. Always produce ELF, not mmo if linking relocatably.
22135 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
22136 first is non-zero, don't add symbol prefix.
22137 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
22138 prototype accordingly.
22140 2002-03-04 Krister Walfridsson <cato@df.lth.se>
22142 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
22144 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
22146 * configure.in: Increase required makeinfo version to 4.1.
22147 * configure: Regenerate.
22149 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
22151 * .cvsignore: Remove *.info* and genrtl*; these files are generated
22154 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
22156 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
22157 * doc/invoke.texi: Fix @math uses.
22159 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
22161 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
22164 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
22166 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
22167 (powerpc-*-eabisimaltivec*): Same.
22169 * config/rs6000/t-ppcendian: New.
22171 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
22173 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
22174 nonimmediate_src_operand and nonimmediate_lsrc_operand to
22175 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
22177 2002-03-03 Richard Henderson <rth@redhat.com>
22179 * toplev.c (rest_of_decl_compilation): Revert last two changes.
22181 2002-03-03 Zack Weinberg <zack@codesourcery.com>
22183 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
22184 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
22185 tree.c, config/m68k/m68k.c:
22186 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
22187 REAL_ARITHMETIC blocks unconditional. Delete some further
22188 #ifdef blocks predicated on REAL_ARITHMETIC.
22189 * flags.h, toplev.c: Delete remaining references to
22190 flag_pretend_float.
22192 * doc/invoke.texi: Remove documentation of -fpretend-float.
22193 * doc/tm.texi: Describe the various REAL_* macros as provided by
22194 real.h, not by the target configuration files.
22196 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
22197 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
22198 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
22199 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
22200 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
22201 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
22202 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
22203 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
22204 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
22205 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
22206 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
22207 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
22208 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
22209 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
22210 config/xtensa/xtensa.h:
22211 Do not define, undefine, or mention in comments any of
22212 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
22213 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
22214 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
22215 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
22216 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
22217 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
22218 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
22219 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
22220 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
22222 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22224 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
22225 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
22226 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
22227 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
22228 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
22229 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
22231 * defaults.h (BITS_PER_WORD): Define.
22232 * doc/tm.texi (BITS_PER_WORD): Document default value.
22234 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
22235 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
22236 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
22238 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22240 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
22241 lieu of explicit sizeof/sizeof.
22242 * i386.c (override_options, ix86_init_mmx_sse_builtins,
22243 ix86_expand_builtin): Likewise.
22244 * mips.c (mips_add_gc_roots): Likewise.
22245 * mmix.c (mmix_output_condition): Likewise.
22246 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
22247 altivec_init_builtins): Likewise.
22248 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
22249 * cppexp.c (Nsuff, parse_number): Likewise.
22250 * cppinit.c (builtin_array_end): Likewise.
22251 * gcc.c (n_default_compilers, process_command): Likewise.
22252 * genpreds.c (output_predicate_decls): Likewise.
22253 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
22254 * lcm.c (N_ENTITIES): Likewise.
22255 * stor-layout.c (set_sizetype): Likewise.
22257 2002-03-03 Richard Henderson <rth@redhat.com>
22259 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
22260 for types or labels.
22262 2002-03-03 Richard Henderson <rth@redhat.com>
22264 * c-decl.c (start_decl): Initialized variables are not common.
22266 2002-03-02 Per Bothner <per@bothner.com>
22268 * gcc.c (option_map): Suport new --bootclasspath option.
22269 --CLASSPATH is now just an alias for --classpath.
22271 2002-03-02 Richard Henderson <rth@redhat.com>
22273 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
22274 load if "internal" visibility.
22275 * doc/extend.texi: Document visibility meanings.
22277 2002-03-02 Richard Henderson <rth@redhat.com>
22279 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
22280 to functions as well.
22282 2002-03-02 Richard Henderson <rth@redhat.com>
22284 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
22285 (handle_visibility_attribute): Don't call assemble_visibility.
22286 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
22287 without asmspec. Invoke assemble_alias when needed.
22288 * varasm.c (maybe_assemble_visibility): New.
22289 (assemble_start_function, assemble_variable, assemble_alias): Use it.
22291 2002-03-02 Richard Henderson <rth@redhat.com>
22293 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
22294 invoke ENCODE_SECTION_INFO with first call flag.
22296 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
22297 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
22298 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
22299 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
22300 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
22301 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
22302 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
22303 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
22304 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
22305 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
22306 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
22307 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
22308 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
22309 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
22310 config/mcore/mcore-protos.h, config/mcore/mcore.c,
22311 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
22312 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
22313 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
22314 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
22315 config/sh/sh.h, config/sparc/sparc.h,
22316 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
22317 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
22318 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
22319 FIRST argument. As needed, examine it and do nothing.
22321 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
22322 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
22323 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
22325 * config/arm/t-pe (pe.o): Add dependencies.
22327 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22329 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
22330 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
22331 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
22332 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
22333 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
22334 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
22335 * defaults.h (BITS_PER_UNIT): Define.
22336 * doc/tm.texi (BITS_PER_UNIT): Document default value.
22338 2002-03-02 Kazu Hirata <kazu@hxi.com>
22340 * config/h8300/h8300-protos.h: Add a prototype for
22341 compute_a_shift_length.
22342 * config/h8300/h8300.c (h8300_asm_insn_count): New.
22343 (compute_a_shift_length): Likewise.
22344 (h8300_adjust_insn_length): Do not adjust insn length of shift
22346 * config/h8300/h8300.md (anonymous shift patterns): Use
22347 compute_a_shift_length.
22349 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22351 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
22352 trunc_int_for_mode.
22354 * emit-rtl.c (offset_address): Call update_temp_slot_address.
22356 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22358 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
22359 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
22360 * flags.h (flag_zero_initialized_in_bss): Declare.
22361 * toplev.c (flag_zero_initialized_in_bss): New flag.
22362 (lang_independent_options): Add flag_zero_initialized_in_bss.
22363 * tree.c (initializer_zerop): New function.
22364 * tree.h (initializer_zerop): Declare.
22365 * varasm.c (assemble_variable): If we can emit bss, put zero
22366 initializers in the bss section.
22368 2002-03-02 Alan Modra <amodra@bigpond.net.au>
22370 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
22371 like more than one symbol per .weak directive.
22373 2002-03-01 Richard Henderson <rth@redhat.com>
22375 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
22376 adjust argument_pointer by pretend_args_size.
22377 (ia64_va_start): Adjust va_start address by -pretend_args_size.
22379 2002-03-01 Kazu Hirata <kazu@hxi.com>
22381 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
22383 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
22385 * toplev.c (rest_of_compilation): Delete dead jumptables before
22387 * flow.c (delete_dead_jumptables): Make global.
22388 * rtl.h (delete_dead_jumptables): Declare.
22390 2002-03-01 David Edelsohn <edelsohn@gnu.org>
22392 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
22393 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
22394 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
22396 2002-03-01 Kazu Hirata <kazu@hxi.com>
22398 * config/h8300/h8300-protos.h: Fix formatting.
22399 * config/h8300/h8300.c: Likewise.
22400 * config/h8300/h8300.h: Likewise.
22402 2002-03-01 Kazu Hirata <kazu@hxi.com>
22404 * config/h8300/h8300.c (print_operand): Support 16-bit
22405 constant addresses.
22406 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
22408 2002-02-28 Richard Henderson <rth@redhat.com>
22410 * expmed.c (store_bit_field): Prevent generation of CONCATs;
22411 pun complex values as integers; use gen_lowpart instead of
22413 (extract_bit_field): Likewise.
22415 2002-03-01 Alan Modra <amodra@bigpond.net.au>
22416 David Edelsohn <edelsohn@gnu.org>
22418 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
22419 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
22420 (SUPPORTS_WEAK): Likewise.
22421 * output.h (add_weak): Add tree param.
22422 * varasm.c (add_weak): Likewise. Save decl.
22423 (struct weak_syms): Add decl field.
22424 (mark_weak_decls): New function.
22425 (init_varasm_once): ggc_add_root mark_weak_decls.
22426 (assemble_start_function): Use ASM_WEAKEN_DECL.
22427 (assemble_variable): Likewise.
22428 (assemble_alias): Likewise.
22429 (declare_weak): Pass decl to add_weak.
22430 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
22431 (remove_from_pending_weak_list): Declare and define for
22433 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
22434 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
22435 * defaults.h (SUPPORTS_WEAK): Likewise.
22436 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22437 .weak for code sym. Do emit .size for descriptor sym.
22438 (ASM_DECLARE_FUNCTION_SIZE): Define.
22439 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
22440 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
22441 .lglobl unless TARGET_XCOFF. Formatting fixes.
22442 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
22443 .weak for code sym.
22444 (HANDLE_PRAGMA_WEAK): Remove.
22445 (ASM_WEAKEN_LABEL): Remove.
22446 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
22448 2002-03-01 Jason Merrill <jason@redhat.com>
22450 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
22451 (TARGET_EXPR_CLEANUP): New macro.
22453 2002-02-28 Steve Ellcey <sje@cup.hp.com>
22455 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
22456 to take ptr_extend into account as third type of extension.
22457 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
22458 fields used by SUBREG_PROMOTED_UNSIGNED_P.
22459 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
22460 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
22461 * calls.c (precompute_arguments): Use new macro.
22462 (expand_call): Ditto.
22463 * combine.c (nonzero_bits): Ditto.
22464 (record_promoted_value): Ditto.
22465 * expr.c (store_expr): Ditto.
22466 (expand_expr): Ditto.
22467 * function.c (assign_parms): Ditto.
22469 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
22471 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
22472 override -shared and -shared-libgcc.
22474 2002-02-28 David O'Brien <obrien@FreeBSD.org>
22476 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
22478 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
22481 2002-02-28 Richard Henderson <rth@redhat.com>
22483 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
22484 4 cycle latency from MM producers.
22485 (ia64_internal_sched_reorder): Likewise with pipeline flush.
22487 2002-02-28 Jakub Jelinek <jakub@redhat.com>
22489 * mklibgcc.in: Don't use GNU make extension.
22491 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
22493 * c-parse.in (STATIC): New terminal.
22494 (scspec): New non-terminal. Update productions accordingly.
22495 (program): Remove bogus ifc / end ifc.
22496 (array_declarator): Simplify production using STATIC.
22498 2002-02-28 Jim Meyering <meyering@lucent.com>
22500 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
22501 \a still means TARGET_BELL.
22503 2002-02-28 Richard Henderson <rth@redhat.com>
22505 * haifa-sched.c (sched_emit_insn): New.
22506 (schedule_block): Use last_scheduled_insn to track last insn.
22507 * sched-int.h (sched_emit_insn): Prototype.
22508 * config/ia64/ia64.c (last_issued): Remove.
22509 (ia64_variable_issue): Don't set it.
22510 (nop_cycles_until): Use sched_emit_insn.
22512 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
22514 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
22515 extended constants.
22517 2002-02-28 Kazu Hirata <kazu@hxi.com>
22519 * config/h8300/h8300.c: Fix formatting.
22520 * config/h8300/h8300.h: Likewise.
22522 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
22524 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
22525 which may overwrite the high byte of the frame pointer.
22527 2002-02-28 Bo Thorsen <bo@suse.de>
22529 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
22530 (STARTFILE_SPEC): Add 64 bit files.
22531 (ENDFILE_SPEC): Likewise.
22533 2002-02-28 Jason Merrill <jason@redhat.com>
22535 * c-decl.c (finish_function): Only warn about missing return
22536 statement with -Wreturn-type.
22538 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
22540 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
22542 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
22543 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
22545 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
22547 * basic-block.h (BB_REACHABLE): Renumber.
22548 (BB_DIRTY, BB_NEW): New flags.
22549 (clear_bb_flags): Declare.
22550 (update_life_info_in_dirty_blocks): Declare.
22551 * cfg.c (clear_bb_flags): New function.
22552 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
22553 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
22554 reorder_insns, emit_insn_after): Mark block as dirty.
22555 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
22556 (update_life_info_in_dirty_blocks): New function.
22557 * recog.c (apply_change_group): Dirtify block.
22559 * cse.c (cse_insn): Reorder emitting of jump insn to keep
22561 * gcse.c (delete_null_pointer_checks): Likewise.
22563 * toplev.c (dump_file_index): Move cse2 after bp,
22565 (dump_file_info): Similary.
22566 (rest_of_compilation): Avoid most of CFG rebuilds;
22567 do first if converision after null pointer checks, do cse2
22568 after branch prediction; avoid full liveness rebuild after
22569 initializing subregs.
22570 * invoke.texi (-d options): Document -du, renumber.
22572 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
22573 (notice_new_block): Do not set BB_UPDATE_LIFE.
22574 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
22575 merge_blocks_move_successor_nojumps, merge_blocks,
22576 try_crossjump_to_edge): Likewise.
22577 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
22578 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
22579 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
22580 (merge_of_block): Do not use life_data_ok.
22581 (find_if_case_1): Do not use SET_UPDATE_LIFE.
22582 (if_convert): Use BB_DIRTY mechanizm to update life.
22583 * lcm.c (optimize_mode_switching): Update
22584 update_life_info_in_dirty_blocks
22586 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
22588 * Makefile.in (integrate.o): Update.
22589 * c-decl.c (copy_lang_decl): Rename.
22590 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22591 * integrate.c: Include langhooks.h.
22592 (copy_decl_for_inlining): Update to use langhook.
22593 * langhooks-def.h (lhd_do_nothing_t,
22594 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
22595 (LANG_HOOKS_INITIALIZER): Update.
22596 * langhooks.c (lhd_do_nothing_t): New.
22597 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
22598 * tree.h (copy_lang_decl): Remove.
22600 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
22602 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
22604 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
22605 POST_DEC, and POST_MODIFY.
22607 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22609 * c-typeck.c (digest_init): Remove unused parameter; all
22612 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
22614 * expmed.c (expand_shift): Correctly test for low part of a
22617 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
22619 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
22620 insn UIDs with insn addresses.
22622 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22624 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
22625 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
22626 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
22627 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
22628 gcc.c, toplev.c: Delete code implementing -traditional mode.
22630 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
22631 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
22632 Document removal of -traditional mode for compilation, and
22633 remove documentation only relevant to that mode.
22635 * config/nextstep.h, config/ptx4.h, config/svr4.h,
22636 config/convex/convex.h, config/d30v/d30v.h,
22637 config/i386/dgux.h, config/i386/osf1elf.h,
22638 config/i386/osfelf.h, config/i386/osfrose.h,
22639 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
22640 config/m68k/hp310.h, config/m88k/dgux.h,
22641 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
22642 config/m88k/m88k.h, config/m88k/openbsd.h,
22643 config/mips/abi64.h, config/mips/osfrose.h,
22644 config/mips/svr4-5.h, config/mips/svr4-t.h,
22645 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
22646 config/stormy16/stormy16.h: Remove all references to
22647 -traditional from target specs. Delete all mention of the
22648 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
22649 delete a couple of commented-out definitions of
22650 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
22653 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
22654 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
22656 2002-02-27 Zack Weinberg <zack@codesourcery.com>
22658 * mklibgcc.in: Don't use \n in a line subject to
22659 interpretation by echo.
22661 2002-02-27 Graham Stott <grahams@redhat.com>
22663 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
22666 * loop.c (prescan_loop): Handle PARALLEL.
22668 * unroll.c (loop_iterations): Return 0 if the add_val for
22671 * final.c (output_operand_lossage): Constify PFX_STR.
22673 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
22675 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
22677 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
22678 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
22680 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
22682 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22684 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
22686 * cpplex.c (_cpp_lex_token): Handle directives in macro
22688 * cpplib.c (_cpp_handle_directive): Save and restore state
22689 if parsing macro args when entering a directive.
22690 * cppmacro.c (collect_args): No need to handle directives
22691 in macro arguments.
22692 (enter_macro_context, replace_args): Use the original macro
22693 definition in case it was redefined whilst collecting arguments.
22695 * cpp.texi: Update.
22697 2002-02-26 David Edelsohn <edelsohn@gnu.org>
22699 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
22700 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
22701 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
22703 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
22704 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
22705 (load_toc_v4_PIC_2): Same.
22707 2002-02-26 Alan Modra <amodra@bigpond.net.au>
22709 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
22711 2002-02-26 Richard Henderson <rth@redhat.com>
22713 * config/alpha/alpha.md (ashldi_se): Re-enable.
22715 2002-02-26 Richard Henderson <rth@redhat.com>
22717 * config/alpha/alpha.c (alpha_encode_section_info): Examine
22718 MODULE_LOCAL_P; improve commentary.
22720 2002-02-26 Zack Weinberg <zack@codesourcery.com>
22722 * doc/cpp.texi: Clarify documentation of relationship between
22723 #line and #include.
22725 2002-02-26 Kazu Hirata <kazu@hxi.com>
22727 * config/h8300/h8300-protos.h: Update the prototype for
22728 compute_logical_op_length. Add the prototype for
22729 compute_logical_op_cc.
22730 * config/h8300/h8300.c (compute_logical_op_length): Figure out
22731 code from operands.
22732 (compute_logical_op_cc): New.
22733 * config/h8300/h8300.md: Combine all the logical op patterns
22734 in HImode and SImode. Use compute_logical_op_cc.
22736 2002-02-26 Kelley Cook <kelleycook@comcast.net>
22738 * config/i386/i386.c (print_operand): Don't append ATT-style
22739 length suffixs to x87 opcodes when in Intel mode.
22741 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
22743 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
22744 (init_emit_once): Update calls.
22745 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
22746 (init_syntax_once): Prototype.
22748 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
22750 * pa-linux.h (LIB_SPEC): Update definition.
22751 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22753 2002-02-26 Richard Henderson <rth@redhat.com>
22755 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
22756 if we emitted a stop bit.
22758 2002-02-26 Jakub Jelinek <jakub@redhat.com>
22760 * configure.in (libgcc_visibility): Substitute.
22761 * configure: Rebuilt.
22762 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
22763 defined symbols .hidden.
22765 2002-02-26 Jakub Jelinek <jakub@redhat.com>
22767 * attribs.c (c_common_attribute_table): Add visibility.
22768 (handle_visibility_attribute): New function.
22769 * varasm.c (assemble_visibility): New function.
22770 * output.h (assemble_visibility): Add prototype.
22771 * tree.h (MODULE_LOCAL_P): Define.
22772 * crtstuff.c (__dso_handle): Use visibility attribute.
22773 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
22774 for MODULE_LOCAL_P symbols too.
22775 * config/ia64/ia64.c (ia64_encode_section_info): Handle
22776 MODULE_LOCAL_P symbols the same way as local symbols.
22777 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
22778 into .sdata/.sbss by the user.
22779 * doc/extend.texi (Function Attributes): Document visibility
22782 2002-02-26 Jakub Jelinek <jakub@redhat.com>
22785 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
22786 STRING_CST initializer spanning the whole variable without
22788 If expand_expr returned MEM, don't use it.
22790 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
22792 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
22793 generate a die for the lexical block.
22795 2002-02-26 Kazu Hirata <kazu@hxi.com>
22797 * config/h8300/h8300-protos.h: Add a prototype for
22798 compute_logical_op_length.
22799 * config/h8300/h8300.c (compute_logical_op_length): New.
22800 * config/h8300/h8300.md (anonymous logical patterns): Use
22801 compute_logical_op_length for length.
22803 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
22805 * dwarf2out.c (modified_type_die): Do not call type_main_variant
22807 (gen_type_die): Same.
22809 * attribs.c (handle_vector_size_attribute): Set debug information.
22811 2002-02-26 Daniel Egger <degger@fhm.edu>
22813 * config/rs6000/rs6000.md: Swap define_insn attributes to
22814 fix incorrect generation of merge high instructions instead
22817 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
22819 * c-typeck.c (really_start_incremental_init): Use
22820 bitsize_zero_node for vectors.
22822 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
22824 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
22825 ("*set_vrsave_internal"): Same.
22827 2002-02-25 Richard Henderson <rth@redhat.com>
22829 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
22830 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
22832 2002-02-25 Jakub Jelinek <jakub@redhat.com>
22835 * config/i386/i386.c (ix86_return_pops_args): Only pop
22836 fake structure return argument if it was passed on the stack.
22838 2002-02-25 Jason Merrill <jason@redhat.com>
22840 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
22843 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
22845 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
22846 link with shared_name only.
22847 * doc/invoke.texi (Link Options): Document new behavior.
22849 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
22851 * c-typeck.c (push_init_level): Handle vectors.
22853 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
22855 * config/sparc/sparc.c (const64_high_operand): Zero-extend
22856 operands of SPARC_SETHI_P.
22857 (input_operand): Likewise.
22858 (sparc_emit_set_const32): Likewise.
22859 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
22860 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
22861 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
22862 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
22863 (movdi_insn_sp64_vis): Likewise.
22864 (movdi split, movdf split): Use SETHI32.
22865 * doc/md.texi: Document SPARC constraints L, M and N.
22867 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
22869 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
22870 ("*set_vrsave_internal"): use mfspr for Darwin.
22872 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
22873 gen_get_vrsave_internal.
22875 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22877 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
22879 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
22881 * cpplex.c (cpp_interpret_charconst): Get signedness or
22882 otherwise of wide character constants correct.
22883 * cppexp.c (lex): Get signedness of wide charconsts correct.
22885 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22887 * optabs.c (widen_operand): Only call convert_modes for
22888 promoted SUBREG if signedness matches.
22889 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
22891 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
22893 * cpplib.c (glue_header_name): Use local buffer to build up
22896 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
22898 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
22900 2002-02-23 Kazu Hirata <kazu@hxi.com>
22902 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
22903 H8/300[HS] separately.
22904 * config/h8300/h8300.md: Remove the early clobber constraint
22905 from bit field patterns.
22907 2002-02-23 Kazu Hirata <kazu@hxi.com>
22909 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
22911 (mulhisi3): Likewise.
22912 (umulqisi3): Likewise.
22913 (umulhisi3): Likewise.
22915 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
22917 * cppinit.c (output_deps): Correct test for stdout output.
22918 (init_dependency_output): Cure warning.
22920 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22922 * expr.c (store_expr): When converting expression to promoted
22923 equivalent type, allow using SUBREG_REG of TARGET as the target
22924 of the expansion of EXP.
22925 * loop.c (basic_induction_var, case SUBREG): Always look inside.
22926 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
22927 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
22928 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
22929 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
22931 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
22933 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
22934 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
22935 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
22937 2002-02-23 Jakub Jelinek <jakub@redhat.com>
22939 PR optimization/5747
22940 * loop.c (scan_loop): Update reg info if move_movables created new
22943 2002-02-23 David Edelsohn <edelsohn@gnu.org>
22945 * gcc.c (init_gcc_spec): Revert last change.
22947 2002-02-23 David Edelsohn <edelsohn@gnu.org>
22949 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
22950 gpc_reg_operand constraint.
22952 2002-02-23 Alan Modra <amodra@bigpond.net.au>
22954 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
22955 Simplify comparison of `low'.
22956 (add_operand): Fix formatting.
22957 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
22958 (mask_operand): Disallow mask to wrap in 64-bit mode.
22959 (rs6000_stack_info): Remove redundant test setting push_p.
22960 (output_toc): Fix formatting.
22961 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
22962 cc_reg_not_cr0_operand constraint.
22963 (booldi3, boolcdi3 splitters): Same.
22965 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
22967 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
22969 2002-02-22 David Edelsohn <edelsohn@gnu.org>
22971 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
22972 gcc invoked with -shared-libgcc.
22974 2002-02-22 Jakub Jelinek <jakub@redhat.com>
22977 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
22978 decl if any of elements was TREE_USED.
22980 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
22982 * config/sparc/sol2.h: Don't include sys/mman.h.
22983 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
22984 (arith_4096_operand): Don't throw high bits away.
22985 (const64_operand): Take sign extension of CONST_INTs into account.
22986 (const64_high_operand, sparc_emit_set_const32): Likewise.
22987 (GEN_HIGHINT64): Likewise.
22988 (sparc_emit_set_const64_quick1): Likewise.
22989 (const64_is_2insns): Likewise.
22990 (print_operand): Use trunc_int_for_mode for sign extension.
22991 * config/sparc/sparc.h (SMALL_INT32): Likewise.
22992 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
22993 chars. Assume CONST_INT is already properly sign-extended.
22994 (movdi split): Sign-extend each SImode part.
22995 (andsi3 split): Don't mask high bits off, so that result
22996 remains properly sign-extend.
22997 (iorsi3 split): Likewise.
22998 (xorsi3 split): Likewise.
23000 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
23002 * fold-const.c (fold): Fix typo in comments.
23004 2002-02-21 Diego Novillo <dnovillo@redhat.com>
23006 * Makefile.in (langhooks.o): Update dependencies.
23008 2002-02-21 Diego Novillo <dnovillo@redhat.com>
23010 * langhooks.c: Include flags.h.
23012 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
23014 * testsuite/gcc.dg/attr-alwaysinline.c: New.
23016 * c-common.c (c_common_post_options): Set inline trees by
23019 * doc/extend.texi (Function Attributes): Document always_inline
23021 Update documentation about inlining when not optimizing.
23023 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
23025 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
23026 unless DECL_ALWAYS_INLINE.
23028 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
23029 unless DECL_ALWAYS_INLINE.
23030 (c_disregard_inline_limits): Disregard if always_inline set.
23032 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
23033 Disregard if always_inline set.
23034 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
23035 unless DECL_ALWAYS_INLINE.
23037 * attribs.c (handle_always_inline_attribute): New.
23038 (c_common_attribute_table): Add always_inline.
23040 * config/rs6000/altivec.h: Add prototypes for builtins
23041 requiring the always_inline attribute.
23043 2002-02-21 Eric Christopher <echristo@redhat.com>
23045 * expmed.c (store_bit_field): Try to simplify the subreg
23046 before generating a new one when when the mode size of
23047 value is less than maxmode.
23049 2002-02-21 Richard Henderson <rth@redhat.com>
23051 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
23052 than gen_rtx_PLUS to form the sum.
23053 * explow.c (force_reg): Rearrange to not allocate new pseudo
23054 when force_operand returns a register.
23055 * expr.c (expand_assignment): Allow offset_rtx expansion to
23056 return a sum. Do not force addresses into registers.
23057 (expand_expr): Likewise.
23058 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
23059 to canonicalize arithmetic that didn't simpify.
23060 (simplify_plus_minus): New argument force; update
23061 all callers. Don't split CONST unless we can do something with it,
23062 and wouldn't lose the constness of the operands.
23064 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
23065 that we generated earlier.
23067 2002-02-21 Tom Tromey <tromey@redhat.com>
23069 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23070 (output_line_info): Use constant `1', with a long explanatory
23072 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
23074 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
23076 * jump.c (redirect_jump): If old label has no UID, don't try to
23079 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
23081 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
23082 If input is constant, do shifts at compile time.
23084 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
23086 * doc/extend.texi: Fix some more overfull hboxes.
23088 2002-02-21 Jakub Jelinek <jakub@redhat.com>
23090 PR optimization/4994
23091 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
23094 2002-02-21 Jakub Jelinek <jakub@redhat.com>
23097 * expr.h (expand_and): Add mode argument.
23098 * expmed.c (expand_and): Add mode argument.
23099 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
23100 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
23101 * except.c (expand_builtin_extract_return_addr): Likewise.
23102 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
23103 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
23104 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
23105 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
23106 * config/c4x/c4x.md: Use GEN_INT (x) instead of
23107 gen_rtx (CONST_INT, VOIDmode, x).
23109 2002-02-21 Jakub Jelinek <jakub@redhat.com>
23112 * stmt.c (warn_if_unused_value): Move side effects test once more.
23114 2002-02-20 Torbjorn Granlund <tege@swox.com>
23116 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
23117 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
23119 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
23121 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
23122 SUBREG or ZERO_EXTEND.
23124 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
23126 * sh.h (current_function_anonymous_args): Remove.
23127 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
23128 of current_function_varargs and current_function_stdarg is set.
23129 * sh.c (sh_expand_prologue): Check current_function_varargs /
23130 current_function_stdarg / TARGET_SH5 instead of
23131 current_function_anonymous_args.
23133 * sh64.h (TARGET_VERSION): Define.
23135 2002-02-20 David Edelsohn <edelsohn@gnu.org>
23137 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
23138 VRSAVE_REGNO on TARGET_ALTIVEC.
23140 2002-02-20 Alan Modra <amodra@bigpond.net.au>
23142 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
23143 bits of SImode const_int.
23144 (includes_rshift_p): Likewise.
23145 (print_operand): Call mask_operand and mask64_operand with correct
23147 (rs6000_output_function_epilogue): Pad traceback table to word.
23148 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
23149 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
23150 mask64_operand with correct mode.
23151 (FUNCTION_ARG_REGNO_P): Correct parentheses.
23153 2002-02-20 Jakub Jelinek <jakub@redhat.com>
23156 * varasm.c (get_pool_constant_mark): New.
23157 * rtl.h (get_pool_constant_mark): Add prototype.
23158 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
23159 be represented if it has not been output.
23161 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
23163 * combine.c (do_SUBST): Sanity check substitutions of
23164 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
23165 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
23166 CONST_INT into its operand.
23167 (known_cond): Likewise, for ZERO_EXTEND.
23168 * simplify-rtx.c (simplify_unary_operation): Fix condition to
23169 allow for simplification of wide modes. Reject CONST_INTs in
23170 ZERO_EXTEND when their actual mode is not given.
23172 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
23174 * c-decl.c (pushdecl): If no global declaration is found for an
23175 extern declaration in block scope, try a limbo one.
23177 2002-02-20 Jakub Jelinek <jakub@redhat.com>
23180 * c-common.c (pointer_int_sum): Moved from...
23181 * c-typeck.c (pointer_int_sum): ...here.
23182 * c-common.h (pointer_int_sum): Add prototype.
23184 2002-02-20 Jakub Jelinek <jakub@redhat.com>
23187 * c-decl.c (duplicate_decls): Return 0 if issued error about
23190 2002-02-20 Roger Sayle <roger@eyesopen.com>
23191 Jakub Jelinek <jakub@redhat.com>
23194 * tree.c (host_integerp): Ensure that the constant integer is
23195 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
23196 when pos is zero or non-zero respectively. Clarify comment.
23197 * c-format.c (check_format_info_recurse): Fix host_integerp
23198 usage; the pos argument should be zero when assigning to a
23199 signed HOST_WIDE_INT.
23201 2002-02-20 Richard Henderson <rth@redhat.com>
23203 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
23204 of the operand, rather than assuming TImode.
23205 (ix86_expand_binop_builtin): Cope with commutative patterns
23206 using nonimmediate_operand for both operands.
23207 (ix86_expand_timode_binop_builtin): Likewise.
23208 (ix86_expand_store_builtin): Validate operand 1.
23209 (ix86_expand_unop1_builtin): Likewise.
23211 2002-02-20 Philip Blundell <philb@gnu.org>
23214 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
23216 2002-02-20 Richard Henderson <rth@redhat.com>
23219 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
23221 2002-02-20 Tom Tromey <tromey@redhat.com>
23223 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23224 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23225 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23226 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
23227 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
23230 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
23232 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
23233 for (const_int 0) in X not just INTVAL.
23235 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
23237 * doc/extend.texi: Avoid or reduce overfull hboxes.
23239 2002-02-20 Diego Novillo <dnovillo@redhat.com>
23241 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
23242 operations if the field does not start at a mode boundary.
23244 2001-02-20 Joel Sherrill <joel@OARcorp.com>
23246 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
23247 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
23248 Also done for -Acpu and -Amachine.
23250 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
23252 * cppinit.c (init_dependency_output): Take deps output file
23253 from -o if none given with -MF. Suppress normal output.
23254 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
23255 * doc/cpp.texi, doc/invoke.texi: Update.
23257 2002-02-19 Zack Weinberg <zack@codesourcery.com>
23259 * toplev.c (output_quoted_string): Write unprintable
23260 characters with octal escapes.
23262 2002-02-19 David Edelsohn <edelsohn@gnu.org>
23264 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
23265 really_call_used[VRSAVE_REGNO] if not Altivec.
23267 2002-02-19 Alan Modra <amodra@bigpond.net.au>
23269 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
23271 (constant_pool_expr_1): Fix formatting.
23272 (rs6000_legitimize_reload_address): Likewise.
23274 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23276 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
23277 now that we have one.
23279 2002-02-19 Zack Weinberg <zack@codesourcery.com>
23281 * tree.h (struct tree_common): Remove aux. Add unused_0 at
23282 end of first block of bitfields (which was only seven bits);
23283 rename dummy to unused_1; remove comment which is no longer true.
23285 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
23287 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
23289 2002-02-19 Philip Blundell <pb@nexus.co.uk>
23292 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
23296 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
23297 arm_is_longcall_p rather than inspecting call-type cookie
23299 (call_value_insn) [TARGET_THUMB]: Likewise.
23301 2002-02-19 Graham Stott <grahams@redhat.com>
23303 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
23305 2002-02-19 David Edelsohn <edelsohn@gnu.org>
23307 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
23308 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
23309 (FP_SAVE_INLINE): Delete.
23311 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
23312 * config/rs6000/eabi.asm: Remove ABI save restore routines.
23313 * config/rs6000/t-ppccomm: Build crtsavres.o.
23314 * config/rs6000/crtsavres.asm: New file.
23316 2002-02-19 Philip Blundell <philb@gnu.org>
23318 * config/arm/arm.c (use_return_insn): Don't reject interrupt
23320 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
23321 (output_return_instruction): Allow interrupt functions to return with
23322 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
23323 (arm_expand_prologue): Subtract 4 before stacking LR in an
23324 interrupt function.
23326 2002-02-19 Philip Blundell <pb@nexus.co.uk>
23328 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
23329 decl, not just FUNCTION_DECL.
23330 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
23331 (arm_assemble_integer): Likewise.
23332 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
23335 2002-02-19 matthew green <mrg@eterna.com.au>
23337 * config.gcc (sparc-*-netbsdelf*): Enable target.
23338 (sparc64-*-netbsd*): New target.
23339 * config/sparc/netbsd-elf.h: New file.
23340 * config/sparc/t-netbsd64: New file.
23342 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
23344 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
23346 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
23348 * doc/invoke.texi: explicitly list the style guidelines that
23349 -Weffc++ checks for.
23351 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
23353 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
23355 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
23358 * gcc.c (cpp_unique_options): Treat -o as indicating object file
23359 only if not -E. If -E, pass -o through to the preprocessor.
23361 2002-02-19 Kazu Hirata <kazu@hxi.com>
23363 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
23364 register number with an appropriate macro.
23366 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
23368 * doc/rtl.texi (Constants): Close @code tag.
23370 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
23372 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
23373 ("mmx_uavgv4hi3"): Same.
23374 ("pmulhrwv4hi3"): Same.
23376 * tree-inline.c (walk_tree): Handle vectors.
23378 * c-common.c (constant_expression_warning): Handle vectors.
23379 (overflow_warning): Same.
23381 * sched-deps.c (sched_analyze_2): Handle vectors.
23383 * rtlanal.c (rtx_unstable_p): Handle vectors.
23384 (rtx_varies_p): Same.
23385 (count_occurrences): Same.
23386 (regs_set_between_p): Same.
23387 (modified_between_p): Same.
23388 (modified_in_p): Same.
23389 (volatile_insn_p): Same.
23390 (volatile_refs_p): Same.
23391 (side_effects_p): Same.
23392 (may_trap_p): Same.
23393 (inequality_comparisons_p): Same.
23394 (replace_regs): Same.
23395 (computed_jump_p_1): Same.
23397 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
23399 (inner_mode_array): New.
23400 (copy_rtx): Handle vectors.
23401 (copy_most_rtx): Same.
23402 (rtx_equal_p): Same.
23403 (get_mode_alignment): Adjust for vectors.
23405 * resource.c (mark_referenced_resources): Handle vectors.
23406 (mark_set_resources): Same.
23408 * reload1.c (eliminate_regs): Handle vectors.
23409 (elimination_effects): Same.
23410 (scan_paradoxical_subregs): Same.
23412 * reload.c (subst_reg_equivs): Handle vectors.
23414 * regrename.c (scan_rtx): Handle vectors.
23416 * regclass.c (reg_scan_mark_refs): Handle vectors.
23418 * recog.c (find_single_use_1): Handle vectors.
23420 * local-alloc.c (equiv_init_varies_p): Handle vectors.
23421 (contains_replace_regs): Same.
23422 (memref_referenced_p): Same.
23424 * integrate.c (copy_rtx_and_substitute): Handle vectors.
23425 (subst_constants): Same.
23427 * genattrtab.c (attr_copy_rtx): Handle vectors.
23428 (encode_units_mask): Same.
23429 (clear_struct_flag): Same.
23430 (count_sub_rtxs): Same.
23432 * gcse.c (want_to_gcse_p): Handle vectors.
23433 (oprs_unchanged_p): Same.
23434 (hash_expr_1): Same.
23435 (oprs_not_set_p): Same.
23436 (expr_killed_p): Same.
23437 (compute_transp): Same.
23438 (store_ops_ok): Same.
23440 * function.c (purge_addressof_1): Do not allow paradoxical subregs
23442 (fixup_var_refs_1): Same.
23443 (instantiate_virtual_regs_1): Same.
23445 * fold-const.c (operand_equal_p): Handle vectors.
23447 (rtl_expr_nonnegative_p): Same.
23449 * flow.c (mark_used_regs): Handle vectors.
23451 * df.c (df_uses_record): Handle vectors.
23453 * cselib.c (cselib_subst_to_values): Handle vectors.
23454 (cselib_mem_conflict_p): Same.
23457 * cse.c (canon_reg): Handle vectors.
23459 (cse_process_notes): Same.
23460 (count_reg_usage): Same.
23461 (canon_hash): Same.
23463 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
23465 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
23467 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
23468 (gen_rtx): Handle CONST_VECTOR.
23469 (gen_const_vector_0): New.
23470 (copy_rtx_if_shared): CONST_VECTORs can be shared.
23471 (reset_used_flags): Same.
23472 (copy_insn_1): Same.
23473 (initializer_constant_valid_p): Handle VECTOR_CST.
23475 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
23477 * doc/rtl.texi (Constants): Document const_vector.
23478 (CONST0_RTX): Update for vectors.
23479 (RTL sharing): Same.
23481 * print-tree.c (print_node): Add case for VECTOR_CST.
23483 * tree.h (TREE_VECTOR_CST_ELTS): New.
23484 (struct tree_vector): New.
23485 (union tree_node): Add vector node.
23486 (build_vector): Add prototype.
23488 * tree.def (VECTOR_CST): New.
23490 * tree.c (build_vector): New.
23492 * expmed.c (make_tree): Handle CONST_VECTOR.
23494 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
23495 (CONST_VECTOR_ELT): New.
23496 (CONST_VECTOR_NUNITS): New.
23498 * machmode.h (GET_MODE_INNER): New.
23499 (DEF_MACHMODE): Accept 8th arg.
23501 * machmode.def: Add 8th argument for vector inner mode.
23502 Add inner vector modes for vectors.
23504 * rtl.def (VEC_CONST): Remove.
23505 (CONST_VECTOR): New.
23507 * expr.c (clear_storage): Allow vectors.
23508 (is_zeros_p): Handle VECTOR_CST.
23510 * varasm.c (output_constant_pool): Handle vectors.
23511 (rtx_const): Add veclo and vechi fields.
23512 (kind): Add RTX_VECTOR.
23513 (decode_rtx_const): Add case for vector.
23515 * config/rs6000/rs6000-protos.h: Add zero_constant.
23517 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
23518 constants. Force easy vector constants into memory.
23519 (easy_vector_constant): New.
23520 (emit_easy_vector_constant): New.
23521 (rs6000_legitimize_reload_address): Do not generate bad reloads on
23524 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
23526 ("altivec_lvxl"): Same.
23527 (altivec_lvebx): Same.
23528 (altivec_lvehx): Same.
23529 (altivec_lvewx): Same.
23530 ("*movv4si_const0"): New.
23531 ("*movv4sf_const0"): New.
23532 ("*movv8hi_const0"): New.
23533 ("*movv16qi_const0"): New.
23535 2002-02-18 Kazu Hirata <kazu@hxi.com>
23537 * config/h8300/h8300.c (notice_update_cc): Use
23540 2002-02-18 Kazu Hirata <kazu@hxi.com>
23542 * config/h8300/h8300.md (divmod patterns): Change the
23543 constraints for operands[1] to register_operand.
23545 2002-02-18 Kazu Hirata <kazu@hxi.com>
23547 * config/h8300/h8300-protos.h: Remove the prototype for
23549 * config/h8300/h8300.c (p_operand): Remove.
23550 * config/h8300/h8300.md: Replace p_operand with
23553 2002-02-18 Philip Blundell <pb@nexus.co.uk>
23555 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
23557 (output_return_instruction): Allow use of LDR to unstack
23558 return addresss even for interrupt handlers or when
23559 interworking. If compiling for ARMv5, use interworking-safe
23560 return instructions by default. Remove duplicated code and
23561 lengthy "strcat" sequences.
23563 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
23565 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
23566 (LINK_EH_SPEC): Define.
23567 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
23569 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
23571 * config/s390/s390.c (s390_emit_prologue): Do not set the
23572 frame_related flag for call-clobbered registers.
23574 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
23576 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
23577 (construct_container): Fix handling of SSE operands.
23578 (ix86_expand_builtin): Fix handling of 64bit pointers.
23579 (mmx_maskmovq_rex): New pattern.
23581 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
23583 * regrename.c (kill_set_value): Handle subregs properly.
23585 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
23587 * objc/objc-act.c (handle_impent): Remove leading '*'
23588 from objc_class_name.
23590 2002-02-17 Richard Henderson <rth@redhat.com>
23592 * config/alpha/alpha.c (some_small_symbolic_operand,
23593 some_small_symbolic_operand_1, split_small_symbolic_operand,
23594 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
23595 Handle small SYMBOL_REFs anywhere, not just inside memories.
23596 * config/alpha/alpha-protos.h: Update.
23597 * config/alpha/alpha.h (PREDICATE_CODES): Update.
23598 * config/alpha/alpha.md (small symbolic operand splitter): Update.
23600 2002-02-17 Roland McGrath <roland@frob.com>
23602 * config.gcc (powerpc-*-gnu-gnualtivec*,
23603 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
23604 * config/rs6000/gnu.h: New file.
23605 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
23606 Grok "gnu" in rs6000_abi_name.
23607 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
23608 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
23609 Grok -mcall-gnu analogous to -mcall-linux et al.
23610 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23611 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
23612 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
23614 2002-02-17 Jakub Jelinek <jakub@redhat.com>
23617 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
23620 2002-02-17 Philipp Thomas <pthomas@suse.de>
23622 * config/cris/cris.h: Undefine STARTFILE_SPEC and
23623 ENDFILE_SPEC before (re)defining them.
23625 2002-02-17 Kazu Hirata <kazu@hxi.com>
23627 * config/h8300/h8300.c: Fix formatting.
23628 * config/h8300/h8300.h: Likewise.
23630 2002-02-17 Philipp Thomas <pthomas@suse.de>
23632 * doc/tm.texi: Explain why empty strings should not be
23633 marked for translation.
23635 2002-02-17 Philipp Thomas <pthomas@suse.de>
23637 * final.c (output_operand_lossage): Changed to accept
23638 printf style arguments. Change calls where necessary.
23639 * output.h (output_operand_lossage): Change declaration
23640 accordingly. Update copyright.
23641 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
23642 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
23643 Update copyright date where necessary.
23645 * config/i386/i386.c (print_operand): Likewise. Remove use of
23648 * config/cris/cris.c (cris_operand_lossage): Likewise.
23649 Rename parameter so that exgettext recognizes it as
23650 translatable message.
23651 (LOSE_AND_RETURN): Rename parameter to msgid.
23653 2002-02-17 Kazu Hirata <kazu@hxi.com>
23655 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
23656 hard coded register number with an appropriate macro.
23657 (HARD_REGNO_MODE_OK): Likewise.
23658 (ARG_POINTER_REGNUM): Likewise.
23659 (STATIC_CHAIN_REGNUM): Likewise.
23660 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
23661 * config/h8300/h8300.md (define_constants): Define more
23664 2002-02-17 Philipp Thomas <pthomas@suse.de>
23666 * config/i386/i386.h: Don't mark empty strings for translation.
23668 2002-02-16 H.J. Lu <hjl@gnu.org>
23670 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
23672 2002-02-16 Zack Weinberg <zack@codesourcery.com>
23674 * cppinit.c (merge_include_chains): Check for brack being
23675 NULL before attempting to merge it with qtail.
23677 2002-02-16 Andrew Cagney <ac131313@redhat.com>
23679 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
23682 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
23684 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
23686 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
23688 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
23689 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
23690 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
23692 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23694 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
23695 now only if !TARGET_FIX.
23696 (*movsi_nt_vms_fix): New pattern.
23698 2002-02-16 Douglas B Rupp <rupp@gnat.com>
23700 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
23701 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
23702 (alpha_sa_mask, alpha_sa_size): Reflect above change.
23703 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
23704 (alpha_start_function, alpha_expand_epilogue): Likewise.
23705 (unicosmk_gen_dsib): Likewise.
23707 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23709 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
23711 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
23713 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
23714 check_and_change_labels, s390_final_chunkify): Delete.
23715 (s390_split_branches, s390_chunkify_pool): New functions.
23716 (s390_function_prologue): Call them.
23718 * config/s390/s390.h (S390_REL_MAX): Delete.
23719 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
23721 * config/s390/s390.md (cjump, icjump, jump): Fix length
23722 attribute calculation.
23725 2002-02-15 David Edelsohn <edelsohn@gnu.org>
23727 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
23728 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
23730 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
23732 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
23733 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
23734 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
23736 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
23738 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
23740 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
23742 * reload.c (find_dummy_reload): Check that an output register
23743 is valid for its mode.
23745 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
23747 * combine.c (known_cond): After replacing the REG of a SUBREG, try
23750 * function.c (assign_parms): Demote promoted argument passed by
23751 transparent reference.
23753 2001-02-14 Joel Sherrill <joel@OARcorp.com>
23755 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
23756 -Acpu() and -Amachine() to eliminate warnings.
23758 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
23760 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
23762 2002-02-14 Kazu Hirata <kazu@hxi.com>
23764 * config/h8300/h8300-protos.h: Update the prototype for
23766 * config/h8300/h8300.c (const_costs): Treat SET as a little
23767 more expensive operation.
23768 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
23769 reference to const_costs.
23771 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
23773 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
23775 2002-02-14 Jakub Jelinek <jakub@redhat.com>
23778 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
23779 use arguments from newtype.
23781 2002-02-13 Eric Christopher <echristo@redhat.com>
23783 * config/mips/mips.c (override_options): Add check for march/mipsX
23784 on the same command line. Fix error message in cpu processing.
23785 Remove architecture and ISA checks.
23787 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
23789 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
23791 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
23793 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
23795 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
23797 ("*movv8hi_internal1"): Same.
23798 ("*movv16qi_internal1"): Same.
23799 ("*movv4sf_internal1"): Same.
23801 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
23802 not push_reload for altivec modes.
23804 2002-02-13 Joel Sherrill <joel@OARcorp.com>
23806 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
23807 all RTEMS targets including removal of #includes from config/*/rtems*.h
23808 file and adding them to tm_file setting. Added xm_defines=POSIX to
23810 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
23811 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
23812 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
23813 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
23814 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
23815 config/m68k/rtemself.h: Ditto.
23816 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
23817 config/mips/rtems64.h: Ditto.
23818 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
23819 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
23821 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
23822 config/sparc/rtemself.h: Ditto.
23823 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
23824 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
23825 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
23827 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
23828 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
23829 target made more similar to i386-elf.
23830 * config/i386/t-rtems-i386: Added soft float support and multilibs.
23831 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
23832 be similar to config/m68k/t-m68kelf.
23833 * gthr-rtems.h: Encapsulate with extern "C" for C++.
23835 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
23837 * regmove.c (kill_value): Handle subregs.
23839 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
23841 * i386.md (mul patterns): Allow memory operand to be first;
23842 add expanders where needed; fix constraints.
23843 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
23844 Allow memory operand to be the first.
23846 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
23849 2002-02-13 Jakub Jelinek <jakub@redhat.com>
23852 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
23855 2002-02-13 Jakub Jelinek <jakub@redhat.com>
23857 PR optimization/5547:
23858 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
23859 all valid IA-32 address modes involving non-scaled %ebx and
23860 GOT/GOTOFF as displacement.
23862 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
23864 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
23865 after emitting ltorg insns.
23867 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
23868 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
23869 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
23870 *abssf2): Fix "op_type" attribute.
23872 2002-02-13 Douglas B Rupp <rupp@gnat.com>
23874 * mkconfig.sh: Avoid using a subshell redirect.
23875 ($output.T): Change to $(output)T.
23876 (ENABLE_NLS): Remove unneeded undef.
23878 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
23879 * config/alpha/x-vms (libsubdir): Define.
23881 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
23882 register frame procedures. Optimize retrieving context.
23884 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
23885 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
23886 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
23888 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23890 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
23891 Make same change as for find_base_value.
23893 2002-02-13 Kazu Hirata <kazu@hxi.com>
23895 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
23896 of QImode and SImode.
23898 2002-02-13 Kazu Hirata <kazu@hxi.com>
23900 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
23901 length computation of movsi.
23902 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
23904 2002-02-13 Kazu Hirata <kazu@hxi.com>
23906 * config/h8300/h8300.md (subqi3): Tighten the predicate for
23907 operands[2] to register_operand.
23909 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
23911 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
23913 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
23915 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
23916 for altivec_lvx* and altivec_stvx*.
23917 ("*movv4si_internal"): Add constraint for loading from GPRs.
23918 ("*movv8hi_internal1"): Same.
23919 ("*movv16qi_internal1"): Same.
23920 ("*movv4sf_internal1"): Same.
23922 * config/rs6000/rs6000.c (altivec_register_operand): New.
23924 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
23925 altivec_register_operand.
23927 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
23929 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
23932 2002-02-13 Stan Shebs <shebs@apple.com>
23934 * c-typeck.c (digest_init): Handle vectors.
23935 (really_start_incremental_init): Same.
23936 (pop_init_level): Same.
23937 (process_init_element): Same.
23939 * varasm.c (output_constant): Same.
23941 * expr.c (clear_storage): Same.
23942 (store_constructor): Same.
23944 2002-02-12 Eric Christopher <echristo@redhat.com>
23946 * explow.c (hard_function_value): Add comment explaining
23947 signed/unsigned comparison.
23949 2002-02-12 Jakub Jelinek <jakub@redhat.com>
23951 * jump.c (never_reached_warning): Add finish argument.
23952 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
23953 real insn after end.
23954 * rtl.h (never_reached_warning): Adjust prototype.
23955 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
23956 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
23957 never_reached_warning.
23959 2002-02-12 Graham Stott <grahams@redhat.com>
23961 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
23963 2002-02-12 Kazu Hirata <kazu@hxi.com>
23965 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
23966 logical shifts on H8/300.
23967 (shift_alg_si): Improve several shifts on H8/300.
23968 (get_shift_alg): Likewise.
23970 2002-02-12 Graham Stott <grahams@redhat.com>
23972 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
23974 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23976 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
23977 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
23979 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
23981 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
23982 non-CONST_INT through default_assemble_integer.
23983 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
23984 <case 8>: Abort for CONST_DOUBLE.
23986 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
23988 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
23990 * config/pa/pa-linux.h (LIB_SPEC): Delete.
23991 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
23993 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
23995 * config/stormy16/stormy16.md (zero_extendqihi2): New.
23997 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
23999 * regrename.c (regrename_optimize): Don't accept a
24000 part-clobbered register if the replaced register is not part
24003 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
24004 take padding into account when computing the argument value.
24006 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
24008 * combine.c (try_combine): Apply substitutions in
24009 CALL_INSN_FUNCTION_USAGE too.
24011 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
24013 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
24014 __builtin_altivec_abs*.
24017 * config/rs6000/rs6000.h (rs6000_builtins): Add
24018 ALTIVEC_BUILTIN_ABS*.
24020 * config/rs6000/altivec.h: Use const char for builtins expecting
24022 (vec_abs): New versions for C and C++.
24025 2002-02-10 Kazu Hirata <kazu@hxi.com>
24027 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
24030 2002-02-10 Kazu Hirata <kazu@hxi.com>
24032 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
24033 constant definition from h8300.md.
24034 (FRAME_POINTER_REGNUM): Likewise.
24035 * config/h8300/h8300.md (define_constants): Add FP_REG.
24037 2002-02-10 Kazu Hirata <kazu@hxi.com>
24039 * config/h8300/h8300.c (print_operand): Remove redundant code.
24041 2002-02-10 Kazu Hirata <kazu@hxi.com>
24043 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
24044 * config/h8300/h8300.c (byte_reg): Make it static.
24046 2002-02-10 Richard Henderson <rth@redhat.com>
24049 * c-typeck.c (incomplete_type_error): Handle flexible array members.
24051 2002-02-10 Richard Henderson <rth@redhat.com>
24054 * tree.c (append_random_chars): Don't abort if main_input_filename
24057 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
24059 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
24061 2002-02-10 Kazu Hirata <kazu@hxi.com>
24063 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
24064 (pushhi1): Likewise.
24066 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
24068 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
24069 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
24071 2002-02-09 David O'Brien <obrien@FreeBSD.org>
24073 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
24075 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
24077 2002-02-09 Kazu Hirata <kazu@hxi.com>
24079 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
24080 a half of an SImode register on H8/300.
24082 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
24084 * i386.md (movdi_2): Add missing '!'.
24086 2002-02-09 Kazu Hirata <kazu@hxi.com>
24088 * config/h8300/h8300.h: Fix formatting. Remove commented-out
24091 2002-02-09 Kazu Hirata <kazu@hxi.com>
24093 * config/h8300/h8300.md (length): Correct the distance valid
24094 for the short branch.
24096 2002-02-09 Kazu Hirata <kazu@hxi.com>
24098 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
24100 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
24102 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
24103 registers in SImode.
24104 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
24107 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
24110 Contribute sh64-elf.
24111 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
24112 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
24113 (sh_cannot_modify_jumps_p): New function.
24114 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
24115 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
24116 (sh_ms_bitfield_layout_p): New function.
24117 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
24118 Zack Weinberg <zack@codesourcery.com>
24119 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
24120 expand_simple_binop instead of expand_binop.
24121 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
24122 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
24123 use of .quad and .uaquad.
24124 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
24125 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
24126 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
24127 * config/sh/sh.md (movdi_const, movdi_const_32bit,
24128 movdi_const_16bit): Make sure all CONSTs have modes.
24129 (sym2PIC): Ditto, but by adjusting all callers.
24130 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
24131 if the prologue calls the SHmedia argument decoder or register
24133 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
24134 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
24135 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
24136 (sh_expand_epilogue): Don't emit USE of return target register.
24137 (prepare_move_operands): Legitimize DImode PIC addresses.
24138 (sh_media_register_for_return): Skip tr0, used to initialize the
24140 (sh_expand_prologue): Remove explicit USE of return register.
24141 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
24142 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
24143 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
24144 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
24145 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
24146 EXTRA_CONSTRAINT_T.
24147 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
24148 (MOVI_SHORI_BASE_OPERAND_P): New.
24149 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
24150 (EXTRA_CONSTRAINT_T): Define in terms of them.
24151 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
24152 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
24153 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
24154 alternatives supporting TARGET_REGS.
24155 (UNSPEC_GOTPLT): New constant.
24156 (movdi split): Move incrementing of LABEL_NUSES...
24157 (movdi_const, movdi_const_32bit): Here. Use
24158 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
24159 (movdi_const_16bit): New.
24160 (call, call_value) [flag_pic]: Use GOTPLT.
24161 (call_pop, call_value_pop): New expands.
24162 (call_pop_compact, call_pop_rettramp): New insns.
24163 (call_value_pop_compact, call_value_pop_rettramp): New insns.
24164 (sibcall) [flag_pic]: Use GOT.
24165 (builtint_setjmp_receiver): Remove bogus, unused expand.
24166 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
24167 (*pt, *ptb, ptrel): New insns.
24168 (sym2GOT): Handle DImode GOT.
24169 (sym2GOTPLT, symGOTPLT2reg): New expands.
24170 (sym2PIC): New expand.
24171 (shcompact_return_tramp): Use GOTPLT to return trampoline.
24172 (shcompact_return_tramp_i): Use return register explicitly.
24173 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
24174 disable flag_reorder_blocks.
24175 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
24176 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
24177 clobbers, for clarity.
24178 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
24179 restoring of r0 in macl as MAYBE_DEAD.
24180 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
24181 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
24182 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
24183 alter_subreg all over.
24184 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
24185 reload, instead of emitting instructions that would require
24187 (casesi_load_media): Add missing modes.
24188 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
24189 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
24190 as used if the argument decoder is called.
24191 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
24192 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
24193 Pmode, then extend it to DImode if necessary.
24194 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
24195 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
24196 constants in FPU-enabled SHmedia, let them be loaded from memory.
24197 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
24198 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
24199 Adjust whitespace in assembly output templates.
24200 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
24201 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
24202 mode of if_then_else.
24203 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
24204 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
24206 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
24207 Joern Rennecke <amylaar@redhat.com>
24208 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
24209 (SUBTARGET_CPP_PTR_SPEC): New.
24210 (SUBTARGET_CPP_SPEC): Remove.
24211 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
24212 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24213 Fix typo in previous checkin.
24214 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
24215 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
24216 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
24217 Alexandre Oliva <aoliva@redhat.com>
24218 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
24219 what single FP register can hold for SHmedia target.
24220 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
24221 Alexandre Oliva <aoliva@redhat.com>
24222 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
24223 Do not split into SUBREG.
24224 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
24225 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
24226 and added new functions as specified in SH5 ABI r9.
24227 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
24228 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
24230 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
24231 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
24232 gen_consttable_4 and gen_consttable_8. Emit multiple labels
24233 and consttable_window_ends.
24234 2001-06-03 Graham Stott <grahams@redhat,com>
24235 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
24236 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
24237 * config/sh/sh.c (print_operand): Handle floating-point pair,
24238 vector and matrix registers.
24239 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
24240 vector modes into account.
24241 * config/sh/sh.md (movv2sf): Split move between registers into
24243 (movv4sf, movv16sf): Introduce insns that get split only after
24245 * config/sh/shmedia.h: Fix Copyright dates.
24246 * config/sh/ushmedia.h: Likewise. Move loop counter
24247 declarations into conditionals that uses them.
24248 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
24250 * config/sh/sshmedia.h: Fix Copyright dates.
24251 (sh_media_PUTCFG): Fix constraints.
24252 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
24253 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
24254 ptrmemfunc_vbit_in_delta for SH5.
24255 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
24256 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
24257 * invoke.texi: Likewise.
24258 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
24259 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
24260 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
24261 GCC_pop_shmedia_regs_nofpu): New global symbols.
24262 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
24263 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
24264 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
24265 compact function with nonlocal labels.
24266 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
24267 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
24268 (initial_elimination_offset): Account for their stack space.
24269 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
24270 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
24271 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
24272 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
24273 least one of the operands to be a register.
24274 (movv2sf): Likewise. Renamed to movv2sf_i.
24275 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
24276 prepare_move_operands() before emitting SHmedia insns.
24277 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
24278 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
24279 Don't save nor initialize r12. Don't mis-align the stack.
24280 Pad the code with a nop.
24281 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
24283 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
24284 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
24285 [__SHMEDIA__]: Implement.
24286 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
24287 * config/sh/sh.md: Set latency of `pt' closer to reality.
24288 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
24289 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
24290 Set move, load and store type attributes.
24291 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
24292 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
24294 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
24295 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
24296 * config/sh/sh.c (sh_media_register_for_return): New function.
24297 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
24298 branch-target register.
24299 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
24300 * config/sh/sh.md (return_media_i): Use any call-clobbered
24301 branch-target register.
24302 (return_media): If r18 wasn't copied in the prologue, copy it
24304 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
24305 Clear class FP0_REGS.
24306 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
24308 2001-03-08 DJ Delorie <dj@redhat.com>
24309 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
24310 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
24311 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
24312 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
24313 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
24314 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
24315 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
24316 return value correctly for call_cookie.
24317 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
24318 * config/sh/crt1.asm (start): Modified so as to call
24319 ___setup_argv_and_call_main.
24320 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
24321 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
24323 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
24324 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
24325 (STRIP_NAME_ENCODING): Use it.
24326 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
24327 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
24328 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
24329 prepare_scc_operands().
24330 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
24331 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
24332 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
24333 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
24334 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
24335 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
24336 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
24337 used in shcompact_incoming_args.
24338 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
24340 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
24342 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
24343 Adjust accordingly.
24344 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
24345 Simplify. Adjust. Add sanity check.
24346 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
24348 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
24350 (udivsi3, divsi3): Use them.
24351 (force_mode_for_call): New insn.
24352 (call, call_value, sibcall_value): Emit it before SHcompact
24354 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
24355 * config/sh/sh.md (call, call_value, sibcall): Make sure the
24356 call cookie is non-NULL before taking its value.
24357 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
24358 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
24359 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
24360 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
24362 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
24363 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
24364 temporary for stack adjusts. Use MACL and MACH to pass
24365 arguments to shcompact_incoming_args.
24366 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
24368 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
24369 (nested_trampoline): Load static chain address into r1.
24370 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
24371 2001-01-07 Alexandre Oliva <aoliva@redhat.com
24372 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
24373 fp_arith_reg_operand().
24374 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
24375 * config/sh/sh.md (casesi): Sign-extend the first two operands,
24376 and use signed compares for them.
24377 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
24378 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
24379 ones properly aligned.
24380 (find_barrier): Account for extra alignment needed for 8-byte wide
24382 (machine_dependent_reorg): Require a label for the second 4-byte
24383 constant after an 8-byte one.
24384 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
24386 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
24387 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
24388 last_float when switching float modes.
24389 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
24390 auto-increment for general-purpose registers.
24391 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
24393 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
24395 * config/sh/sh.c (sh_builtin_saveregs): Support using all
24396 registers for varargs.
24397 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
24398 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
24399 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
24400 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
24401 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
24402 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
24403 call_cookie accordingly.
24404 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
24405 (SHCOMPACT_BYREF): Likewise.
24406 (SHCOMPACT_FORCE_ON_STACK): New macro.
24407 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
24408 (sh_builtin_saveregs): Likewise.
24409 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24410 shcompact_incoming_args): Use new shift values. Support
24411 sequences of consecutive and non-consecutive pushes/pops.
24412 * config/sh/sh.md (return): Don't explicitly use PR_REG.
24413 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
24414 * config/sh/sh.h (TEXT_SECTION): Define.
24415 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
24416 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
24417 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
24418 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
24419 return values on FPU-enabled SHmedia.
24420 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
24421 FPU-enabled SHmedia.
24422 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
24423 value is returned in a non-FP reg and is not returned by
24425 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
24427 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
24428 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
24429 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
24430 quad-aligned to be passed by callee-copy reference.
24431 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
24432 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
24433 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
24434 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
24435 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
24436 copying low-numbered FP regs to r7 and r8.
24437 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
24438 FP regs to general-purpose regs only if the copy was passed on the
24440 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
24441 copying FP reg to r9.
24442 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
24443 copy FP regs to general-purpose regs only in outgoing calls.
24444 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
24445 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
24447 * config/sh/sh.h (struct sh_args): Document all fields.
24448 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
24449 passed partially on the stack should not consider making
24451 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
24452 stack_regs only for incoming calls. When passing FP args,
24453 make sure there are FP regs available before modifying
24455 (SHCOMPACT_BYREF): Pass double args in general-purpose
24456 registers by reference.
24457 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
24458 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
24459 attempt to generate sibcalls if the caller got any arguments
24461 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
24462 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
24463 to 8-byte boundaries.
24464 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
24465 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
24466 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
24467 stored in the stack.
24468 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
24469 for the offsets to have the ISA bit set.
24470 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
24471 invocation. Use beq instead of bgt to mark end of sequence of
24473 (shcompact_incoming_args): Fix store of r2. Use beq instead of
24474 bgt to mark end of sequence of stores.
24475 * config/sh/sh.c (arith_operand): Don't check whether
24476 CONST_OK_FOR_J for now.
24477 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
24478 instead of long for conversion.
24479 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
24480 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
24481 before passing it to fprintf.
24482 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
24483 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
24484 Call set_fpscr before reading/writing SR.
24485 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
24487 * config/sh/lib1funcs.asm: Add `.align 2' directives before
24489 (FMOVD_WORKS): Define on SH5 with FPU.
24490 (set_fpscr): Define on SH5. Remove separate _fpscr_values
24492 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
24494 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
24495 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
24497 (ia_main_table): Ditto.
24498 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
24499 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
24500 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
24501 the definitions from sh.h.
24502 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
24504 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
24505 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
24506 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24507 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
24508 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
24509 Increment LABEL_NUSES.
24511 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
24513 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
24515 * config/sh/elf.h (SIZE_TYPE): Likewise.
24516 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
24517 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24518 shcompact_incoming_args): Load switch table addresses using
24520 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24521 (NO_BUILTIN_SIZE_TYPE): Define.
24522 (SIZE_TYPE): Don't define.
24523 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
24524 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
24525 definition of __SH5__=32 for -m5-compact-nofpu.
24526 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
24528 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
24529 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
24530 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
24531 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
24532 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
24533 (INSN_LENGTH_ALIGNMENT): Likewise.
24534 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
24535 * config/sh/sh.md (call, call_value, sibcall): Simplify
24536 copying of non-branch-target register.
24537 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
24538 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
24539 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
24540 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
24541 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
24542 floating-point values as structs.
24543 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
24544 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
24545 general-purpose register.
24546 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
24547 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
24548 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
24549 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
24550 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
24551 (ENCODE_SECTION_INFO): Enclose variables and constants in
24553 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
24554 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
24555 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
24556 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
24557 only for LABEL_REFs. For SYMBOL_REFs, prepend
24558 SH_DATALABEL_ENCODING to the symbol name.
24559 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
24561 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
24562 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
24564 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
24565 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
24566 (DATALABEL_REF_P): Don't require CONST.
24567 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
24569 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
24570 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
24572 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
24573 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
24574 Use shallow_copy_rtx and PUT_MODE to change the mode of
24575 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
24576 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
24577 on SHmedia using GENERAL_REGs.
24578 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24579 bltu_media_i): Fix reversion of conditions.
24580 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
24581 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
24582 * config/sh/sh.c (output_far_jump): Save r13 in macl.
24583 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
24584 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
24585 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
24586 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
24587 (GCC_nested_trampoline): Likewise.
24588 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
24589 * config/sh/sh.c (gen_datalabel_ref): Define.
24590 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
24591 (INITIALIZE_TRAMPOLINE): Likewise.
24592 (TRAMPOLINE_ADJUST_ADDRESS): Define.
24593 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
24594 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
24595 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
24596 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
24597 (ic_invalidate): Adjust for SH5.
24598 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
24599 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
24600 _nested_trampoline.
24601 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
24602 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
24603 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
24604 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
24605 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
24606 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
24607 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
24608 * config/sh/sh.c (target_reg_operand): Match only target-branch
24609 registers and pseudos that aren't virtual registers.
24610 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24611 Copy operands that don't match target_reg_operand to pseudos.
24612 (call_media, call_value_media, sibcall_media): Use
24613 target_reg_operand instead of target_operand.
24614 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
24615 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
24616 * config/sh/sh.c (target_reg_operand): Match hardware registers
24617 other than branch-target registers.
24618 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
24619 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
24620 (fpscr_values) [SH5 == 32]: Define.
24621 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
24622 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
24623 Handle function addresses coming in SUBREGs.
24624 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
24625 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
24626 shcompact_return_trampoline): Use datalabel where appropriate.
24627 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
24628 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
24629 general-purpose register to copy one branch-target register to
24631 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
24632 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
24633 SYMBOL_REFs with VOIDmode.
24634 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
24635 bltu_media_i): New insns.
24636 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
24637 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
24638 (INIT_CUMULATIVE_ARGS): Likewise.
24639 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
24640 * machmode.def (V16SFmode): New mode.
24641 * c-common.c (type_for_mode): Support V2SF and V16SF.
24642 * tree.c (build_common_tree_nodes_2): Likewise.
24643 * tree.h (tree_index): Likewise.
24644 * calls.c (emit_call_1): Take args_so_far. Adjust all
24645 callers. Introduce CALL_POPS_ARGS.
24646 * tm.texi (CALL_POPS_ARGS): Document.
24647 * config/sh/crt1.asm: Implement in SHmedia mode.
24648 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
24649 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
24650 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
24651 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
24652 Implement divsi and udivsi in SHmedia mode. Introduce
24653 SHcompact trampolines.
24654 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
24656 (regno_reg_class): Rewrite.
24657 (fp_reg_names): Remove.
24658 (sh_register_names, sh_additional_register_names): New.
24659 (print_operand): Added `u'. Support SUBREGs in addresses.
24660 Add parentheses around shifted CONSTs.
24661 (output_file_start): Output .mode and .abi directives.
24662 (shiftcosts, addsubcosts, multcosts): Adjust.
24663 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
24664 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
24665 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
24666 bytes, not registers. Take into account the need for the
24667 SHcompact incoming args trampoline. Adjust all callers.
24668 (sh_expand_prologue): Take stack_regs into account. Call
24669 incoming args trampoline. Keep stack aligned as per SH5 ABI.
24670 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
24671 stack aligned as per SH5 ABI.
24672 (sh_builtin_saveregs): Support SH5 ABI.
24673 (sh_build_va_list, sh_va_start): Likewise.
24674 (initial_elimination_offset): Take alignment into account.
24675 Compute location of PR according to the SH5 stack frame.
24676 (arith_reg_operand): Reject branch-target registers.
24677 (shmedia_6bit_operand): New.
24678 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
24679 (target_reg_operand): Match DImode only. Accept SUBREGs.
24680 (target_operand): New.
24681 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
24682 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
24683 SIBCALL_REGS for SHmedia.
24684 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
24685 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
24686 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
24687 (TARGET_SWITCHES): New SH5 flags.
24688 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
24689 VALID_REGISTER_P to disable unsupported registers.
24690 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
24691 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
24692 (FUNCTION_ARG_PADDING): Define.
24693 (FASTEST_ALIGNMENT): Adjust.
24694 (SH_REGISTER_NAMES_INITIALIZER): New.
24695 (sh_register_names): Declare.
24696 (DEBUG_REGISTER_NAMES): Define.
24697 (REGISTER_NAMES): Define based on sh_register_names.
24698 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
24699 (sh_additional_register_names): Declare.
24700 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
24701 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
24702 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
24703 (REGISTER_NATURAL_MODE): Define.
24704 (FIRST_PSEUDO_REGISTER): Adjust.
24705 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
24706 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
24707 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
24708 (VECTOR_MODE_SUPPORTED_P): Define.
24709 (REG_CLASS_CONTENTS): Adjust.
24710 (SMALL_REGISTER_CLASSES): Adjust.
24711 (REG_ALLOC_ORDER): Adjust.
24712 (INDEX_REG_CLASS): Adjust.
24713 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
24714 (CONST_OK_FOR_LETTER_P): Adjust.
24715 (PREFERRED_RELOAD_CLASS): Adjust.
24716 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
24717 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
24718 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
24719 (FIRST_FP_PARM_REG): Adjust.
24720 (CALL_POPS_ARGS): Define.
24721 (FUNCTION_ARG_REGNO_P): Adjust.
24722 (struct sh_args): New fields.
24723 (GET_SH_ARG_CLASS): Adjust.
24724 (INIT_CUMULATIVE_ARGS): Adjust.
24725 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
24726 (FUNCTION_ARG_ADVANCE): Adjust.
24727 (FUNCTION_ARG): Adjust.
24728 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
24729 (FUNCTION_ARG_CALLEE_COPIES): Define.
24730 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
24731 (STRICT_ARGUMENT_NAMING): Define.
24732 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
24733 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
24734 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
24735 (SETUP_INCOMING_VARARGS): Adjust.
24736 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
24737 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
24738 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
24739 (SUBREG_OK_FOR_INDEX_P): Adjust.
24740 (EXTRA_CONSTRAINT_S): Update.
24741 (EXTRA_CONSTRAINT_T): New.
24742 (EXTRA_CONSTRAINT): Adjust.
24743 (GO_IF_LEGITIMATE_INDEX): Adjust.
24744 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
24745 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
24746 (MOVE_MAX): Adjust.
24747 (MAX_MOVE_MAX): Define.
24749 (CONST_COSTS): Adjust.
24750 (REGISTER_MOVE_COST): Adjust.
24751 (BRANCH_COST): Adjust.
24752 (TEXT_SECTION_ASM_OP): Adjust.
24753 (DBX_REGISTER_NUMBER): Adjust.
24754 (ASM_OUTPUT_DOUBLE_INT): New.
24755 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
24756 (PREDICATE_CODES): Adjust.
24757 (PROMOTE_MODE): Adjust.
24758 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
24759 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
24760 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
24761 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
24762 (DR0_REG, DR2_REG, DR4_REG): Renumber.
24763 (TR0_REG, TR1_REG, TR2_REG): New.
24764 (XD0_REG): Renumber.
24765 (UNSPEC_COMPACT_ARGS): New.
24766 (type): Added pt and ptabs.
24767 (length): Default to 4 on SHmedia. Default pt length to 12
24768 and 20 on SHmedia32 and SHmedia64, respectively.
24769 (pt): New function unit.
24770 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
24771 Add whitespace between operands of SHmedia instructions.
24773 (adddi3_media, addsi3_media): Adjust constraints.
24774 (subsi3) [SHmedia]: Force operand 1 into a register.
24775 (udivsi3_i1_media, udivsi3_i4_media): New.
24776 (udivsi3): Support SHmedia.
24777 (divsi3_i1_media, divsi3_i4_media): New.
24778 (divsi3): Support SHmedia.
24779 (anddi3, iordi3, xordi3): Adjust constraints.
24780 (zero_extendhidi2, zero_extendqidi2): New.
24781 (extendsidi2, extendhidi2, extendqidi2): New.
24782 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
24783 (pop_e, pop_fpul, pop_4): Likewise.
24784 (movsi_media): Support FP and BT registers.
24785 (movsi_media_nofpu): New. Adjust splits to DImode.
24786 (lduw, ldub): Renamed to zero_extend* above.
24787 (movqi_media): Fix typo.
24788 (movdi_media): Support FP and BT registers.
24789 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
24790 (movdi_const_32bit): New.
24791 (shori_media): Require immediate operand. Use `u' for output.
24792 (movdf_media, movsf_media): Simplified.
24793 (movdf_media_nofpu, movsf_media_nofpu): New.
24794 (movdf, movsf): Adjust
24795 (movv2sf, movv2sf, movv16sf): New.
24796 (beq_media, beq_media_i): Adjust constraints. Don't use
24797 scratch BT register.
24798 (bne_media, bne_media_i): Likewise.
24799 (bgt_media, bgt_media_i): Likewise.
24800 (bge_media, bge_media_i): Likewise.
24801 (bgtu_media, bgtu_media_i): Likewise.
24802 (bgeu_media, bgeu_media_i): Likewise.
24803 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
24804 bunordered): Emit jump insn. Force operands to registers when
24806 (jump_media, jump): Simplify.
24807 (call_compact, call_compact_rettramp): New.
24808 (call_value_compact, call_value_compact_rettramp): New.
24809 (call_media, call_value_media): Simplify.
24810 (sibcall_compact, sibcall_media): New.
24811 (call, call_value): Adjust for SHmedia and SHcompact.
24812 (sibcall, sibcall_value, untyped_call): Likewise.
24813 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
24814 (indirect_jump): Adjust for SHmedia.
24815 (casesi_jump_media): New.
24816 (nop): Re-enable for SHmedia.
24817 (call_site): Restrict to SH1.
24818 (casesi): Adjust for SHmedia.
24819 (casesi_shift_media, casesi_load_media): New.
24820 (return): Explicitly use PR register. Call return trampoline
24822 (return_i): Explicitly use PR register.
24823 (shcompact_return_tramp, shcompact_return_tramp_i): New.
24824 (return_media): Adjust.
24825 (shcompact_incoming_args): New.
24826 (epilogue): Adjust.
24827 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24828 (movstrsi): Disable on SH5.
24829 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
24830 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
24831 (subsf3, subsf3_media): Likewise.
24832 (mulsf3, mulsf3_media, mac_media): Likewise.
24833 (divsf3, divsf3_media): Likewise.
24834 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
24835 (floatsisf2, fux_truncsfsi2): Likewise.
24836 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
24838 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
24839 (cmpunsf_media, cmpsf): Likewise.
24840 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
24841 (abssf2, abssf2_media): Likewise.
24842 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
24843 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
24844 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
24845 (floatsidf2, fix_truncdfsi2): Likewise.
24846 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
24848 (cmpeqdf_media, cmpgtdf_media): Likewise.
24849 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
24850 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
24851 (absdf2, absdf2_media): Likewise.
24852 (extendsfdf2, extendsfdf2_media): Likewise.
24853 (truncsfdf2, truncsfdf2_media): Likewise.
24854 * config/sh/sh64.h: New file.
24855 * config/sh/t-sh64: New file.
24856 * config/sh/shmedia.h: New file.
24857 * config/sh/ushmedia.h: New file.
24858 * config/sh/sshmedia.h: New file.
24859 * configure.in: Added sh64-*-elf.
24860 * configure: Rebuilt.
24861 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
24862 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
24863 (reg_class_from_letter): Use `b' for TARGET_REGS.
24864 (print_operand): Support `%M', `%m', `AND' and
24865 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
24866 (andcosts): Adjust for SHmedia.
24867 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
24869 (target_reg_operand): New function.
24870 * config/sh/sh-protos.h (target_reg_operand): Declare.
24871 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
24872 FP registers on SH5.
24873 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
24875 (TARGET_REGISTER_P): New macro.
24876 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
24877 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
24878 (EXTRA_CONSTRAINT_S): New macro.
24879 (EXTRA_CONSTRAINT): Adjust.
24880 (FLOAT_TYPE_SIZE): Define to 32.
24881 (Pmode): DImode on SHmedia.
24882 (CONST_COSTS): Adjust for SHmedia literals.
24883 (PREDICATE_CODES): Added target_reg_operand.
24884 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
24885 * config/sh/sh.md: Remove all attrs from SHmedia insns.
24886 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
24887 (cmpdi): Accept SHmedia.
24888 (movdicc_false, movdicc_true): New insns.
24889 (movdicc): New expand.
24890 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
24892 (addsi3_media): Match `S' constraint.
24893 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
24894 (negdi2): Expand for SHmedia.
24895 (one_cmpldi2): New expand.
24896 (zero_extendsidi2): Change from expand to insn.
24897 (extendsidi2): Add constraints.
24898 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
24899 LD/ST address. Fix SI immediate loading split.
24900 (movhi_media, movqi_media, lduw, ldub): New insns.
24901 (movhi, movqi): Accept SHmedia.
24902 (shori_media, movdi_media): Relax input constraints. Split
24903 symbolic constants.
24904 (movdf_media, movsf_media): New insn. New split to movdi.
24905 (movdf, movsf): Match on SHmedia.
24906 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
24907 bgeu_media): New insns and splits. New insns with `_i' suffix.
24908 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
24909 (bunordered): New expand.
24910 (jump_compact): Renamed from `jump'.
24911 (jump_media): New insn.
24912 (jump): New expand.
24913 (call_media, call_value_media): New insns.
24914 (call, call_value): Adjust.
24915 (indirect_jump_compact): Renamed from `indirect_jump'.
24916 (indirect_jump_media): New insn.
24917 (indirect_jump): New expand.
24918 (untyped_call, return): Accept SHmedia.
24919 (return_media): New insn.
24920 (prologue, epilogue, blockage): Accept SHmedia.
24921 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24922 (sunordered): New expand.
24923 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
24924 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
24925 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
24926 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
24927 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
24928 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
24929 abssf2_media): New insns.
24930 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
24931 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
24932 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
24933 floatdidf2, floatsidf2_media, fix_truncdfdi2,
24934 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
24935 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
24936 absdf2_media): New insns.
24937 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
24938 (extendsfdf2_media, truncdfsf2_media): New insns.
24939 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
24940 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
24941 * config/sh/sh.h (CONST_OK_FOR_J): Document.
24942 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
24943 * config/sh/sh.md (adddi3): New expand.
24944 (adddi3_media, adddi3z_media): New insns.
24945 (adddi3_compact): Renamed from adddi3.
24946 (addsi3_media): Use add.l r63 to add constant zero.
24947 (subdi3): New expand.
24948 (subdi3_media): New insn.
24949 (subdi3_compact): Renamed from subdi3.
24950 (mulsidi3): New expand.
24951 (mulsidi3_media): New insn.
24952 (mulsidi3_compact): Renamed from mulsidi3.
24953 (umulsidi3): New expand.
24954 (umulsidi3_media): New insn.
24955 (umulsidi3_compact): Renamed from umulsidi3.
24956 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
24957 (ashlsi3, ashrsi3, lshrsi3): Use them.
24958 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
24959 (ashldi3, ashrdi3, lshrdi3): Use them.
24960 (zero_extendsidi2): New expand.
24961 (extendsidi2): New insn.
24962 (movsi_media): New insn. Split to movdi to load constants.
24963 (movsi): Enable for shmedia.
24964 (movdi_media): New insn. Use shori_media to load wide constants.
24965 (short_media): New insn.
24966 (movdi): Enable for shmedia.
24967 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
24968 * config/sh/sh.h (CPP_SPEC): Added `m5'.
24969 (SUBTARGET_CPP_SPEC): Added `!m5'.
24970 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
24971 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
24972 to all other SH variants.
24973 (TARGET_DEFAULT): Set to SH1_BIT.
24974 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
24975 (BITS_PER_WORD): Raise to 64 on shmedia.
24976 (MAX_BITS_PER_WORD): Change to 64.
24977 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
24978 (INT_TYPE_SIZE): Keep as 32.
24979 (UNITS_PER_WORD): Raise to 8 on shmedia.
24980 (MIN_UNITS_PER_WORD): Keep as 4.
24981 (POINTER_SIZE): Raise to 64 on shmedia.
24982 (CONST_OK_FOR_J): New macro.
24983 (CONST_OK_FOR_LETTER_P): Use it.
24984 (processor_type): Add PROCESSOR_SH5.
24985 * config/sh/sh.md: Conditionalize all expands, insns and
24986 splits to TARGET_SH1.
24988 (addsi3_compact): Renamed from...
24989 (addsi3): Now an expand.
24990 (addsi3_media, subsi3_media): New insns.
24991 (subsi3): Don't negate constants with SHmedia.
24993 * hooks.c: New file.
24994 * hooks.h: New file.
24995 * Makefile.in (HOOKS_H): New.
24996 (TARGET_DEF_H): Added $(HOOKS_H).
24997 (OBJS): Added hooks.o.
24998 (cfgcleanup.o, bb-reorder.o): Added target.h.
24999 (hooks.o): Added dependencies.
25000 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
25001 (TARGET_INITIALIZER): this.
25002 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
25003 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
25004 * bb-reorder.c: Include target.h.
25005 (reorder_basic_blocks): Skip if cannot modify jumps.
25006 * cfgcleanup.c: Include target.h.
25007 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
25009 2002-02-08 Chris Demetriou <cgd@broadcom.com>
25011 * config/mips/mips.md (casesi_internal, casesi_internal_di):
25012 Protect jump delay slot instructions with .set noreorder and
25015 2002-02-08 Chris Demetriou <cgd@broadcom.com>
25017 * config/mips/mips.md (casesi_internal_di): Calculate
25018 the index into the target offset table correctly.
25020 2002-02-08 Richard Henderson <rth@redhat.com>
25022 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
25023 * final.c (output_addr_const): Accept and discard SUBREG.
25024 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
25025 mark them unknown instead.
25026 (simplify_subtraction): Handle RTX_UNKNOWN.
25027 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
25029 2002-02-08 David Edelsohn <edelsohn@gnu.org>
25031 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
25033 2002-02-08 Richard Henderson <rth@redhat.com>
25035 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
25037 2002-02-08 Andreas Jaeger <aj@suse.de>
25039 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
25040 * config/i386/t-linux64: New file.
25042 2002-02-08 Jakub Jelinek <jakub@redhat.com>
25044 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
25045 * c-parse.in (compstmt): Clear last_expr_type.
25047 2002-02-07 Richard Henderson <rth@redhat.com>
25049 * loop.c (strength_reduce): Sink final_value when not
25052 2002-02-07 David O'Brien <obrien@FreeBSD.org>
25054 * config/sparc/freebsd.h: Fix mismatched spec {.
25056 2002-02-07 Richard Henderson <rth@redhat.com>
25058 * cfgrtl.c: Include recog.h and insn-config.h.
25059 (keep_with_call_p): Fix general_operand invocation.
25060 * Makefile.in (cfgrtl.o): Update dependencies.
25062 2002-02-07 Kazu Hirata <kazu@hxi.com>
25064 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
25065 comment. Accept HImode only if TARGET_H8300.
25067 2002-02-07 Eric Christopher <echristo@redhat.com>
25069 * config/mips/crtn.asm: Cleanup #ifdefs.
25071 2002-02-07 Eric Christopher <echristo@redhat.com>
25073 * config/mips/crti.asm: Add changes for mips16. mips16 uses
25074 register 7 as RA instead of $31.
25075 * config/mips/crtn.asm: Ditto.
25076 * config/mips/mips.c (mips_move_2words): Add case for
25077 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
25078 (compute_frame_size): Fix typo.
25079 (save_restore_insns): Ditto. Make documentation about using
25080 register $7 as return register more precise.
25081 (mips_expand_epilogue): Fix comment. Add code to work around not
25082 being able to add to the stack pointer directly.
25083 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
25084 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
25087 2002-02-07 Tom Rix <trix@redhat.com>
25089 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
25090 immediates in ldu and stdu DS opcode field.
25091 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
25092 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
25093 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
25095 2002-02-07 Jeff Sturm <jsturm@one-point.com>
25097 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
25098 offset for stack bias.
25100 2002-02-07 H.J. Lu <hjl@gnu.org>
25102 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
25104 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
25106 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
25108 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
25110 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
25111 * i386.c (x86_order_regs_for_local_alloc): New global function.
25112 * i386.h (REG_ALLOC_ORDER): CLeanup.
25113 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
25115 2002-02-07 Richard Henderson <rth@redhat.com>
25117 PR optimization/2463
25118 * alias.c (find_base_value): Recall base values for fixed hard regs.
25119 * loop.c (loop_regs_update): Don't use single_set on non-insns.
25121 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
25123 * config/mips/mips.md (define_delay) [mips16]: Adjust required
25126 2002-02-06 Richard Henderson <rth@redhat.com>
25129 * stmt.c (resolve_operand_name_1): Take more care with mixed
25130 named and unnamed operands.
25132 2002-02-06 Janis Johnson <janis187@us.ibm.com>
25133 Jan Hubicka <jh@suse.cz>
25135 * loop.c (remove_constant_addition): Avoid clobbering a shared
25138 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
25140 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
25141 * config/s390/t-linux64: New file.
25142 * config/s390/libgcc-glibc.ver: New file.
25144 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
25146 * config/s390/linux64.h: Delete file.
25147 * config/s390/s390x.h: New file.
25148 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
25149 as target header file.
25150 * config/s390/linux.h (TARGET_VERSION): Define depending on
25151 DEFAULT_TARGET_64BIT.
25152 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
25153 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
25154 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
25155 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
25156 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
25157 (EXTRA_SPEC): New define.
25158 * config/s390/s390.h (TARGET_VERSION): Define depending on
25159 DEFAULT_TARGET_64BIT.
25160 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
25162 2002-02-06 Jason Merrill <jason@redhat.com>
25164 * c-decl.c (finish_function): Warn about a non-void function with
25165 no return statement and no abnormal exit.
25166 (current_function_returns_abnormally): New variable.
25167 (start_function): Clear it.
25168 (struct c_language_function): Add returns_abnormally.
25169 (push_c_function_context): Save it.
25170 (pop_c_function_context): Restore it.
25171 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
25172 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
25173 an explicit return type.
25174 * c-tree.h: Declare current_function_returns_abnormally.
25175 (C_FUNCTION_IMPLICIT_INT): New macro.
25176 * c-typeck.c (build_function_call): Set it.
25177 (c_expand_return): Set current_function_returns_value even if the
25178 value is erroneous.
25180 2002-02-06 Jakub Jelinek <jakub@redhat.com>
25183 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
25184 unsafe for reevaluation.
25186 2002-02-06 Jakub Jelinek <jakub@redhat.com>
25189 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
25190 EXPR_STMT, but COMPOUND_STMT, recurse into it.
25192 2002-02-06 Richard Henderson <rth@redhat.com>
25194 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
25195 be a general_operand. Dest for function value must be a pseudo.
25197 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
25199 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
25200 as SYMBOL_REFs from the constant pool.
25202 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
25204 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
25205 passed by invisible reference.
25207 2002-02-05 Richard Henderson <rth@redhat.com>
25209 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
25211 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
25213 Implement using "base addresses" in insn operands as default.
25214 * config/mmix/mmix.c (mmix_conditional_register_usage): if
25215 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
25216 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
25217 used to read the rtx value.
25218 (mmix_target_asm_function_epilogue): Fix spacing.
25219 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
25220 (mmix_legitimate_address): Ditto.
25221 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
25222 should be loaded with a GETA insn. Don't allocate needless extra
25223 char for nul termination and fix misleading comment.
25224 (mmix_print_operand_address): Handle constants if
25225 TARGET_BASE_ADDRESSES.
25226 (mmix_output_register_setting): Use base addressing if
25227 TARGET_BASE_ADDRESSES and the number of insns is 3.
25228 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
25229 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
25230 to use R as constraint, add LDA to match s.
25231 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
25232 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
25233 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
25234 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
25235 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
25236 order with other fixed registers.
25237 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
25238 other parameter/call-clobbered registers.
25239 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
25240 -mbase-addresses, -mno-base-addresses.
25241 (MMIX Options): Ditto.
25243 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
25245 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
25247 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
25249 * config/rs6000/altivec.h: Change elem to _S_elem.
25251 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
25253 * config/netbsd.h (WCHAR_TYPE): Define.
25254 (WCHAR_TYPE_SIZE): Ditto.
25255 (WINT_TYPE): Ditto.
25256 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
25257 (WCHAR_UNSIGNED): Ditto.
25258 (WCHAR_TYPE_SIZE): Ditto.
25259 (WINT_TYPE): Ditto.
25260 * config/arm/netbsd.h: Likewise.
25261 * config/i386/netbsd-elf.h: Likewise.
25262 * config/i386/netbsd.h: Likewise.
25263 * config/m68k/netbsd-elf.h: Likewise.
25264 * config/m68k/netbsd.h: Likewise.
25265 * config/ns32k/netbsd.h: Likewise.
25266 * config/sparc/netbsd.h: Likewise.
25267 * config/vax/netbsd.: Likewise.
25269 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
25271 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
25272 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
25273 (TARGET_INITIALIZER): this.
25274 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
25275 (BITFIELD_NBYTES_LIMITED): Markup fix.
25276 * tree.h (default_ms_bitfield_layout_p): Declare.
25277 (record_layout_info): Added prev_field.
25278 * tree.c (default_ms_bitfield_layout_p): New fn.
25279 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
25280 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
25281 * stor-layout.c: Include target.h.
25282 (start_record_layout): Initialize prev_field.
25283 (place_field): Handle MS bit-field layout, and disregard
25284 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
25285 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
25286 * Makefile.in (stor-layout.o): Adjust dependencies.
25288 2002-02-05 Jason Merrill <jason@redhat.com>
25290 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
25292 2002-02-05 Andreas Jaeger <aj@suse.de>
25294 * crtstuff.c: Fix comments.
25296 2002-02-05 Richard Henderson <rth@redhat.com>
25299 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
25300 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
25303 * config/mips/mips.c (function_arg): Handle TImode.
25304 (function_arg_advance): Likewise.
25306 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25308 * config/rs6000/altivec.h (vec_step_help): Rename to
25311 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25313 * config/rs6000/altivec.h: Fix typos.
25315 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
25317 * config/arm/netbsd.h: Correct a comment.
25319 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25321 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
25322 building void typed builtins.
25324 * config/rs6000/altivec.h (vec_ld*): Fix typos.
25325 (vec_step): Implement for C++.
25327 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25329 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
25331 2002-02-04 Richard Henderson <rth@redhat.com>
25333 * combine.c (nonzero_bits): Re-introduce special case for
25334 sp/fp/ap wrt REGNO_POINTER_ALIGN.
25336 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
25338 * doc/extend.texi: Warn about unsupported usage of altivec
25341 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
25342 (altivec_predicate_*): New.
25344 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
25345 Add C++ version of vec_*() functions.
25347 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
25348 (bdesc_2arg): Remove altivec predicates.
25349 (altivec_expand_builtin): Handle predicates.
25350 (altivec_init_builtins): Handle predicates.
25351 (altivec_expand_predicate_builtin): New.
25353 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25355 * pa.c (DO_FRAME_NOTES): Move forward.
25356 (store_reg): Revise handling of frame notes.
25357 (load_reg): Likewise.
25358 (set_reg_plus_d): Likewise.
25359 (hppa_expand_prologue): Likewise.
25360 (hppa_expand_epilogue): Likewise.
25362 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25364 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
25366 2002-02-04 Jakub Jelinek <jakub@redhat.com>
25368 PR c/4475, c++/3780:
25369 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
25370 * c-common.h (SWITCH_TYPE): Define.
25371 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
25372 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
25373 Rename spareness variable to sparseness.
25374 (expand_end_case_type): Renamed from expand_end_case, use orig_type
25375 if non-NULL instead of TREE_TYPE (orig_index).
25376 * tree.h (expand_end_case_type): Renamed from expand_end_case.
25377 (expand_end_case): Define using expand_end_case_type.
25378 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
25379 to expand_end_case_type.
25380 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
25382 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25384 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
25385 (BIGGEST_ALIGNMENT): Change to 128.
25387 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25389 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
25391 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
25393 * pa.md (call_internal_reg_64bit): Remove unused variable.
25395 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
25397 * config/arm/arm.h (machine_function): Add uses_anonymous_args
25399 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
25400 * config/arm/arm.c (current_function_anonymous_args): Delete,
25401 replace uses with cfun->machine->uses_anonymous_args.
25402 (arm_reorg): Do not reset uses_anonymous_args.
25404 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
25405 any geenral register.
25407 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
25409 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
25412 2002-02-04 Richard Henderson <rth@redhat.com>
25414 * combine.c (force_to_mode): Remove STACK_BIAS code.
25415 (nonzero_bits): Likewise. Replace sp/fp special case with
25416 REGNO_POINTER_ALIGN.
25418 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
25419 (HARD_FRAME_POINTER_REGNUM): New.
25420 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
25421 (FIXED_REGS, CALL_USED_REGS): Update.
25422 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
25423 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
25424 (HARD_REGNO_NREGS): Update for SFP.
25425 (STACK_POINTER_OFFSET): Include bias here ...
25426 (FIRST_PARM_OFFSET): ... not here.
25427 (STACK_BIAS): Remove.
25428 (INIT_EXPANDERS): New.
25429 (STARTING_FRAME_OFFSET): Do not include bias.
25430 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
25431 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
25432 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
25433 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
25434 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
25435 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
25436 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
25437 (MUST_SAVE_REGISTER): Likewise.
25438 (sparc_flat_function_prologue): Likewise.
25439 (sparc_flat_function_epilogue): Likewise.
25440 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
25441 (sparc_init_modes): SFP is GENERAL_REGS.
25442 (sparc_builtin_saveregs): SFP does not have bias applied.
25444 2002-02-04 Richard Henderson <rth@redhat.com>
25446 * config/alpha/alpha.c (current_function_is_thunk): Don't check
25447 current_function_is_thunk.
25448 (alpha_sa_mask): Distinguish between current_function_is_thunk
25449 called from ASM_OUTPUT_MI_THUNK and not.
25450 (alpha_does_function_need_gp): Thunks always need gp.
25451 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
25452 (alpha_output_mi_thunk_osf): New.
25453 * config/alpha/alpha-protos.h: Update.
25454 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
25456 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
25458 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
25459 function types, not when they're taken away.
25461 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
25463 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
25464 CODE_LABEL and jump table when replacing a table jump with a
25467 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
25469 * config/s390/s390-protos.h (legitimize_la_operand,
25470 s390_secondary_input_reload_class, s390_plus_operand,
25471 s390_expand_plus_operand): Add prototypes.
25473 config/s390/s390.c (s390_secondary_input_reload_class,
25474 s390_plus_operand, s390_expand_plus_operand): New functions.
25476 (struct s390_address): New member 'pointer'.
25477 (s390_decompose_address): Compute it.
25478 (legitimate_la_operand_p): Use it.
25479 (legitimize_la_operand): New function.
25480 (movti, movdi, movdf splitters): Call it.
25482 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
25483 (PREDICATE_CODES): Add s390_plus_operand.
25485 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
25486 (la_ccclobber): Allow GENERAL_REGS as output operand.
25488 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
25489 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
25490 (*la_64, *la_31, reload_indi, reload_insi): ... these.
25492 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
25494 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
25495 register names for regular asm () construct.
25497 2002-02-04 Jakub Jelinek <jakub@redhat.com>
25499 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
25502 2002-02-04 Jakub Jelinek <jakub@redhat.com>
25504 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
25507 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
25509 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
25510 constant pool to be identical by string address and index.
25512 2002-02-04 Anthony Green <green@redhat.com>
25514 * output.h (SECTION_OVERRIDE): Define.
25515 * varasm.c (named_section): Obey SECTION_OVERRIDE.
25517 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
25519 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
25520 by existing arm*-*-netbsd* (a.out) target.
25521 (ns32k-*-netbsdelf*): Likewise.
25522 (sparc-*-netbsdelf*): Likewise.
25523 (vax-*-netbsdelf*): Likewise.
25525 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
25527 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
25528 headers and libobjc headers.
25530 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
25532 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
25533 (_mingw.h): Remove duplicate include.
25535 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
25537 * config.gcc: Set cpu_type to m68k for 68010, as well.
25538 (m68010-*-netbsdelf*): New...
25539 (m68k*-*-netbsdelf*): ...targets.
25540 * config/m68k/netbsd-elf.h: New file.
25542 2002-02-02 Kazu Hirata <kazu@hxi.com>
25544 * config/h8300/h8300.c (hand_list): Move inside function_arg.
25546 2002-02-02 Kazu Hirata <kazu@hxi.com>
25548 * config/h8300/h8300.c (h8_push_ops): Move inside
25550 (h8_pop_ops): Likewise.
25551 (h8_move_ops): Likewise.
25553 2002-02-02 Kazu Hirata <kazu@hxi.com>
25555 * config/h8300/h8300.c (os_task): Make it static.
25556 (monitor): Likewise.
25557 (pragma_saveall): Likewise.
25559 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
25561 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
25562 constant is a valid sign-extension for Pmode.
25564 2002-02-02 Kazu Hirata <kazu@hxi.com>
25566 * config/h8300/h8300.c: Fix formatting.
25568 2002-02-02 Kazu Hirata <kazu@hxi.com>
25570 * config/h8300/h8300.md: Fix formatting.
25572 2002-02-02 Kazu Hirata <kazu@hxi.com>
25574 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
25575 predicates of operands[1]. Split the patterns for each
25578 2002-02-02 Kazu Hirata <kazu@hxi.com>
25580 * config/h8300/h8300.md (xor patterns): Tighten the predicates
25581 of operands[1] to register_operand.
25583 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
25585 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
25586 * cpphash.c (_cpp_init_hashtable): Similarly.
25587 * cppinit.c (cpp_create_reader): Default the signed_char flag.
25588 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
25589 (COMMAND_LINE_OPTIONS): Recognize -f{un,}signed-char.
25590 (cpp_handle_option): Handle the new options.
25591 * cpplex.c (cpp_interpret_charconst): Use new flag.
25592 * cpplib.h (struct cpp_options): New member signed_char.
25593 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
25594 (cpp_options): Handle -fsigned-char and -funsigned-char.
25595 (static_specs): Remove signed_char_spec.
25596 (do_spec1): Don't handle %c.
25597 * system.h: Poison SIGNED_CHAR_SPEC.
25598 * tradcif.y (yylex): Use flag_signed_char.
25599 * tradcpp.h (flag_signed_char): New.
25600 * tradcpp.c (flag_signed_char): New.
25601 (main): Handle new command-line options.
25602 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
25604 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
25605 * avr/avr.h: Remove old comments.
25606 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
25607 (CC1_SPEC): Pass -fsigned-char if -mic*.
25608 (SIGNED_CHAR_SPEC): Remove.
25610 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
25612 2002-02-01 Eric Christopher <echristo@redhat.com>
25614 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
25615 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
25616 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
25617 (ASM_OUTPUT_REG_POP): Ditto.
25619 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
25621 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
25624 2002-02-02 Jakub Jelinek <jakub@redhat.com>
25626 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
25628 2002-02-02 Jakub Jelinek <jakub@redhat.com>
25631 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
25634 2002-02-01 Janis Johnson <janis187@us.ibm.com>
25636 * cfganal.c: Include tm_p.h.
25637 (keep_with_call_p): Fix the test that determines if a register holds
25638 the return value of a call.
25640 2002-02-01 DJ Delorie <dj@redhat.com>
25642 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
25643 we are given conflicting registers, switch to the other one we
25644 had allocated for us.
25645 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
25646 as TImode so we know when the "other" register is available.
25648 2002-02-01 David O'Brien <obrien@FreeBSD.org>
25650 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
25653 2002-02-01 Janis Johnson <janis187@us.ibm.com>
25655 * cfganal.c (keep_with_call_p): New function.
25656 (flow_call_edges_add): Prevent splitting a block between a call and
25657 a single-set instruction that should be kept in the same block.
25659 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
25661 * doc/install.texi (avr): Update outdated URL.
25663 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
25665 * config/stormy16/stormy16.md (pushqi): New.
25669 (movhi): Remove stack operands.
25671 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
25672 nonimmediate_nonstack_operand.
25673 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
25675 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
25678 2002-01-31 Jason Merrill <jason@redhat.com>
25680 * Makefile.in (c-parse.c): Handle .output file.
25681 * objc/Make-lang.in (objc-parse.c): Likewise.
25683 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
25685 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
25686 the -me[lb] option is given. Don't output the default flag
25689 2002-01-31 Zack Weinberg <zack@codesourcery.com>
25691 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
25692 the primary source file; this has not been done yet.
25693 * c-decl.c (c_expand_body): Reset input_filename from
25694 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
25696 2002-01-31 Kazu Hirata <kazu@hxi.com>
25698 * rtlanal.c (subreg_regno_offset): Do not use
25699 SUBREG_REGNO_OFFSET.
25700 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
25701 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
25703 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
25705 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
25706 version rather than GNATS version in --version output.
25708 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
25710 * ifcvt.c (noce_process_if_block): Make a copy of the destination
25711 when copying back from a temporary.
25713 2002-01-30 Richard Henderson <rth@redhat.com>
25715 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
25716 and new_dest are the same.
25718 2002-01-30 Richard Henderson <rth@redhat.com>
25721 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
25722 * rtl.c (note_insn_name): Update.
25723 * emit-rtl.c (remove_unnecessary_notes): Kill it.
25724 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
25725 to perform loop rotation.
25726 (expand_exit_loop_top_cond): New.
25727 * tree.h (expand_exit_loop_top_cond): Declare it.
25728 * c-semantics.c (genrtl_while_stmt): Use it.
25729 (genrtl_for_stmt): Likewise.
25731 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
25733 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
25734 arguments to 64-bit boundaries on 64-bit ABIs.
25736 2002-01-30 Steve Ellcey <sje@cup.hp.com>
25738 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
25740 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
25742 * c-decl.c (grokdeclarator): Handle type being a typedef for an
25745 2002-01-30 David O'Brien <obrien@FreeBSD.org>
25747 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
25748 * config/sparc/sparc_bi.h: Remove file.
25749 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
25751 2002-01-30 Richard Henderson <rth@redhat.com>
25753 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
25755 2002-01-30 Zack Weinberg <zack@codesourcery.com>
25757 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
25759 2002-01-30 Jason Merrill <jason@redhat.com>
25761 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
25762 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
25763 (reg_save): Use DW_CFA_offset_extended_sf instead.
25765 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
25767 2002-01-29 Jakub Jelinek <jakub@redhat.com>
25769 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
25772 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
25774 * rs6000.md ("*call_value_local32"): Remove constraints.
25775 ("*call_value_local64"): Same.
25776 ("*call_value_indirect_nonlocal_aix32"): Same.
25777 ("*call_value_nonlocal_aix32"): Same.
25778 ("*call_value_indirect_nonlocal_aix64"): Same.
25779 ("*call_value_nonlocal_aix64"): Same.
25780 ("*call_value_nonlocal_sysv"): Same.
25782 2002-01-29 Richard Henderson <rth@redhat.com>
25784 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
25786 2002-01-29 Richard Henderson <rth@redhat.com>
25788 * expr.c (force_operand): Ignore flag_pic for detecting pic
25790 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
25791 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
25792 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
25793 instead of open-coded loop.
25794 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
25795 be fixed when in use.
25797 2002-01-29 Richard Henderson <rth@redhat.com>
25799 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
25800 * sched-rgn.c (propagate_deps): Update them.
25801 * sched-deps.c (sched_analyze_insn): Update them. Flush the
25802 clobbers list when either gets too long.
25804 2002-01-29 Jakub Jelinek <jakub@redhat.com>
25806 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
25807 and INDEX_REGS the same as GENERAL_REGS.
25808 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
25810 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
25812 * tree.c (build_nonstandard_integer_type): Correct prototype.
25814 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
25816 * config/s390/s390.md (movstrsico, movstrdix_64,
25817 movstrsix_31): Remove, replace by ...
25818 (movstrdi_short, movstrsi_short, movstrdi_long,
25819 movstrsi_long): ... these. New.
25820 (movstrdi, movstrsi): Adapt.
25822 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
25823 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
25824 Remove unnecessary CC clobber.
25825 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
25826 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
25828 (divmoddi4): Don't partially initialize TImode register.
25830 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
25832 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
25834 2002-01-29 Richard Henderson <rth@redhat.com>
25836 * flow.c (print_rtl_and_abort): Remove.
25837 (print_rtl_and_abort_fcn): Remove.
25838 (verify_local_live_at_start): Use dump_bb instead.
25839 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
25840 (verify_wide_reg_1): Return 2 on mode test failure.
25842 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
25844 PR c/3325, c/3326, c/2511, c/3347
25845 * c-decl.c (enum_decl_context): Remove BITFIELD.
25846 (grokdeclarator): Take bitfield width as an input.
25847 Ensure bitfields are given the correct type. Perform
25848 bitfield width validation with build_bitfield_integer_type
25849 rather than waiting for finish_struct.
25850 (grok_typename, grok_typename_in_parm_context, start_decl,
25851 push_parmdecl, grokfield, start_function): Update calls to
25853 (build_bitfield_integer_type): New function.
25854 (finish_struct): Move bitfield validation to grokdeclarator
25855 and build_bitfield_integer_type.
25856 * tree.c (build_nonstandard_integer_type): New function.
25857 * tree.h (build_nonstandard_integer_type): New prototype.
25859 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
25861 2002-01-29 Jakub Jelinek <jakub@redhat.com>
25864 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
25865 don't ignore unrecognized -W* options.
25866 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
25867 * cpplib.h (cpp_handle_option): Adjust prototype.
25868 * c-decl.c (c_decode_options): Pass 0 as last argument to
25872 * gcc.c (cpp_unique_options): Split from cpp_options.
25873 (cpp_options): Source cpp_unique_options.
25874 (default_compilers): Use cpp_unique_options instead of cpp_options
25875 when used together with cc1_options.
25876 (static_specs): Add cpp_unique_options.
25877 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
25878 when used together with cc1_options.
25880 2002-01-29 Kazu Hirata <kazu@hxi.com>
25882 * config/h8300/h8300-protos.h: Update the prototype of
25884 * config/h8300/h8300.c (output_a_shift): Remove an unused
25885 argument 'insn'. Remove redundant code.
25886 * config/h8300/h8300.md: Adust to the new prototype of
25889 2002-01-29 Kazu Hirata <kazu@hxi.com>
25891 * config/h8300/h8300-protos.h: Update the prototypes of
25892 emit_a_rotate and expand_a_rotate.
25893 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
25894 first argument to 'enum rtx_code'.
25895 (expand_a_rotate): Likewise.
25897 2002-01-28 Kazu Hirata <kazu@hxi.com>
25899 * config/h8300/h8300-protos.h: Update the prototype of
25901 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
25903 * config/h8300/h8300.md: Adjust to the new prototype.
25905 2002-01-28 Kazu Hirata <kazu@hxi.com>
25907 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
25910 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
25912 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
25913 is a fixed register before returning pic_offset_table_rtx.
25914 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
25915 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
25917 2002-01-28 Jason Merrill <jason@redhat.com>
25919 * dwarf2.h: Sync with src version.
25921 2002-01-28 Paul Koning <pkoning@equallogic.com>
25923 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
25924 BT_FN_VOID_PTR_VAR.
25925 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
25926 * doc/extend.texi (__builtin_prefetch): Update documentation:
25927 first argument is now const void ptr.
25929 2002-01-28 Kazu Hirata <kazu@hxi.com>
25931 * config/h8300/h8300-protos.h: Remove an unused prototype.
25933 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
25935 * toplev.c (lang_independent_init): Round up identifier size.
25937 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
25939 * config.gcc: Revert previous change.
25941 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
25943 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
25945 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
25947 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
25948 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
25949 other non-elf netbsd config frags.
25950 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
25951 collect2 will does that.
25952 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
25953 shared-lib frobbing will work.
25955 2002-01-28 Kazu Hirata <kazu@hxi.com>
25957 * config/h8300/h8300.h: Fix formatting.
25958 * config/h8300/h8300.md: Likewise.
25960 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
25962 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
25963 the old, removed AAA_standards fix.
25964 * fixinc/fixincl.x: Rebuilt.
25966 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
25968 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
25969 atexit call in crtbegin, hooked in after call to frame_dummy;
25970 register EH before registering __fini__start.
25972 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
25974 * config/rs6000/altivec.h: Remove spurious semicolons.
25976 2002-01-27 Kazu Hirata <kazu@hxi.com>
25978 * config/h8300/h8300.md: Replace dead bit extraction patterns
25979 with ones that work.
25981 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25983 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
25984 if not STRICT_ALIGNMENT.
25985 * rtl.h (MEM_ALIGN): Likewise.
25987 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
25989 * doc/invoke.texi (-fdump-translation-unit): Revert this
25990 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
25992 2002-01-27 Kazu Hirata <kazu@hxi.com>
25994 * config/h8300/h8300.md (define_constants): New.
25995 (anonymous patterns) Use defined constants appropriately.
25997 2002-01-27 Kazu Hirata <kazu@hxi.com>
25999 * config/h8300/h8300.c (function_arg): Remove redundant code.
26001 2002-01-26 Richard Henderson <rth@redhat.com>
26003 * sched-deps.c (reg_pending_uses_head): New.
26004 (reg_pending_barrier): Rename from reg_pending_sets_all.
26005 (find_insn_list): Don't mark inline.
26006 (find_insn_mem_list): Remove.
26007 (add_dependence_list, add_dependence_list_and_free): New.
26008 (flush_pending_lists): Replace only_write param with separate
26009 for_read and for_write parameters. Update all callers. Use
26010 add_dependence_list_and_free.
26011 (sched_analyze_1): Do not add reg dependencies here; just set
26012 the pending bits. Use add_dependence_list.
26013 (sched_analyze_2): Likewise.
26014 (sched_analyze_insn): Replace schedule_barrier_found with
26015 reg_pending_barrier. Add all dependencies for pending reg
26016 uses, sets, and clobbers.
26017 (sched_analyze): Don't add reg dependencies for calls, just
26018 set pending bits. Use regs_invalidated_by_call. Treat
26019 sched_before_next_call as a normal list, not a fake insn.
26020 (init_deps): No funny init for sched_before_next_call.
26021 (free_deps): Free pending mems lists. Don't zero reg_last.
26022 (init_deps_global): Init reg_pending_uses.
26023 (finish_deps_global): Free it.
26024 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
26025 (find_insn_mem_list): Remove.
26026 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
26027 (propagate_deps): Use them. Zero temp mem lists.
26029 2002-01-26 Richard Henderson <rth@redhat.com>
26031 * Makefile.in (CRTSTUFF_CFLAGS): New.
26032 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
26033 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
26034 crtstuff.c instead of alpha assembly version.
26035 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
26036 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
26037 not FORCE_{INIT,FINI}_SECTION_ALIGN.
26038 (__do_global_dtors_aux): Mark used.
26039 (frame_dummy, __do_global_ctors_aux): Mark used.
26040 (fini_dummy, init_dummy): Remove.
26042 * config/alpha/crtbegin.asm: Remove file.
26043 * config/alpha/crtend.asm: Remove file.
26044 * config/alpha/t-crtbe: Remove file.
26045 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
26046 (LINK_EH_SPEC): New.
26048 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
26049 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
26050 calling constructors.
26051 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
26053 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
26054 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
26055 CRT_END_INIT_DUMMY hack.
26056 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
26057 FORCE_{INIT,FINI}_SECTION_ALIGN.
26059 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
26060 FORCE_{INIT,FINI}_SECTION_ALIGN.
26062 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
26063 invocation sequence.
26064 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
26066 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
26067 (FORCE_CODE_SECTION_ALIGN): New.
26069 2002-01-26 Richard Henderson <rth@redhat.com>
26071 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
26073 2002-01-26 Richard Henderson <rth@redhat.com>
26075 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
26076 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
26078 2002-01-26 Kazu Hirata <kazu@hxi.com>
26080 * config/h8300/h8300.md: Remove bit extraction patterns that
26081 cannot be triggered.
26082 Restrict each bit extraction pattern to a variant on which the
26085 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
26087 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
26089 2002-01-26 Kazu Hirata <kazu@hxi.com>
26091 * config/h8300/h8300.md: Remove bit test patterns that cannot
26093 Restrict each bit test pattern to a variant on which the
26096 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26098 * builtins.c (expand_builtin_strncat): Remove redundant check for
26101 2002-01-25 David O'Brien <obrien@FreeBSD.org>
26103 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
26105 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
26108 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
26110 * dbxout.c (dbxout_init): Use assemble_name rather than just
26111 stripping off the first character.
26112 (dbxout_source_file): Likewise.
26114 2002-01-25 DJ Delorie <dj@redhat.com>
26116 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
26117 using rtx_equal_p, not by comparing pointers.
26119 2002-01-25 Steve Ellcey <sje@cup.hp.com>
26121 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
26122 for PIC_OFFSET_TABLE_REGNUM.
26123 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
26125 2002-01-25 David O'Brien <obrien@FreeBSD.org>
26127 * config.gcc (x86_64-*-freebsd*): New target.
26128 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
26130 (i[34567]86-*-freebsd*): Don't include svr4.h.
26131 * config/i386/freebsd64.h: New file.
26133 2002-01-25 Douglas B Rupp <rupp@gnat.com>
26135 * config/alpha/x-vms (version): Make static.
26137 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
26138 in previous checkin.
26140 * Makefile.in (install-headers-cp): New target.
26141 * config.gcc (alpha-dec-*vms*): Install headers with
26144 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
26146 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
26149 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26151 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
26152 of compare_tree_int.
26153 (expand_builtin_strncat): Likewise.
26154 * c-decl.c (finish_struct): Use tree_low_cst.
26155 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
26156 * tree.c (compare_tree_int): Likewise.
26158 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
26160 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
26161 adjustments even if they are implemented by more than two insns.
26163 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
26165 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
26166 * df.h (struct ref): Kill B.
26167 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
26169 * basic-block.h (PROP_EQUAL_NOTES): New flag.
26170 * flow.c (propagate_one_insn): Use it.
26171 (mark_used_regs): Handle NIL.
26173 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
26175 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
26178 2002-01-25 David Edelsohn <edelsohn@gnu.org>
26180 * rs6000.md (prefetch): Make address V4SI mode so that the address
26181 is restricted to legitimate form for instruction.
26183 2002-01-25 Bob Wilson <bob.wilson@acm.org>
26185 * doc/install.texi (xtensa-*-elf): New target.
26186 (xtensa-*-linux*): New target.
26187 * doc/contrib.texi: Add myself.
26189 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
26191 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
26192 purpose register to hold an SImode (or smaller) value.
26194 2002-01-25 Jakub Jelinek <jakub@redhat.com>
26196 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
26198 * crtstuff.c: Likewise.
26200 2002-01-25 Kazu Hirata <kazu@hxi.com>
26202 * config/h8300/h8300.md (negation patterns): Tighten
26203 predicates to register_operand.
26205 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
26207 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
26210 * builtins.c (expand_builtin_prefetch): Same.
26212 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
26214 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
26217 2002-01-24 Kazu Hirata <kazu@hxi.com>
26219 * config/h8300/h8300.c (print_operand): Remove support for
26220 operand character 'A'.
26221 * config/h8300/h8300.md (three anonymous patterns): Replace
26222 operand character 'A' with either 'T' or 'S'.
26224 2002-01-24 Kazu Hirata <kazu@hxi.com>
26226 * config/h8300/h8300.c (print_operand): Remove support for
26227 operand character 'U'.
26229 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
26231 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
26233 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
26235 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
26236 values to be assigned to the stack pointer.
26238 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
26240 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
26241 to const_double needs to be done right for big-endian systems.
26243 2002-01-24 Jason Merrill <jason@redhat.com>
26246 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
26247 to can_throw_internal.
26249 2002-01-23 Richard Henderson <rth@redhat.com>
26251 * fold-const.c (fold): Change UINT_MAX test to check vs precision
26252 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
26254 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
26256 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
26257 (symGOT2reg): Use them, then set as GOT value as unchanging.
26258 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
26259 as a temporary, if possible.
26260 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
26261 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
26263 2002-01-23 Kazu Hirata <kazu@hxi.com>
26265 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
26266 accept to accept 0x80 as operands[2].
26268 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
26270 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
26272 2002-01-23 Richard Henderson <rth@redhat.com>
26274 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
26276 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
26278 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
26279 (parmlist_or_identifiers_1): Verify that only a parmlist follows
26282 2002-01-23 Richard Henderson <rth@redhat.com>
26284 * expr.c (move_by_pieces_1): Extend size before negation.
26286 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
26287 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
26288 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
26289 * config/m68k/t-m68kelf: Likewise.
26291 2002-01-23 Bob Wilson <bob.wilson@acm.org>
26293 * config/xtensa/elf.h: New file.
26294 * config/xtensa/lib1funcs.asm: New file.
26295 * config/xtensa/lib2funcs.S: New file.
26296 * config/xtensa/linux.h: New file.
26297 * config/xtensa/t-xtensa: New file.
26298 * config/xtensa/xtensa-config.h: New file.
26299 * config/xtensa/xtensa-protos.h: New file.
26300 * config/xtensa/xtensa.c: New file.
26301 * config/xtensa/xtensa.h: New file.
26302 * config/xtensa/xtensa.md: New file.
26303 * config.gcc (xtensa-*-elf*): New target.
26304 (xtensa-*-linux*): New target.
26305 * cse.c (canon_hash): Compare rtx pointers instead of register
26306 numbers. This is required for the Xtensa port.
26307 * integrate.c (copy_insn_list): Handle case where the static
26308 chain is in memory and the memory address has to be copied to
26310 * doc/invoke.texi (Option Summary): Add Xtensa options.
26311 (Xtensa Options): New node.
26312 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
26314 2002-01-23 Zack Weinberg <zack@codesourcery.com>
26316 * diagnostic.c (internal_error): Do ICE suppression only
26317 when ENABLE_CHECKING is not defined.
26319 * c-typeck.c (require_complete_type): Return error_mark_node
26320 if type is error_mark_node.
26322 2002-01-23 Janis Johnson <janis187@us.ibm.com>
26324 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
26325 -Os and issue a warning.
26327 2002-01-23 Zack Weinberg <zack@codesourcery.com>
26329 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
26330 current (lack of) need for host configuration by hand.
26332 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
26333 references. Documentation of some target macros moved from
26334 hostconfig.texi to tm.texi.
26336 2002-01-23 Will Cohen <wcohen@redhat.com>
26338 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
26341 2002-01-23 Kazu Hirata <kazu@hxi.com>
26343 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
26346 2002-01-23 Jason Merrill <jason@redhat.com>
26348 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
26350 * function.c (assign_parms): Don't put args of inline functions
26351 into registers when not optimizing.
26353 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
26355 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
26356 (prologue_use): New pattern.
26357 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
26358 preference to gen_rtx_USE.
26359 (thumb_expand_prologue): Use gen_prologue_use in preference to
26361 (thumb_expand_epilogue): Use gen_prologue_use in preference to
26364 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
26366 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
26368 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
26371 * doc/extend.texi: Correct documentation of __alignof__.
26373 2002-01-22 Zack Weinberg <zack@codesourcery.com>
26375 * params.h: Rename arguments of DEFPARAM so that it will be
26376 recognized as a translation keyword.
26378 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
26380 * extend.texi: Document altivec functions.
26381 Fix N-bit adjectives in X86 builtin documentation.
26383 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
26385 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
26386 auto_inc_dec values.
26388 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
26390 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
26392 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
26394 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
26396 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
26398 2002-01-22 Richard Henderson <rth@redhat.com>
26400 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
26401 copy_insn not copy_rtx.
26403 2002-01-23 Alan Modra <amodra@bigpond.net.au>
26405 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
26406 "nonzero" as that might add "1" bits. Ensure "constop" is
26407 properly sign extened.
26408 (force_to_mode): Tweak for sign extended constop.
26410 2002-01-22 Richard Henderson <rth@redhat.com>
26412 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
26413 for_each_rtx instead of assuming we're already looking at the MEM.
26414 (split_small_symbolic_mem_operand): Likewise.
26415 * config/alpha/alpha.h (PREDICATE_CODES): Update.
26416 * config/alpha/alpha.md (small symbolic memory splitters): Update.
26418 2002-01-22 Richard Henderson <rth@redhat.com>
26420 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
26421 sequence number for the literal.
26422 (divmoddi_internal_er): Likewise.
26424 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
26427 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
26428 in LIBICONV variable.
26429 * configure: Regenerated.
26431 2002-01-22 Krister Walfridsson <cato@df.lth.se>
26433 * dependence.c (build_def_use): Remove array_idx.
26435 * dwarfout.c (last_filename): Remove.
26436 (output_compile_unit_die): Remove last_filename.
26438 2002-01-22 Roger Sayle <roger@eyesopen.com>
26439 Richard Henderson <rth@redhat.com>
26442 * fold-const.c (fold): Optimize unsigned comparisons against
26443 UINT_MAX (and similar unsigned constants).
26445 2002-01-22 Janis Johnson <janis187@us.ibm.com>
26447 * Makefile.in (loop.o): Depend on OPTABS_H.
26448 * loop.c (emit_prefetch_instructions): Check the prefetch operand
26449 against the predicate.
26452 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
26453 for the address operand.
26455 2002-01-22 Richard Henderson <rth@redhat.com>
26457 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
26459 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
26462 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
26463 preprocessor flags.
26465 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
26467 * config.gcc (x86_64-*-netbsd*): New target.
26468 * config/i386/netbsd64.h: New file.
26470 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
26472 * regrename.c (kill_value): Fix typo.
26474 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
26476 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
26478 * config/rs6000/rs6000.h: Same.
26480 * function.c (instantiate_virtual_regs): Remove
26481 STARTING_FRAME_PHASE.
26482 (assign_stack_local_1): Same.
26483 Calculate frame phase.
26485 2002-01-22 Nick Clifton <nickc@redhat.com>
26487 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
26488 variable declaration to outer scope in order to simplify
26490 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
26491 arm_hard_regno_mode_ok.
26492 * config/arm/arm-protos.h: Add a prototype for
26493 arm_hard_regno_mode_ok.
26494 * config/arm/arm.c (soft_df_operand): Remove now redundant
26495 check for DImode values using IP_REGNUM.
26496 (nonimmediate_soft_df_operand): Remove now redundant check for
26497 DImode values using IP_REGNUM.
26498 (arm_hard_regno_mode_ok): New function. New check: make sure
26499 that DImode values are not stored in IP_REGNUM.
26501 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
26503 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
26505 2002-01-22 Jason Merrill <jason@redhat.com>
26507 * c-semantics.c (genrtl_compound_stmt): Only check nesting
26508 consistency if this COMPOUND_STMT is scoped.
26510 2002-01-22 Kazu Hirata <kazu@hxi.com>
26512 * predict.c: Fix formatting.
26513 * print-tree.c: Likewise.
26514 * protoize.c: Likewise.
26515 * real.h: Likewise.
26517 * sbitmap.h: Likewise.
26518 * scan.c: Likewise.
26519 * sched-deps.c: Likewise.
26520 * sched-vis.c: Likewise.
26521 * sdbout.c: Likewise.
26522 * sibcall.c: Likewise.
26524 * ssa-ccp.c: Likewise.
26525 * ssa-dce.c: Likewise.
26526 * stmt.c: Likewise.
26527 * stor-layout.c: Likewise.
26528 * system.h: Likewise.
26530 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26532 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
26533 if fits in bounds of base type.
26535 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
26536 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
26537 (add_bound_info, default): If can't find a context, make a
26539 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
26541 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
26543 * c-typeck.c (parser_build_binary_op): If result from
26544 build_binary_op is ERROR_MARK just return error_mark_node without
26545 further processing.
26547 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
26549 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
26550 Split a.out-specific bits into...
26551 * config/netbsd-aout.h: ...this.
26552 * config/netbsd-elf.h: New file.
26553 * config/alpha/netbsd-elf.h: Remove.
26554 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
26555 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
26556 (STARTFILE_SPEC): Remove redundant definition.
26557 (ENDFILE_SPEC): Likewise.
26558 (LINK_SPEC): Likewise.
26559 (CPP_SPEC): Likewise.
26560 (ASM_SPEC): Likewise.
26561 (LIB_SPEC): Likewise.
26562 (SWITCH_TAKES_ARG): Likewise.
26563 (TARGET_MEM_FUNCTIONS): Likewise.
26564 (CPP_PREDEFINES): Redefine.
26565 (ASM_FINAL_SPEC): Remove redefinition.
26566 (ASM_COMMENT_START): Redefine.
26567 (FUNCTION_PROFILER): Define.
26568 (TARGET_VERSION): Redefine.
26569 Comment and formatting cleanup.
26570 * config/i386/netbsd.h: Include <netbsd-aout.h>.
26571 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
26572 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
26573 big- or little-endian.
26574 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
26575 * config.gcc (*-*-netbsd*): Add definitions common to all
26577 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
26578 gnu_ld definitions. Add netbsd-elf.h to and remove
26579 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
26580 tmake_file, and don't lose previous tmake_file contents.
26581 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
26582 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
26583 gnu_ld definitions. Add netbsd-elf.h to tm_file.
26584 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
26585 (mipsel-*-netbsd*): Rename this to...
26586 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
26587 mips/little.h to tm_file for mips*el-*.
26588 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
26589 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
26590 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
26592 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
26594 * pa-protos.h (reg_before_reload_operand): New function prototype.
26595 * pa.c (reg_before_reload_operand): New function implementation.
26596 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
26597 contraints to "*m".
26599 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26601 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
26603 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
26605 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
26606 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
26607 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
26608 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
26609 (ENDFILE_SPEC): Undefine.
26610 (STARTFILE_SPEC): Redefine for PA.
26612 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26614 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
26616 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
26618 * config.gcc: Add entries to supported PowerPC --with-cpu
26621 2002-01-21 Jakub Jelinek <jakub@redhat.com>
26623 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
26624 true for 64-bit mode only SSE registers in 32-bit mode.
26626 2002-01-21 Kazu Hirata <kazu@hxi.com>
26628 * unwind-dw2.c: Fix formatting.
26629 * unwind-dw2-fde.c: Likewise.
26630 * unwind-dw2-fde.h: Likewise.
26631 * unwind-pe.h: Likewise.
26632 * varasm.c: Likewise.
26633 * varray.h: Likewise.
26635 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
26637 Remove workaround for register stack overwrite bug in mmix.
26638 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
26639 support for TARGET_REG_STACK_FILL_BUG.
26640 * config/mmix/mmix.h: Remove member has_call_without_parameters.
26641 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
26643 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
26644 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
26645 -mno-reg-stack-fill-bug-workaround.
26646 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
26647 machine member has_call_without_parameters.
26648 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
26649 -mreg-stack-fill-bug-workaround and
26650 -mno-reg-stack-fill-bug-workaround.
26651 (MMIX Options): Ditto.
26653 2002-01-21 Kazu Hirata <kazu@hxi.com>
26655 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
26657 Remove redundant code.
26659 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
26661 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
26662 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
26663 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
26664 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
26665 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
26666 out target macro definitions and non-target-specific comments
26667 mostly taken from old versions of the manual.
26669 2002-01-20 Kazu Hirata <kazu@hxi.com>
26671 * config/h8300/h8300.h: Fix comment formatting.
26672 * config/ia64/aix.h: Likewise.
26673 * config/ia64/ia64-protos.h: Likewise.
26674 * config/ia64/ia64.c: Likewise.
26675 * config/ia64/ia64.h: Likewise.
26676 * config/ia64/ia64intrin.h: Likewise.
26677 * config/ia64/linux.h: Likewise.
26678 * config/ia64/unwind-aix.c: Likewise.
26679 * config/ia64/unwind-ia64.c: Likewise.
26681 2002-01-20 Kazu Hirata <kazu@hxi.com>
26683 * config/h8300/h8300.c: Revise comments about shift code.
26685 2002-01-20 Kazu Hirata <kazu@hxi.com>
26687 * config/h8300/h8300.c (function_arg): Update a comment.
26689 2002-01-20 Kazu Hirata <kazu@hxi.com>
26691 * config/h8300/h8300.md: Update the comments at the beginning
26694 2002-01-20 Kazu Hirata <kazu@hxi.com>
26696 * config/i370/i370.c: Fix comment formatting.
26697 * config/i370/i370.h: Likewise.
26698 * config/i370/i370.md: Likewise.
26699 * config/i370/linux.h: Likewise.
26701 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26703 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
26705 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
26706 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
26707 in incomplete case.
26709 2002-01-20 Graham Stott <grahams@redhat.com>
26711 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
26713 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
26715 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
26717 2002-01-19 Tom Rix <trix@redhat.com>
26719 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
26721 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
26723 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
26725 * function.c (assign_stack_local_1): Adjust x_frame_offset with
26726 STARTING_FRAME_PHASE.
26727 (STARTING_FRAME_PHASE): New.
26728 (instantiate_virtual_regs): Check saneness of
26729 STARTING_FRAME_PHASE.
26731 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
26733 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
26735 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
26737 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
26739 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
26740 be used for bootstrapping GCC 3.0.
26742 2002-01-18 Kazu Hirata <kazu@hxi.com>
26744 * config/h8300/h8300.md: Fix an insn length.
26746 2002-01-18 Kazu Hirata <kazu@hxi.com>
26748 * bitmap.h: Fix comment formatting.
26749 * combine.c: Likewise.
26750 * cppfiles.c: Likewise.
26751 * c-pragma.h: Likewise.
26752 * c-typeck.c: Likewise.
26754 * dwarf2out.c: Likewise.
26755 * function.c: Likewise.
26757 * genattrtab.c: Likewise.
26758 * gthr-win32.h: Likewise.
26759 * haifa-sched.c: Likewise.
26760 * predict.c: Likewise.
26761 * rtlanal.c: Likewise.
26763 * unwind-dw2-fde.h: Likewise.
26764 * unwind-pe.h: Likewise.
26765 * vmsdbgout.c: Likewise.
26767 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26769 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
26770 if type_required and passed decl.
26772 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
26774 * config.gcc (cpu_type): Include altivec.h in powerpc
26778 * config/rs6000/altivec.h: New.
26780 2002-01-17 David Edelsohn <edelsohn@gnu.org>
26782 * doc/install.texi (*-ibm-aix*): Update assembler and exception
26783 handling information.
26784 * doc/trouble.texi (Interoperation): Add libstdc++ information
26786 (Misunderstandings): Add template instantiation and static template
26787 member information for AIX.
26789 2002-01-17 Jason Merrill <jason@redhat.com>
26791 * dbxout.c (dbxout_type): Support const and volatile.
26793 * except.c (add_partial_entry): Remove backwards compatibility code.
26794 (end_protect_partials): Likewise.
26796 2002-01-17 Jakub Jelinek <jakub@redhat.com>
26798 * config/ia64/ia64.md (prologue_use): New.
26799 * config/ia64/ia64.c (ia64_expand_prologue): Use
26800 gen_prologue_use instead of gen_rtx_USE.
26801 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
26802 as CODE_FOR_pred_rel_mutex.
26803 (ia64_sched_reorder2): Likewise.
26805 2002-01-16 Eric Christopher <echristo@redhat.com>
26807 * config/mips/r3900.h: Reformat.
26808 (SUBTARGET_CPP_SIZE_SPEC): Remove.
26809 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
26810 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
26811 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
26812 * config/mips/t-elf: Remove mips3 multilib.
26814 2002-01-16 H.J. Lu <hjl@gnu.org>
26816 * config/mips/linux.h: Include "mips/abi64.h".
26818 2002-01-16 H.J. Lu <hjl@gnu.org>
26820 * config/mips/t-linux: New.
26822 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
26824 * config/mips/linux.h: Don't include "gofast.h".
26825 (INIT_SUBTARGET_OPTABS): Removed.
26827 2002-01-16 Kazu Hirata <kazu@hxi.com>
26829 * config/h8300/h8300-protos.h: Replace emit_a_shift with
26831 * config/h8300/h8300.c: Likewise.
26832 * config/h8300/h8300.md: Likewise.
26834 2002-01-16 Kazu Hirata <kazu@hxi.com>
26836 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
26837 spaces after an opcode name.
26838 (pushqi1_h8300hs): Likewise.
26839 (pushhi1_h8300hs): Likewise.
26841 2002-01-16 Kazu Hirata <kazu@hxi.com>
26843 * doc/extend.texi: Replace "option" with "attribute"
26846 2002-01-16 Jakub Jelinek <jakub@redhat.com>
26848 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
26849 (and:DI () (const_int -8)).
26850 (split_small_symbolic_mem_operand): Split
26851 (mem (and:DI () (const_int -8)).
26853 2002-01-16 Jakub Jelinek <jakub@redhat.com>
26856 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
26857 same way as TYPE_IMUL.
26858 (ultrasparc_sched_reorder): Likewise.
26859 * config/sparc/sparc.md (type): Add comment to update
26860 ultrasparc_sched_reorder when making changes.
26862 2002-01-16 Kazu Hirata <kazu@hxi.com>
26864 * doc/invoke.texi: Change the dump file name of block
26865 reordering pass from 28.bbro to 29.bbro.
26866 Mention -dk option.
26868 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
26870 * i386.md (minsf splitter): Fix pasto.
26872 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
26874 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
26875 to frame pointer initialisation instruction.
26876 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
26877 initialisation instruction.
26878 (soft_df_operand): Do not accept the IP register.
26879 (nonimmediate_soft_df_operand): Do not accept the IP register.
26881 2002-01-16 Jakub Jelinek <jakub@redhat.com>
26884 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
26885 MASK_V8 being both set.
26887 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
26889 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
26890 insn for GOT register; add REG_MAYBE_DEAD notes instead.
26891 config/s390/s390.md (call, call_value): Add GOT register to
26892 CALL_INSN_FUNCTION_USAGE where needed.
26893 (call_exp, call_value_exp): New.
26895 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
26897 * config/arm/arm.c: General formatting tidy up.
26899 2002-01-16 Graham Stott <grahams@redhat.com>
26901 * calls.c (try_to_integrate): Use "(size_t)" intermediate
26902 cast and when casting an integer literal to "rtx" pointer.
26903 (expand_call): Likewise.
26904 * flow.c (try_pre_increment): Likewise.
26905 (find_use_as_address): Likewise.
26906 * integrate.c (expand_iline_function): Likewise.
26907 * regmove.c (try_auto_increment): Likewise.
26909 2002-01-16 Graham Stott <grahams@redhat.com>
26911 * sched-rgn.c (passed): Use sbitmap_free.
26912 (header): Likewise.
26914 (in_queue): Likewise.
26915 (in_stack): Likewise.
26917 2002-01-15 Eric Christopher <echristo@redhat.com>
26919 * flow.c (propagate_one_insn): Change to use fatal_insn.
26921 2002-01-15 Kazu Hirata <kazu@hxi.com>
26923 * expmed.c (extract_fixed_bit_field): Remove unused code.
26924 * system.h: Poison SLOW_ZERO_EXTEND.
26925 * doc/tm.texi: Remove.
26926 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
26927 * config/arm/arm.h: Likewise.
26928 * config/avr/avr.h: Likewise.
26929 * config/clipper/clipper.h: Likewise.
26930 * config/convex/convex.h: Likewise.
26931 * config/d30v/d30v.h: Likewise.
26932 * config/dsp16xx/dsp16xx.h: Likewise.
26933 * config/elxsi/elxsi.h: Likewise.
26934 * config/fr30/fr30.h: Likewise.
26935 * config/h8300/h8300.h: Likewise.
26936 * config/i370/i370.h: Likewise.
26937 * config/i386/i386.h: Likewise.
26938 * config/m68k/m68k.h: Likewise.
26939 * config/mips/mips.h: Likewise.
26940 * config/ns32k/ns32k.h: Likewise.
26941 * config/pdp11/pdp11.h: Likewise.
26942 * config/pj/pj.h: Likewise.
26943 * config/s390/s390.h: Likewise.
26944 * config/sh/sh.h: Likewise.
26945 * config/stormy16/stormy16.h: Likewise.
26946 * config/v850/v850.h: Likewise.
26947 * config/vax/vax.h: Likewise.
26948 * config/we32k/we32k.h: Likewise.
26950 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
26952 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
26953 (altivec_lvsl): Change constraint to b.
26954 (altivec_lvsr): Same.
26955 (altivec_lvebx): Same.
26956 (altivec_lvehx): Same.
26957 (altivec_lvewx): Same.
26958 (altivec_lvxl): Same.
26959 (altivec_lvx): Same.
26960 (altivec_stvx): Add parallel.
26961 (altivec_stvxl): Same.
26962 (altivec_stvehx): Same.
26963 (altivec_stvebx): Same.
26964 (altivec_stvebx): Same.
26966 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
26968 * config.gcc: Change altivec.h to altivec-defs.h.
26970 * config/rs6000/altivec.h: Delete.
26972 * config/rs6000/altivec-defs.h: Add.
26974 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
26976 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
26979 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
26980 less than or equal to eight bytes.
26982 * vax.md (andsi3): Remove constraints and change SET destination
26983 operand type to nonimmediate_operand.
26984 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
26985 when it is a CONST_INT.
26987 2002-01-15 Jason Merrill <jason@redhat.com>
26989 * c-common.def (FILE_STMT): New code.
26990 * c-common.c (statement_code_p): It's a statement.
26991 * c-common.h (stmt_tree_s): Add x_last_filename.
26992 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
26993 (last_expr_filename): New macro.
26994 * c-semantics.c (begin_stmt_tree): Initialize it.
26995 (add_stmt): If the filename changed, also insert a
26997 (expand_stmt): Handle seeing one.
26999 2002-01-15 Eric Christopher <echristo@redhat.com>
27001 * flow.c (propagate_one_insn): Add error message and print out
27002 insn for debugging.
27004 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
27006 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
27007 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
27008 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
27009 TRAMPOLINE_ALIGNMENT.
27010 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
27012 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
27013 PCC_BITFIELD_TYPE_MATTERS.
27014 * config/interix.h (STDC_VALUE): Remove. Use
27015 STDC_0_IN_SYSTEM_HEADERS.
27016 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
27017 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
27018 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
27020 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
27022 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
27023 not work on this platform currently.
27025 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
27027 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
27028 readonly_warning in _().
27030 2002-01-15 Douglas B Rupp <rupp@gnat.com>
27032 * gcc.c (delete_if_ordinary): Backout previous change.
27034 2002-01-15 Kazu Hirata <kazu@hxi.com>
27036 * config/h8300/h8300.c (print_operand): Remove support for
27037 unused operand characters.
27039 * read-rtl.c: Fix formatting.
27040 * real.c: Likewise.
27041 * recog.c: Likewise.
27042 * regclass.c: Likewise.
27043 * regmove.c: Likewise.
27044 * reg-stack.c: Likewise.
27045 * reload1.c: Likewise.
27046 * rtlanal.c: Likewise.
27048 2002-01-15 Kazu Hirata <kazu@hxi.com>
27050 * config/i386/i386.c: Fix formatting.
27052 2002-01-15 Jakub Jelinek <jakub@redhat.com>
27054 * c-typeck.c (process_init_element): Don't save_expr
27055 COMPOUND_LITERAL_EXPR if just its initializer will be used.
27057 2002-01-15 David Edelsohn <edelsohn@gnu.org>
27059 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
27060 emit optional traceback table if optimize_size or TARGET_ELF.
27061 * config/rs6000/rs6000.md (prefetch): New.
27063 2002-01-15 Andreas Jaeger <aj@suse.de>
27065 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
27067 2002-01-15 Kazu Hirata <kazu@hxi.com>
27069 * mips-tfile.c: Fix formatting.
27071 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
27073 * unroll.c (final_reg_note_copy): Fix previous commit.
27075 2002-01-14 Kazu Hirata <kazu@hxi.com>
27077 * config/h8300/h8300-protos.h: Remove the prototype for
27079 * config/h8300/h8300.c (eq_operator): Remove.
27081 2002-01-14 Richard Henderson <rth@redhat.com>
27083 * config/i386/i386.md (prefetch): Tidy.
27084 (prefetch_3dnow): Fix locality operand.
27086 2002-01-14 Richard Henderson <rth@redhat.com>
27088 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
27089 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
27091 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
27093 * reload1.c (reload_combine): Pass reg_sum replacement through
27094 copy_rtx in loop performing multiple changes.
27096 2002-01-14 Jakub Jelinek <jakub@redhat.com>
27098 * except.c (remove_unreachable_regions): New.
27099 (free_eh_status): Clear exception_handler_labels.
27100 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
27101 (find_exception_handler_labels): Don't add the same label more than
27103 (remove_exception_handler_label): Don't die if
27104 find_exception_handler_labels hasn't been called for the current
27107 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
27109 * toplev.c (rest_of_compilation): Rebuild jump labels after
27112 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
27114 * doc/extend.texi: Move documentation of X86 built-in functions
27116 * doc/invoke.texi: From here.
27117 * doc/sourcebuild.texi: Document location of documentation for
27118 machine built-in functions.
27120 2002-01-13 Christopher Faylor <cgf@redhat.com>
27122 * cppfiles.c (TEST_THRESHOLD): New macro.
27123 (SHOULD_MMAP): Ditto.
27124 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
27127 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
27129 * unroll.c (final_reg_note_copy): Properly handle
27131 (unroll_loops): Fix LOOP_CONDITION heuristics.
27133 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
27135 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
27136 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
27138 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
27140 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
27143 2002-01-14 Tom Rix <trix@redhat.com>
27145 * config/rs6000/rs6000.md: Fix typo with sradi.
27147 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
27149 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
27150 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
27151 (clrstrdi, clrstrsi): Adapt callers.
27153 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
27155 (movti splitter): Never use register 0 as base register.
27157 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
27159 * combine.c (simplify_shift_const): Always generate new rtx
27160 for shift expression instead of reusing given expression.
27162 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27164 * config/alpha/alpha.c (alpha_expand_mov): Don't call
27165 alpha_legitimize_address unless mode is Pmode.
27167 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
27169 * doc/md.texi (Modifiers): Document the '*' constraint for the
27172 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
27173 * doc/extend.texi (Function Attributes): 'interrupt' is valid
27176 2002-01-13 Richard Henderson <rth@redhat.com>
27178 * reload.c (find_reloads): Use a hard reg destination as reload reg
27179 for an input reload of the source.
27181 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27183 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
27186 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
27188 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
27189 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
27191 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
27193 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27195 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
27197 2002-01-12 Tom Rix <trix@redhat.com>
27199 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
27202 2002-01-12 Richard Henderson <rth@redhat.com>
27204 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
27206 * doc/invoke.texi: Update Alpha options.
27208 * doc/invoke.texi: Update i386 built-in function lists.
27210 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
27212 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
27213 referencing outside.
27215 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27217 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
27218 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
27219 offsets, and change line folding.
27220 * optabs.c (expand_binop): Remove warnings.
27221 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
27223 2002-01-12 Graham Stott <grahams@redhat.com>
27225 * attribs.c (handle_deprecated_attribute): constify WHAT.
27226 * diagnostic.c (warn_deprecated_use): Add braces, fixes
27227 dangling else warning and constify WHAT.
27228 * except.h (struct function, struct inline_remap): Move
27229 struct tag forward defs before all prototypes.
27230 (duplicate_eh_regions): Whitespace.
27232 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
27234 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27235 MODE_BASE_REG_CLASS.
27236 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
27238 2002-01-12 Richard Henderson <rth@redhat.com>
27240 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
27241 (ix86_expand_vector_move): New.
27242 (bdesc_2arg): Remove andps, andnps, orps, xorps.
27243 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
27244 Remove old prefetch builtins. Special case the logicals removed above.
27245 (ix86_expand_builtin): Likewise.
27246 (safe_vector_operand): Use V4SFmode, not TImode.
27247 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
27248 (ix86_expand_timode_binop_builtin): New.
27249 * config/i386/i386-protos.h: Update.
27250 * config/i386/i386.h (enum ix86_builtins): Update.
27251 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
27252 Use ix86_expand_vector_move in vector move expanders.
27253 (movti_internal, movti_rex64): Add xorps alternative.
27254 (sse_clrv4sf): Rename and adjust from sse_clrti.
27255 (prefetch): Don't work so hard.
27256 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
27257 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
27258 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
27260 2002-01-11 Richard Henderson <rth@redhat.com>
27262 * config/i386/mmintrin.h: New file.
27263 * config/i386/xmmintrin.h: New file.
27264 * config.gcc (i?86-*-*): Add extra_headers.
27265 * simplify-rtx.c (simplify_unary_operation): Handle saturating
27267 (simplify_binary_operation): Handle saturating arithmetic codes.
27268 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
27269 not the lowpart subreg.
27270 (ix86_expand_builtin): Return a TImode dummy register instead of 0
27272 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
27274 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
27276 * conflict.c (conflict_graph_compute): Free regsets when finished.
27277 * ssa.c (compute_coalesced_reg_partition): Likewise.
27279 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27281 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
27282 every where we allocate a register.
27284 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
27286 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
27287 * lcm.c (compute_earliest, compute_farthest): Likewise.
27289 2002-01-11 Janis Johnson <janis187@us.ibm.com>
27291 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
27293 2002-01-11 Janis Johnson <janis187@us.ibm.com>
27295 * doc/rtl.texi (Insns): Fix 2 typos.
27297 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
27299 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
27300 options. Use @table @gcctabopt for MMIX options. Add index
27301 entries for MMIX options. Start new paragraph with first
27302 heading of the machine-dependent options.
27304 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
27307 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
27308 * combine.c (force_to_mode): Same.
27309 * reload1.c (clear_reload_reg_in_use): Same.
27311 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
27313 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
27316 2002-01-11 Andreas Jaeger <aj@suse.de>,
27317 Brad Lucier <lucier@math.purdue.edu>
27319 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
27322 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
27324 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
27325 Protect with IN_LIBGCC.
27326 (LINK_EH_SPEC): Add required trailing space.
27328 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
27330 * c-tree.h: Move function declarations so that they are listed
27331 under the filename which contains them.
27332 (check_identifier, finish_decl_top_level,
27333 lookup_name_current_level_global, shadow_record_fields): Remove.
27335 2002-01-11 Andreas Jaeger <aj@suse.de>
27337 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
27340 2002-01-10 Richard Henderson <rth@redhat.com>
27342 * config/alpha/alpha.c (print_operand): Add 'J'.
27343 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
27344 new operand with the sequence number for the lituse. When splitting
27345 the insns, use gen_movdi_er_high_g and generate a sequence number.
27346 (gen_movdi_er_high_g): Print the sequence number if non-zero.
27348 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
27350 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
27351 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
27353 (altivec_expand_builtin): Same.
27354 (altivec_expand_stv_builtin): New.
27356 * config/rs6000/rs6000.h (rs6000_builtins): Same.
27358 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
27359 ("altivec_lvehx"): New.
27360 ("altivec_lvewx"): New.
27361 ("altivec_lvxl"): New.
27362 ("altivec_lvx"): New.
27363 ("altivec_stvx"): New.
27364 ("altivec_stvebx"): New.
27365 ("altivec_stvehx"): New.
27366 ("altivec_stvewx"): New.
27367 ("altivec_stvxl"): New.
27369 2002-01-10 Richard Henderson <rth@redhat.com>
27371 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
27372 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
27373 care not to delete instructions twice.
27375 2002-01-10 Zack Weinberg <zack@codesourcery.com>
27377 * toplev.c: Don't declare environ (it's not used anywhere).
27378 * configure.in: Don't check for declaration of environ.
27379 * config/i386/xm-mingw32.h: Don't #define environ.
27380 * config.in, configure: Regenerate.
27382 2002-01-10 Zack Weinberg <zack@codesourcery.com>
27384 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
27385 * configure: Regenerate.
27387 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
27388 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
27389 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
27391 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
27392 LIMITS_H_TEST here, not in m68k/x-next.
27393 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
27394 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
27396 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
27397 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
27398 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
27400 * config/i386/x-djgpp: Renamed i386/t-djgpp.
27401 * config/m88k/x-dolph: Renamed m88k/t-dolph.
27402 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
27403 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
27404 replacement of quadlib.asm with quadlib.c.
27406 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
27407 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
27408 config/rs6000/xm-beos.h: Delete file.
27410 * config.gcc: Update to match above changes.
27412 2002-01-10 Kazu Hirata <kazu@hxi.com>
27414 * config/h8300/h8300.h: Fix comment typos.
27415 * config/h8300/h8300.md: Likewise.
27416 * config/h8300/lib1funcs.asm: Likewise.
27418 2002-01-10 Dale Johannesen <dalej@apple.com>
27420 PR optimization/5269
27421 * unroll.c (precondition_loop_p): Make *increment be the correct
27422 sign when n_iterations known, to avoid confusing caller.
27424 2002-01-10 Kazu Hirata <kazu@hxi.com>
27426 * doc/extend.texi (deprecated): Fix a typo.
27428 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
27430 * basic-block.h (update_br_prob_note): Declare.
27431 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
27432 (try_forward_edges): Care negative frequencies and update note.
27433 (outgoing_edges_match): Tweek conditional merging heuristics.
27434 (try_crossjump_to_edge): use update_br_prob_note.
27435 * cfglayout.c (fixup_reorder_chain): Likewise.
27436 * cfrtl.c (update_br_prob_note): New.
27437 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
27439 * i386.c (ix86_decompose_address): Return -1 if address contains
27441 (legitimate_address_p): Require ix86_decompose_address to return 1.
27443 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
27444 (cprop_insn): Likewise.
27446 2002-01-10 Kazu Hirata <kazu@hxi.com>
27448 * toplev.c: Fix formatting.
27449 * tree.c: Likewise.
27450 * tree-dump.c: Likewise.
27451 * unroll.c: Likewise.
27452 * unwind-dw2.c: Likewise.
27453 * unwind-dw2-fde.c: Likewise.
27454 * unwind-dw2-fde-glibc.c: Likewise.
27455 * unwind-sjlj.c: Likewise.
27457 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
27459 * doc/invoke.texi: Document PDP-11 options.
27461 2002-01-10 Kazu Hirata <kazu@hxi.com>
27463 * config/h8300/h8300.h: Fix formatting.
27465 2002-01-10 Ira Ruben <ira@apple.com>
27467 Add __attribute__ ((deprecated)).
27468 * extend.texi: Document __attribute__ ((deprecated)).
27469 * invoke.texi: Document -Wno-deprecated-declarations.
27470 * testsuite/g++.dg/other/deprecated.C: New C++ test.
27471 * testsuite/gcc.dg/deprecated.c: New C test.
27472 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
27473 (c_common_attribute_table): Add "deprecated" entry.
27474 (handle_deprecated_attribute): New function.
27475 * c-decl.c (deprecated_states): New enum.
27476 deprecated_state: State of "deprecated" handling.
27477 (start_decl): Set deprecated_state based on attributes.
27478 (grokdeclarator): Test for deprecated uses, propagate attribute.
27479 * c-typeck.c (build_component_ref): Test for deprecated fields.
27480 (build_external_ref): Test for deprecated primaries.
27481 * diagnostic.c (warn_deprecated_use) New function to issue
27482 warnings about __attribute__ ((depricated)) references.
27483 * flags.h (warn_deprecated_decl): Extern declared for
27484 -W[no-]deprecated-declarations option.
27485 * print-tree.c (print_node): Show deprecated flag status.
27486 * toplev.c (warn_deprecated_decl): Defined.
27487 (W_options): Added "deprecated-declaration".
27488 * toplev.h (warn_deprecated_use): Extern declared.
27489 * tree.h (struct tree_common): Define deprecated_flag.
27490 (TREE_DEPRECATED): New macro to access flag.
27491 * cp/call.c (build_call): Test for deprecated calls.
27492 * cp/class.c (add_implicitly_declared_members): Set global
27493 flag to tell grokdeclarator to not issue deprecated warnings.
27494 * cp/cp-tree.h: Add extern for adding_implicit_members.
27495 * cp/decl.c (deprecated_states): New enum.
27496 (start_decl): Set deprecated_state based on attributes.
27497 (grokdeclarator): Test for deprecated uses, propagate attribute.
27498 * cp/lex.c (do_identifier): Test for deprecated primaries.
27499 * cp/typeck.c (build_component_ref): Test for deprecated fields.
27501 2002-01-10 Ira Ruben <ira@apple.com>
27503 Fix to assign attributes to inline member functions.
27504 * cp/decl.c (start_method): Handle attrlist.
27506 2002-01-10 Kazu Hirata <kazu@hxi.com>
27508 * combine.c (expand_field_assignment): Use subreg_lsb().
27510 2002-01-10 David Edelsohn <edelsohn@gnu.org>
27512 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
27513 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
27514 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
27515 Recurse for any operand of AND as long as constant is non-zero.
27517 2002-01-10 Kazu Hirata <kazu@hxi.com>
27519 * config/h8300/h8300.md: Remove constraints from expanders.
27521 2002-01-10 Kazu Hirata <kazu@hxi.com>
27523 * varasm.c: Fix formatting.
27524 * varray.c: Likewise.
27525 * vmsdbgout.c: Likewise.
27526 * xcoffout.c: Likewise.
27528 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
27530 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
27531 update edge probabilities to match.
27533 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
27535 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
27537 * doc/languages.texi, doc/sourcebuild.texi: New files.
27538 * doc/configfiles.texi: Make a subsubsection. Update.
27539 * doc/configterms.texi: Add @node. Remove warning that this isn't
27540 instructions for building GCC.
27541 * doc/makefile.texi: Make a subsection.
27542 * doc/gccint.texi: Update.
27544 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
27546 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
27548 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
27550 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
27552 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
27554 * optabs.c (expand_fix): Look for wider integer modes first.
27556 * i386.md (mov?f): Avoid the fake const double trick for medium
27558 (min?f*/max?f*): Prohibit memory operands for i387 variant.
27559 (fop_df_4): Disable for SSE compilation.
27561 2002-01-10 Graham Stott <grahams@redhat.com>
27563 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
27564 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
27566 2002-01-10 Richard Henderson <rth@redhat.com>
27568 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
27570 2002-01-10 Richard Henderson <rth@redhat.com>
27572 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
27573 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
27575 2002-01-10 Kazu Hirata <kazu@hxi.com>
27577 * combine.c (can_combine_p): Fix a comment typo.
27579 2002-01-09 Zack Weinberg <zack@codesourcery.com>
27581 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
27582 empty list correctly. Change loop index $t to $f for
27583 consistency with rest of Makefile.
27585 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
27587 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
27588 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27590 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
27591 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
27592 (altivec_init_builtins): Same.
27593 (altivec_expand_unop_builtin): Return NULL_RTX on error.
27594 (altivec_expand_binop_builtin): Same.
27595 (altivec_expand_ternop_builtin): Same.
27598 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
27599 ("altivec_vctuxs"): Fix typo.
27600 ("altivec_vnmsubfp"): Same.
27601 ("altivec_dssall"): New.
27602 ("altivec_mfvscr"): New.
27603 ("altivec_dss"): New.
27604 ("altivec_lvsl"): New.
27605 ("altivec_lvsr"): New.
27606 ("altivec_dstt"): New.
27607 ("altivec_dstst"): New.
27608 ("altivec_dststt"): New.
27609 ("altivec_dst"): New.
27611 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
27612 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
27614 2002-01-09 Richard Henderson <rth@redhat.com>
27616 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
27618 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
27620 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
27622 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
27624 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
27626 2002-01-09 Kazu Hirata <kazu@hxi.com>
27628 * read-rtl.c: Fix formatting.
27629 * real.c: Likewise.
27630 * regclass.c: Likewise.
27631 * regrename.c: Likewise.
27632 * reg-stack.c: Likewise.
27633 * reload1.c: Likewise.
27634 * reload.c: Likewise.
27637 2002-01-09 Kazu Hirata <kazu@hxi.com>
27639 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
27640 to extract items in the expr_list chain.
27642 2002-01-09 Richard Henderson <rth@redhat.com>
27644 * config/vax/vax.c (vax_rtx_cost): Never abort.
27646 * config/vax/vax.h (REAL_ARITHMETIC): Define.
27648 2002-01-09 Jan Hubicka <jh@suse.cz>
27650 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
27652 2002-01-09 Richard Henderson <rth@redhat.com>
27654 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
27655 Unify code from various alternatives.
27657 2002-01-09 Richard Henderson <rth@redhat.com>
27659 * regrename.c (copy_value): Ignore the copy if the source register
27660 is present in the value chain with a narrower mode.
27662 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27664 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
27665 for the c4x target. Also improve layout.
27667 2002-01-09 Richard Henderson <rth@redhat.com>
27669 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
27670 * config/m32r/m32r.md (and ior xor splitters): Swap operands
27671 to match insn patterns.
27673 2002-01-09 Richard Henderson <rth@redhat.com>
27675 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
27676 (copyprop_hardreg_forward_1): Likewise.
27678 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
27680 * pa.md (decrement_and_branch_until_zero): Change predicate for
27681 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
27683 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
27685 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
27686 gets undefined. For Darwin.
27688 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
27690 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
27692 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
27694 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
27696 2002-01-08 Richard Henderson <rth@redhat.com>
27698 * regrename.c (copy_value): Ignore overlapping copies.
27700 2002-01-08 Richard Henderson <rth@redhat.com>
27702 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
27703 as needed to avoid shared structure.
27705 2002-01-08 Kazu Hirata <kazu@hxi.com>
27707 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
27710 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
27712 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
27713 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
27714 documentation of obsolete macros.
27715 * system.h: Poison these macros.
27716 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
27717 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
27718 config/c4x/c4x.h, config/clipper/clipper.h,
27719 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
27720 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
27721 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
27722 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
27723 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
27724 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
27725 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
27726 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
27727 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
27728 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
27729 config/sparc/sparc.h, config/stormy16/stormy16.h,
27730 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
27731 definitions and commented out definitions of obsolete macros.
27732 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
27733 of MAX_INT_TYPE_SIZE.
27735 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
27737 * config/s390/s390.c (s390_preferred_reload_class): Never
27738 return ADDR_REGS if it isn't a subset of the given class.
27739 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
27740 FP_REGS, but all superclasses as well.
27742 * config/s390/s390.c (s390_function_profiler): Fix thinko.
27744 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
27745 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
27746 must not be a const_int.
27748 2002-01-08 Richard Henderson <rth@redhat.com>
27750 * Makefile.in (toplev.o): Depend on options.h.
27751 (gcc.o): Depend on specs.h.
27753 2002-01-08 Jakub Jelinek <jakub@redhat.com>
27755 * expr.c (store_expr): Convert VOIDmode constants back to target's
27758 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27760 * doc/invoke.texi: Markup gcc as @command. Refer to
27761 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
27762 of http://gcc.gnu.org/thanks.html.
27764 2002-01-08 Dale Johannesen <dalej@apple.com>
27766 * config/rs6000/rs6000.md: Add missing int register
27767 target case to movdf_low.
27769 2002-01-08 Zack Weinberg <zack@codesourcery.com>
27771 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
27772 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
27773 (cppinit.o): Depend on except.h.
27774 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
27775 s-specs): New rules.
27777 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
27778 Don't create specs.h/options.h/gencheck.h here. Remove
27779 unnecessary variable settings from last argument of AC_OUTPUT.
27780 * config.in, configure: Regenerate.
27781 * intl.c: Hardcode package name as "gcc".
27783 * cppinit.c: Include except.h.
27784 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
27786 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
27787 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
27788 (!)USING_SJLJ_EXCEPTIONS.
27789 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
27791 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
27793 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
27794 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
27795 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
27796 documentation of obsolete macros.
27797 * system.h: Poison these macros.
27798 * config/d30v/d30v.h, config/ns32k/encore.h,
27799 config/stormy16/stormy16.h: Remove definitions and commented out
27800 definitions of obsolete macros.
27802 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
27804 * objc/objc-act.c (handle_class_ref): Mark the declaration of
27805 %sobjc_class_ref_%s as used - to prevent unwanted compiler
27808 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
27810 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
27811 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
27812 to insn adjusting stack/frame pointer.
27813 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
27814 accept operands that cause the insn to be non-splittable.
27816 2002-01-08 Graham Stott <grahams@redhat.com>
27818 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
27819 (C_TYPE_FIELDS_VOLATILE): Likewise.
27820 (C_TYPE_BEING_DEFINED): Likewise.
27821 (C_IS_RESERVED_WORD): Likewise.
27822 (C_TYPE_VARIABLE_SIZE): Likewise.
27823 (C_DECL_VARIABLE_SIZE): Likewise.
27824 (C_MISSING_PROTOTYPE_WARNED): Likewise.
27825 (C_SET_EXP_ORIGINAL_CODE): Likewise.
27826 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
27828 (C_DECL_ANTICIPATED): Likewise.
27829 (c_build_type_variant): Add parenthesis.
27831 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
27833 * gcc.c (option_map): Remove --version.
27834 (process_command): Handle -fversion following the GNU Coding
27835 Standards. Partially addresses PR other/704.
27837 2002-01-08 Graham Stott <grahams@redhat.com>
27839 * combine.c (combine_instructions): Fix typo.
27841 2002-01-08 Graham Stott <grahams@redhat.com>
27843 * debug.h: Use "tree" and "rtx" throughout.
27845 * debug.c: Likewise.
27847 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
27849 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
27850 constant pool, use the pool's version of the symbol instead.
27852 2002-01-07 Richard Henderson <rth@redhat.com>
27854 * regrename.c (find_oldest_value_reg): Ignore the value chain if
27855 the original register was copied in a mode with a fewer number of
27856 hard registers than the desired mode.
27857 (copyprop_hardreg_forward_1): Likewise.
27858 (debug_value_data): Fix loop test.
27859 * toplev.c (parse_options_and_default_flags): Reenable
27860 -fcprop-registers at -O1.
27862 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
27864 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
27865 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
27867 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
27870 * config/rs6000/rs6000.md: Add altivec predicate patterns.
27872 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
27874 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
27875 (pa_output_function_prologue): Output local label at the beginning of
27876 the prologue when profiling.
27877 (hppa_profile_hook): Use the local label rather than the function label.
27878 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
27880 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
27882 * config/rs6000/rs6000.c (print_operand): Remove extra space.
27883 (altivec_expand_unop_builtin): Fix thinko.
27884 (altivec_expand_binop_builtin): Same.
27885 (altivec_expand_ternop_builtin): Same.
27886 (altivec_expand_builtin): Same.
27888 2002-01-07 Richard Henderson <rth@redhat.com>
27890 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
27892 2002-01-07 Jason Merrill <jason@redhat.com>
27894 * unwind-dw2.c (execute_cfa_program): Use < again.
27896 2002-01-07 Jakub Jelinek <jakub@redhat.com>
27898 * predict.c (combine_predictions_for_insn): Avoid division by zero.
27900 2002-01-07 Jakub Jelinek <jakub@redhat.com>
27902 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
27903 Don't allow -1 - x -> ~x simplifications in the first pass.
27905 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
27907 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
27909 (altivec_expand_binop_builtin): Same.
27910 (altivec_expand_unop_builtin): Same.
27911 (print_operand): Fix typo.
27912 (bdesc_1arg): Add vupk* variants.
27914 * rs6000.h (rs6000_builtins): Add vupk* enums.
27916 * rs6000.md: Add altivec_vupk* variants.
27918 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
27920 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
27921 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
27922 and last update dates.
27924 2002-01-07 Janis Johnson <janis187@us.ibm.com>
27926 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
27928 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
27930 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
27931 * config/avr/avr.h (CPP_SPEC): Likewise.
27932 (LINK_SPEC): Likewise.
27933 (CRT_BINUTILS_SPECS): Likewise.
27934 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
27935 * doc/invoke.texi (AVR Options): Document them.
27937 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
27939 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
27942 2002-01-07 Graham Stott <grahams@redhat.com>
27944 * config/i386/i386.h: Update copyright date.
27945 (HALF_PIC_PTR): Add parenthesis.
27946 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
27947 (CONSTANT_ALIGNMENT): Add parenthesis.
27948 (DATA_ALIGNMENT): Likewise.
27949 (LOCAL_ALIGNMENT): Likewise.
27950 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
27951 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
27952 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
27953 (HARD_REGNO_NREGS): Add paranethesis.
27954 (VALID_SSE_REG_MODE): Whitespace.
27955 (VALID_MMX_REG_MODE): Whitespace.
27956 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
27957 (ix86_hard_regno_mode_ok): Add parenthesis.
27958 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
27959 (RETURN_IN_MEMORY): Whitespace.
27960 (N_REG_CLASSES): Add parenthesis.
27961 (INTEGER_CLASS_P): Add parenthesis and wrap.
27962 (FLOAT_CLASS_P): Likewise.
27963 (SSE_CLASS_P): Likewise.
27964 (MMX_CLASS_P): Likewise.
27965 (MAYBE_INTEGER_CLASS_P): Likewise.
27966 (MAYBE_FLOAT_CLASS_P): Likewise.
27967 (MAYBE_SSE_CLASS_P): Likewise.
27968 (MAYBE_MMX_CLASS_P): Likewise.
27969 (Q_CLASS_P): Likewise.
27970 (GENERAL_REGNO_P): Uppercase macro parameter.
27971 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
27972 (FP_REGNO_P): Likewise.
27973 (ANY_FP_REGNO_P): Uppercase macro parameter.
27974 (SSE_REGNO_P): Likewise.
27975 (SSE_REGNO): Likewise.
27976 (SSE_REG_P): Likewise.
27977 (SSE_FLOAT_MODE_P): Likewise.
27978 (MMX_REGNO_P): Likewise.
27979 (MMX_REG_P):Likewise.
27980 (STACK_REG_P): Likewise.
27981 (NON_STACK_REG_P): Likewise.
27982 (STACK_TOP_P): Likewise.
27983 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
27984 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
27985 (SECONDARY_MEMORY_NEEDED): Likewise.
27986 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
27987 (MD_ASM_CLOBBERS): Whitespace and wrap.
27988 (MUST_PASS_IN_STACK): Whitespace and wrap.
27989 (RETURN_POPS_ARGS): Add parenthesis.
27990 (INIT_CUMULATIVE_ARGS): Likewise.
27991 (FUNCTION_ARG): Likewise.
27992 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
27993 (SETUP_INCOMING_VARARGS): Likewise.
27994 (BUILD_VA_LIST_TYPE): Add parenthesis.
27995 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
27997 (EXPAND_BUILTIN_VA_ARG): Likewise.
27998 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
27999 (INITIALIZE_TRAMPOLINE): Add parenthesis.
28000 (INITIAL_ELIMINATION_OFFSET): Likewise.
28001 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
28002 (REGNO_OK_FOR_BASE_P): Likewise.
28003 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
28004 (REGNO_OK_FOR_DIREG_P): Likewise.
28005 (REG_OK_FOR_INDEX_P): Whitespace.
28006 (REG_OK_FOR_BASE_P): Whitespace.
28007 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
28009 (FIND_BASE_TERM): Fix typo.
28010 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
28011 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
28012 (SYMBOLIC_CONST; Whitespace.
28013 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
28014 (ENCODE_SECTION_INFO): Whitespace.
28015 (FINALIZE_PIC): Remove do { ... } while (0).
28016 (PROMOTE_MODE): Wrap in do { ... } while (0).
28017 (CONST_COSTS): Whitespace.
28018 (RTX_COSTS): Add paramethesis, whitespace and wrap.
28019 (REGISTER_MOVE_COST): Add parenthesis.
28020 (MEMORY_MOVE_COST): Likewise.
28021 (EXTRA_CC_MODES): Whitespace.
28022 (SELECT_CC_MODE): Add parenthesis and whitespace.
28023 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
28024 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
28025 (ASM_OUTPUT_LABEL): Add paramethesis.
28026 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
28027 (ASM_OUTPUT_REG_POP): Likewise.
28028 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
28029 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
28031 * config/i386/i386.c: Update copyright.
28032 (CHECK_STACK_LIMIT): Add parenthesis.
28033 (AT_BP): Uppercase macro parameter.
28034 (x86_64_int_parameter_registers): Constify.
28035 (x86_64_int_return_registers): Likewise.
28036 (ix86_compare_op0): Use rtx.
28037 (construct_container): Constify INTREG parameter.
28038 (function_arg): Use rtx.
28040 * diagnostic.h: Update copyright date.
28041 (output_buffer_state): Add parenthesis.
28042 (output_buffer_format_args): Likewise.
28044 * combine.c (combine_instructions): Replace XEXP (links, 0)
28047 2002-01-06 H.J. Lu <hjl@gnu.org>
28049 * cfgcleanup.c (thread_jump): Fix 2 typos.
28051 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
28053 * config.gcc: Add support for --enable-altivec.
28055 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
28057 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
28059 2002-01-06 Jakub Jelinek <jakub@redhat.com>
28061 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
28062 __objc_class_name_*.
28064 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
28066 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
28068 2002-01-06 Richard Henderson <rth@redhat.com>
28070 * reorg.c (emit_delay_sequence): Remove death notes, not merely
28071 nop them out. Increment label reference count for REG_LABEL.
28072 (fill_slots_from_thread): Frob label reference count around
28073 delete_related_insns.
28075 2002-01-05 Richard Henderson <rth@redhat.com>
28077 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
28080 2002-01-05 Richard Henderson <rth@redhat.com>
28082 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
28083 * integrate.c (output_inline_function): Likewise.
28084 * toplev.c (rest_of_compilation): Do it here instead. Move call
28085 to remove_unnecessary_notes after emitting abstract instance.
28086 Force an emitted nested function to have its parent emited as well.
28087 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
28089 (rtl_for_decl_location): Do not look at reload data structures
28090 before reload has run.
28092 2002-01-05 Kazu Hirata <kazu@hxi.com>
28094 * cse.c: Fix formatting.
28095 * dwarf2asm.c: Likewise.
28096 * dwarf2out.c: Likewise.
28097 * explow.c: Likewise.
28098 * expmed.c: Likewise.
28099 * function.c: Likewise.
28100 * gcov.c: Likewise.
28101 * gencheck.c: Likewise.
28102 * genrecog.c: Likewise.
28103 * ggc-common.c: Likewise.
28104 * ggc-page.c: Likewise.
28105 * global.c: Likewise.
28107 2002-01-05 Kazu Hirata <kazu@hxi.com>
28109 * combine.c: Fix formatting.
28111 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
28114 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
28116 2002-01-05 David Edelsohn <edelsohn@gnu.org>
28118 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
28119 as 1 for __powerpc64__ as well.
28121 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
28123 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
28126 2002-01-05 Daniel Berlin <dan@dberlin.org>
28128 * lcm.c: Revert change, due to performance regression it causes on
28129 SPEC because it's slightly more conservative (sigh, I hate
28132 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
28134 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
28136 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
28138 * doc/cppinternals.texi: Update.
28140 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
28142 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
28143 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
28145 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
28146 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
28147 kludge for pre-october-14th mmix versions to handle new-found bug
28148 with PUSHJ/PUSHGO and the register stack.
28149 * config/mmix/mmix.h (struct machine_function): Rename member
28150 has_call_value_without_parameters to has_call_without_parameters.
28151 All referers changed.
28152 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
28153 TARGET_MASK_BRANCH_PREDICT): New macros.
28154 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
28155 -mno-reg-stack-fill-bug-workaround.
28156 * config/mmix/mmix.md ("call"): Set struct machine member
28157 has_call_without_parameters.
28159 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
28161 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
28163 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
28165 * cfgcleanup.c: Include tm_p.h
28166 (mark_effect): Fix handling of hard register; fix handling of SET
28168 2002-01-04 Kazu Hirata <kazu@hxi.com>
28170 * config/h8300/h8300.md (anonymous patterns): Check that
28171 operands are registers before using REGNO on them.
28173 2002-01-03 Roland McGrath <roland@frob.com>
28175 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
28177 2002-01-04 Jakub Jelinek <jakub@redhat.com>
28179 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
28180 * c-common.h (genrtl_expr_stmt_value): Likewise.
28181 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
28182 (expand_expr_stmt_value): Add maybe_last argument.
28183 Don't warn about statement with no effect if it is the last statement
28184 in expression statement.
28185 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
28186 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
28187 expand_expr_stmt_value.
28188 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
28189 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
28190 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
28191 as maybe_last to expand_expr_stmt_value.
28193 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
28195 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
28196 be passed in, do not build it.
28197 (c_begin_if_stmt): New function.
28198 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
28199 * c-common.h (c_expand_start_cond): Update prototype.
28200 (c_begin_if_stmt): Prototype new function.
28201 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
28202 * c-parse.in (if_prefix): Use c_begin_if_stmt,
28203 c_begin_while_stmt and c_finish_while_stmt_cond.
28205 2002-01-04 William Cohen <wcohen@redhat.com>
28207 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
28208 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28209 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28210 * config/pa/som.h (ASM_FILE_START): Likewise.
28212 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
28214 * lcm.c: Include df.h.
28215 Add available_transfer_function prototype.
28216 (compute_available): Rework to use iterative dataflow framework.
28217 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
28218 with bb_info in df.h
28219 (available_transfer_function): New function.
28221 * Makefile.in (lcm.o): add df.h to dependencies.
28223 2002-01-04 Richard Henderson <rth@redhat.com>
28225 * config/alpha/alpha.c (some_operand): Accept HIGH.
28226 (input_operand): Likewise; accept simple references to globals.
28227 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
28228 (alpha_const_double_ok_for_letter_p): Likewise.
28229 (alpha_extra_constraint): Likewise.
28230 (alpha_preferred_reload_class): Likewise. Do not force
28231 symbolic constants to memory.
28232 (alpha_legitimate_address_p): Accept simple references
28233 to small_symbolic_operand.
28234 (alpha_legitimize_address): New arg scratch. Be prepared to be
28235 called when no_new_pseudos. Emit simple symbolic references.
28236 Split integers into low, high, and rest.
28237 (alpha_expand_mov): Use alpha_legitimize_address.
28238 (some_small_symbolic_mem_operand): New.
28239 (split_small_symbolic_mem_operand): New.
28240 * config/alpha/alpha-protos.h: Update.
28241 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
28242 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
28243 (EXTRA_CONSTRAINT): Likewise.
28244 (PREFERRED_RELOAD_CLASS): Likewise.
28245 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
28246 (PREDICATE_CODES): Update.
28247 * config/alpha/alpha.md: New post-reload splitters to convert
28248 simplfied symbolic operands to the form that references $29.
28249 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
28250 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
28252 2002-01-03 Richard Henderson <rth@redhat.com>
28254 * local-alloc.c (function_invariant_p): Update commentary.
28256 2002-01-04 H.J. Lu <hjl@gnu.org>
28258 * toplev.c (rest_of_compilation): Fix a typo when calling
28261 2002-01-03 Kazu Hirata <kazu@hxi.com>
28263 * c-common.c: Fix formatting.
28264 * diagnostic.c: Likewise.
28265 * doloop.c: Likewise.
28266 * dwarf2out.c: Likewise.
28268 2002-01-03 Kazu Hirata <kazu@hxi.com>
28270 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
28271 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
28273 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
28275 * cpperror.c: Update comments and copyright.
28276 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
28277 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
28279 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
28281 * collect2.c (main): Use strcmp when testing for "-shared".
28283 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
28285 * cppmacro.c: Don't include intl.h. Update comments.
28286 (new_number_token): Allocate enough buffer for 64-bit unsigned
28287 integers; update prototype.
28288 * cppmain.c: Update comments.
28290 2002-01-03 William Cohen <wcohen@redhat.com>
28292 * function.h (struct function): Add profile.
28293 (current_function_profile): New.
28294 doc/extend.texi: Update documentation.
28295 * final.c (final_start_function): Use current_function_profile
28296 instead of profile_flag.
28297 (profile_after_prologue): Likewise.
28298 * function.c (expand_function_start): Likewise.
28299 (expand_function_start): Likewise.
28300 * config/alpha/alpha.c (direct_call_operand):
28301 (alpha_does_function_need_gp): Likewise.
28302 (alpha_expand_prologue): Likewise.
28303 * config/arm/arm.c (arm_expand_prologue): Likewise.
28304 thumb_expand_prologue: Likewise.
28305 * config/d30v/d30v.c (d30v_stack_info): Likewise.
28306 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
28307 (fr30_expand_prologue): Likewise.
28308 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
28309 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
28310 * config/i386/i386.h (FINALIZE_PIC): Likewise.
28311 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
28312 * config/i960/i960.c (i960_output_function_prologue): Likewise.
28313 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
28314 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
28315 (m32r_expand_prologue): Likewise.
28316 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
28317 (m88k_expand_prologue): Likewise.
28318 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
28319 * config/mips/mips.c (compute_frame_size): Likewise.
28320 (mips_expand_prologue): Likewise.
28321 (mips_can_use_return_insn): Likewise.
28322 * config/pa/elf.h (ASM_FILE_START): Likewise.
28323 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
28324 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
28325 * config/pa/som.h (ASM_FILE_START): Likewise.
28326 * config/romp/romp.c (romp_using_r14): Likewise.
28327 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
28328 (rs6000_stack_info): Likewise.
28329 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
28330 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
28331 * config/v850/v850.c (compute_register_save_size): Likewise.
28333 2002-01-03 Jakub Jelinek <jakub@redhat.com>
28335 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
28336 gen_lowpart_common fails, use gen_lowpart_SUBREG.
28338 2002-01-03 Turly O'Connor <turly@apple.com>
28340 * darwin.c (machopic_output_possible_stub_label): Don't generate
28341 stub routines for pseudo-stubs which we've just defined.
28343 2002-01-03 Kazu Hirata <kazu@hxi.com>
28345 * builtins.c: Fix formatting.
28346 * c-typeck.c: Likewise.
28347 * combine.c: Likewise.
28348 * expr.c: Likewise.
28349 * loop.c: Likewise.
28351 2002-01-03 Andreas Schwab <schwab@suse.de>
28353 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
28354 and return true if _cpp_push_next_buffer pushed a new include
28356 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
28357 _cpp_pop_file_buffer did not push a new file.
28358 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
28360 2002-01-02 Eric Christopher <echristo@redhat.com>
28362 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
28363 FIND_REG_INC_NOTE call. Update copyright.
28364 * loop.c (canonicalize_condition): Ditto.
28365 * reorg.c (delete_scheduled_jump): Ditto.
28367 2002-01-03 Kazu Hirata <kazu@hxi.com>
28369 * gcse.c: Fix formatting.
28371 2002-01-03 Graham Stott <grahams@redhat.com>
28373 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
28374 forward defs for struct tags rtx_def, union_tree, rtvec_def
28375 also output corresponding typedefs for rtx, tree, and rtvec.
28377 * system.h: Move forward defs for struct tags rtx_def, union_tree,
28378 rtvec_def along with corresponding typedefs for rtx, tree, and
28379 rtvec to config.h, hconfig.h, tconfig.h.
28381 2002-01-03 Graham Stott <grahams@redhat.com>
28383 * tree.h: Update copyright date.
28384 (IS_EXPR_CODE_CLASS): Add parenthesis.
28385 (TREE_SET_CODE): Add whitespace.
28386 (TREE_CHECK): Add parenthesis.
28387 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
28388 (CST_OR_CONSTRUCTOR_CHECK):
28389 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
28390 (TREE_SYMBOL_REFERENCED): Whitespace.
28391 (INT_CST_LT): Likewise.
28392 (INT_CST_LT_UNSIGNED): Likewise.
28393 (tree_real_cst): Unwrap comment.
28394 (tree_string): Likewise.
28395 (tree_complex): Likewise.
28396 (IDENTIFIER_POINTER): correct cast.
28397 (SAVE_EXPR_CONTEXT): Whitespace.
28398 (EXPR_WFL_FILENAME_NODE): Likewise.
28399 (EXPR_WFL_FILENAME): Remove parenthesis.
28400 (DECL_ORIGIN): Add parenthesis.
28401 (DECL_FROM_INLINE): Use NULL_TREE.
28402 (build_int_2): Whitespace.
28403 (build_type_variant): Add parenthesis.
28405 * gcc/jcf-parse.c: Update copyright date.
28406 (yyparse): Constify resource_filename.
28408 2002-01-03 Graham Stott <grahams@redhat.com>
28410 * rtl.h: Update copyright date.
28411 (RTL_CHECK1): Wrap long line.
28412 (RTL_CHECK2): Likewise.
28413 (RTL_CHECKC1): Wrap long line and whitespace.
28414 (RTL_CHECKC2): Likewise.
28415 (XWINT): Whitespace.
28421 (XBITMAP): Likewise.
28423 (XBBDEF): Likewise.
28425 (X0WINT): Likewise.
28427 (X0UINT): Likewise.
28431 (X0MODE): Likewise.
28432 (X0BITMAP): Likewise.
28433 (X0TREE): Likewise.
28434 (X0BBDEF): Likewise.
28435 (X0ADVFLAGS): Likewise.
28436 (X0CSELIB): Likewise.
28437 (X0MEMATTR): Likewise.
28438 (XCWINT): Likewise.
28440 (XCUINT): Likewise.
28444 (XCMODE): Likewise.
28445 (XCBITMAP): Likewise.
28446 (XCTREE): Likewise.
28447 (XCBBDEF): Likewise.
28448 (XCADVFLAGS): Likewise.
28449 (XCCSELIB): Likewise.
28450 (XC2EXP): Likewise.
28451 (INSN_UID): Likewise.
28452 (PREV_INSN): Likewise.
28453 (PATTERN): Likewise.
28454 (INSN_CODE): Likewise.
28455 (PUT_REG_NOTE_KIND): Likewise.
28456 (CODE_LABEL_NUMBER): Likewise.
28457 (NOTE_SOURCE_FILE): Likewise.
28458 (NOTE_BLOCK): Likewise.
28459 (NOTE_EH_HANDLER): Likewise.
28460 (NOTE_RANGE_INFO): Likewise.
28461 (NOTE_LIVE_INFO): Likewise.
28462 (NOTE_BASIC_BLOCK): Likewise.
28463 (NOTE_EXPECTED_VALUE): Likewise.
28464 (NOTE_LINE_NUMBER): Likewise.
28465 (LABEL_NAME): Likewise.
28466 (LABEL_NUSES): Likewise.
28467 (LABEL_ALTERNATE_NAME): Likewise.
28468 (ADDRESSOF_DECL): Likewise.
28469 (JUMP_LABEL): Likewise.
28470 (LABEL_NEXTREF): Likewise.
28472 (ORIGINAL_REGNO: Likewise.
28473 (HARD_REGISTER_NUM_P): Add parenthesis.
28474 (SUBREG_REG): Whitespace.
28475 (SUBREG_BYTE): Likewise.
28476 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
28477 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
28478 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
28479 (ASM_OPERANDS_INPUT_VEC): Likewise.
28480 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
28481 (ASM_OPERANDS_INPUT): Likewise.
28482 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
28483 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
28484 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
28485 (ASM_OPERANDS_INPUT_MODE): Likewise.
28486 (ASM_OPERANDS_SOURCE_FILE): Likewise.
28487 (ASM_OPERANDS_SOURCE_LINE): Likewise.
28488 (MEM_SET_IN_STRUCT_P): Minor reformat.
28489 (TRAP_CONDITION): Whitespace.
28490 (TRAP_CODE): Likewise.
28491 (COND_EXEC_TEST): Likewise.
28492 (COND_EXEC_CODE): Likewise.
28493 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
28494 (PHI_NODE_P): Add parenthesis.
28495 (plus_constant): Whitespace and add parenthesis.
28497 2002-01-03 Kazu Hirata <kazu@hxi.com>
28499 * config/avr/avr.c: Fix comment typos.
28500 * config/c4x/c4x.md: Likewise.
28501 * config/dsp16xx/dsp16xx.h: Likewise.
28502 * config/dsp16xx/dsp16xx.md: Likewise.
28503 * config/i386/i386.md: Likewise.
28504 * config/ia64/ia64.c: Likewise.
28505 * config/m32r/m32r.h: Likewise.
28506 * config/m68hc11/m68hc11.md: Likewise.
28507 * config/mmix/mmix.c: Likewise.
28508 * config/mn10200/mn10200.c: Likewise.
28509 * config/romp/romp.c: Likewise.
28510 * config/sh/sh.c: Likewise.
28511 * config/stormy16/stormy16.c: Likewise.
28512 * config/stormy16/stormy16.h: Likewise.
28513 * config/stormy16/stormy16.md: Likewise.
28515 2002-01-03 Graham Stott <grahams@redhat.com>
28517 * loop.h: Update copyright date.
28518 (LOOP_MOVABLES): Fix typo.
28519 (LOOP_REGS): Likewise.
28520 (LOOP_IVS): Likewise.
28522 2002-01-03 Graham Stott <grahams@redhat.com>
28524 * cppinit.c: Update copyright date.
28525 Don't include output.h
28526 * Makefile.in: Update copyright date.
28529 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
28532 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
28533 (-pthread) Add to RS/6000 options.
28535 2002-01-02 Kazu Hirata <kazu@hxi.com>
28537 * except.c: Fix comment typos.
28538 * loop.c: Likewise.
28539 * varasm.c: Likewise.
28540 * doc/tm.texi: Fix a typo.
28542 2002-01-02 Jakub Jelinek <jakub@redhat.com>
28544 * c-typeck.c (output_init_element): Allow initializing static storage
28545 duration objects with compound literals.
28547 2002-01-02 Richard Henderson <rth@redhat.com>
28549 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
28552 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28554 * gcc.c (default_compilers): Const-ify.
28555 * mips-tdump.c (stab_names): Likewise.
28556 * mips-tfile.c (map_coff_types, map_coff_storage,
28557 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
28558 pseudo_ops_t, pseudo_ops): Likewise.
28559 * protoize.c (default_include): Likewise
28561 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
28562 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
28563 Add array size in declaration.
28564 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
28565 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
28566 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
28567 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
28568 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
28569 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
28570 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
28571 emtens, make_nan): Const-ify.
28572 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
28573 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
28575 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
28577 * config.gcc (ia64-*-*): Set extra_headers.
28578 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
28579 * config/alpha/t-osf: Remove.
28580 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
28582 2002-01-02 David Edelsohn <edelsohn@gnu.org>
28584 * config/rs6000/t-aix43: Revert previous change.
28586 2002-01-02 Jason Merrill <jason@redhat.com>
28588 * c-decl.c (c_expand_body): Call outlining_inline_function when
28589 emitting an inline function out of line.
28591 2002-01-02 Richard Henderson <rth@redhat.com>
28593 * dwarf2out.c (limbo_die_node): Add created_for member.
28594 (new_die): New argument created_for. Update all callers.
28595 (mark_limbo_die_list): New.
28596 (dwarf2out_init): Register limbo_die_list as a root.
28597 (dwarf2out_finish): Force insert limbo dies into their function
28600 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
28603 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
28605 2002-01-02 Kazu Hirata <kazu@hxi.com>
28607 * config/h8300/fixunssfsi.c: Update copyright.
28610 * config/h8300/h8300.c: Update copyright.
28611 Eliminate warnings.
28613 2002-01-02 Kazu Hirata <kazu@hxi.com>
28615 * config/romp/romp.c: Fix comment formatting.
28616 * config/romp/romp.h: Likewise.
28617 * config/romp/romp.md: Likewise.
28618 * config/s390/s390.c: Likewise.
28619 * config/stormy16/stormy16.c: Likewise.
28620 * config/stormy16/stormy16.h: Likewise.
28622 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
28624 * c-common.h (genrtl_expr_stmt_value): Declare.
28625 * c-semantics.c (genrtl_goto_stmt): Redirect to...
28626 (genrtl_goto_stmt_value): ... this new function. Pass new
28627 argument down to expand_expr_stmt_value, taking
28628 TREE_ADDRESSABLE into account.
28629 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
28630 STMT_EXPR as addressable, i.e., one whose result we want.
28631 * expr.c (expand_expr): Don't save expression statement value
28632 of labeled_blocks or loop_exprs.
28633 * stmt.c (expand_expr_stmt): Redirect to...
28634 (expand_expr_stmt_value): ... this new function. Use new
28635 argument to tell whether to save expression value.
28636 (expand_end_stmt_expr): Reset last_expr_type and
28637 last_expr_value if we don't have either.
28638 * tree-inline.c (declare_return_variable): Mark its use
28639 statement as addressable.
28640 * tree.h: Document new use of TREE_ADDRESSABLE.
28641 (expand_expr_stmt_value): Declare.
28643 2002-01-01 Tom Rix <trix@redhat.com>
28645 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
28646 rs6000_emit_allocate_stack.
28648 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
28650 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
28651 ${srcdir}/ginclude/ to every entry in extra_headers.
28652 * configure: Regenerate.
28653 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
28654 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
28655 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
28656 * ginclude/proto.h: Rename to config/convex/proto.h.
28658 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28660 * attribs.c (handle_vector_size_attribute): Use host_integerp
28661 and tree_int_cst; remove warnings.
28662 * caller-save.c (insert_restore): Add cast to get rid of warning.
28663 (insert_save): Likewise.
28664 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
28665 * regmove.c (find_matches): Add temporary var to kill a warning.
28667 2002-01-01 Douglas B Rupp <rupp@gnat.com>
28669 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
28670 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
28671 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
28672 (vms-dwarf2eh.o): Add Makefile rule.
28673 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
28674 * config/alpha/vms-dwarf2eh.asm: New file.
28676 * gcc.c (delete_if_ordinary): Delete all versions.
28678 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
28680 * config/mmix/mmix.md: Update FIXME to not mention
28682 (MMIX_rJ_REGNUM): New define_constants constant.
28683 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
28684 "*movdicc_real"): Adjust contraints formatting.
28685 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
28686 for branch prediction.
28687 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
28689 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
28690 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
28691 number. Delete related FIXMEs.
28692 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
28693 from number to MMIX_rJ_REGNUM.
28694 (TARGET_MASK_BRANCH_PREDICT): New.
28695 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
28696 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
28697 value. Add -mbranch-predict and -mno-branch-predict.
28698 (TARGET_VERSION): Drop date.
28699 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
28700 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
28701 for finding out global symbols.
28702 (mmix_asm_output_labelref): Revert condition for global symbol.
28703 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
28704 (mmix_print_operand_punct_valid_p): A '+' is valid.
28706 See ChangeLog.6 for earlier changes.