1 2003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
3 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
4 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
5 ASM_FINISH_DECLARE_OBJECT before defining it.
6 * toplev.c (rest_of_decl_compilation): Don't define
7 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
8 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
9 parameters for DWARF2 targets because they _are_ used.
11 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
13 * fp-bit.h: Define macros for TFmode floating-point constants
14 in IBM-extended TFmode types.
15 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
17 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
20 * config/fp-bit.h: Define macros for TFmode floating-point
21 constants in IEEE quad TFmode type. Declare functions according
23 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
24 (TFtype, TItype, UTItype): Define if TMODES is defined.
25 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
26 (F_T_BITOFF, D_T_BITOFF): Define.
27 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
28 guaranteed to be wide enough.
29 * config/fp-bit.c: Check for L_ macros for tf functions.
32 (pack_d, unpack_d): Support IEEE 854 quad type.
33 (_fpmul_parts): Support TFmode. Compute exponent adjustment
34 from FRAC_NBITS, FRAC_BITS and NGARDS.
35 (usi_to_float): Cast constants to be shifted to fractype
36 instead of assuming long long is wide enough.
37 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
39 2003-01-26 Andreas Jaeger <aj@suse.de>
41 * df.c: Remove prototype of unused function df_regno_rtl_debug.
43 2003-01-26 Alexandre Oliva <aoliva@redhat.com>
45 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
46 (DBBIT_FUNCS): Added _df_to_tf.
48 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
49 (LIBGCC_DEPS): Added TPBIT.
50 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
52 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
53 been able to move the result to target.
55 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
56 for the appropriate mode.
58 * calls.c (emit_library_call_value_1): Handle return values
61 * rtl.c (get_mode_alignment): Moved to...
62 * stor-layout.c: ... here.
64 * print-rtl.c (print_rtx): Don't print MEM details in
67 2003-01-26 Michael Hayes <mph@paradise.net.nz>
69 * df.h: Update comments, tidy formatting.
70 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
71 REVERSE, UNION, INTERSECTION. All uses updated.
72 (OLD_DF_INTERFACE): Remove.
73 (struct insn_info): Remove commented out insn field.
74 * df.c: Update comments, tidy formatting.
75 (df_def_table_realloc): Remove.
78 2003-01-26 Alan Modra <amodra@bigpond.net.au>
80 * calls.c (save_fixed_argument_area): Tidy.
81 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
82 (expand_call): Comment typo fixes. Don't init low_to_save. Start
83 call chain loop at 1 if !try_tail_call. Formatting.
84 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
85 Use save_fixed_argument_area and restore_fixed_argument_area.
87 2003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
89 * df.c (df_uses_record): Handle CC0.
91 2003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
93 * reload.c (maybe_memory_address_p): New function.
94 (find_reloads_address): Use it instead of memory_address_p.
96 2003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
98 * final.c (shorten_branches): Align the address of code label
99 when computing initial lengths and addresses.
101 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
103 * config/m68hc11/m68hc11.md: Fix a comment typo.
105 2003-01-25 Andreas Jaeger <aj@suse.de>
107 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
110 2003-01-25 Roger Sayle <roger@eyesopen.com>
112 * gcse.c (bypass_last_basic_block): New global variable.
113 (bypass_block): Use redirect_edge_and_branch_force to redirect
114 fall-through edges. Use bypass_last_basic_block to determine
115 which blocks have valid PRE information.
116 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
118 Sat Jan 25 22:31:59 CET 2003 Jan Hubicka <jh@suse.cz>
120 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
122 Sat Jan 25 21:04:33 CET 2003 Jan Hubicka <jh@suse.cz>
123 Eric Botcazou <ebotcazou@libertysurf.fr>
125 * gcse.c (one_cprop_pass): Delete unreachable blocks.
127 2003-01-25 Richard Henderson <rth@redhat.com>
129 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
130 from ia64_aix_select_rtx_section.
131 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
132 instead of saving and restoring flag_pic.
133 (ia64_rwreloc_unique_section): Similarly.
134 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
135 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
136 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
137 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
139 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
141 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
144 2002-01-25 Richard Henderson <rth@redhat.com>
146 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
148 2002-01-25 Kelley Cook <kelleycook@comcast.net>
150 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
152 2003-01-25 Segher Boessenkool <segher@koffie.nl>
154 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
155 type for bitmaps. Use unsigned long.
156 (nBITMAP_WORD_BITS): New macro.
157 (BITMAP_WORD_BITS): New macro.
158 (rest of file): Use it.
161 2003-01-25 Richard Henderson <rth@redhat.com>
163 2002-02-19 Robert Lipe <robertlipe@usa.net>
164 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
166 2002-01-25 Roger Sayle <roger@eyesopen.com>
168 * builtins.c (purge_builtin_constant_p): Scan insn stream
169 sequentially rather than by basic block.
170 * function.c (purge_addressof): Simplify test with INSN_P.
172 2003-01-25 Kazu Hirata <kazu@cs.umass.edu>
174 * combine.c (simplify_comparison, case AND): Remove a redundant test.
176 2002-01-25 Roger Sayle <roger@eyesopen.com>
178 * function.h (struct function): New field calls_constant_p.
179 (current_function_calls_constant_p): New macro for above.
180 * function.c (prepare_function_start): Initialize calls_eh_return
181 and calls_constant_p.
182 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
183 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
184 when the current_function_calls_constant_p.
185 * integrate.c (expand_inline_function): Set calls_constant_p if
186 the function being inlined has calls_constant_p set.
188 2002-01-25 Roger Sayle <roger@eyesopen.com>
190 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
191 optimizing, even if flag_gcse is true.
192 * toplev.c (rest_of_compilation): purge_builtin_constant_p
193 only needs to be called when "optimize > 0 && flag_gcse".
195 2003-01-25 Roger Sayle <roger@eyesopen.com>
197 * stmt.c (emit_case_bit_tests): New routine to implement suitable
198 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
199 (case_bit_test_cmp): New comparison function for "qsort" to order
200 case_bit_tests by decreasing number of destination nodes.
201 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
202 (expand_end_case_type): Use emit_case_bit_tests to implement
203 suitable switch statments.
204 (CASE_USE_BIT_TESTS): New target macro to disable the above.
205 * Makefile.in (stmt.o): Add dependency on optab.h.
206 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
208 2003-01-23 Andreas Schwab <schwab@suse.de>
210 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
211 __do_global_ctors_aux hidden global and don't put it in
213 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
214 instead so that it comes first.
216 Sat Jan 25 16:11:22 CET 2003 Jan Hubicka <jh@suse.cz>
218 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
219 subreg is read/modify.
221 Sat Jan 25 15:55:08 CET 2003 Jan Hubicka <jh@suse.cz>
223 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
224 do libcall for large blocks.
225 * i386.md (comi patterns): Set type to ssecomi.
226 (sse2_unpck?pd): Fix mode of vec_select.
228 * cse.c: Include except.h
229 (cse_set_around_loop): Do not create new basic blocks.
230 * Makefile.in (cse.o): Add dependnecy on except.h
232 Sat Jan 25 12:05:17 CET 2003 Jan Hubicka <jh@suse.cz>
234 * builtins.c (fold_trunc_transparent_mathfn): New function.
235 (fold_builtin): Use it.
236 * convert.c (convert_to_real): Re-enable code to convert
237 math functions; add support for floor familly functions.
239 2003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
241 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
242 dependencies on coretypes.h and $(TM_H).
244 Sat Jan 25 11:10:03 CET 2003 Jan Hubicka <jh@suse.cz>
246 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
248 2002-01-24 Stuart Hastings <stuart@apple.com>
250 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
252 2003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
254 * config/c4x/c4x.md (UNSPEC_BU): New constants.
255 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
256 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
257 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
258 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
259 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
260 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
261 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
263 Fri Jan 24 23:44:12 CET 2003 Jan Hubicka <jh@suse.cz>
265 * emit-rtl.c (reg_attrs_htab): New static variable.
266 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
268 (reg_rtx): Do not maintain regno_decl.
269 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
270 set_mem_attrs_from_reg): New global function.
271 (init_emit): Do not initialize regno_decl.
272 (init_emit_once): initialize reg_attrs_htab.
273 * final.c (alter_subreg): Do not replace REG by SUBREG.
274 (gen_mem_expr_from_op): Improve output.
275 (output_asm_operands): Likewise.
276 * function.c (assign_params): Do not set REGNO_DECL.
277 * function.h (struct function): Kill regno_decl.
279 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
280 * print_rtl.c (print_rtx): Output REG information.
281 * regclass.c (reg_scan_mark_refs): Update attrs.
282 * reload1.c (alter_reg): Likewise.
283 * simplify_rtx.c (simplify_subreg): Likewise.
284 * stmt.c (expand_decl): Likewise.
285 * rtl.def (REG): Add new field.
286 * rtl.h (struct reg_attrs): New.
287 (rtunion_def): At rtreg.
288 (X0MEMATTR): Add checking.
289 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
290 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
292 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
294 2003-01-24 Bob Wilson <bob.wilson@acm.org>
296 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
297 (xtensa_emit_call, print_operand): Fix printf format strings
298 to avoid compile warnings.
299 (xtensa_function_prologue, xtensa_function_epilogue): Change type
300 of "size" argument to HOST_WIDE_INT to fix compile warnings.
301 * config/xtensa/xtensa-protos.h
302 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
304 Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
306 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
307 (implicit_built_in_decls): New global array.
308 (mathfn_built_in): New global function.
309 (fold_trunc_transparent_mathfn): New static function
310 (expand_builtin_strstr, expand_bultin_strchr,
311 expand_builtin_strpbrk, expand_builtin_strcpy,
312 expand_builtin_strncpy, expand_bultin_strcmp,
313 expand_bultin_strncat, expand_builtin_fputs): Use
314 implicint_built_in_decls.
315 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
316 * builtins.def: Fix comments.
317 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
318 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
319 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
320 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
321 (DEF_C99_C90RES_BULTIN): New.
322 (*f, *l builtins): Update.
323 * c-common.c (DEF_BUILTIN): Initialize implicit array.
324 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
325 * convert.c (strip_float_extensions): New global function.
326 * tree.h (DEF_BUILTIN): Accept 10 arguments.
327 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
329 * java/builtins.c (define_builtin): Handle implicit.
330 (DEF_BUILTIN): Update.
331 * tm.texi (TARGET_C99_FUNCTIONS): Document.
332 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
333 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
336 2003-01-24 Bob Wilson <bob.wilson@acm.org>
338 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
339 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
340 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
341 * config/xtensa/crti.asm: New file.
342 * config/xtensa/crtn.asm: New file.
343 * config/xtensa/t-elf: New file.
344 * config/xtensa/t-linux: New file.
345 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
346 Move various CFLAGS settings to new t-elf file.
348 2003-01-24 Richard Henderson <rth@redhat.com>
351 * tree-inline.c (find_builtin_longjmp_call_1): New.
352 (find_builtin_longjmp_call): New.
353 (inlinable_function_p): Use it.
355 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
357 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
358 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
359 * config/i386/i386.c (function_arg_pass_by_reference): New.
360 (ix86_va_arg): Support arguments passed by reference.
362 2003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
364 * cfgloopanal.c: New file.
365 * cfgloopmanip.c: New file.
366 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
367 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
368 cfglayout.o): Add dependency on cfgloop.h.
369 (cfgloop.o): Add flags.h dependency.
370 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
371 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
372 (struct loop, struct loops, flow_loops_find, flow_loops_update,
373 flow_loops_free, flow_loops_dump, flow_loop_dump,
374 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
375 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
376 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
377 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
378 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
379 find_common_loop, verify_loop_structure): Declarations moved to ...
380 * cfgloop.h: New file.
381 * bb-reorder.c (reorder_basic_blocks): Modified.
382 * cfglayout.c: Include cfgloop.h.
383 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
384 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
385 (break_superblocks): New static function.
386 (cfg_layout_finalize): Use it.
387 (cfg_layout_split_block): New function.
388 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
390 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
392 (cfg_layout_split_block): Declare.
393 * cfgloop.c: Include cfgloop.h and flags.h.
394 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
395 get_loop_body): Avoid signed versus unsigned comparison warnings.
396 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
397 loop_latch_edge): Modified.
398 (verify_loop_structure): Modified to use flags stored in loop structure;
399 check irreducible loops.
400 (cancel_loop, cancel_loop_tree): New functions.
401 (estimate_probability): Use loop analysis code for predictions.
402 (estimate_loops_at_level): Avoid signed versus unsigned comparison
404 * doloop.c: Include cfgloop.h.
405 * loop.c: Include cfgloop.h.
406 * predict.c: Include cfgloop.h.
407 * toplev.c: Include cfgloop.h.
408 * unroll.c: Include cfgloop.h.
409 * tracer.c (tracer): Modified.
411 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
413 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
415 2003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
417 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
418 * configure: Regenerate.
420 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
421 (tls_symbolic_reference_mentioned_p): Add prototype.
422 (s390_tls_get_offset): Add prototype.
423 (emit_pic_move): Remove prototype, replace by ...
424 (emit_symbolic_move): .. this new prototype.
426 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
427 (tls_model_chars): New global variable.
428 (s390_encode_section_info): Encode TLS model.
429 Use targetm.binds_local_p to check for local symbols.
430 (s390_strip_name_encoding): New function.
431 (TARGET_STRIP_NAME_ENCODING): Define.
433 (get_thread_pointer): New function.
434 (legitimize_tls_address): New function.
435 (legitimize_address): Call it.
436 (emit_pic_move): Remove, replace by ...
437 (emit_symbolic_move): ... this new function.
439 (larl_operand): Handle TLS operands.
440 (legitimate_constant_p): Likewise.
441 (s390_decompose_address): Likewise.
442 (s390_cannot_force_const_mem): New function.
443 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
445 (s390_output_symbolic_const): Handle TLS unspecs.
446 (print_operand): New code 'J'.
447 (machine_function): Add struct member 'some_ld_name'.
448 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
450 (enum s390_builtin): New type.
451 (code_for_builtin_64, code_for_builtin_31): New global variables.
452 (s390_init_builtins, s390_expand_builtin): New functions.
453 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
455 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
456 (ASM_OUTPUT_LABELREF): Define.
457 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
459 * config/s390/s390.md: Define TLS UNSPEC constants.
460 ("movdi", "movsi"): Handle TLS operands.
461 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
462 ("*tls_load_64", "*tls_load_31"): New insns.
463 ("call_value_tls", "call_value_tls_exp"): New expanders.
464 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
465 "bas_tls_64", "bas_tls_31"): New insns.
467 2003-01-24 Nathan Sidwell <nathan@codesourcery.com>
469 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
470 spe ABI is configured, if requested.
472 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
474 * doc/passes.texi: Fix typo.
476 2003-01-24 Andreas Schwab <schwab@suse.de>
478 * stor-layout.c (excess_unit_span): Only define if used.
480 2003-01-24 Jerry Quinn <jlquinn@optonline.net>
482 * gcc/doc/invoke.texi (Optimization Options): List -O levels
483 for each optimization flag.
485 2003-01-24 Kazu Hirata <kazu@cs.umass.edu>
487 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
489 2003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
491 * doc/bugreport.texi: Use @command instead of @code for commands.
492 * doc/collect2.texi: Likewise.
493 * doc/headerdirs.texi: Likewise.
494 * doc/invoke.texi: Likewise.
495 * doc/standards.texi: Likewise.
496 * doc/tm.texi: Likewise.
497 * doc/trouble.texi: Likewise.
499 2003-01-24 Nick Clifton <nickc@redhat.com>
501 * config/arm/arm.c (use_return_insn): Do not use a single return
502 instruction for interrupt handelrs which have to create a stack
504 (arm_expand_prologue): Do not pre-bias the return address of
505 interrupt handlers which create a stack frame.
507 2003-01-24 Nick Clifton <nickc@redhat.com>
511 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
513 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
514 med_cbranches. Fix logic in short_cbranches.
516 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
518 * config/sh/sh.md (delay for cbranch): Don't annul delay
520 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
521 cbranch with unfilled delay slot on SH2e.
522 (output_branch): Fill with a nop the delay slot of a
523 branch that required a delay slot but didn't get one.
525 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
527 * doc/invoke.texi (SH options): Document -m2e.
528 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
529 * config/sh/lib1funcs.asm: Likewise.
530 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
531 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
533 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
535 (SH3E_BIT): Renamed to...
536 (SH_E_BIT): ... this. Replace all uses.
537 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
538 Replace all uses of TARGET_SH3E with TARGET_SH2E.
539 (TARGET_SWITCHES): Added 2e.
540 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
541 (processor_type): Added PROCESSOR_SH2E.
542 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
543 TARGET_SH2E, except in sqrtsf2_i.
544 (attribute cpu): Added sh2e.
545 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
546 (MULTILIB_MATCHES): Use m2e multilib for m3e.
547 * config.gcc: Add sh2e target support.
549 2003-01-24 Phil Edwards <pme@gcc.gnu.org>
551 Rename -W to -Wextra.
552 * c-decl.c: Update comments.
553 * c-typeck.c: Likewise.
555 * function.c: Likewise.
557 * toplev.c: Update comments.
558 (W_options): Add 'extra'.
559 (display_help): Remove '-W'.
560 (decode_W_option): Special warn_uninitialized treatment in the case
562 * doc/invoke.texi: Update with new entries.
564 2003-01-23 Richard Henderson <rth@redhat.com>
566 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
567 in no-else-block case. Add commentary.
569 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
571 * configure.in: Revert last change.
573 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
575 * configure.in: Don't include ansidecl.h in tconfig.h.
576 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
577 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
580 * configure: Regenerate.
582 2003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
585 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
586 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
589 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
591 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
593 2003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
595 * genattrtab.c (write_attr_get): Mark 'insn' paramter
598 2003-01-23 Richard Earnshaw <rearnsha@arm.com>
600 * arm.c (thumb_base_register_rtx_p): New function.
601 (thumb_index_register_rtx_p): New function.
602 (thumb_legitimate_address_p): New function.
603 (thumb_legitimate_offset_p): New function.
604 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
605 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
607 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
608 (THUMB_LEGITIMATE_OFFSET): Delte.
609 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
610 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
611 (thumb_legitimate_offset_p): Likewise.
613 2003-01-23 Andreas Schwab <schwab@suse.de>
615 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
617 2003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
619 * fixinc/Makefile.in (FL_LIST): Revert last change.
621 2003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
624 * invoke.texi (ftest-coverage): Fix broken cross-reference.
625 Change @code to @command for gcov command.
627 * gcc.texi: Adjust title of gcov section.
629 * gcov.texi: Likewise.
631 2003-01-22 Roger Sayle <roger@eyesopen.com>
634 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
635 its argument is constant, or 0 if !flag_gcse.
636 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
637 if it's argument is constant.
638 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
639 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
640 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
641 * builtins.c (purge_builtin_constant_p): New function to force
642 instantiation of any remaining CONSTANT_P_RTX nodes.
643 * rtl.h (purge_builtin_constant_p): Prototype here.
644 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
645 pass after GCSE and before loop.
646 (flag_gcse): No longer static.
647 * flags.h (flag_gcse): Prototype here.
649 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
651 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
652 introduced by last change.
654 2003-01-22 Andreas Schwab <schwab@suse.de>
656 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
658 2003-01-22 Kazu Hirata <kazu@cs.umass.edu>
660 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
661 request a scratch reg on H8S when the shift count is 8.
663 2003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
665 * config/s390/s390-protos.h (preferred_la_operand_p):
666 Remove second parameter.
667 * config/s390/s390.c (preferred_la_operand_p): Likewise.
668 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
669 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
670 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
671 Add peepholes to transform ADD to LOAD ADDRESS.
673 2003-01-22 Richard Earnshaw <rearnsha@arm.com>
675 * arm.c (arm_address_register_rtx_p): New function.
676 (arm_legitimate_address_p): New function.
677 (arm_legitimate_index_p): New function.
678 (legitimize_pic_address): Use arm_legitimate_index_p.
679 * arm-protos.h (arm_legtimate_address_p): Add prototype.
680 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
681 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
683 2003-01-22 Hartmut Penner <hpenner@de.ibm.com>
685 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
686 * config/s390/2064.md (define_bypass): Correct 'Load' and
687 'Load-address' bypass values.
689 2003-01-22 Andreas Schwab <schwab@suse.de>
691 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
693 2003-01-21 Zack Weinberg <zack@codesourcery.com>
695 * genautomata.c (output_internal_insn_latency_func,
696 output_print_reservation_func): Short circuit when there is no
697 automaton to generate code for.
699 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
701 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
702 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
704 2003-01-21 Geoffrey Keating <geoffk@apple.com>
706 * config/rs6000/rs6000.md: Remove warning.
707 (builtin_setjmp_receiver): Likewise.
708 * config/darwin.c (update_stubs): Slightly improve terrible hack
709 with identifiers. Add comment pointing out problems with it.
710 (update_non_lazy_ptrs): Likewise.
712 2003-01-21 Richard Henderson <rth@redhat.com>
714 * dwarf2out.c (lookup_filename): Fix printf format warning.
715 * system.h (fread_unlocked, fwrite_unlocked): Undef.
717 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
718 (fixincl.o-warn, gnu-regex.o-warn): New.
719 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
720 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
721 * fixinc/fixincl.c (process): Fix printf format warning.
723 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
725 * dwarf2out (output_file_names): Don't crash if called
726 with empty file_table.
728 2003-01-21 Zack Weinberg <zack@codesourcery.com>
730 * genautomata.c (output_internal_insn_latency_func): Add
731 missing break statement to generated code.
733 2003-01-21 Roger Sayle <roger@eyesopen.com>
735 * stmt.c (same_case_target_p): New function to determine whether
736 two case labels branch to the same target. Split out from...
737 (group_case_nodes): ... here. Use same_case_target_p instead.
738 (strip_default_case_nodes): Remove explicit case nodes
739 that branch to the default destination.
740 (expand_end_case_type): Call strip_default_case_nodes after
741 group_case_nodes, to simplify the case-list before we count it.
742 Only generate table_label RTX when actually needed. Try to share
743 thiscase->exit_label and thiscase->data.case_stmt.default_label
744 when a switch has no explicit default case. Simplify test for
747 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
749 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
751 (*negsf2_h8300hs): Likewise.
752 (*addsi3_lshiftrt_16_zexthi): Likewise.
753 (*iorhi3_lshiftrt_8): Likewise.
755 2003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
757 * dwarf2out.c (fde_table_in_use): Mark GTY.
758 (dwarf2out_cfi_label_num): New variable, marked GTY.
759 (dwarf2out_cfi_label): Use it instead of static label_num.
760 * emit-rtl.c (label_num): Mark GTY.
762 2003-01-21 Kazu Hirata <kazu@cs.umass.edu>
764 * config/h8300/h8300.c (output_plussi): Support H8/300.
765 (compute_plussi_length): Likewise.
766 (compute_plussi_cc): Likewise.
767 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
768 output assembly instructions.
770 2003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
772 * calls.c (fix_unsafe_tree): Prototype.
774 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
775 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
776 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
777 c-parse.o-warn): Add -Wno-error.
778 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
780 * configure.in (--enable-werror): Add new flag.
781 * doc/install.texi (--enable-werror): Document.
782 * configure: Regenerate.
784 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
786 2003-01-21 Andreas Schwab <schwab@suse.de>
788 * genautomata.c (output_internal_insn_latency_func): Fix missing
789 close paren in output.
791 2003-01-21 Zack Weinberg <zack@codesourcery.com>
793 * genautomata.c: Space savings in generated code:
794 (output_dfa_insn_code_func): Split out the table-enlargement
795 path to an out-of-line static function, dfa_insn_code_enlarge.
796 (output_internal_insn_latency_func): Use a lookup table for the
798 (output_print_reservation_func): Use a lookup table for the
801 2003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
804 * calls.c (fix_unsafe_tree): Split out from ...
805 (expand_call): ... here. Use it on the function address too.
807 2003-01-20 Richard Henderson <rth@redhat.com>
809 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
811 2003-01-20 Richard Henderson <rth@redhat.com>
814 * stmt.c (expand_asm_operands): Validize memory operands.
816 2003-01-20 Richard Henderson <rth@redhat.com>
819 * ifcvt.c (noce_process_if_block): Correct arguments to
820 modified_between_p for no-else-block case.
822 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
824 * config/h8300/h8300.c (const_costs): Remove a warning.
825 (output_plussi): Likewise.
826 (compute_plussi_length): Likewise.
827 (compute_plussi_cc): Likewise.
829 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
831 * config/h8300/h8300.md (addsi_h8300): Remove the last
834 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
836 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
838 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
840 * system.h (__NO_STRING_INLINES): Define.
842 2003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
844 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
845 is not a scalar int mode.
847 2003-01-20 Roger Sayle <roger@eyesopen.com>
849 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
850 insn's notes following a substitution inside a libcall.
852 2003-01-20 Zack Weinberg <zack@codesourcery.com>
854 * configure.in: Check for system-provided 'uchar' type.
855 * configure, config.in: Regenerate.
856 * cpphash.h: Only typedef 'uchar' if the system doesn't.
858 2003-01-20 Richard Henderson <rth@redhat.com>
860 * expr.h (MUST_PASS_IN_STACK): Move implementation...
861 * calls.c (default_must_pass_in_stack): ... here.
863 2003-01-20 Vladimir Makarov <vmakarov@redhat.com>
865 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
867 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
869 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
870 Wrap up definition of `insn_alts'.
872 * genattrtab.c (main): Wrap up `insn_alts'.
874 2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
876 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
878 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
880 * config.in, configure: Regenerate.
882 2003-01-20 Nick Clifton <nickc@redhat.com>
884 * config/arm/arm.md (sibcall_epilogue): Add an
885 UNSPEC_PROLOGUE_USE to prevent the link register from being
888 Mon Jan 20 14:36:23 CET 2003 Jan Hubicka <jh@suse.cz>
890 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
892 2003-01-20 Andreas Schwab <schwab@suse.de>
894 * system.h: Don't declare strsignal if the decl test hasn't been
897 2003-01-20 Kazu Hirata <kazu@cs.umass.edu>
899 * config/h8300/h8300.c (notice_update_cc): Don't assume that
900 recog_data.operands[0] is always associated with cc0.
902 2003-01-19 David Edelsohn <edelsohn@gnu.org>
904 * collect2.c (ldgetname): Expand declaration to prototype.
905 * read-rtl.c (atoll): Add prototype.
906 * system.h (strsignal): Also declare if no declaration found.
908 2003-01-19 Alexandre Oliva <aoliva@redhat.com>
910 * config.gcc (mips64*-*-linux*): Added.
911 * config/mips/linux64.h, config/mips/t-linux64: New file.
912 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
913 * config/mips/mips.c (override_options): Use it.
914 * config/mips/mips.h (TARGET_SWITCHES): Added...
915 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
916 * Makefile.in (SPECS): New.
917 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
918 * gcc.c (process_command): Move self-spec processing past spec
920 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
921 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
924 * doc/invoke.texi (-mabi-fake-default): Document.
926 2003-01-19 Stephane Carrez <stcarrez@nerim.fr>
928 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
929 z_reg, z_reg_qi): Declare static and GTY().
931 (create_regs_rtx): Don't create da_reg.
932 ("gt-m68hc11.h"): Include for GTY roots.
933 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
935 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
936 (m68hc11_soft_tmp_reg): Likewise.
937 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
939 2003-01-18 Kazu Hirata <kazu@cs.umass.edu>
941 * basic-block.h: Fix comment formatting.
943 * combine.c: Likewise.
944 * convert.c: Likewise.
946 * haifa-sched.c: Likewise.
947 * libgcc2.c: Likewise.
949 * profile.c: Likewise.
950 * system.h: Likewise.
952 2003-01-18 Roger Sayle <roger@eyesopen.com>
954 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
956 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
958 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
960 2003-01-17 Dale Johannesen <dalej@apple.com>
962 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
963 (*floatunssidf2_internal): Ditto.
965 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
967 * alias.c: Fix comment typos.
968 * basic-block.h: Likewise.
969 * c-common.c: Likewise.
970 * c-common.h: Likewise.
971 * c-decl.c: Likewise.
972 * c-opts.c: Likewise.
973 * c-pragma.c: Likewise.
974 * c-pretty-print.h: Likewise.
976 * cfganal.c: Likewise.
977 * cfgbuild.c: Likewise.
978 * cfgcleanup.c: Likewise.
979 * cfglayout.c: Likewise.
980 * cfgrtl.c: Likewise.
981 * convert.c: Likewise.
982 * cpphash.h: Likewise.
983 * cpplex.c: Likewise.
984 * cpplib.h: Likewise.
986 * diagnostic.c: Likewise.
987 * diagnostic.h: Likewise.
988 * dwarf2.h: Likewise.
990 2003-01-17 Stan Shebs <shebs@apple.com>
992 * config/darwin-protos.h: Forward-declare struct cpp_reader.
994 2003-01-17 Douglas B Rupp <rupp@gnat.com>
996 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
997 mistake in last checkin.
999 2003-01-17 Kazu Hirata <kazu@cs.umass.edu>
1001 * et-forest.c: Fix comment typos.
1002 * et-forest.h: Likewise.
1003 * except.c: Likewise.
1005 * flags.h: Likewise.
1009 * genattrtab.c: Likewise.
1010 * genautomata.c: Likewise.
1011 * gengtype.c: Likewise.
1012 * genrecog.c: Likewise.
1013 * global.c: Likewise.
1014 * gthr-rtems.h: Likewise.
1016 2003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1018 * i386.c (x86_function_profiler): Fix format specifier.
1020 2003-01-17 Richard Henderson <rth@redhat.com>
1022 * gengtype.c (walk_type): Allow paramN_is.
1024 2003-01-17 Nick Clifton <nickc@redhat.com>
1026 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
1028 2003-01-16 Richard Henderson <rth@redhat.com>
1030 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
1032 2003-01-16 Richard Henderson <rth@redhat.com>
1034 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
1035 (alpha_next_sequence_number): Likewise.
1036 (alpha_this_literal_sequence_number): Likewise.
1037 (alpha_this_gpdisp_sequence_number): Likewise.
1038 (struct alpha_funcs, alpha_funcs_num): Likewise.
1039 (struct alpha_links): Fix branch merge error.
1040 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
1042 2003-01-17 Alexandre Oliva <aoliva@redhat.com>
1044 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
1047 2003-01-16 Kazu Hirata <kazu@cs.umass.edu>
1049 * ifcvt.c: Fix comment typos.
1051 * libgcc2.c: Likewise.
1052 * local-alloc.c: Likewise.
1054 * predict.c: Likewise.
1055 * ra-build.c: Likewise.
1057 * ra-colorize.c: Likewise.
1059 * ra-rewrite.c: Likewise.
1060 * regmove.c: Likewise.
1061 * reload.h: Likewise.
1062 * rtlanal.c: Likewise.
1063 * toplev.c: Likewise.
1065 * unwind-dw2-fde-glibc.c: Likewise.
1066 * vmsdbgout.c: Likewise.
1068 2003-01-16 Richard Henderson <rth@redhat.com>
1070 * dwarf2out.c (struct file_table): Remove.
1071 (FILE_TABLE_INCREMENT): Remove.
1072 (file_table): Make a varray; mark for GC. Update all users.
1073 (file_table_last_lookup_index): Extract from struct file_table.
1074 (output_file_names): Fix unsigned compare warnings.
1075 (add_name_attribute): Remove inline marker.
1076 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
1077 (lookup_filename): Don't manage size of file_table.
1078 (init_file_table): Allocate file_table with GC.
1079 (dwarf2out_init): Don't record main_input_filename here.
1080 (dwarf2out_finish): Do it here instead.
1082 2003-01-16 Bruce Korb <bkorb@gnu.org>
1084 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
1086 2003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
1088 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
1089 instead of rotldi3_mextr.
1091 2003-01-16 Vladimir Makarov <vmakarov@redhat.com>
1093 * haifa-sched.c (move_insn): Restore moving all schedule group.
1094 (set_priorities): Restore taking SCHED_GROUP_P into account.
1096 * sched-deps.c (add_dependence): Restore processing the last group
1098 (remove_dependence, group_leader): Restore the functions.
1099 (set_sched_group_p): Restore adding dependencies from previous insn
1101 (compute_forward_dependences): Restore usage of group_leader.
1103 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
1106 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
1108 (can_schedule_ready_p): Ditto.
1109 (add_branch_dependences): Restore skipping over the group insns.
1111 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1113 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
1114 68HC12 pre/post inc/dec side effects.
1116 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1118 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
1120 Thu Jan 16 21:50:25 2003 J"orn Rennecke <amylaar@onetel.net.uk>
1122 * sh.md (mshflo_w_x): Fix description of operation.
1124 2003-01-16 Zack Weinberg <zack@codesourcery.com>
1126 * config/rs6000/rs6000.h: Mention Altivec registers in
1127 commentary. Fix typo.
1129 2003-01-16 David Edelsohn <edelsohn@gnu.org>
1131 * config/rs6000/rs6000.md (movti_string): Remove clobber.
1132 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
1133 generate PARALLEL with clobber for TARGET_POWER.
1135 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1137 * ra-colorize.c (colorize_one_web): Initialize variable.
1138 * regmove.c (fixup_match_1): Likewise.
1139 * reload1.c (reload_as_needed): Likewise.
1140 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
1142 2003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1144 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
1146 2003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1148 * dbxout.c (lastfile, cwd): Fix `unused' warning.
1149 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
1150 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
1151 is_main_source, file_table, decl_die_table_in_use,
1152 abbrev_die_table_in_use, line_info_table_in_use,
1153 separate_line_info_table_in_use, pubname_table_in_use,
1154 arange_table_in_use, ranges_table_in_use,
1155 current_function_has_inlines): Likewise.
1156 * flow.c (life_analysis): Likewise.
1157 * genemit.c (gen_insn): Likewise.
1158 * protoize.c (cplus_suffix): Likewise.
1160 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
1161 * arm.h (ROUND_UP_WORD): Likewise.
1163 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
1165 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
1166 init_emit_once): Likewise.
1167 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
1169 * function.c (assign_stack_temp_for_type): Likewise.
1170 * loop.c (loop_invariant_p): Likewise.
1171 * recog.c (push_operand): Likewise.
1172 * regclass.c (init_reg_sets_1): Likewise.
1173 * reload.c (update_auto_inc_notes): Likewise.
1174 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
1175 * stmt.c (expand_asm_operands): Likewise.
1176 * stor-layout.c (start_record_layout): Likewise.
1178 2003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1180 * config/c4x/c4x.md (epilogue): Correct last patch.
1182 2003-01-15 Richard Henderson <rth@redhat.com>
1184 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
1185 also check that GP is being used.
1186 (alpha_find_lo_sum_using_gp): New.
1187 (alpha_does_function_need_gp): Use get_attr_usegp.
1188 * config/alpha/alpha-protos.h: Update.
1189 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
1192 2003-01-15 Roger Sayle <roger@eyesopen.com>
1194 * gcse.c (one_cprop_pass): Change function arguments to take both
1195 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
1196 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
1197 (bypass_jumps): New function to perform separate jump bypassing pass.
1198 * rtl.h (bypass_jumps): Add function prototype.
1199 * timevar.def (TV_BYPASS): New timing variable.
1200 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
1201 (dump_file): New entry for the bypass RTL dump file.
1202 (rest_of_compilation): Insert new jump bypassing optimization
1204 * doc/passes.texi: Document new pass.
1206 2003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
1208 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
1209 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
1210 * pa.h (TARGET_SOM_SDEF): Define.
1211 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
1213 2003-01-16 Stephane Carrez <stcarrez@nerim.fr>
1215 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
1216 allocate 4-bytes of locals on 68HC11.
1217 (expand_epilogue): Likewise.
1218 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
1220 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1222 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
1223 and -mshort-double to the assembler to specify the ABI.
1224 (LINK_SPEC): Likewise.
1225 (CPP_SPEC): Pass HCS12 specific define.
1226 (MASK_M68S12): New define.
1227 (TARGET_M68S12): Likewise.
1228 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
1229 (TARGET_VERSION): Update.
1230 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
1231 (LINK_SPEC): Update.
1233 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
1234 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
1236 2003-01-15 Stephane Carrez <stcarrez@nerim.fr>
1238 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
1241 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1243 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
1244 flag before setting it.
1246 2003-01-15 Roger Sayle <roger@eyesopen.com>
1248 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
1249 when loop condition is known true, i.e. "while (1) { ... }".
1250 (genrtl_for_stmt): Similarly for "for" statements.
1252 2003-01-15 Roger Sayle <roger@eyesopen.com>
1254 * real.c (real_sqrt): Return a bool result indicating whether
1255 a floating point exception or trap should be raised.
1256 * real.h (real_sqrt): Update function prototype.
1257 * builtins.c (fold_builtin): Only fold non-trapping square
1258 roots unless we're ignoring errno and trapping math.
1260 2003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
1262 * expr.h (emit_conditional_add): Add PARAMS to declaration.
1263 * gengtype-lex.l (malloc, realloc): Move defines after include of
1264 system.h. Remove duplicate include of system.h.
1266 2003-01-15 Roger Sayle <roger@eyesopen.com>
1269 * optabs.c (expand_unop): When manipulating the FP sign bit
1270 using integer operations, account for targets with different
1271 integer and FP word orders.
1272 (expand_abs): Likewise.
1274 2003-01-15 David Edelsohn <edelsohn@gnu.org>
1276 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
1277 file extension in section name.
1279 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1281 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
1284 2003-01-15 Richard Earnshaw <rearnsha@arm.com>
1286 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
1287 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
1288 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
1289 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
1291 Wed Jan 15 12:23:21 CET 2003 Jan Hubicka <jh@suse.cz>
1294 * global.c (struct allocno): Add no_stack_reg.
1295 (global_conflicts): Set no_stack_reg.
1298 * convert.c (convert_to_real): Fold - and abs only when profitable.
1299 * fold-const.c (fold): Fold truncates in - and abs.
1301 2003-01-15 Josef Zlomek <zlomekj@suse.cz>
1303 Segher Boessenkool <segher@koffie.nl>
1305 * predict.c (real_inv_br_prob_base): New variable.
1306 (propagate_freq): Use multiply by reciprocal instead of
1307 division. Don't divide by 1.0 at all.
1308 (estimate_bb_frequencies): Similar.
1310 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1312 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
1313 * configure: Rebuilt.
1315 2003-01-15 Hartmut Penner <hpenner@de.ibm.com>
1317 * config/s390/s390.c (s390_safe_attr_type): New function.
1318 (s390_use_dfa_pipeline_interface): New function, return true for z900.
1319 (s390_issue_rate): New function.
1320 (s390_agen_dep_p): New function.
1321 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
1322 (s390_adjust_cost): Return 'cost' if new DFA is used.
1323 (s390_adjust_priority): Delete function.
1324 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
1325 * config/s390/s390.md (atype attribute): Attribute 'atype' default
1326 determined by 'op_type'.
1327 (type attribute): Added more type attributes.
1328 * config/s390/2064.md: New DFA description for z900 pipeline.
1330 2003-01-15 Alexandre Oliva <aoliva@redhat.com>
1332 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
1333 forced to memory. Fixes PR bootstrap/9036.
1335 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
1336 to set $gp before the call.
1338 2003-01-14 Richard Henderson <rth@redhat.com>
1340 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
1341 for force_const_mem.
1343 2003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1345 * genattr.c (main): Rearrange output to avoid prototype warning.
1346 * genautomata.c (transform_3): Fix ambiguous-else warning.
1347 * local-alloc.c (requires_inout): Add parentheses around
1348 assignment used as truth-value.
1349 * timevar.c: Move system includes above local includes. Include
1351 * Makefile.in (timevar.o): Depend on toplev.h.
1353 2003-01-14 Denis Chertykov <denisc@overta.ru>
1355 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
1356 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
1358 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
1360 (TARGET_ATTRIBUTE_TABLE): New macro.
1361 (valid_machine_type_attribute): Remove.
1362 (valid_machine_decl_attribute): Remove.
1363 (ip2k_handle_progmem_attribute): New function.
1364 (ip2k_handle_fndecl_attribute): New function.
1366 2003-01-10 Andrew Haley <aph@redhat.com>
1368 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
1369 registers to be in correct order. Add rip.
1371 2003-01-14 Kazu Hirata <kazu@cs.umass.edu>
1373 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
1374 (*iorsi3_and_lshiftrt_9_sb): Likewise.
1376 Tue Jan 14 00:45:33 CET 2003 Jan Hubicka <jh@suse.cz>
1378 * convert.c (strip_float_extensions): Look for narrowest type handling
1381 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
1383 * convert.c (strip_float_extensions): Make global.
1384 * tree.h (strip_float_extensions): Declare.
1386 2003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1388 * timevar.def: define TV_NAME_LOOKUP.
1389 * timevar.c (timevar_pop): Be verbose when aborting.
1391 2003-01-13 Andreas Schwab <schwab@suse.de>
1393 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
1394 $(parsedir), just move the temporary file at the end.
1395 ($(parsedir)/gengtype-yacc.c): Likewise.
1397 2003-01-13 Alexandre Oliva <aoliva@redhat.com>
1399 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
1400 ${ac_tool_prefix} to ADAC or CC. Protect them from word
1402 * configure: Rebuilt.
1404 2003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1406 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
1407 internal_mcount): Don't use PARAMS.
1408 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
1410 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
1412 2003-01-13 Andreas Schwab <schwab@suse.de>
1414 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
1417 2003-01-13 Kazu Hirata <kazu@cs.umass.edu>
1419 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
1420 (*iorsi3_and_lshiftrt_n_sb): Likewise.
1422 2003-01-12 Mark Mitchell <mark@codesourcery.com>
1425 * c-lex.c (c_lex): Set the token value to error_mark_node for
1426 invalid numeric constants.
1428 2003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1430 * c-pch.c (asm_file_startpos): Change to `long'.
1431 (pch_init): Use ftell, not ftello.
1432 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
1433 Use `long' instead of `off_t'.
1434 (c_common_read_pch): Likewise.
1435 * ggc-common.c (gt_pch_save): Use long/ftell instead of
1438 2003-01-12 Alan Modra <amodra@bigpond.net.au>
1440 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
1442 2003-01-11 Richard Earnshaw (rearnsha@arm.com)
1444 * arm-protos.h (struct cpp_reader): Add declaration.
1446 Sat Jan 11 11:02:58 CET 2003 Jan Hubicka <jh@suse.cz>
1449 * i386.c (output_fp_compare): Fix typo.
1451 2003-01-10 David Edelsohn <edelsohn@gnu.org>
1453 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
1455 2003-01-10 Geoffrey Keating <geoffk@apple.com>
1457 * Makefile.in (parsedir): New variable.
1458 (docobjdir): New variable.
1459 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
1460 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
1461 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
1462 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
1463 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
1465 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
1466 objc.maintainer-clean): Use parsedir.
1468 * varasm.c (struct constant_descriptor_rtx): Remove unused
1471 * toplev.c (documented_lang_options): Document -Winvalid-pch.
1473 2003-01-10 Richard Henderson <rth@redhat.com>
1475 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
1476 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
1478 2003-01-10 Richard Henderson <rth@redhat.com>
1480 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
1481 not INTEGRAL_MODE_P when widening extensions.
1483 2003-01-10 Richard Henderson <rth@redhat.com>
1485 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
1487 2003-01-10 Geoffrey Keating <geoffk@apple.com>
1489 * ggc-page.c (ggc_collect): Avoid overflow computing
1492 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
1493 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
1495 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
1497 Fri Jan 10 22:05:35 CET 2003 Jan Hubicka <jh@suse.cz>
1499 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
1500 with weird operands.
1502 2003-01-10 Dale Johannesen <dalej@apple.com>
1504 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
1505 parameters. Call check_sibcall_argument_overlap if indicated.
1506 (check_sibcall_argument_overlap): Add mark_stored_args_map
1507 parameter. Don't mark parameter area as clobbered if not set.
1508 (expand_call): Adjust calls to above.
1510 2003-01-10 Kelley Cook <kelleycook@comcast.net>
1512 * configure.in (linker read-only and read-write section mixing):
1513 Squelch some assembler warnings.
1514 * configure: Likewise.
1516 2003-01-10 Hartmut Penner <hpenner@de.ibm.com>
1518 * doc/invoke.texi: Document -mtune, delete -mcpu
1519 option for S/390 and zSeries.
1520 * config/s390/s390.c (s390_tune_string) New variable.
1521 (s390_cpu_string) Delete variable.
1522 (override_options): Use s390_tune_string instead of
1524 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
1526 2003-01-10 Kazu Hirata <kazu@cs.umass.edu>
1528 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
1530 2003-01-10 Josef Zlomek <zlomekj@suse.cz>
1532 * jump.c (next_nonnote_insn_in_loop): New function.
1533 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
1535 (duplicate_loop_exit_test). Likewise.
1537 2003-01-09 Geoffrey Keating <geoffk@apple.com>
1539 Merge from pch-branch:
1541 2003-01-06 Geoffrey Keating <geoffk@apple.com>
1543 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
1546 2002-12-24 Geoffrey Keating <geoffk@apple.com>
1548 * cpplib.c (count_registered_pragmas): New function.
1549 (save_registered_pragmas): New function.
1550 (_cpp_save_pragma_names): New function.
1551 (restore_registered_pragmas): New function.
1552 (_cpp_restore_pragma_names): New function.
1553 * cpphash.h (_cpp_save_pragma_names): Prototype.
1554 (_cpp_restore_pragma_names): Likewise.
1555 * cpppch.c (struct save_macro_item): Split from save_macro_data.
1556 (struct save_macro_data): New field 'saved_pragmas'.
1557 (save_macros): Update for changes to struct save_macro_data.
1558 (cpp_prepare_state): Call _cpp_save_pragma_names, update
1559 for changes to struct save_macro_data.
1560 (cpp_read_state): Call _cpp_restore_pragma_names, update
1561 for changes to struct save_macro_data.
1563 * cpppch.c (cpp_read_state): Restore the hashtable references
1566 * tree.h (built_in_decls): Mark for PCH.
1568 * dbxout.c (lastfile): Don't mark for PCH.
1570 * ggc.h: Document PCH calls into memory managers.
1572 2002-12-18 Geoffrey Keating <geoffk@apple.com>
1574 * doc/invoke.texi (Precompiled Headers): Document the
1575 directory form of PCH.
1576 * cppfiles.c (validate_pch): New function.
1577 (open_file_pch): Search suitably-named directories for PCH files.
1579 2002-12-14 Geoffrey Keating <geoffk@apple.com>
1581 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
1583 (Type Information): Mention that the information is also
1584 used to implement PCH.
1585 * doc/passes.texi (Passes): Improve documentation of
1586 language-specific files.
1588 2002-12-11 Geoffrey Keating <geoffk@apple.com>
1590 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
1591 (struct walk_type_data): Add reorder_fn field.
1592 (walk_type): Process 'reorder' option.
1593 (write_types_process_field): Reorder parameters to gt_pch_note_object,
1594 call reorder_note_routine.
1595 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
1596 (ggc_wtd): Update for change to struct write_types_data.
1597 (pch_wtd): Likewise.
1598 * ggc.h (gt_pch_note_object): Reorder parameters.
1599 (gt_handle_reorder): New definition.
1600 (gt_pch_note_reorder): New prototype.
1601 * ggc-common.c (struct ptr_data): Add reorder_fn.
1602 (gt_pch_note_object): Reorder parameters.
1603 (gt_pch_note_reorder): New.
1604 (gt_pch_save): Call reorder_fn.
1605 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
1607 * dbxout.c (cwd): Don't mark for PCH.
1609 2002-12-09 Geoffrey Keating <geoffk@apple.com>
1611 * gengtype.c (finish_root_table): Fix some warnings.
1612 (write_root): Handle TYPE_STRING.
1613 * ggc.h (gt_ggc_m_S): Add prototype.
1614 * stringpool.c (gt_ggc_m_S): New function.
1616 2002-11-30 Geoffrey Keating <geoffk@apple.com>
1618 * dwarf2out.c (dw2_string_counter): New.
1619 (AT_string_form): Use it.
1620 (same_dw_val_p): Update for removal of hashtable.h hash tables.
1622 2002-11-22 Geoffrey Keating <geoffk@apple.com>
1624 * dbxout.c: Include gt-dbxout.h.
1625 (lastfile): Mark for PCH/GGC.
1627 (struct typeinfo): Likewise.
1628 (typevec): Likewise.
1629 (typevec_len): Likewise.
1630 (next_type_number): Likewise.
1631 (struct dbx_file): Likewise.
1632 (current_file): Likewise.
1633 (next_file_number): Likewise.
1634 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
1635 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
1636 (dbxout_end_source_file): Don't free struct dbx_file.
1637 (dbxout_type): Use GGC to allocate typevec.
1638 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
1639 (GTFILES): Add dbxout.c.
1640 (gt-dbxout.h): New rule.
1642 * Makefile.in (c-pch.o): Add debug.h as dependency.
1643 * c-pch.c: Include debug.h.
1644 (pch_init): Call start_source_file to keep nesting right.
1645 (c_common_read_pch): Add orig_name parameter. Call
1646 start_source_file debug hook. Call end_source_file debug hook.
1647 * c-common.h (c_common_read_pch): Update prototype.
1648 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
1650 * cppfiles.c (struct include_file): Add new field `header_name'.
1651 (find_or_create_entry): Default it to `name'.
1652 (open_file_pch): Set it to the original header file searched for.
1653 (stack_include_file): Don't stack an empty buffer, just handle
1654 PCH files immediately. Pass header_name field to read_pch callback.
1656 2002-11-19 Geoffrey Keating <geoffk@apple.com>
1658 * function.c (funcdef_no): Mark to be saved in a PCH.
1660 2002-11-15 Geoffrey Keating <geoffk@apple.com>
1662 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
1664 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
1666 2002-11-14 Geoffrey Keating <geoffk@apple.com>
1668 * optabs.h (code_to_optab): Add GTY marker.
1670 2002-11-13 Geoffrey Keating <geoffk@apple.com>
1672 * Makefile.in (GTFILES): Add cpplib.h.
1673 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
1674 * c-decl.c (build_compound_literal): Don't use var_labelno.
1675 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
1676 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
1677 * varasm.c (const_labelno): Use gengtype to mark.
1678 (var_labelno): Likewise.
1679 (in_section): Likewise.
1680 (in_named_name): Likewise.
1681 (struct in_named_entry): Likewise.
1682 (in_named_htab): Likewise.
1683 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
1684 (init_varasm_once): Use GGC to allocate in_named_htab.
1685 * config/darwin.c (current_pic_label_num): Mark for PCH.
1687 2002-11-11 Geoffrey Keating <geoffk@apple.com>
1689 * ggc-simple.c (init_ggc_pch): New stub procedure.
1690 (ggc_pch_count_object): Likewise.
1691 (ggc_pch_total_size): Likewise.
1692 (ggc_pch_this_base): Likewise.
1693 (ggc_pch_alloc_object): Likewise.
1694 (ggc_pch_prepare_write): Likewise.
1695 (ggc_pch_write_object): Likewise
1696 (ggc_pch_finish): Likewise.
1697 (ggc_pch_read): Likewise.
1699 2002-11-08 Geoffrey Keating <geoffk@apple.com>
1701 * c-pch.c (c_common_write_pch): Write the macro definitions after
1703 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
1704 definitions after the GCed data.
1705 * cpplib.c (save_macros): New.
1707 (cpp_write_pch_deps): Split out of cpp_write_pch.
1708 (cpp_write_pch_state): Split out of cpp_write_pch.
1709 (cpp_write_pch): Delete.
1710 (struct save_macro_data): Delete.
1711 (cpp_prepare_state): New.
1712 (cpp_read_state): Erase and restore initial macro definitions.
1713 * cpplib.h (struct save_macro_data): Forward-declare.
1714 (cpp_write_pch_deps): Prototype.
1715 (cpp_write_pch_state): Prototype.
1716 (cpp_write_pch): Delete prototype.
1717 (cpp_prepare_state): Prototype.
1718 (cpp_read_state): Add fourth argument.
1720 2002-11-04 Geoffrey Keating <geoffk@apple.com>
1722 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
1723 (write_array): Remove warning.
1725 * gengtype.c (contains_scalar_p): New.
1726 (finish_root_table): Add the table to all languages, even if it's
1728 (write_roots): Output gt_pch_scalar_rtab.
1729 * ggc-common.c (gt_pch_save): Write out scalars.
1730 (gt_pch_restore): Read scalars back.
1732 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
1733 (struct page_entry): Delete pch_page field.
1734 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
1735 (clear_marks): Likewise.
1736 (sweep_pages): Likewise.
1737 (poison_pages): Likewise.
1738 (ggc_print_statistics): Likewise.
1739 (ggc_pch_read): Don't free objects read from a PCH.
1740 Properly set up in_use_p and page_tails.
1742 2002-10-25 Geoffrey Keating <geoffk@apple.com>
1744 * gengtype.c (struct write_types_data): New.
1745 (struct walk_type_data): Make `cookie' const; add extra
1746 prev_val item; add `orig_s' field.
1747 (walk_type): Update prev_val[3].
1748 (write_types_process_field): New.
1749 (write_func_for_structure): Take write_types_data structure.
1753 (write_types_local_process_field): New.
1754 (gc_mark_process_field): Delete.
1755 (write_local_func_for_structure): New.
1756 (gc_mark_func_name): Delete.
1757 (write_gc_types): Delete.
1759 (finish_root_table): Don't include 'ggc_' in PFX.
1760 (write_root): Rename from write_root. Fill pchw field of structures.
1762 (write_roots): Rename from write_gc_roots. Split out to write_array.
1763 Update to changes to other routines. Write gt_pch_cache_rtab table.
1764 (main): Write PCH walking routines.
1765 * ggc-common.c: Include toplev.h, sys/mman.h.
1766 (ggc_mark_roots): For cache hashtables, also mark the hash table
1767 and the array of entries.
1769 (struct ptr_data): New.
1770 (POINTER_HASH): New.
1771 (gt_pch_note_object): New.
1772 (saving_htab_hash): New.
1773 (saving_htab_eq): New.
1774 (struct traversal_state): New.
1777 (compare_ptr_data): New.
1778 (relocate_ptrs): New.
1779 (write_pch_globals): New.
1780 (struct mmap_info): New.
1782 (gt_pch_restore): New.
1783 * ggc-page.c (ROUND_UP_VALUE): New.
1785 (struct page_entry): Add field `pch_page'.
1786 (init_ggc): Use ROUND_UP.
1787 (struct ggc_pch_data): Declare.
1788 (init_ggc_pch): New.
1789 (ggc_pch_count_object): New.
1790 (ggc_pch_total_size): New.
1791 (ggc_pch_this_base): New.
1792 (ggc_pch_alloc_object): New.
1793 (ggc_pch_prepare_write): New.
1794 (ggc_pch_write_object): New.
1795 (ggc_pch_finish): New.
1796 (ggc_pch_read): New.
1797 * ggc.h (gt_pointer_operator): New.
1798 (gt_note_pointers): New.
1799 (gt_pch_note_object): New prototype.
1800 (gt_pointer_walker): New.
1801 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
1802 (LAST_GGC_ROOT_TAB): Update.
1803 (gt_pch_cache_rtab): Declare.
1804 (gt_pch_scalar_rtab): Declare.
1805 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
1806 (LAST_GGC_CACHE_TAB): Update.
1807 (gt_pch_save_stringpool): Declare.
1808 (gt_pch_restore_stringpool): Declare.
1809 (gt_pch_p_S): Declare.
1810 (gt_pch_n_S): Declare.
1811 (struct ggc_pch_data): Forward-declare.
1812 (init_ggc_pch): Declare.
1813 (ggc_pch_count_object): Declare.
1814 (ggc_pch_total_size): Declare.
1815 (ggc_pch_this_base): Declare.
1816 (ggc_pch_alloc_object): Declare.
1817 (ggc_pch_prepare_write): Declare.
1818 (ggc_pch_write_object): Declare.
1819 (ggc_pch_finish): Declare.
1820 (ggc_pch_read): Declare.
1821 (gt_pch_save): Declare.
1822 (gt_pch_restore): Declare.
1823 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
1824 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
1825 const_double_htab, mem_attrs_htab using GGC.
1826 * c-pch.c: Include ggc.h.
1827 (pch_init): Allow reading PCH file back.
1828 (c_common_write_pch): Call gt_pch_save.
1829 (c_common_read_pch): Call gt_pch_restore.
1830 * c-parse.in (init_reswords): Delete now-untrue comment.
1831 Allocate ridpointers using GGC.
1832 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
1833 calling expand_deferred_fns.
1834 * c-common.h (ridpointers): Mark for GTY machinery.
1835 * Makefile.in (stringpool.o): Update dependencies.
1836 (c-pch.o): Update dependencies.
1837 (ggc-common.o): Update dependencies.
1838 * stringpool.c: Include gt-stringpool.h.
1841 (struct string_pool_data): New.
1843 (gt_pch_save_stringpool): New.
1844 (gt_pch_restore_stringpool): New.
1845 * tree.c (init_ttree): Make type_hash_table allocated using GC.
1847 2002-10-04 Geoffrey Keating <geoffk@apple.com>
1849 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
1850 (output_mangled_typename): Don't pass size_t to printf.
1852 * tree.h (union tree_type_symtab): Add tag to `address' field.
1853 (union tree_decl_u2): Add tag to 'i' field.
1854 * varasm.c (union rtx_const_un): Add tags to all fields.
1855 * gengtype.c (struct walk_type_data): New.
1856 (output_escaped_param): Take struct walk_type_data parameter.
1857 (write_gc_structure_fields): Delete.
1859 (write_gc_marker_routine_for_structure): Delete.
1860 (write_func_for_structure): New.
1861 (gc_mark_process_field): New.
1862 (gc_mark_func_name): New.
1863 (gc_counter): Delete.
1864 (write_gc_types): Use write_func_for_structure.
1865 (write_gc_roots): Use walk_type.
1867 2002-10-02 Geoffrey Keating <geoffk@apple.com>
1869 * ggc-common.c (ggc_mark_roots): Delete 'x'.
1870 (ggc_splay_dont_free): Fix warning about unused 'x'.
1871 (ggc_print_common_statistics): Remove warnings.
1873 2002-10-01 Mike Stump <mrs@apple.com>
1875 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
1876 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
1878 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
1879 Catherine Moore <clm@redhat.com>
1881 * Makefile (c-pch.o): Update dependencies.
1882 (LIBCPP_OBJS): Add cpppch.o.
1884 * c-common.c (c_common_init): Don't call pch_init here.
1885 * c-common.h (c_common_read_pch): Update prototype.
1886 * c-lex.c (c_common_parse_file): Call pch_init here.
1887 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
1888 (c_common_decode_option): Handle them.
1889 * c-pch.c: Include c-pragma.h.
1890 (save_asm_offset): Delete.
1891 (pch_init): Move contents of save_asm_offset into here, call
1893 (c_common_write_pch): Call cpp_write_pch.
1894 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
1896 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
1897 * cppfiles.c (stack_include_file): Update for change to
1898 parameters of cb.read_pch.
1899 * cpphash.h (struct cpp_reader): Add `savedstate' field.
1900 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
1901 `restore_pch_deps' fields.
1902 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
1903 (cpp_save_state): Prototype.
1904 (cpp_write_pch): Prototype.
1905 (cpp_valid_state): Prototype.
1906 (cpp_read_state): Prototype.
1907 * cpppch.c: New file.
1908 * flags.h (version_flag): Remove prototype.
1909 * mkdeps.c (deps_save): New.
1910 (deps_restore): New.
1911 * mkdeps.h (deps_save): Prototype.
1912 (deps_restore): Prototype.
1913 * toplev.c (late_init_hook): Delete.
1914 (version_flag): Make static again.
1915 (compile_file): Don't call late_init_hook.
1916 * toplev.h (late_init_hook): Delete.
1917 * doc/cppopts.texi: Document -fpch-deps.
1918 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
1920 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
1922 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
1924 (c_common_valid_pch): Rename from c_valid_pch, change callers.
1925 (c_common_read_pch): Rename from c_read_pch, change callers.
1927 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
1928 a space between it and its argument.
1930 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
1932 * c-pch.c: New file.
1933 * toplev.h (late_init_hook): Declare.
1934 * toplev.c (late_init_hook): Define.
1935 (version_flag): Make globally visible.
1936 (compile_file): Call late_init_hook.
1937 (init_asm_output): Make output file seekable.
1938 * gcc.c (default_compilers): Update c-header rule.
1939 * flags.h (version_flag): Declare.
1940 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
1942 * cppfiles.c (struct include_file): Add 'pch' field.
1943 (INCLUDE_PCH_P): New.
1944 (open_file_pch): New.
1945 (stack_include_file): Handle PCH files specially.
1946 (find_include_file): Call open_file_pch instead of open_file.
1947 (_cpp_read_file): Explain why open_file is used instead of
1949 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
1950 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
1951 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
1952 in cpplib callbacks.
1953 * c-common.c (pch_file): Correct comment.
1954 (allow_pch): Define.
1955 (c_common_init): Call pch_init.
1956 * c-common.h (allow_pch): Declare.
1957 (pch_init): Declare.
1958 (c_valid_pch): Declare.
1959 (c_read_pch): Declare.
1960 (c_write_pch): Declare.
1961 * Makefile.in (c-pch.o): New.
1962 (C_AND_OBJC_OBJS): Add c-pch.o.
1963 * doc/invoke.texi (Precompiled Headers): Add index entries,
1964 complete truncated paragraph.
1966 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
1968 * c-common.c: (pch_file): Define.
1969 * c-common.h (pch_file): Declare.
1970 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
1971 (missing_arg): Require --output-pch= to have an argument.
1972 (c_common_decode_option): Handle --output-pch=.
1973 * gcc.c: Document new %V.
1974 (default_compilers): Handle compiling C header files.
1975 (do_spec_1): Implement %V.
1976 (main): Handle "gcc foo.h" without trying to run linker.
1977 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
1978 (Overall Options): Document what the driver does with header files,
1979 document new -x option possibilities.
1980 (Invoking G++): More documentation for PCH.
1981 (Precompiled Headers): New.
1983 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
1985 * ggc.h: Don't include varray.h. Rearrange functions to be more
1987 (ggc_add_root): Delete.
1988 (ggc_mark_rtx): Delete.
1989 (ggc_mark_tree): Delete.
1990 (struct ggc_statistics): Remove contents.
1991 * ggc-common.c: Remove unneeded includes.
1992 (struct ggc_root): Delete.
1994 (ggc_add_root): Delete.
1995 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
1996 (ggc_print_common_statistics): Remove most of the contents.
1997 * Makefile.in (GGC_H): No longer uses varray.h.
1998 (ggc-common.o): Update dependencies.
1999 (c-parse.o): Add varray.h to dependencies.
2000 (c-common.o): Add varray.h.
2001 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
2002 (mark_ident_hash): Rename to ggc_mark_stringpool.
2003 (init_stringpool): Don't use ggc_add_root.
2004 * c-parse.in: Include varray.h.
2005 * c-common.c: Include varray.h.
2006 * objc/Make-lang.in (objc-act.o): Add varray.h.
2007 * objc/objc-act.c: Include varray.h.
2009 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
2011 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
2012 (dw_cfi_oprnd1_desc): Likewise.
2014 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
2016 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
2018 (alpha_links): Use gengtype to mark; move out of ifdef.
2019 (mark_alpha_links_node): Delete.
2020 (mark_alpha_links): Delete.
2021 (alpha_need_linkage): Use GGC to allocate splay tree, struct
2022 alpha_links, strings. Don't use ggc_add_root.
2023 * ggc-common.c (ggc_splay_alloc): New.
2024 (ggc_splay_dont_free): New.
2025 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
2026 (ggc_mark_tree): Likewise.
2027 (splay_tree_new_ggc): New.
2028 (ggc_splay_alloc): Declare.
2029 (ggc_splay_dont_free): Declare.
2030 * dwarf2asm.c: Include gt-dwarf2asm.h.
2031 (mark_indirect_pool_entry): Delete.
2032 (mark_indirect_pool): Delete.
2033 (indirect_pool): Use gengtype to mark.
2034 (dw2_force_const_mem): Don't use ggc_add_root.
2035 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
2036 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
2037 (gt-dwarf2asm.h): Depend on s-gtype.
2039 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
2041 * tree.h (union tree_type_symtab): Mark `die' field.
2042 * Makefile.in (dwarf2out.o): Update dependencies.
2043 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
2045 (dw_cfi_oprnd1_desc): New function.
2046 (dw_cfi_oprnd2_desc): New function.
2047 (indirect_string_alloc): Delete.
2048 (debug_str_do_hash): New function.
2049 (debug_str_eq): New function.
2050 (mark_limbo_die_list): Delete.
2051 (dwarf2out_init): Don't call ggc_add_root.
2053 2003-01-09 Vladimir Makarov <vmakarov@redhat.com>
2055 The following changes are merged from itanium-sched-branch:
2057 2003-01-08 David Edelsohn <edelsohn@gnu.org>
2059 * doc/md.texi: Clarify assignment of units to automata description.
2061 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
2063 * genautomata.c (unit_decl): Remove members
2064 `the_same_automaton_unit' and
2065 `the_same_automaton_message_reported_p'.
2066 (process_unit_to_form_the_same_automaton_unit_lists,
2067 form_the_same_automaton_unit_lists_from_regexp,
2068 form_the_same_automaton_unit_lists, the_same_automaton_lists):
2070 (annotation_message_reported_p): New global variable.
2071 (check_unit_distribution_in_reserv,
2072 check_regexp_units_distribution): New functions.
2073 (check_unit_distributions_to_automata): Rewrite it.
2075 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
2077 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
2078 Use continue instead of break if cycle is too big.
2080 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
2082 * genautomata.c (check_unit_distributions_to_automata): Output at
2083 most one message for a unit.
2084 (process_unit_to_form_the_same_automaton_unit_lists): Check
2085 automaton of units instead of units themself.
2087 * doc/md.texi: Describe the constraint about assigning unit to
2090 2002-12-20 Jan Hubicka <jH@suse.cz>
2091 Vladimir Makarov <vmakarov@redhat.com>
2093 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
2095 (gen_cpu_unit): Initialize the new members.
2096 (process_regexp_cycles): Calculate minimal finish cycle too. Set
2097 up `min_occ_cycle_num'.
2098 (evaluate_max_reserv_cycles): Change the function call.
2099 (CLEAR_BIT): New macro.
2100 (states_union, state_shift): Use the mask.
2101 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
2102 (form_reservs_matter): New function.
2103 (make_automaton): Call the function and use the mask.
2104 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
2107 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2109 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
2111 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2113 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
2116 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2118 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
2121 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
2122 2002-10-31 Dale Johannesen <dalej@apple.com>
2124 * haifa-sched.c (find_set_reg_weight): New function.
2125 (find_insn_reg_weight): Use the new function.
2126 (schedule_block): Do sorting ready queue always
2129 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
2131 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
2133 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
2135 * haifa-sched.c (choice_entry): New structure.
2136 (choice_stack, cycle_issued_insns): New variables.
2137 (max_issue): Rewrite it.
2138 (choose_ready): Set up ready_try for unknown insns too.
2139 (schedule_block): Allocate and free choice_stack. Set up
2140 and modify cycle_issued_insns.
2142 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
2143 with and without filling the bundle.
2144 (bundling): Combine calls of issue_nops_and_insn.
2146 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
2148 * config/ia64/itanium1.md: New file.
2150 * config/ia64/itanium2.md: New file.
2152 * config/ia64/ia64.md: Move DFA descriptions into the new files.
2153 Remove the old pipeline description.
2155 * config/ia64/ia64.c (ia64_override_options): Add aliases of
2156 itanium processor names.
2158 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
2160 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
2161 (ia64_reorg): Set up queried unit codes for Itanium2 too.
2163 * config/ia64/ia64.md: Add descriptions for Itanium2.
2165 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2167 * config/ia64/ia64.h (processor_type): New enumeration.
2168 (ia64_tune, ia64_tune_string): New external declarations.
2169 (TARGET_OPTIONS): Add option `tune='.
2171 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
2173 (ia64_override_options): Set up `ia64_tune'.
2174 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
2175 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
2176 (bundling): Add nops for MM-insns only for Itanium.
2177 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
2180 * config/ia64/ia64.md (cpu): New attribute.
2181 (DFA description): Enable it only for Itanium.
2183 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
2184 Richard Henderson <rth@redhat.com>
2186 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
2187 MASK_EARLY_STOP_BITS.
2188 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
2189 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
2192 * config/ia64/ia64.c (ia64_dfa_new_cycle,
2193 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
2194 instead of TARGET_TUNE_STOP_BITS.
2196 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
2197 `-mearly-stop-bits'.
2199 * config/ia64/ia64.c (automata_option "v"): Comment it.
2201 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
2203 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
2205 (TARGET_SWITCHES): Add entries for the new option.
2207 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
2208 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
2209 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
2211 (ia64_sched_reorder2): Set up `clocks'.
2212 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
2213 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
2214 queue when TARGET_TUNE_STOP_BITS.
2215 (bundling): Insert additional nops for MM-insns.
2216 (final_emit_insn_group_barriers): Add insertion of stop bits
2217 according `stops_p'.
2218 (ia64_reorg): Initiate the new varibales.
2220 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
2222 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
2224 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
2225 insns at the end of block insn scheduling.
2227 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
2229 * sched-deps.c (remove_dependence, group_leader): Remove it.
2230 (add_dependence): Add dependence to group leader to.
2231 (set_sched_group_p): Add dependence to the first insn of the
2233 (sched_analyze_insn): Make dependence to jump as anti-dependence.
2234 Change true dependence by anti-dependence when
2235 `reg_pending_barrier'.
2237 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
2238 add_branch_dependences): Ignore schedule groups.
2240 * sched-ebb.c (init_ready_list): Ditto.
2242 * (move_insn, set_priorities): Ditto.
2244 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
2245 flag is clear after reload.
2246 (adjust_cost): Change cost only for output dependencies.
2248 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
2250 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
2252 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
2254 * target.h (gcc_target): Add member
2255 `dependencies_evaluation_hook'.
2257 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
2259 (TARGET_SCHED): Add initiatialization of the new member.
2261 * sched-ebb.c: Include `target.h'.
2262 (schedule_ebb): Call `dependencies_evaluation_hook'.
2264 * sched-rgn.c (schedule_region): Call
2265 `dependencies_evaluation_hook'.
2267 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2269 (ia64_dependencies_evaluation_hook): New function.
2271 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
2272 Describe the new hook.
2274 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
2276 * target.h (gcc_target): Add members
2277 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
2279 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
2280 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
2282 (TARGET_SCHED): Add initiatialization of the new members.
2284 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
2285 insn scheduling too.
2286 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
2287 initialize `ready_try'.
2288 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
2289 `dfa_new_cycle' says not to do it.
2291 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
2294 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
2296 * config/ia64/ia64.c: Include `hashtab.h'.
2297 (ia64_first_cycle_multipass_dfa_lookahead_guard,
2298 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
2299 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
2300 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
2301 bundle_state_eq_p, insert_bundle_state,
2302 initiate_bundle_state_table, finish_bundle_state_table,
2303 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
2304 get_template, get_next_important_insn, bundling): New functions.
2305 (ia64_internal_sched_reorder): Remove it.
2306 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2307 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
2308 (ia64_safe_itanium_requires_unit0): Remove it.
2309 (group_barrier_needed_p): Place group barrier right before a real
2311 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
2313 (bundle_name): New variable.
2314 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
2315 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
2316 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
2317 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
2318 temp_dfa_state, prev_cycle_state): New global variables.
2319 (insn_matches_slot, maybe_rotate, finish_last_head,
2320 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
2321 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
2322 find_best_packet, itanium_reorder, dump_current_packet,
2323 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
2324 (sched_data, sched_ready, sched_types): Remove them.
2325 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
2326 `init_insn_group_barriers'.
2327 (ia64_sched_reorder, ia64_sched_reorder2): Call
2328 ia64_dfa_sched_reorder.
2329 (ia64_variable_issue): Rewrite it.
2330 (bundle_state): New structure.
2331 (index_to_bundle_states, bundle_states_num,
2332 allocated_bundle_states_chain, free_bundle_state_chain): New
2334 (ia64_sched_finish): Add stop bits and call `bundling' after the
2335 2nd insn scheduling.
2336 (ia64_use_dfa_pipeline_interface): Return zero always.
2337 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
2339 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
2340 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
2341 (ia64_reorg): Add bundling insns.
2344 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
2345 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
2347 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
2349 * config/ia64/ia64.md: Add Itanium1 DFA description.
2350 (itanium_class): Add `nop' and `pre_cycle'. Add
2351 define_function_unit for `nop'.
2352 (nop): Change attribute `itanium_class'.
2353 (pre_cycle): New define_insn.
2355 * config/ia64/ia64-protos.h (bundling_p): New external variable.
2356 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
2357 ia64_produce_address_p): New function prototypes.
2359 * config/ia64/ia64.c (bundling_p): New global variable.
2360 (ia64_use_dfa_pipeline_interface,
2361 ia64_first_cycle_multipass_dfa_lookahead,
2362 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
2364 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2365 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2366 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2367 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
2368 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
2369 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
2370 (dfa_pre_cycle_insn): New variable.
2372 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2374 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
2377 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
2378 New function prototypes.
2380 * genattrtab.c (main): Process the new constructions.
2382 * genautomata.c (gen_presence_absence_set,
2383 process_presence_absence_names, process_presence_absence_patterns,
2384 add_presence_absence, check_absence_pattern_sets): Add parameter
2386 (unit_decl): Add new members `final_presence_list' and
2387 `final_absence_list'.
2388 (unit_pattern_rel_decl): Add new member `final_p'.
2389 (gen_final_presence_set, gen_final_absence_set): New functions.
2390 (process_decls): Use member `final_p'.
2391 (temp_reserv): New global variable.
2392 (reserv_sets_are_intersected): Add processing `final_presence_set'
2393 and `final_absence_set'.
2394 (initiate_states): Allocate `temp_reserv'.
2395 (unit_final_presence_set_table, unit_final_absence_set_table): New
2397 (initiate_presence_absence_pattern_sets): Initiate them.
2398 (NDFA_to_DFA): Fix typo.
2399 (output_description): Output `final_presence_set' and
2400 `final_absence_set'.
2402 * doc/md.texi (final_presence_set, final_absence_set): Describe
2405 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2407 * genautomata.c (transform_3): Process a missing case (nothing on
2410 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
2412 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
2413 comments about queried units and the minimization.
2415 * doc/md.texi: Ditto.
2417 * genautomata.c (create_composed_state): Return nonzero if the new
2418 state has been created.
2419 (first_cycle_unit_presence): New function.
2420 (state_is_differed): Add new parameter. Use the new function.
2421 Take queried units into account.
2422 (partition_equiv_class): Pass additional parameter to
2423 `state_is_differed'.
2424 (merge_states): Process composed states too.
2425 (build_automaton, create_automata, output_min_issue_delay_table,
2426 output_tables, output_statistics): Output more information.
2427 (output_reserved_units_table): Use function
2428 `first_cycle_unit_presence'.
2429 (output_tables): Output table of queried units even if the
2430 minimization is switched on.
2431 (write_automata): Output code for querying units even if the
2432 minimization is switched on.
2434 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
2436 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
2437 syntax of the constructions.
2439 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
2440 extended syntax of the constructions.
2442 * genautomata.c (unit_rel_decl): Rename it to
2443 `unit_pattern_rel_decl'.
2444 (pattern_set_el, pattern_reserv): New structures.
2445 (pattern_set_el_t, pattern_reserv_t): New types.
2446 (gen_presence_absence_set): New function.
2447 (process_presence_absence): Remove it.
2448 (process_presence_absence_names,
2449 process_presence_absence_patterns): New functions.
2450 (get_presence_absence_set): Remove it.
2451 (initiate_presence_absence_sets): Rename it on
2452 `initiate_presence_absence_pattern_sets'. Use new function
2453 `form_reserv_sets_list'.
2454 (form_reserv_sets_list, check_presence_pattern_sets,
2455 check_absence_pattern_sets, output_pattern_set_el_list): New
2457 (unit_decl): Change types of members `presence_list' and
2459 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
2460 (decl): Change types of members `excl', `presence', and `absence'.
2461 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
2462 at the end of the vector.
2463 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
2464 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
2465 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
2466 (gen_presence_set, gen_absence_set): Use new function
2467 `gen_presence_absence_set'.
2468 (add_presence_absence): Process `pattern_list' instead of
2470 (process_decls): USe new functions
2471 `process_presence_absence_names' and
2472 `process_presence_absence_patterns'.
2473 (reserv_sets_are_intersected): Use new function
2474 `check_presence_pattern_sets'.
2475 (presence_set, absence_set): Remove them.
2476 (unit_presence_set_table, unit_absence_set_table): New global
2478 (output_description): Use new function
2479 `output_pattern_set_el_list'.
2480 (generate): Use `initiate_presence_absence_pattern_sets'.
2482 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
2484 * genattr.c (main): Add output of prototype of new interface
2485 function `dfa_clean_insn_cache'.
2487 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
2488 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
2489 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
2491 (write_automata): Call the new function.
2493 Thu Jan 9 22:47:38 CET 2003 Jan Hubicka <jh@suse.cz>
2495 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
2498 2003-01-09 Paolo Carlini <pcarlini@unitus.it>
2500 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
2502 Thu Jan 9 17:26:40 2003 J"orn Rennecke <joern.rennecke@superh.com>
2504 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
2505 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
2506 (CONSTRAINT_LEN): Provide default definition.
2507 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
2508 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
2509 (EXTRA_CONSTRAINT_STR): Likewise.
2510 (REG_CLASS_FROM_CONSTRAINT): Define.
2511 * genoutput.c (check_constraint_len, constraint_len): New functions.
2512 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
2513 constraint / modifier.
2514 (gen_insn): Call check_constraint_len.
2515 * local-alloc.c (block_alloc): Update to use new macros / pass
2516 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
2517 * ra-build.c (handle_asm_insn): Likewise.
2518 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
2519 (constrain_operands, peep2_find_free_register): Likewise.
2520 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
2521 * regmove.c (find_matches): Likewise.
2522 * reload.c (push_secondary_reload, find_reloads): Likewise.
2523 (alternative_allows_memconst): Likewise.
2524 * reload1.c (maybe_fix_stack_asms): Likewise.
2525 (reload_cse_simplify_operands): Likewise.
2526 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2527 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
2528 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
2529 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
2530 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
2531 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
2533 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
2535 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
2537 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
2539 (*extzv_1_r_h8300hs): Likewise.
2540 (*extzv_1_r_inv_h8300): Likewise.
2541 (*extzv_1_r_inv_h8300hs): Likewise.
2543 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
2545 * config/h8300/h8300.h (PREDICATE_CODES): New.
2547 2003-01-09 Kazu Hirata <kazu@cs.umass.edu>
2549 * config/h8300/h8300.md (*addsi3_upper): New.
2550 (*iorsi3_shift): Likewise.
2551 (two splitters): Likewise.
2552 (*addsi3_shift): Likewise.
2553 (two splitters): Likewise.
2555 2003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
2557 * Makefile.in (optabs.o): Add dependency on basic-block.h.
2558 * basic-block.h (control_flow_insn_p): Fuction was exported.
2559 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
2560 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
2561 notes only when the region is contained in a single basic block.
2563 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
2566 * tree.h (expand_asm): New prototype.
2567 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
2569 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
2571 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
2572 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
2573 (volatile_refs_p) [ASM_INPUT]: Likewise.
2574 (side_effects_p) [ASM_INPUT]: Likewise.
2576 Thu Jan 9 12:00:36 CET 2003 Jan Hubicka <jh@suse.cz>
2578 * i386.md (*mul*): FIx constraints; remove confused comment; fix
2579 athlon_decode attributes
2580 (imul/k8 optimization peep2s): New.
2582 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
2583 * i386.md (type attribute): Add ssecomi.
2584 (unit, memory, prefix attributes): Handle ssecomi.
2585 (cvt?2? patterns): Fix athlon_decode attribute
2586 (comi patterns): Set attribute to ssecomi.
2589 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
2591 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
2593 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
2594 that match register_operands.
2595 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
2596 register_operand the default case.
2598 2003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
2601 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
2602 an empty element, do not advance the pointer to unfilled
2603 fields if there are pending initializers.
2605 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2607 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
2608 (install-gcc-tooldir, install-cpp, installdirs,
2609 install-common, install-driver, install-info, install-man,
2610 install-headers, install-include-dir, install-headers-tar,
2611 install-headers-cpio, install-headers-cp, install-mkheaders,
2612 install-collect2, uninstall): Prepend $(DESTDIR) to
2613 destination paths in all (un)installation commands.
2614 (install-driver): Rewrite $(LN) commands to support DESTDIR
2615 with "ln" as well as with "ln -s".
2616 (installdirs): Simply use mkinstalldirs.
2617 (install-libgcc, install-multilib): Also pass DESTDIR.
2618 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
2619 installation destination variable ldir.
2620 * config/alpha/t-osf4, config/arm/t-netbsd,
2621 config/ia64/t-hpux, config/mips/t-iris5-6,
2622 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
2623 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
2624 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
2625 in the definition of SHLIB_INSTALL.
2626 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
2627 $(libsubdir) in the installation commands.
2629 2003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
2631 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
2632 non-optimizing compile.
2633 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
2636 2003-01-08 Douglas B Rupp <rupp@gnat.com>
2638 * config/i386/i386.c (ix86_attribute_table): Add new attributes
2639 ms_struct and gcc_struct.
2640 (ix86_handle_struct_attribute): New function.
2641 (ix86_ms_bitfield_layout_p): Update to take new attributes
2643 * doc/extend.texi: Document new attributes.
2644 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
2646 2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
2648 PR optimization/8750
2649 * config/i386/i386.c (ix86_expand_prologue): Don't allow
2650 scheduling pass to move insns across __alloca call.
2652 2003-01-08 Dale Johannesen <dalej@apple.com>
2654 * config/rs6000/rs6000.md: Replace *store_multiple_string
2657 2003-01-08 Jeff Sturm <jsturm@one-point.com>
2660 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
2661 Set SYMBOL_REF_FLAG on local data sym_ref.
2663 2003-01-08 Dale Johannesen <dalej@apple.com>
2665 * function.c (assign_parms): Don't set pretend_args_size if
2666 REG_PARM_STACK_SPACE.
2667 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
2670 2003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
2674 Thu Jan 9 00:57:15 CET 2003 Jan Hubicka <jh@suse.cz>
2676 * i386.c (ix86_expand_int_addcc): Fix thinko.
2678 2003-01-08 David Edelsohn <edelsohn@gnu.org>
2680 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
2681 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
2682 as hook_bool_tree_hwi_hwi_tree_true.
2683 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
2684 (rs6000_emit_epilogue): Same.
2685 (rs6000_output_mi_thunk): Re-implement as RTL.
2686 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
2687 xcoffout_declare_function if any debugging enabled.
2689 2003-01-08 Chris Demetriou <cgd@broadcom.com>
2691 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
2692 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
2693 * config/mips/mips.h (enum processor_type): Rename
2694 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
2695 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
2697 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
2698 (ISA_MIPS32R2): New define.
2699 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
2700 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
2701 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
2702 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
2703 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
2704 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
2705 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
2706 compiling MIPS16 code.
2707 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
2709 (ISA_HAS_SEB_SEH): New define.
2710 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
2711 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
2712 processor_type value renaming. Add support for MIPS32R2.
2713 Clean up comments, and move "sb1" entry with other MIPS64 CPU
2715 (override_options): Reimplement -mipsN option handling so that
2716 it will work correctly for -mips32r2. Avoid branch-likely
2717 instructions on MIPS32R2.
2718 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
2719 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
2720 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
2721 (extendhisi2_hw, extendqisi2_hw): New.
2722 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
2723 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
2724 MIPS32R2, and MIPS64.
2725 (LINK_SPEC): Pass -mips32r2 to linker.
2726 * config/mips/t-isa3264: Built -mips32r2 multilibs.
2727 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
2728 for mips32r2 in the -march description. Alphabetically sort
2729 CPU names in the -march description. Add long-missed -mips32
2730 and -mips64 to MIPS option summary.
2732 * config.gcc: Update copyright years to include 2003.
2733 * config/mips/mips.c: Likewise.
2734 * config/mips/mips.h: Likewise.
2735 * config/mips/mips.md: Likewise.
2736 * config/mips/netbsd.h: Likewise.
2737 * doc/invoke.texi: Likewise.
2739 2003-01-08 Andreas Schwab <schwab@suse.de>
2741 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
2743 * configure: Regenerated.
2745 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2747 * config/h8300/h8300.c (output_logical_op): Replace byte/word
2748 extraction of det with b0, b1, w0, w2, etc.
2749 (compute_logical_op_length): Likewise.
2750 (compute_logical_op_cc): Likewise.
2752 2003-01-08 Kazu Hirata <kazu@cs.umass.edu>
2754 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
2755 HIGH on all variants.
2757 Wed Jan 8 14:06:34 CET 2003 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
2759 * Makefile.in (PARTITION_H): New.
2760 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
2761 * basic-block.h: Include hard-reg-set.h.
2763 2003-01-08 Richard Earnshaw <rearnsha@arm.com>
2765 * arm.h (ENABLE_XF_PATTERNS): Delete.
2766 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
2767 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
2768 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
2769 (cmpxf_trap): Delete.
2770 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
2772 Wed Jan 8 12:10:57 CET 2003 Jan Hubicka <jh@suse.cz>
2774 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
2775 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
2776 (add??cc): New expanders.
2777 * i386.c (expand_int_addcc): New function.
2778 * i386-protos.h (expand_int_addcc): Declare.
2780 * alias.c (memory_modified_1): New static function.
2781 (memory_modified): New static varaible.
2782 (memory_modified_in_insn_p): New global function.
2783 * rtl.h (memory_modified_in_insn_p): Declare.
2784 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
2787 * expr.h (emit_conditional_add): Declare.
2789 2003-01-07 Janis Johnson <janis187@us.ibm.com>
2792 * doc/invoke.texi (-malign-double): Explain that the option breaks
2793 binary compatibility.
2795 2003-01-08 Andreas Schwab <schwab@suse.de>
2797 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
2798 should come from the generic *-*-linux* entry.
2800 Tue Jan 7 22:29:56 CET 2003 Jan Hubicka <jh@suse.cz>
2802 * cselib.c (cselib_current_insn_in_libcall): New static variable.
2803 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
2804 we are inside libcall.
2805 * cselib.h (elt_loc_list): Add in_libcall.
2806 * gcse.c (do_local_cprop): Do not copy propagate using insns
2809 2003-01-07 David Edelsohn <edelsohn@gnu.org>
2811 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
2812 not normally affect to issue rate.
2814 Tue Jan 7 21:46:57 CET 2003 Jan Hubicka <jh@suse.cz>
2816 * genopinit.c (optabs): Add addc_optab.
2817 * ifcvt.c (noce_try_store_flag): Rename to ...
2818 (noce_try_addcc): ... this one; handle generic conditional increment.
2819 (noce_process_if_block): Update noce_try_addcc call.
2820 * optabs.c (emit_conditional_add): New.
2821 (init_obtabs): Initialize addc_optab.
2822 * optabs.h (optab_index): Add OTI_addcc.
2823 (addcc_optab): New macro.
2824 * md.texi: Document addMcc
2827 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
2828 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
2829 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
2831 * reload1.c (delete_output_reload): Avoid repeated attempts
2834 2003-01-07 Andreas Schwab <schwab@suse.de>
2836 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
2837 Move --enable-initfini-array check ...
2838 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
2839 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
2840 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
2841 * configure: Rebuild.
2843 2003-01-07 Richard Henderson <rth@redhat.com>
2845 * alias.c (find_base_value): Only use new_reg_base_value shortcut
2846 if the register is set once.
2848 2003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
2850 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
2851 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
2852 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
2854 2003-01-07 Benjamin Kosnik <bkoz@redhat.com>
2855 Sunil Davasam <sunil.k.davasam@intel.com>
2858 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
2859 DW_CFA_same_value, read next and ignore.
2861 2003-01-07 Richard Henderson <rth@redhat.com>
2863 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
2865 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
2867 * cfg.c: Include alloc-pool.h
2868 (edge_pool): New pool.
2869 (bb_pool): New pool.
2870 (first_deleted_edge): Remove.
2871 (first_deleted_block): Remove.
2872 (init_flow): Alloc/free the pools.
2873 (free_edge): Use pools.
2874 (alloc_block): Ditto.
2875 (expunge_block): Ditto.
2876 (cached_make_edge): Ditto.
2878 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
2880 2003-01-07 Daniel Berlin <dberlin@dberlin.org>
2882 * et-forest.c: Include alloc-pool.h.
2883 (struct et_forest): Add node_pool and occur_pool.
2884 (et_forest_create): Create the new pools.
2885 (et_forest_delete): Delete them.
2886 (et_forest_add_node): Allocate and free using pools.
2887 (et_forest_add_edge): Ditto.
2888 (et_forest_remove_node): Ditto.
2889 (et_forest_remove_edge): Ditto.
2891 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
2893 2003-01-07 Kazu Hirata <kazu@cs.umass.edu>
2895 * config/h8300/h8300.c (output_logical_op): Simplify and
2896 optimize the handling of SImode.
2897 * config/h8300/h8300.c (compute_logical_op_length): Update
2899 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
2901 2003-01-07 Richard Sandiford <rsandifo@redhat.com>
2903 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
2904 big-endian correction to indirect arguments too.
2906 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
2908 Segher Boessenkool <segher@koffie.nl>
2910 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
2911 (alt_reg_names): Ditto, fix formatting.
2912 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
2914 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
2916 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
2917 (output_logical_op): Constify intval and det.
2918 (compute_logical_length): Likewise.
2919 (compute_logical_cc): Likewise.
2920 (output_a_shift): Constify mask.
2921 (h8300_encode_label): Constify len.
2923 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
2925 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
2926 (h8300_expand_epilogue): Likewise.
2928 2003-01-06 Aldy Hernandez <aldyh@redhat.com>
2930 Segher Boessenkool <segher@koffie.nl>
2932 * config/rs6000/altivec.md: Remove spaces from assembler
2933 instruction argument lists.
2935 2003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2937 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
2938 c4x_assembler_function_p.
2939 (c4x_null_epilogue_p): Complement return value, all uses updated.
2940 (c4x_insert_attributes): Add naked.
2941 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
2942 * doc/extend.texi: Update C4x function attributes.
2944 2003-01-06 Richard Henderson <rth@redhat.com>
2946 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
2947 properly when changing "local-ness".
2948 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
2950 2003-01-06 Dale Johannesen <dalej@apple.com>
2952 * config/darwin-protos.h: Add prototypes for new section functions.
2954 2003-01-06 Chris Demetriou <cgd@broadcom.com>
2956 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
2959 2003-01-06 Zack Weinberg <zack@codesourcery.com>
2961 * hwint.h: If the current compiler has no 64-bit type at all,
2962 make HOST_WIDEST_INT 32 bits.
2964 2003-01-06 Eric Christopher <echristo@redhat.com>
2966 * config/mips/mips.md (movdf_internal2): Fix constraints.
2968 2003-01-06 Kazu Hirata <kazu@cs.umass.edu>
2970 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
2972 2003-01-06 Richard Sandiford <rsandifo@redhat.com>
2974 * config/mips/mips.md (leadi): Use dla rather than la.
2976 2003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
2978 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
2979 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
2981 2003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
2983 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
2986 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
2988 * config/h8300/h8300.md (*extzv_8_23): New.
2990 2003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2992 * pa64-hpux.h (JCR_SECTION_NAME): Define.
2993 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
2994 USE_EH_FRAME_REGISTRY when defining.
2996 2003-01-05 Kazu Hirata <kazu@cs.umass.edu>
2998 * config/h8300/h8300.c (output_a_shift): Do not output a
3000 * config/h8300/h8300.md (two splitters): New.
3002 2003-01-05 Richard Sandiford <rsandifo@redhat.com>
3004 * config/mips/mips.md: Disable the movstrsi define_split.
3006 2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3008 * alloc-pool.c: Don't include "libiberty.h".
3009 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
3010 * convert.c (convert_to_real): Hide unused variable.
3012 2003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3014 * Makefile.in (gtyp-gen.h): Const-ify.
3015 * gcov-dump.c (tag_table): Likewise.
3017 2003-01-04 Bruce Korb <bkorb@gnu.org>
3019 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
3020 of *both* the file name and the fix name.
3022 2003-01-04 John David Anglin <dave.anglin@nrc.ca>
3024 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
3026 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
3027 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
3028 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
3029 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
3030 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
3031 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
3033 (EH_FRAME_IN_DATA_SECTION): Delete define.
3034 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
3035 (STARTFILE_SPEC): Use crtbegin.o.
3036 (ENDFILE_SPEC): Use crtend.o.
3037 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
3038 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
3039 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
3040 DTOR_LIST_BEGIN): Define.
3041 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
3042 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
3043 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
3045 2002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
3047 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
3048 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
3049 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
3050 Cleanup handling of replacement text.
3051 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
3053 2003-01-04 Bruce Korb <bkorb@gnu.org>
3055 * fixinc/tests/base/math.h: removed obsolete results
3056 * fixinc/tests/base/stdlib.h: ditto
3057 * fixinc/tests/base/sys/param.h: ditto
3058 * fixinc/tests/base/sys/stat.h: ditto
3059 * fixinc/tests/base/time.h: ditto
3060 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
3061 * fixinc/tests/base/sys/byteorder.h: ditto
3062 * fixinc/inclhack.def: Remove superfluous backslashes
3064 2003-01-04 Kazu Hirata <kazu@cs.umass.edu>
3066 * config/h8300/h8300-protos.h: Add prototypes for
3067 the new functions defined below.
3068 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
3070 (dosize): Emit RTL instead of assembly code.
3073 (h8300_output_function_prologue): Remove.
3074 (h8300_expand_prologue): New.
3075 (h8300_expand_epilogue): New.
3076 (h8300_output_function_epilogue): Do only the reset of
3078 * config/h8300/h8300.md (push_h8300): New.
3079 (push_h8300hs): Likewise.
3080 (pop_h8300): Likewise.
3081 (pop_h8300hs): Likewise.
3082 (*stm_h8300s_2): Change the name to stm_h8300s_2.
3083 (*stm_h8300s_3): Change the name to stm_h8300s_3.
3084 (*stm_h8300s_4): Change the name to stm_h8300s_4.
3085 (*ldm_h8300s_2): New.
3086 (*ldm_h8300s_3): Likewise.
3087 (*ldm_h8300s_4): Likewise.
3089 (*return_1): Likewise.
3090 (prologue): Likewise.
3091 (epilogue): Likewise.
3092 (monitor_prologue): Likewise.
3094 2003-01-03 Dale Johannesen <dalej@apple.com>
3096 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
3097 machopic_picsymbol_stub1.
3098 (EXTRA_SECTION_FUNCTIONS): Ditto.
3099 * rs6000/rs6000.c: Update copyright.
3100 (machopic_output_stub): Use them. Remove an insn from stub code.
3102 2003-01-02 Jason Merrill <jason@redhat.com>
3104 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
3106 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
3107 static/external decls.
3109 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
3111 * c-decl.c (c_make_fname_decl): Push the decls there, too.
3113 2003-01-03 Kazu Hirata <kazu@cs.umass.edu>
3115 * config/h8300/h8300-protos.h: Add a prototype for
3116 h8300_current_function_interrupt_function_p.
3117 * config/h8300/h8300.c (interrupt_handler): Remove.
3118 (os_task): Likewise.
3119 (monitor): Likewise.
3120 (pragma_interrupt): New.
3121 (WORD_REG_USED): Use
3122 h8300_current_function_interrupt_function_p.
3124 (h8300_output_function_prologue): Likewise.
3125 Do not set interrupt_handler, os_task, monitor.
3126 (h8300_output_function_prologue): Use
3127 h8300_current_function_interrupt_function_p.
3128 Do not set interrupt_handler, os_task, monitor.
3129 (h8300_current_function_interrupt_function_p): New.
3130 (h8300_pr_interrupt): Set pragma_interrupt.
3131 (h8300_insert_attributes): Reset pragma_interrupt.
3133 2003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3135 * doc/install.texi (Configuration): Fix markup for reference to
3138 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
3140 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
3141 (*iorhi3_two_qi): Likewise.
3142 (*iorsi3_zexthi): Likewise.
3143 (*xorhi3_zextqi): Likewise.
3144 (*xorsi3_zexthi): Likewise.
3145 (*xorsi3_zextqi): Likewise.
3147 2003-01-02 Kazu Hirata <kazu@cs.umass.edu>
3149 * config/h8300/h8300.c (stack_pointer_operand): New.
3150 (const_int_gt_2_operand): Likewise.
3151 (const_int_ge_8_operand): Likewise.
3152 * config/h8300/h8300.md (a splitter): Likewise.
3153 (a peephole2): Likewise.
3154 * config/h8300/h8300-protos.h: Add prototypes for the new
3157 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3159 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
3160 objc/objc-act.h: Fix copyright years.
3162 2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
3164 * doc/passes.texi: Fix documentation for -fssa-ccp
3166 2003-01-02 Neil Booth <neil@daikokuya.co.uk>
3168 * gccbug.in: Update for new categories.
3170 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3172 * config/h8300/h8300.md: Reorder some patterns.
3174 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3176 * config/h8300/h8300.c (output_logical_op): Fix a warning.
3178 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3180 * config/darwin-protos.h, config/c4x/c4x-protos.h,
3181 config/cris/cris-protos.h, config/i370/i370-protos.h,
3182 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
3183 config/v850/v850-protos.h: Use struct, and don't conditionally
3184 compile on GCC_C_PRAGMA_H.
3186 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3188 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
3189 * config/h8300/h8300-protos.h: Likewise.
3190 * config/sh/sh-protos.h: Likewise.
3192 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3194 * config/arm/arm-protos.h: Use struct cpp_reader instead of
3196 * config/h8300/h8300-protos.h: Likewise.
3197 * config/sh/sh-protos.h: Likewise.
3199 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3201 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
3202 arm_pr_long_calls_off): Use struct.
3203 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
3205 Don't include cpplib.h.
3206 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
3207 sh_pr_nosave_low_regs): Similarly.
3209 2003-01-01 Kazu Hirata <kazu@cs.umass.edu>
3211 * config/h8300/h8300.c: Include cpplib.h.
3213 2003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
3215 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
3216 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
3217 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
3218 "GCC" in the copyright header.
3220 2003-01-01 Neil Booth <neil@daikokuya.co.uk>
3222 * c-pragma.c (c_register_pragma): New.
3223 (init_pragma): Use it.
3224 * c-pragma.h (cpp_register_pragma): Don't declare.
3225 (c_register_pragma): New.
3226 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
3227 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
3228 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
3229 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
3230 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
3231 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
3232 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
3233 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
3234 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
3235 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
3236 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
3237 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
3239 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3241 * config/h8300/h8300-protos.h: Update the prototypes.
3242 * config/h8300/h8300.c (const_le_2_operand): Change to
3243 const_int_le_2_operand.
3244 (const_int_le_6_operand): Change to const_int_le_6_operand.
3245 * config/h8300/h8300.md (two peepholes): Update the function
3248 2002-12-31 Tom Tromey <tromey@redhat.com>
3250 * doc/install.texi (Testing): Fixed typo.
3252 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3254 * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
3255 (TRAMPOLINE_SIZE): Support the normal mode.
3256 (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
3258 2002-12-31 Mark Mitchell <mark@codesourcery.com>
3260 * c-common.h (pending_lang_change): Declare.
3262 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
3264 * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
3267 2002-12-31 Jerry Quinn <jlquinn@optonline.net>
3269 * gcc/doc/invoke.texi (Optimization Options): List the options
3270 enabled by each -O flag.
3272 2002-12-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3274 * doc/install.texi (Configuration): Explicitly refer
3275 gcc/config.gcc for a list of cpu models.
3277 2002-12-31 Kazu Hirata <kazu@cs.umass.edu>
3279 * config/h8300/h8300.h: Fix comment typos.
3281 2002-12-30 David Edelsohn <edelsohn@gnu.org>
3283 * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
3285 2002-12-30 Tom Tromey <tromey@redhat.com>
3287 * doc/install.texi (Testing): Mention Jacks.
3289 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
3291 * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
3293 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3295 * config/h8300/h8300.c (output_logical_op): Use extu.w in more
3297 (compute_logical_op_length): Update to reflect the change in
3299 (compute_logical_op_cc): Likewise.
3301 2002-12-30 Joseph S. Myers <jsm@polyomino.org.uk>
3303 * doc/service.texi: Uncomment and update FAQ link.
3305 2002-12-30 Andreas Jaeger <aj@suse.de>
3307 * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
3309 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3311 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
3313 2002-12-30 Kazu Hirata <kazu@cs.umass.edu>
3315 * config/h8300/h8300.c (output_logical_op): Use extu.w if we
3316 are clearing the most significant byte.
3317 (compute_logical_op_length): Update to reflect the change in
3319 (compute_logical_op_cc): Likewise.
3321 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3323 * config/h8300/h8300.md: Give internal names to anonymous
3326 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3328 * config/h8300/h8300.md: Reorder some insns.
3330 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
3332 * config/h8300/h8300-protos.h: Add prototypes for
3333 const_int_qi_operand and const_int_hi_operand.
3334 * config/h8300/h8300.c (const_int_qi_operand): New.
3335 (const_int_hi_operand): Likewise.
3336 * config/h8300/h8300.md (three peepholes): New.
3338 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
3340 * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
3343 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
3345 * configure.in: Increase makeinfo version requirement to 4.[2-9].
3346 * configure: Regenerate.
3347 * doc/install.texi: Update Texinfo version requirement.
3349 2002-12-28 Andreas Jaeger <aj@suse.de>
3351 * config/i386/i386.c (x86_function_profiler): Mark labelno as
3354 * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
3357 2002-12-27 Kazu Hirata <kazu@cs.umass.edu>
3359 * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
3361 (*iorhi_lshiftrt_8): New.
3363 2002-12-27 Joseph S. Myers <jsm@polyomino.org.uk>
3365 * doc/include/texinfo.tex: Update to version 2002-12-26.16.
3367 2002-12-27 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3369 * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
3371 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3373 * config/h8300/h8300-protos.h: Fix comment typos.
3375 * config/h8300/h8300.c: Fix comment typos.
3377 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3379 * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
3381 2002-12-26 Kazu Hirata <kazu@cs.umass.edu>
3383 * config/i386/athlon.md: Fix comment typos.
3384 * config/i386/crtdll.h: Likewise.
3385 * config/i386/djgpp.h: Likewise.
3386 * config/i386/i386-interix.h: Likewise.
3387 * config/i386/i386.c: Likewise.
3388 * config/i386/i386.h: Likewise.
3389 * config/i386/i386.md: Likewise.
3390 * config/i386/k6.md: Likewise.
3391 * config/i386/mingw32.h: Likewise.
3392 * config/i386/pentium.md: Likewise.
3393 * config/i386/sco5.h: Likewise.
3394 * config/i386/winnt.c: Likewise.
3395 * config/i386/xmmintrin.h: Likewise.
3397 2002-12-26 Jose Renau <renau@cs.uiuc.edu>
3399 * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
3400 INSN_P before checking to see if it is dead.
3401 (mark_all_insn_unnecessary): Similarly.
3402 (ssa_eliminate_dead_code): Similarly.
3403 * rtl.h (struct rtx_def): Update comments for in_struct usage
3404 in dead code elimination pass.
3405 (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
3407 2002-12-26 Andreas Schwab <schwab@suse.de>
3409 * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
3411 2002-12-25 David Edelsohn <edelsohn@gnu.org>
3413 * config/rs6000/rs6000.c (rs6000_override_options): Convert to
3414 tartet_flags_explicit.
3415 * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
3416 Compact target_flags bits.
3417 (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
3418 (TARGET_SWITCHES): Delete references to *_SET flags.
3420 Wed Dec 25 20:30:53 CET 2002 Jan Hubicka <jh@suse.cz>
3422 * i386.md (memory attribute): Fix setcc attribute.
3424 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3426 * output.h: Fix comment typos.
3427 * predict.c: Likewise.
3428 * print-tree.c: Likewise.
3429 * profile.c: Likewise.
3430 * ra-build.c: Likewise.
3431 * ra-colorize.c: Likewise.
3432 * ra-debug.c: Likewise.
3433 * ra-rewrite.c: Likewise.
3437 * recog.c: Likewise.
3438 * reg-stack.c: Likewise.
3439 * regclass.c: Likewise.
3441 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3443 * config/h8300/h8300.c (print_operand_address): Do not negate
3444 a negative number when printing one.
3446 2002-12-25 Kazu Hirata <kazu@cs.umass.edu>
3448 * config/h8300/h8300-protos.h: Add prototypes for
3449 output_plussi, compute_plussi_length, and compute_plussi_cc.
3450 * config/h8300/h8300.c (output_plussi): New.
3451 (compute_plussi_length): Likewise.
3452 (compute_plussi_cc): Likewise.
3453 * config/h8300/h8300.md (addsi_h8300h): Call
3454 output_plussi, compute_plussi_length, and compute_plussi_cc.
3456 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
3458 * config/h8300/h8300.md (two peepholes): Use match_dup instead
3459 of match_operand in the new patterns.
3461 2002-12-24 Joseph S. Myers <jsm@polyomino.org.uk>
3463 * doc/include/texinfo.tex: Update to version 2002-11-25.11.
3465 2002-12-24 Nathan Sidwell <nathan@codesourcery.com>
3467 * configure.in (enable-coverage): Add SELF_COVERAGE.
3468 * profile.c (end_branch_prob): Use SELF_COVERAGE.
3470 2002-12-24 Jim Wilson <wilson@redhat.com>
3472 * alias.c (record_set): Handle multi-reg hard registers.
3474 2002-12-24 Kazu Hirata <kazu@cs.umass.edu>
3476 * regmove.c: Fix comment typos.
3477 * reload.c: Likewise.