1 2002-10-03 Andreas Jaeger <aj@suse.de>
3 * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
4 to unsigned long, adjust printf format string.
5 (output_mangled_typename): Likewise.
7 2002-10-03 Jason Thorpe <thorpej@wasabisystems.com>
9 * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
10 * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
11 (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
12 assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
13 (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
14 (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
15 * config/vax/elf.h (FUNCTION_PROFILER): Remove.
16 (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
18 2002-10-03 Mark Mitchell <mark@codesourcery.com>
20 * doc/invoke.texi (-Wabi): Document mangling bug.
22 2002-10-04 Alan Modra <amodra@bigpond.net.au>
24 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
25 name for the tbtab label that depends on the function asm name.
26 Don't output tbtab label unless optional_tbtab.
27 (output_mi_thunk): Formatting.
29 2002-10-03 Richard Henderson <rth@redhat.com>
31 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
32 * config/m68k/m68k.c (override_options): ... here.
33 * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
34 * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
35 * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
36 * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
38 2002-10-03 Richard Henderson <rth@redhat.com>
40 * real.h (struct real_value): Use ENUM_BITFIELD.
42 2002-10-03 Richard Henderson <rth@redhat.com>
44 * config/i960/i960.md (call, call_value): Use emit_call_insn.
46 2002-10-03 Steve Ellcey <sje@cup.hp.com>
48 * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
50 2002-10-03 Steve Ellcey <sje@cup.hp.com>
52 * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
53 * config/pa/pa.h (MASK_GNU_LD): New.
55 * config/pa/pa64-hpux.h (LINK_SPEC): Set based
56 on gnu-ld and MASK_GNU_LD.
57 (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
59 Thu Oct 3 23:35:51 CEST 2002 Jan Hubicka <jh@suse.cz>
61 * i386.c (athlon_cost): Fix the move costs.
63 Thu Oct 3 23:20:58 CEST 2002 Jan Hubicka <jh@suse.cz>
65 * final.c (final): Use symbol name as function name for profiling.
66 * profile.c (get_exec_counts): Likewise.
67 (branch_prob): Likewise.
69 2002-10-03 Jakub Jelinek <jakub@redhat.com>
71 * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
73 2002-10-03 Jakub Jelinek <jakub@redhat.com>
75 * gcc.c (print_multi_os_directory): New variable.
76 (option_map): Support --print-multi-os-directory.
77 (struct prefix_list): Add os_multilib field.
78 (multilib_os_dir): New variable.
79 (static_specs): Add multilib_options.
80 (find_a_file): Add multilib argument. Search in GCC or OS multilib
82 (read_specs, execute): Update callers.
83 (find_file): Likewise. Don't prefix name with multilib_dir, instead
84 pass 1 as multilib option.
85 (display_help): Include --print-multi-os-directory.
86 (add_prefix): Add os_multilib argument. Initialize pl->os_multilib.
87 (process_command): Update callers. Handle --print-multi-os-directory.
88 (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
90 (main): Update find_a_file and add_prefix callers.
91 Handle print_multi_os_directory.
92 (struct mdswitchstr): New.
93 (mdswitches, n_mdswitches): New variables.
94 (used_arg): Add MULTILIB_DEFAULT switches too if they are not
95 present on the command line nor their mutually incompatible
97 (default_arg): Optimize.
98 (set_multilib_dir): Compute multilib_os_dir. Initialize mdswitches
100 (print_multilib_info): Only print GCC multilib dir name, not OS
102 * genmultilib: Add osdirnames parameter. Output multilib_options
103 variable. If osdirnames is specified, output dirnames as
105 * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
106 and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
107 to compute libgcc_s soname and install path.
108 * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
109 SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
110 (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
113 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
114 (SHLIB_SLIBDIR_SUFFIXES): Remove.
115 * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
116 ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
117 (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
119 * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
120 (SHLIB_SLIBDIR_SUFFIXES): Remove.
121 * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
122 (STARTFILE_ARCH_SPEC): Remove.
123 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
124 (SHLIB_SLIBDIR_SUFFIXES): Remove.
125 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
126 * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
127 (SHLIB_SLIBDIR_SUFFIXES): Remove.
129 Thu Oct 3 21:42:20 CEST 2002 Jan Hubicka <jh@suse.cz>
131 * predict.c (choose_function_section): Avoid choice for linkonce functions.
133 Thu Oct 3 15:15:00 CEST 2002 Jan Hubicka <jh@suse.cz>
135 * i386.md (lea to mul peep2): Fix condition.
137 2002-10-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
139 * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
140 * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
142 2002-10-02 Richard Henderson <rth@redhat.com>
145 * config/i386/i386.c (ix86_register_move_cost): Increase cost
146 for secondary_memory_needed pairs.
148 2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
150 * doc/vms.texi: Blow away false include file section.
152 2002-10-02 Roger Sayle <roger@eyesopen.com>
155 * toplev.c (force_align_functions_log): New global variable.
156 * flags.h (force_align_functions_log): Add extern prototype.
157 * varasm.c (assemble_start_function): Use it to force minimum
159 * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
160 minimum function alignment to one byte.
161 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
162 the least significant bit of vtable member function pointers.
163 * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
164 here from cp/cp-tree.h.
166 Wed Oct 2 17:01:36 CEST 2002 Jan Hubicka <jh@suse.cz>
168 * i386.c (print_operand_address): Use RIP addressing for offsetted
171 2002-09-30 David S. Miller <davem@redhat.com>
174 * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
175 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
177 2002-10-01 Roger Sayle <roger@eyesopen.com>
179 * unroll.c (loop_iterations): Revert 2002-09-08 change.
181 2002-10-01 Richard Henderson <rth@redhat.com>
183 * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
184 (real_to_hexadecimal): Likewise.
185 * print-rtl.c (print_rtx): If we are linked with real.c, don't
186 dump the XWINT fields of a floating point CONST_DOUBLE.
188 2002-10-01 Jason Thorpe <thorpej@wasabisystems.com>
190 * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
192 2002-10-01 Richard Henderson <rth@redhat.com>
194 * calls.c (precompute_register_parameters): Force non-legitimate
195 constants into pseudos.
197 2002-10-01 Nick Clifton <nickc@redhat.com>
199 * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
200 to assembler template.
202 2002-10-01 Richard Henderson <rth@redhat.com>
204 * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
205 for TLS debug info to !DECL_EXTERNAL.
207 2002-10-01 Matt Thomas <matt@3am-software.com>
208 Jason Thorpe <thorpej@wasabisystems.com>
210 * config.gcc (vax-*-netbsdelf*): Enable configuration.
211 * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
212 if not already defined.
213 * config/vax/elf.h: New file.
214 * config/vax/netbsd-elf.h: New file.
215 * config/vax/vax.c: Include "debug.h".
216 (vax_output_function_prologue): Add dwarf2 support. Use
217 MAIN_NAME_P when checking for VMS_TARGET stack adjust.
218 * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
219 'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
220 'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
221 (VAX_ISTREAM_SYNC): Remove.
222 (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
223 (JUMP_TABLES_IN_TEXT_SECTION): Define.
224 (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
225 (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
227 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
228 (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
229 (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
230 (INCOMING_RETURN_ADDR_RTX): Define.
231 * config/vax/vax.md (VUNSPEC_BLOCKAGE)
232 (VUNSPEC_SYNC_ISTREAM): Define.
233 (blockage): Use VUNSPEC_BLOCKAGE.
234 (sync_istream): New insn.
236 2002-10-01 Richard Henderson <rth@redhat.com>
238 * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
239 (*call_value_pop, call, call_value): Add dwarf2 EH support.
242 2002-10-01 Nathan Sidwell <nathan@codesourcery.com>
245 * c-typeck.c (build_c_cast): Warn about type punning which breaks
248 2002-10-01 Mark Mitchell <mark@codesourcery.com>
250 * stor-layout.c (update_alignment_for_field): New function.
251 (place_union_field): Use it.
252 (place_field): Likewise.
254 2002-10-01 Nathan Sidwell <nathan@codesourcery.com>
257 * gcc.c (cc1_options): Add space on -auxbase-strip.
259 2002-10-01 Jim Wilson <wilson@redhat.com>
261 * config/v850/v850.h (EPILOGUE_USES): Define.
263 2002-09-30 Andrew Haley <aph@redhat.com>
265 * flow.c (insn_dead_p): When using non-call-exceptions, don't
266 eliminate insns that may trap.
267 * cse.c (insn_live_p): Likewise.
269 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
271 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
272 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
273 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
274 * config/mips/mips.md: Apply same renaming here.
276 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
278 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
279 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
280 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
281 * config/mips/mips.md (define_attr cpu): Remove r4320.
282 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
284 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
286 * config/mips/mips.c (mips16_strings): New variable.
287 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
288 symbol in mips16_strings. Free the list.
289 (mips_encode_section_info): Keep track of local strings.
291 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
293 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
294 (sordered_df, sordered_sf): Remove.
295 * config/mips/mips.c (get_float_compare_codes): New fn.
296 (gen_int_relational, gen_conditional_move): Use it.
298 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
300 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
301 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
302 * config/mips/mips.c (fcc_register_operand): New function.
303 (mips_emit_fcc_reload): New function, extracted from reload_incc.
304 (override_options): Allow TFmode values in float registers
306 * cnfig/mips/mips.md (reload_incc): Change destination prediate
307 to fcc_register_operand. Remove misleading source constraint.
308 Use mips_emit_fcc_reload.
309 (reload_outcc): Duplicate reload_incc.
311 2002-09-30 Ulrich Weigand <uweigand@de.ibm.com>
313 * longlong.h: Partially synchronize with GMP-4.1 version:
314 Use i370 definitions also for s390.
315 Add generic definition of umul_ppmm in terms of smul_ppmm.
316 [s390] (umul_ppmm): Remove.
317 [s390] (smul_ppmm): Fix incorrect assembler constraints.
318 [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
320 2002-09-30 Bob Wilson <bob.wilson@acm.org>
322 * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
323 Add new RL_REGS register class.
324 (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
325 Call xtensa_preferred_reload_class for both input and output reloads.
326 * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
327 (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
328 instead of either AR_REGS or GR_REGS classes.
329 (xtensa_secondary_reload_class): Use new RL_REGS class.
330 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
332 2002-09-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
334 * pa.c (hppa_encode_label): Don't drop '*' from function labels.
335 (pa_strip_name_encoding): Strip '@' and '*', in that order.
336 * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
337 there is a '*' prefix in NAME.
339 Mon Sep 30 21:33:23 CEST 2002 Jan Hubicka <jh@suse.cz>
341 * reload.c (push_reload): Handle subregs and secondary memory.
342 * reload1.c (gen_reload): Likewise.
344 * jump.c (reg_or_subregno): New function.
345 * rtl.h (reg_or_subregno): Declare
346 * unroll.c (find_splittable_givs): Handle subregs.
348 2002-09-30 Mark Mitchell <mark@codesourcery.com>
350 * store-layout.c (finish_record_layout): Add free_p parameter.
351 (layout_type): Pass it.
352 * tree.h (finish_record_layout): Update prototype.
354 Mon Sep 30 14:57:18 CEST 2002 Jan Hubicka <jh@suse.cz>
356 * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
358 * gcse.c (cprop_jump): Check that the register has not
360 (cprop_jump): Likewise.
362 2002-09-30 Richard Earnshaw <rearnsha@arm.com>
364 * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
365 (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
366 that we have a SImode access, and only then if reload hasn't completed;
367 for all other cases, use LO_REGS.
369 2002-09-29 Richard Henderson <rth@redhat.com>
371 * real.c (real_from_string): Apply sign last. Tidy exponent handling.
373 2002-09-29 Richard Henderson <rth@redhat.com>
376 * combine.c (force_to_mode): Handle FLOAT_MODE destinations
379 2002-09-29 David Edelsohn <edelsohn@gnu.org>
381 * real.h (ibm_extended_format): Declare.
382 * real.c (encode_ibm_extended, decode_ibm_extended): New
385 2002-09-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
387 * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
389 * ia64.c (ia64_hpux_asm_file_end): Const-ify.
391 2002-09-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
393 * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
395 2002-09-29 Kazu Hirata <kazu@cs.umass.edu>
397 * builtins.def: Fix comment formatting.
398 * c-common.def: Likewise.
399 * cfgcleanup.c: Likewise.
400 * combine.c: Likewise.
401 * gengtype.c: Likewise.
402 * params.def: Likewise.
403 * predict.def: Likewise.
405 * stab.def: Likewise.
406 * stor-layout.c: Likewise.
407 * tree.def: Likewise.
408 * config/darwin.c: Likewise.
409 * config/darwin.h: Likewise.
410 * config/dbxcoff.h: Likewise.
411 * config/elfos.h: Likewise.
412 * config/fp-bit.c: Likewise.
413 * config/freebsd-spec.h: Likewise.
414 * config/interix.h: Likewise.
415 * config/libgloss.h: Likewise.
416 * config/linux-aout.h: Likewise.
417 * config/linux.h: Likewise.
418 * config/lynx-ng.h: Likewise.
419 * config/lynx.h: Likewise.
420 * config/netbsd-aout.h: Likewise.
421 * config/netbsd.h: Likewise.
422 * config/netware.h: Likewise.
423 * config/psos.h: Likewise.
424 * config/ptx4.h: Likewise.
426 2002-09-28 Kazu Hirata <kazu@cs.umass.edu>
428 * ChangeLog.4: Fix typos.
429 * ChangeLog.6: Likewise.
430 * FSFChangeLog.10: Likewise.
431 * genattrtab.c: Fix comment typos.
432 * haifa-sched.c: Likewise.
435 * config/arm/arm.c: Likewise.
436 * config/arm/crti.asm: Likewise.
437 * config/arm/crtn.asm: Likewise.
438 * config/frv/frv.c: Likewise.
439 * config/frv/frv.md: Likewise.
440 * config/h8300/h8300.md: Likewise.
441 * config/i386/rtemself.h: Likewise.
442 * config/ia64/unwind-ia64.c: Likewise.
443 * config/ip2k/ip2k.h: Likewise.
444 * config/m88k/m88k.c: Likewise.
445 * config/m88k/m88k.md: Likewise.
446 * config/mips/sr71k.md: Likewise.
447 * config/mmix/mmix.c: Likewise.
448 * config/rs6000/rs6000.c: Likewise.
449 * config/sh/sh.md: Likewise.
451 2002-09-26 Theodore A. Roth <troth@verinet.com>
453 * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
454 * config/avr/avr.md: Ditto.
456 2002-09-27 Alexander N. Kabaev <ak03@gte.com>
459 * cppmacro.c (stringify_arg): Do not overflow the buffer
460 with the terminating NUL when the argument to be stringified
463 2002-09-27 Richard Henderson <rth@redhat.com>
465 * unroll.c (simplify_cmp_and_jump_insns): New.
466 (unroll_loop): Use it. Use simplify_gen_foo+force_operand
467 instead of expand_simple_foo.
469 2002-09-27 Richard Henderson <rth@redhat.com>
472 * cfganal.c (flow_active_insn_p): New.
473 (forwarder_block_p): Use it.
475 2002-09-27 Richard Henderson <rth@redhat.com>
477 * emit-rtl.c (active_insn_p): Revert last change.
479 2002-09-27 Jakub Jelinek <jakub@redhat.com>
481 * doc/extend.texi (tls_model): Document.
482 * varasm.c (decl_tls_model): New.
483 * c-common.c (handle_tls_model_attribute): New.
484 (c_common_attribute_table): Add tls_model.
485 * config/alpha/alpha.c (alpha_encode_section_info): Use
487 * flags.h (enum tls_model, flag_tls_default): Move...
488 * tree.h (enum tls_model, flag_tls_default): ...here.
489 (decl_tls_model): New prototype.
490 * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
491 * config/i386/i386.c (ix86_encode_section_info): Likewise.
492 * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
495 2002-09-27 Kazu Hirata <kazu@cs.umass.edu>
497 * LANGUAGES: Follow spelling conventions.
499 * sbitmap.c: Likewise.
500 * sched-int.h: Likewise.
501 * sched-rgn.c: Likewise.
502 * sibcall.c: Likewise.
503 * simplify-rtx.c: Likewise.
505 * stab.def: Likewise.
507 * stor-layout.c: Likewise.
508 * target.h: Likewise.
509 * timevar.c: Likewise.
510 * toplev.c: Likewise.
511 * tree-dump.c: Likewise.
512 * tree-inline.c: Likewise.
514 * tree.def: Likewise.
516 * unroll.c: Likewise.
517 * varasm.c: Likewise.
518 * vmsdbgout.c: Likewise.
519 * treelang/treelang.texi: Likewise.
520 * treelang/treetree.c: Likewise.
522 2002-09-27 Kazu Hirata <kazu@cs.umass.edu>
524 * config/h8300/h8300.c (compute_saved_regs): Use a macro
525 instead of a hard register number.
526 (get_shift_alg): Use an enumerated type instead of numbers.
527 (h8300_shift_needs_scratch_p): Likewise.
529 2002-09-26 David S. Miller <davem@redhat.com>
532 * calls.c (emit_library_call_value_1): Passing args by reference
533 converts a CONST function into a PURE one.
535 2002-09-26 David Edelsohn <edelsohn@gnu.org>
537 * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
539 * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
541 * config/rs6000/rs6000.c (rs6000_override_options): Allow
542 function-sections and data-sections functionality on AIX.
544 2002-09-26 David Edelsohn <edelsohn@gnu.org>
545 Dale Johannesen <dalej@apple.com>
547 * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
548 in RTL for sub-word loads from memory.
550 2002-09-26 Richard Henderson <rth@redhat.com>
553 * sched-deps.c (sched_analyze_insn): Make clobber insns depend
556 2002-09-26 Richard Henderson <rth@redhat.com>
558 * emit-rtl.c (const_double_htab_eq): Remove unused variable.
560 2002-09-26 Chris Lattner <sabre@nondot.org>
562 * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
563 handling undefined values.
565 2002-09-26 Richard Henderson <rth@redhat.com>
568 * emit-rtl.c (active_insn_p): Consider a clobber of the
569 function return value to be active even after reload.
571 2002-09-27 Alan Modra <amodra@bigpond.net.au>
573 * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
574 by absolute loop increment, not loop increment.
576 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
578 * c-common.h: Follow spelling conventions.
579 * cpplex.c: Likewise.
580 * cpplib.h: Likewise.
581 * gthr-dce.h: Likewise.
582 * gthr-posix.h: Likewise.
583 * optabs.c: Likewise.
584 * output.h: Likewise.
585 * profile.c: Likewise.
586 * protoize.c: Likewise.
587 * ra-rewrite.c: Likewise.
590 * reg-stack.c: Likewise.
591 * regclass.c: Likewise.
592 * regmove.c: Likewise.
593 * reload.c: Likewise.
594 * reload.h: Likewise.
595 * reload1.c: Likewise.
597 * resource.c: Likewise.
599 * rtlanal.c: Likewise.
601 2002-09-26 Steve Ellcey <sje@cup.hp.com>
603 * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
606 2002-09-24 Eric Christopher <echristo@redhat.com>
608 * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
609 * config/mips/elf64.h: Ditto.
611 2002-09-24 Eric Christopher <echristo@redhat.com>
613 * except.c (expand_builtin_extract_return_address): Handle case
614 where Pmode != ptr_mode.
616 2002-09-26 Steve Ellcey <sje@cup.hp.com>
618 * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
620 2002-09-26 Steve Ellcey <sje@cup.hp.com>
622 * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
624 2002-09-26 Igor Shevlyakov <igor@microunity.com>
626 * combine.c (simplify_set): Don't call to force_to_mode if size
627 of integer type is larger than HOST_BITS_PER_WIDE_INT.
629 2002-09-26 Janis Johnson <janis187@us.ibm.com>
631 * Makefile.in (qmtest-g++): Fix file path.
633 2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
635 * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
636 A + (-const) on RTX level, even for unsigned types.
638 2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
640 * reload.c (dup_replacements): New function.
641 (find_reloads): Use it to duplicate replacements at the top level
642 of match_dup operands.
644 2002-09-26 Miles Bader <miles@gnu.org>
646 * v850.md ("length"): Change default value to 4.
648 2002-09-26 Kazu Hirata <kazu@cs.umass.edu>
650 * ChangeLog.1: Follow spelling conventions.
651 * ChangeLog.4: Likewise.
652 * ChangeLog.6: Likewise.
653 * FSFChangeLog.11: Likewise.
654 * doc/cpp.texi: Likewise.
655 * doc/invoke.texi: Likewise.
656 * doc/tm.texi: Likewise.
658 2002-09-26 Nick Clifton <nickc@redhat.com>
660 * config.gcc: Add x prefix to v850e case for handling
663 2002-09-25 David S. Miller <davem@redhat.com>
666 * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
669 2002-09-25 Richard Henderson <rth@redhat.com>
671 * emit-rtl.c (const_double_htab_eq): Distinguish integer and
672 fp CONST_DOUBLE; use real_identical.
674 2002-09-25 Mark Mitchell <mark@codesourcery.com>
676 * doc/invoke.texi: Add more -Wabi examples.
678 2002-09-25 Richard Sandiford <rsandifo@redhat.com>
680 * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
682 2002-09-24 Denis Chertykov <denisc@overta.ru>
684 * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
685 cases of optimizing "add sp,w" to "inc sp".
687 2002-09-24 Adam Nemet <anemet@lnxw.com>
689 * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
690 epilogue for naked functions.
692 2002-09-24 Adam Nemet <anemet@lnxw.com>
693 Nick Clifton <nickc@redhat.com>
695 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
696 (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
699 2002-09-24 Ulrich Weigand <uweigand@de.ibm.com>
701 * config/s390/s390.c (preferred_la_operand_p): New function.
702 * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
703 * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
704 ("*la_64_cc", "*la_31_cc", splitters): ... these.
705 ("*la_31"): Deactivate for TARGET_64BIT.
706 ("*la_31_and", "*la_31_and_cc"): New.
708 2002-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
710 * real.h (real_value): Make `exp' explicitly signed.
712 2002-09-24 Kazu Hirata <kazu@cs.umass.edu>
714 * config/elfos.h: Follow spelling conventions.
715 * config/alpha/alpha.h: Likewise.
716 * config/arc/arc.h: Likewise.
717 * config/arm/arm.md: Likewise.
718 * config/avr/avr.h: Likewise.
719 * config/cris/cris.md: Likewise.
720 * config/d30v/d30v.h: Likewise.
721 * config/frv/frv.c: Likewise.
722 * config/frv/frv.h: Likewise.
723 * config/h8300/h8300.c: Likewise.
724 * config/h8300/h8300.h: Likewise.
725 * config/h8300/h8300.md: Likewise.
726 * config/i386/cygwin.h: Likewise.
727 * config/i386/i386.h: Likewise.
728 * config/i386/sysv3.h: Likewise.
729 * config/i960/i960.h: Likewise.
730 * config/ia64/ia64.h: Likewise.
731 * config/ia64/ia64.md: Likewise.
732 * config/ip2k/ip2k.h: Likewise.
733 * config/m32r/m32r.h: Likewise.
734 * config/m68k/m68k.h: Likewise.
735 * config/m88k/m88k.h: Likewise.
736 * config/mcore/mcore.c: Likewise.
737 * config/mcore/mcore.h: Likewise.
738 * config/mcore/mcore.md: Likewise.
739 * config/mips/mips.h: Likewise.
740 * config/mmix/mmix.h: Likewise.
741 * config/mmix/mmix.md: Likewise.
742 * config/ns32k/netbsd.h: Likewise.
743 * config/ns32k/ns32k.h: Likewise.
744 * config/ns32k/ns32k.md: Likewise.
745 * config/pa/pa.h: Likewise.
746 * config/romp/romp.h: Likewise.
747 * config/rs6000/rs6000.h: Likewise.
748 * config/rs6000/rs6000.md: Likewise.
749 * config/sparc/sparc.h: Likewise.
750 * config/stormy16/stormy-abi: Likewise.
751 * config/stormy16/stormy16.h: Likewise.
752 * config/vax/vax.h: Likewise.
754 2002-09-23 Zack Weinberg <zack@codesourcery.com>
756 * version.c (version_string): Now const char[].
757 * version.h: Update to match.
759 2002-09-23 Richard Henderson <rth@redhat.com>
761 * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
762 MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
763 (TARGET_SWITCHES): Don't reference them.
764 * config/i386/i386.c (override_options): Use target_flags_explicit
765 to examine bits set by the user.
767 2002-09-23 Dale Johannesen <dalej@apple.com>
769 * dbxout.c (dbxout_parms): Set current_sym_code for params
770 passed on stack by invisible reference.
772 2002-09-23 Richard Earnshaw <rearnsha@arm.com>
774 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
775 at least one byte of space.
777 2002-09-23 Mark Mitchell <mark@codesourcery.com>
779 * c-common.h (flag_abi_version): Fix typo in comment.
780 * doc/invoke.texi (flag_abi_version): Document default value.
782 2002-09-23 Hans-Peter Nilsson <hp@axis.com>
784 * doc/extend.texi (Extended Asm): Clarify that overlap between
785 asm-declared register variables used in an asm and the asm clobber
787 * stmt.c (decl_conflicts_with_clobbers_p): New function.
788 (expand_asm_operands): Keep track of clobbered registers. Call
789 decl_conflicts_with_clobbers_p for each input and output operand.
790 If no conflicts found before, also do conflict sanity check when
793 2002-09-23 Richard Henderson <rth@redhat.com>
795 * c-common.c (cpp_define_data_format): Remove.
796 (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
797 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
798 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
799 * doc/cpp.texi: Don't document them either.
800 (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
801 __LONG_LONG_MAX__): Document.
802 (__TARGET_FLOAT_FORMAT__): Remove.
804 2002-09-23 Richard Henderson <rth@redhat.com>
806 * real.c (do_multiply): Normalize U before addition.
808 2002-09-23 Mark Mitchell <mark@codesourcery.com>
810 * c-common.c (flag_abi_version): New variable.
811 * c-common.h (flag_abi_version): Declare it.
812 * c-opts.c (missing_arg): Add -fabi-version.
813 (c_common_decode_option): Process -fabi-version.
814 * doc/invoke.texi (-fabi-version): Document it.
815 (-Wabi): Add information about bit-fields in unions.
817 2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
819 * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
820 unless -fno-pic or -fno-PIC is specified.
822 2002-09-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
824 * c-common.c (preprocessing_trad_p): Define.
825 * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
826 (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
827 * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
828 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
829 * pa-linux.h (CPP_PREDEFINES): Delete.
830 (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
831 * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
832 * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
833 (TARGET_OS_CPP_BUILTINS): Define.
834 * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
835 (TARGET_SWITCHES): Reformat. Use N_() macro. Add SUBTARGET_SWITCHES.
836 (SUBTARGET_SWITCHES): Provide default definition.
837 (TARGET_OPTIONS): Reformat. Use N_() macro.
838 (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
839 CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
840 EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
841 (TARGET_CPU_CPP_BUILTINS): Define.
842 (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
843 * doc/invoke.texi (msio, mwsio): Document new hppa options.
844 * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
845 preprocessing_trad_p().
847 2002-09-22 Jason Thorpe <thorpej@wasabisystems.com>
849 * doc/install.texi: Document behavior of --with-headers and
850 --with-libs when arguments are omitted.
852 2002-09-22 Kazu Hirata <kazu@cs.umass.edu>
854 * dbxout.c: Follow spelling conventions.
855 * defaults.h: Likewise.
857 * diagnostic.h: Likewise.
858 * doloop.c: Likewise.
859 * dwarf2out.c: Likewise.
860 * dwarfout.c: Likewise.
861 * emit-rtl.c: Likewise.
862 * except.c: Likewise.
863 * explow.c: Likewise.
864 * expmed.c: Likewise.
869 * fold-const.c: Likewise.
870 * function.c: Likewise.
871 * function.h: Likewise.
873 * gcov-io.h: Likewise.
876 * genattrtab.c: Likewise.
877 * genconfig.c: Likewise.
878 * genrecog.c: Likewise.
879 * ggc-page.c: Likewise.
881 * global.c: Likewise.
882 * gthr-win32.h: Likewise.
883 * integrate.c: Likewise.
885 * langhooks.c: Likewise.
886 * langhooks.h: Likewise.
887 * line-map.h: Likewise.
888 * local-alloc.c: Likewise.
889 * longlong.h: Likewise.
893 Tue Aug 27 22:26:35 CEST 2002 Jan Hubicka <jh@suse.cz>
895 * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
897 Tue Aug 27 20:07:01 CEST 2002 Jan Hubicka <jh@suse.cz>
899 * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
900 for -Os/TARGET_64BIT too.
902 2002-09-21 Kazu Hirata <kazu@cs.umass.edu>
904 * ChangeLog: Follow spelling conventions.
905 * ChangeLog.0: Likewise.
906 * ChangeLog.1: Likewise.
907 * ChangeLog.2: Likewise.
908 * ChangeLog.3: Likewise.
909 * ChangeLog.4: Likewise.
910 * ChangeLog.5: Likewise.
911 * ChangeLog.6: Likewise.
912 * FSFChangeLog.10: Likewise.
913 * FSFChangeLog.11: Likewise.
915 * basic-block.h: Likewise.
916 * c-aux-info.c: Likewise.
917 * c-common.c: Likewise.
918 * c-common.h: Likewise.
919 * c-decl.c: Likewise.
920 * c-format.c: Likewise.
921 * c-semantics.c: Likewise.
922 * c-typeck.c: Likewise.
924 * cfganal.c: Likewise.
925 * cfgloop.c: Likewise.
926 * collect2.c: Likewise.
927 * combine.c: Likewise.
928 * conflict.c: Likewise.
929 * cppexp.c: Likewise.
930 * cppfiles.c: Likewise.
931 * cpphash.h: Likewise.
932 * cppinit.c: Likewise.
933 * cpplex.c: Likewise.
934 * cpplib.c: Likewise.
935 * cpplib.h: Likewise.
936 * cppmacro.c: Likewise.
939 2002-09-21 Richard Earnshaw <rearnsha@arm.com>
941 * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
943 (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
944 * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
945 (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
947 2002-09-21 Richard Earnshaw <rearnsha@arm.com>
950 * cse.c (fold_rtx): Calculate old_cost before we fold each
953 2002-09-21 Richard Henderson <rth@redhat.com>
955 * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
956 __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
957 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
958 __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
959 __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
960 * doc/cpp.texi: Don't document them.
962 2002-09-21 Richard Henderson <rth@redhat.com>
964 * c-common.c (builtin_define_float_constants): Use real_format
965 to get the floating-point parameters.
967 2002-09-21 Richard Henderson <rth@redhat.com>
969 * real.c (struct real_format): Move to real.h.
970 (real_format_for_mode): Rename from fmt_for_mode; update all users;
971 initialize with ieee defaults.
972 (real_to_target_fmt, real_from_target_fmt): New.
973 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
974 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
975 ieee_quad_format, i370_single_format, i370_double_format,
976 c4x_single_format, c4x_extended_format): Rename from s/_format//.
977 (ieee_quad_format): Fix emin.
978 (format_for_size, init_real_once): Remove.
979 * real.h (struct real_format): Move from real.c.
980 (real_format_for_mode): Declare.
981 (real_to_target_fmt, real_from_target_fmt): Declare.
982 (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
983 ieee_extended_intel_96_format, ieee_extended_intel_128_format,
984 ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
985 i370_single_format, i370_double_format, c4x_single_format,
986 c4x_extended_format): Declare.
987 * toplev.c (do_compile): Don't call init_real_once.
989 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
990 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
992 * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
993 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
994 * config/alpha/alpha.c (override_options): Set real_format_for_mode
997 * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
1000 * config/i370/i370.h (OVERRIDE_OPTIONS): New.
1001 * config/i370/i370.c (override_options): New.
1002 * config/i370/i370-protos.h: Update.
1004 * config/i386/i386.c (override_options): Set real_format_for_mode
1005 for Intel 80-bit extended.
1006 * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
1008 * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
1009 (OVERRIDE_OPTIONS): Move code...
1010 * config/i960/i960.c (i960_initialize): ... here. Set
1011 real_format_for_mode for Intel 80-bit extended.
1013 * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
1014 for Intel 80-bit extended, if enabled.
1016 * config/m68k/m68k.c (override_options): Set real_format_for_mode
1017 for Motorola 96-bit extended.
1019 * config/vax/vax.h (OVERRIDE_OPTIONS): New.
1020 * config/vax/vax.c (override_options): New.
1021 * config/vax/vax-protos.h: Update.
1023 2002-09-21 Alan Modra <amodra@bigpond.net.au>
1025 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
1028 * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
1029 insns. Supply missing clobber of scratch reg.
1031 2002-09-20 Kazu Hirata <kazu@cs.umass.edu>
1033 * config/m32r/m32r.c: Follow spelling conventions.
1034 * config/m32r/m32r.h: Likewise.
1035 * config/m32r/m32r.md: Likewise.
1036 * config/m68k/m68k.c: Likewise.
1037 * config/m88k/m88k.c: Likewise.
1038 * config/mcore/mcore.c: Likewise.
1039 * config/mips/mips.c: Likewise.
1040 * config/mips/mips.h: Likewise.
1041 * config/mmix/mmix.c: Likewise.
1042 * config/mn10200/mn10200.c: Likewise.
1043 * config/ns32k/ns32k.h: Likewise.
1044 * config/pa/pa.c: Likewise.
1045 * config/pa/pa64-linux.h: Likewise.
1046 * config/pdp11/pdp11.h: Likewise.
1047 * config/romp/romp.c: Likewise.
1048 * config/romp/romp.h: Likewise.
1049 * config/rs6000/eabi.asm: Likewise.
1050 * config/rs6000/linux64.h: Likewise.
1051 * config/rs6000/rs6000.c: Likewise.
1052 * config/rs6000/rs6000.h: Likewise.
1053 * config/rs6000/rs6000.md: Likewise.
1054 * config/rs6000/sysv4.h: Likewise.
1055 * config/rs6000/xcoff.h: Likewise.
1057 2002-09-20 Jim Wilson <wilson@redhat.com>
1059 * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
1061 2002-09-20 Jakub Jelinek <jakub@redhat.com>
1063 * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
1064 * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
1065 UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
1066 (legitimate_address_p): Likewise.
1067 (legitimize_address): Use @gotntpoff and @indntpoff.
1068 (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
1069 (output_addr_const_extra): Likewise.
1071 2002-09-20 Jim Wilson <wilson@redhat.com>
1073 * combine.c (try_combine): When split an instruction pair, where the
1074 first has a sign_extend src, verify that the src and dest modes match.
1076 2002-09-20 Richard Henderson <rth@redhat.com>
1078 * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
1079 (override_options): Do not initialize them.
1080 (mips_const_double_ok): Allow no fp constants except zero,
1081 and not even that for mips16.
1082 (const_float_1_operand): Use dconst1.
1083 * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
1084 movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
1085 Don't allow arbitrary constants; fix predicates and C constraint.
1087 2002-09-20 Neil Booth <neil@daikokuya.co.uk>
1089 * cppmacro.c: Don't warn about function-like macros without
1090 '(' during pre-expansion.
1092 2002-09-20 Jim Wilson <wilson@redhat.com>
1094 * config/v850/v850.c (current_function_anonymous_args): Delete.
1095 (expand_prologue): Use current_function_args_info.anonymous_args.
1096 (expand_epilogue): Delete use of current_function_anonymous_args.
1097 * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
1098 (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
1099 (current_function_anonymous_args): Delete extern declaration.
1100 (SETUP_INCOMING_VARARGS): Set anonymous_args field.
1102 2002-09-20 Geoffrey Keating <geoffk@apple.com>
1104 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
1105 to load_macho_picbase.
1106 * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
1107 (load_macho_picbase): Take the symbol to use as a parameter.
1108 (macho_correct_pic): New insn.
1109 (builtin_setjmp_reciever): On Darwin, restore the PIC register.
1111 * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
1112 RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
1113 (CAN_ELIMINATE): Likewise.
1114 (INITIAL_ELIMINATION_OFFSET): Likewise.
1115 (TOC_REGISTER): Likewise.
1117 2002-09-20 Richard Henderson <rth@redhat.com>
1119 * real.c (real_hash): New.
1120 * real.h: Declare it.
1121 * cse.c (canon_hash): Use it.
1122 * cselib.c (hash_rtx): Likewise.
1123 * emit-rtl.c (const_double_htab_hash): Likewise.
1124 * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
1125 * varasm.c (struct rtx_const): Reduce vector size; separate
1126 integer and fp vectors.
1128 (const_hash_1): Rename from const_hash. Use real_hash. Do not
1129 take modulus MAX_HASH_TABLE.
1130 (const_hash): New. Do take modulus MAX_HASH_TABLE.
1131 (output_constant_def): Do not take modulus MAX_HASH_TABLE.
1132 (SYMHASH): Don't use HASHBITS.
1133 (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
1134 Fix CONST_VECTOR thinko wrt fp vectors. Fix kind comparison.
1135 (simplify_subtraction): Fix kind comparison.
1136 (const_hash_rtx): Return unsigned int. Don't use HASHBITS.
1137 Use a union to pun integer array.
1138 * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
1139 only hash two words of integral CONST_DOUBLE.
1141 2002-09-20 Steve Ellcey <sje@cup.hp.com>
1143 * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
1144 (STARTFILE_PREFIX_SPEC): New.
1145 (LINK_SPEC): Modify.
1149 2002-09-20 Jakub Jelinek <jakub@redhat.com>
1151 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
1152 UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
1154 2002-09-20 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
1156 * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
1157 Add clobber of the condition code register.
1159 2002-09-20 Richard Henderson <rth@redhat.com>
1161 * real.c (do_fix_trunc): Static.
1162 (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
1163 encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
1164 encode_i370_single, encode_i370_double, encode_c4x_single,
1165 encode_c4x_extended): Add default abort case.
1167 2002-09-20 Richard Henderson <rth@redhat.com>
1169 * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
1170 MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
1171 (struct realvaluetype): Remove.
1172 (REAL_VALUE_TYPE): Use struct real_value.
1173 (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
1174 (test_real_width): New.
1175 * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
1176 (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
1177 (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
1178 real_isneg, real_isnegzero, real_identical, exact_real_inverse,
1179 real_to_integer, real_to_integer2, real_to_decimal,
1180 real_to_hexadecimal, real_from_string, real_from_integer,
1181 real_inf, real_nan, real_2expN, real_convert, real_to_target,
1182 real_from_target): Likewise.
1183 * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
1184 * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
1186 2002-09-20 Richard Henderson <rth@redhat.com>
1188 * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
1189 IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
1190 * defaults.h: ... here.
1191 * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
1192 config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
1193 config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
1194 config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
1196 2002-09-20 Hans-Peter Nilsson <hp@bitrange.com>
1198 * config/mmix/mmix.md ("negdf2"): Rewrite.
1199 ("*expanded_negdf2"): New.
1201 2002-09-19 Jim Wilson <wilson@redhat.com>
1203 * combine.c (simplify_set): When optimizing a subreg src with a
1204 cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
1206 2002-09-19 Dale Johannesen <dalej@apple.com>
1207 * combine.c (make_extraction): Don't create
1210 2002-09-19 Ulrich Weigand <uweigand@de.ibm.com>
1212 * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
1213 and STRICT_LOW_PART within SET_DEST.
1214 * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
1215 splitters, replacing pre-reload splitters.
1216 ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
1217 "*zero_extendqihi2_31"): New insns.
1218 ("*zero_extendqihi2_64"): Do not clobber CC.
1220 2002-09-19 Steve Ellcey <sje@cup.hp.com>
1222 * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
1223 (DTORS_SECTION_ASM_OP): Ditto.
1224 (READONLY_DATA_SECTION_ASM_OP): Moved.
1225 (DATA_SECTION_ASM_OP): New.
1226 (SDATA_SECTION_ASM_OP): New.
1227 (BSS_SECTION_ASM_OP): New.
1228 (SBSS_SECTION_ASM_OP): New.
1229 (TEXT_SECTION_ASM_OP): New.
1231 2002-09-19 Kazu Hirata <kazu@cs.umass.edu>
1233 * config/fp-bit.c: Follow spelling conventions.
1234 * config/d30v/d30v.c: Likewise.
1235 * config/d30v/d30v.h: Likewise.
1236 * config/fr30/fr30.c: Likewise.
1237 * config/fr30/fr30.h: Likewise.
1238 * config/fr30/fr30.md: Likewise.
1239 * config/frv/frv.c: Likewise.
1240 * config/frv/frv.h: Likewise.
1241 * config/h8300/h8300.c: Likewise.
1242 * config/h8300/lib1funcs.asm: Likewise.
1243 * config/i370/i370.c: Likewise.
1244 * config/i386/i386.h: Likewise.
1245 * config/i386/i386.md: Likewise.
1246 * config/i386/pentium.md: Likewise.
1247 * config/i386/winnt.c: Likewise.
1248 * config/i960/i960.c: Likewise.
1249 * config/ia64/ia64.h: Likewise.
1250 * config/ip2k/ip2k.c: Likewise.
1251 * config/ip2k/ip2k.h: Likewise.
1252 * config/ip2k/ip2k.md: Likewise.
1253 * config/ip2k/libgcc.S: Likewise.
1255 2002-09-19 Stephen Clarke <stephen.clarke@superh.com>
1257 * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
1258 (GOTOFF_P): Extend to allow gotoff plus constant.
1260 2002-09-18 Richard Henderson <rth@redhat.com>
1262 * ifcvt.c (noce_process_if_block): Correctly detect X modified
1263 with INSN_B before COND_EARLIEST. Don't check A and B for
1264 modification in condition range. Reorder INSN_B for A==B properly.
1265 (if_convert): Iterate until no matches for a block.
1267 2002-09-18 Richard Henderson <rth@redhat.com>
1269 * calls.c (store_one_arg): Rename default_align to parm_align;
1270 always adjust parm_align for downward padding.
1272 2002-09-18 Richard Henderson <rth@redhat.com>
1274 * toplev.c (backend_init): Move init_real_once invocation ...
1275 (do_compile): ... here.
1277 2002-09-18 Richard Henderson <rth@redhat.com>
1279 * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
1280 RTX_UNCHANGING_P markers for successful tail-recursive replacement.
1282 2002-09-18 Richard Henderson <rth@redhat.com>
1284 * real.c (round_for_format): Collect sticky as unsigned long, not bool.
1286 2002-09-19 Alan Modra <amodra@bigpond.net.au>
1288 * config/rs6000/rs6000.md: (floatdisf2): Rename to
1289 floatdisf2_internal1.
1290 (floatdisf2): New define_expand.
1291 (floatdisf2_internal2): Likewise.
1293 2002-09-18 Richard Henderson <rth@redhat.com>
1295 * real.c (sticky_rshift_significand): Collect sticky as
1296 unsigned long, not bool.
1298 2002-09-18 Ulrich Weigand <uweigand@de.ibm.com>
1300 * config/s390/s390.c (s390_address_cost): New function.
1301 config/s390/s390-protos.h (s390_address_cost): Add prototype.
1302 config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
1303 (RTX_COST): Use COSTS_N_INSNS.
1305 2002-09-18 Douglas Rupp <rupp@gnat.com>
1306 Donn Terry <donnte@microsoft.com>
1308 * stor-layout.c (place_field): Handle alignment of whole
1309 structures when MSVC compatible bitfields are involved.
1310 Change method of computing location of MS bitfields to
1311 be compatible with #pragma pack(n).
1313 * tree.h (record_layout_info): Add new field
1314 remaining_in_alignment.
1316 * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
1317 (pragma pack): Add paragraph on MSVC bit-field packing.
1319 2002-09-18 Richard Earnshaw (reanrsha@arm.com)
1321 PR optimization/7967
1322 * arm.md (ne_zeroextractsi): Add clobber of the condition code
1325 2002-09-18 Kazu Hirata <kazu@cs.umass.edu>
1327 * config/s390/s390.c: Follow spelling conventions.
1328 * config/sh/lib1funcs.asm: Likewise.
1329 * config/sh/sh.c: Likewise.
1330 * config/sh/sh.h: Likewise.
1331 * config/sparc/sparc.c: Likewise.
1332 * config/sparc/sparc.h: Likewise.
1333 * config/sparc/sparc.md: Likewise.
1334 * config/stormy16/stormy16.c: Likewise.
1335 * config/stormy16/stormy16.h: Likewise.
1336 * config/v850/v850.c: Likewise.
1337 * config/v850/v850.h: Likewise.
1338 * config/vax/vax.c: Likewise.
1339 * config/vax/vax.h: Likewise.
1341 2002-09-18 Nick Clifton <nickc@redhat.com>
1343 * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
1344 * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
1345 * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
1347 2002-09-17 Zack Weinberg <zack@codesourcery.com>
1349 * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
1350 statement that the only translation is to en_UK.
1352 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
1354 * config/alpha/alpha.c: Follow spelling conventions.
1355 * config/alpha/alpha.h: Likewise.
1356 * config/alpha/alpha.md: Likewise.
1357 * config/arc/arc.h: Likewise.
1358 * config/arm/arm.c: Likewise.
1359 * config/arm/arm.h: Likewise.
1360 * config/arm/arm.md: Likewise.
1361 * config/arm/pe.c: Likewise.
1362 * config/arm/unknown-elf.h: Likewise.
1363 * config/avr/avr.c: Likewise.
1364 * config/avr/avr.h: Likewise.
1365 * config/c4x/c4x.c: Likewise.
1366 * config/cris/cris.c: Likewise.
1367 * config/cris/cris.h: Likewise.
1369 2002-09-17 Samuel Figueroa <figueroa@apple.com>
1371 * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
1372 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
1373 * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
1375 2002-09-17 Dale Johannesen <dalej@apple.com>
1377 * cfgcleanup.c (try_forward_edges): Do not forward a
1378 branch to just after a loop exit before loop optimization;
1379 this interfered with doloop detection.
1381 2002-09-17 Nick Clifton <nickc@redhat.com>
1383 * config/arm/arm.c (output_return_instruction): Do not
1384 writeback the stack pointer when it is being loaded.
1385 (arm_output_epilogue): Likewise.
1387 2002-09-17 Kazu Hirata <kazu@cs.umass.edu>
1389 * optabs.c (prepare_cmp_insn): Let emit_library_call_value
1390 generate a pseudo reg that receives the result of a libcall.
1391 (prepare_float_lib_cmp): Likewise.
1393 2002-09-17 Steve Ellcey <sje@cup.hp.com>
1395 * config/ia64/elf.h: Remove CPP_PREDEFINES.
1397 Tue Sep 17 13:58:04 2002 Nicola Pero <n.pero@mi.flashnet.it>
1399 Fix PR/7014 and related objc bugs:
1400 * c-typeck.c (comp_target_types): Added a reflexive argument.
1401 Pass it to ObjC when/if calling objc_comptypes(). Updated all
1402 callers to provide the appropriate reflexive argument.
1403 * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
1404 typechecking for all cases of comparisons and assignments,
1405 particularly the obscure and less common ones involving protocols.
1407 2002-09-17 Nick Clifton <nickc@redhat.com>
1409 * machmode.def (V1DImode): New mode. A single element vector.
1410 * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
1411 (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
1412 * tree.c (build_common_tree_nodes_2): Build
1413 unsigned_V1DI_type_node and V1D1_type_node.
1414 * c-common.c (c_common_type_for_mode): Return
1415 unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
1416 * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
1418 Tue Sep 17 13:40:13 2002 Nicola Pero <n.pero@mi.flashnet.it>
1420 * doc/objc.texi (Constant string objects): Extended documentation
1421 to make clear that the constant string class ivar layout is
1424 2002-09-17 Roger Sayle <roger@eyesopen.com>
1426 * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
1427 NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
1429 2002-09-16 Richard Henderson <rth@redhat.com>
1431 * expr.c (emit_block_move): Set memory block size as appropriate
1434 2002-09-16 Richard Henderson <rth@redhat.com>
1437 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
1439 2002-09-16 Richard Henderson <rth@redhat.com>
1441 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
1442 as well as OFFSET for BITPOS.
1444 2002-09-16 Jeff Garzik <jgarzik@mandrakesoft.com>
1446 * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
1447 * config/i386/i386.c (processor_alias_table): Add winchip-c6,
1449 * doc/invoke.texi: Mention new aliases.
1451 2002-09-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
1453 * calls.c (store_one_arg): Set default alignment for BLKmode arguments
1454 to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
1456 * function.c (pad_below): Always compile.
1457 (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
1458 alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
1459 Pad below when the argument is not in a register and the padding
1460 direction is downward.
1462 * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
1463 (PAD_VARARGS_DOWN): Define.
1464 * pa.c (function_arg_padding): Revise padding directions to make them
1465 compatible with the 32 and 64-bit runtime architecture documentation.
1466 (hppa_va_arg): Add code to handle variable and size zero arguments
1467 passed by reference on TARGET_64BIT. Reformat.
1468 (function_arg): Use a PARALLEL for BLKmode and aggregates args on
1469 TARGET_64BIT. Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
1470 wide when !TARGET_64BIT. Move forward check for mode==VOIDmode.
1472 * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
1473 (RETURN_IN_MEMORY): Return size zero types in memory.
1474 (FUNCTION_VALUE): Return TFmode in general registers.
1475 (MUST_PASS_IN_STACK): Define.
1476 (FUNCTION_ARG_BOUNDARY): Simplify.
1477 (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
1479 (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
1481 2002-09-16 Richard Henderson <rth@redhat.com>
1483 * real.c (do_fix_trunc): New.
1484 (real_arithmetic): Call it.
1485 * simplify-rtx.c (simplify_unary_operation): Handle FIX
1486 with a floating-point result mode.
1488 2002-09-16 Richard Henderson <rth@redhat.com>
1490 * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
1491 (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
1492 * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
1493 (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
1494 * builtins.c (fold_builtin_nan): New.
1495 (fold_builtin): Call it.
1496 * real.c (real_nan): Parse a non-empty string.
1497 (round_for_format): Fix NaN significand truncation.
1498 * real.h (real_nan): Return bool.
1499 * doc/extend.texi: Document new builtins.
1501 2002-09-16 Jason Merrill <jason@redhat.com>
1502 Danny Smith <dannysmith@users.sourceforge.net>
1504 * config/i386/winnt.c (ix86_handle_dll_attribute): Set
1505 DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
1506 (i386_pe_mark_dllimport): Not here.
1508 2002-09-16 Nathan Sidwell <nathan@codesourcery.com>
1510 * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
1512 2002-09-16 Geoffrey Keating <geoffk@redhat.com>
1514 * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
1515 warnings about unused operands when HOST_BITS_PER_WIDE_INT is
1517 (rs6000_emit_cmove): Use real_isinf not target_isinf.
1519 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
1521 * calls.c (emit_library_call_value_1): Don't refer to
1523 * optabs.c (prepare_float_lib_cmp): Likewise.
1525 2002-09-16 Geoffrey Keating <geoffk@apple.com>
1527 * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
1530 The following changes are merged from pch-branch:
1532 * doc/gty.texi (GTY Options): Document %a.
1533 * gengtype.c (do_scalar_typedef): New function.
1534 (process_gc_options): Handle `length' option.
1535 (set_gc_used_type): A pointer to an array of structures doesn't
1536 qualify as a pointer to a structure.
1537 (output_escaped_param): Add `%a' escape.
1538 (write_gc_structure_fields): Allow 'desc' on array of unions.
1539 (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
1542 * gengtype.c (enum rtx_code): Make global.
1543 (rtx_format): Make global.
1545 (gen_rtx_next): New.
1546 (write_rtx_next): New.
1547 (adjust_field_rtx_def): Skip fields marked by chain_next.
1548 (open_base_files): Delete redundant prototype.
1549 (write_enum_defn): New.
1550 (output_mangled_typename): Correct abort call.
1551 (write_gc_marker_routine_for_structure): Handle chain_next and
1553 (finish_root_table): Don't output redundant \n.
1554 (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
1555 * c-tree.h (union lang_tree_node): Add chain_next option.
1557 * gengtype.h (NUM_PARAM): New definition.
1558 (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
1559 * gengtype.c (find_param_structure): New.
1560 (adjust_field_type): Handle param<n>_is option.
1561 (process_gc_options): Detect use_params option. Update callers.
1562 (set_gc_used_type): Add 'param' parameter, update callers. Handle
1563 'use_params' option.
1564 (open_base_files): Add splay-tree.h to list of files included.
1565 (output_mangled_typename): New.
1566 (write_gc_structure_fields): Update 'param' parameter to support
1567 multiple parameters. Change name mangling. Allow parameterized
1568 fields to have an apparent scalar type. Handle param<n>_is options,
1570 (write_gc_marker_routine_for_structure): Update for change to name
1571 mangling. Better guess the output file for parameterized types.
1572 (write_gc_types): Update for change to name mangling.
1573 (write_gc_root): Update for change to name mangling. Handle (ignore)
1574 param<n>_is options.
1575 * doc/gty.texi (GTY Options): Add description of param<n>_is
1576 options, use_params option.
1577 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
1578 * gengtype-lex.l: Produce token for param<n>_is.
1579 * gengtype-yacc.y: Parse param<n>_is.
1581 * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
1583 * rtl.c: Update comment describing rtx_format.
1584 * rtl.h (union rtunion): Separate definition and typedef.
1585 (struct rtx_def): Use gengtype to mark.
1586 * Makefile.in (gengtype.o): Also depend on rtl.def.
1587 * ggc.h (ggc_mark_rtx_children): Delete prototype.
1588 (ggc_mark_rtx): Change to alias of gengtype-generated routine.
1589 * ggc-common.c (ggc_mark_rtx_children): Delete.
1590 (ggc_mark_rtx_children_1): Delete.
1591 (gt_ggc_m_rtx_def): Delete.
1592 * gengtype.c (adjust_field_rtx_def): New.
1593 (adjust_field_type): Call adjust_field_rtx_def.
1594 (write_gc_structure_fields): Add 'default' case to switch if none
1595 is specified; remove unused code.
1597 * tree.h (struct tree_exp): Update for change to meaning
1599 * gengtype.c (adjust_field_tree_exp): New function.
1600 (adjust_field_type): Handle `tree_exp' special here.
1601 (write_gc_structure_fields): Don't handle `tree_exp' special here.
1602 Handle new `dot' option.
1604 * gengtype.h: Make `info' a pointer-to-const.
1605 * gengtype-yacc.y (yacc_ids): Use xasprintf.
1607 * gengtype.c (write_gc_structure_fields): Remove implementation
1608 of `always' option, add `default' option.
1609 * doc/gty.texi (GTY Options): Remove documentation of `always',
1612 2002-09-16 Hans-Peter Nilsson <hp@bitrange.com>
1614 * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
1616 2002-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1618 * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
1620 * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
1621 instead of the *-protos.h file directly.
1622 * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
1623 * darwin.c (machopic_output_stub): Move prototype ...
1624 * darwin-protos.h (machopic_output_stub): ... here.
1625 * rs6000-protos.h (machopic_output_stub): Don't declare.
1627 2002-09-16 Richard Henderson <rth@redhat.com>
1629 * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
1631 2002-09-16 Richard Henderson <rth@redhat.com>
1633 * real.c, real.h: Rewrite from scratch.
1635 * Makefile.in (simplify-rtx.o): Depend on TREE_H.
1636 (paranoia): New target.
1637 * builtins.c (fold_builtin_inf): Use new real.h interface.
1638 * c-common.c (builtin_define_with_hex_fp_value): Likewise.
1639 * c-lex.c (interpret_float): Likewise.
1640 * emit-rtl.c (gen_lowpart_common): Likewise.
1641 * optabs.c (expand_float): Use real_2expN.
1642 * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
1643 * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
1644 (FLOAT_WORDS_BIG_ENDIAN): New.
1645 * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
1646 directly to REAL_VALUE_NEGATIVE.
1647 * loop.c (canonicalize_condition): Likewise.
1648 * simplify-rtx.c: Include tree.h.
1649 (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
1650 with floating-point result modes.
1651 * toplev.c (backend_init): Call init_real_once.
1653 * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
1654 * tree.c (build_real): Likewise.
1655 * config/alpha/alpha.c, config/vax/vax.c (float_strings,
1656 float_values, inited_float_values, check_float_value): Remove.
1657 * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
1658 config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
1659 * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
1660 (VAX_HALFWORD_ORDER): Remove.
1662 2002-09-16 Ulrich Weigand <uweigand@de.ibm.com>
1664 * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
1665 (s390_load_address): ... this new function.
1666 (s390_decompose_address): Allow the argument pointer and all
1667 virtual registers as 'pointer' registers.
1668 (s390_expand_plus_operand): Use s390_load_address.
1669 config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
1670 ("force_la_31"): New insn pattern.
1671 config/s390/s390-protos.h (legitimize_la_operand): Remove.
1672 (s390_load_address): Add prototype.
1674 * config/s390/s390.c: Include "optabs.h".
1675 (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
1676 config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
1677 s390_expand_cmpstr): Add prototypes.
1678 config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
1679 ("movstrdi_short"): Rename to "movstr_short_64". Change predicates
1680 for operands 0 and 1 to "memory_operand". Add type attribute.
1681 ("movstrsi_short"): Rename to "movstr_short_31". Change predicates
1682 for operands 0 and 1 to "memory_operand". Add type attribute.
1683 ("movstrdi_long", "movstrsi_long"): Remove.
1684 ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
1685 ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
1686 ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
1687 ("clrstrsico"): Remove, replace by ...
1688 ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
1689 ("clrstrsi_64"): Rename to "clrstr_long_64".
1690 ("clrstrsi_31"): Rename to "clrstr_long_31".
1691 ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
1692 ("cmpstr_const"): Remove, replace by ...
1693 ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
1694 ("cmpstr_64"): Rename to "cmpstr_long_64".
1695 ("cmpstr_31"): Rename to "cmpstr_long_31".
1697 2002-09-16 Kazu Hirata <kazu@cs.umass.edu>
1699 * ABOUT-NLS: Follow spelling conventions.
1700 * ChangeLog: Likewise.
1701 * ChangeLog.1: Likewise.
1702 * ChangeLog.2: Likewise.
1703 * ChangeLog.3: Likewise.
1704 * ChangeLog.4: Likewise.
1705 * ChangeLog.5: Likewise.
1706 * ChangeLog.6: Likewise.
1707 * FSFChangeLog.10: Likewise.
1708 * FSFChangeLog.11: Likewise.
1709 * c-common.c: Likewise.
1710 * c-lex.c: Likewise.
1711 * c-objc-common.c: Likewise.
1712 * cppexp.c: Likewise.
1713 * cppinit.c: Likewise.
1714 * cpplex.c: Likewise.
1715 * doloop.c: Likewise.
1717 * function.c: Likewise.
1718 * integrate.c: Likewise.
1720 * reg-stack.c: Likewise.
1721 * reload.h: Likewise.
1724 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
1726 * ChangeLog: Follow spelling conventions.
1727 * ChangeLog.0: Likewise.
1728 * ChangeLog.1: Likewise.
1729 * ChangeLog.2: Likewise.
1730 * ChangeLog.4: Likewise.
1731 * ChangeLog.6: Likewise.
1732 * config.gcc: Likewise.
1733 * dwarfout.c: Likewise.
1734 * reload1.c: Likewise.
1735 * simplify-rtx.c: Likewise.
1736 * unwind-sjlj.c: Likewise.
1737 * config/avr/avr.h: Likewise.
1738 * config/d30v/d30v.h: Likewise.
1739 * config/frv/frv.c: Likewise.
1740 * config/frv/frv.h: Likewise.
1741 * config/ip2k/ip2k.h: Likewise.
1742 * config/m88k/m88k-move.sh: Likewise.
1743 * config/stormy16/stormy16.c: Likewise.
1744 * config/stormy16/stormy16.h: Likewise.
1745 * doc/extend.texi: Likewise.
1746 * doc/interface.texi: Likewise.
1747 * doc/invoke.texi: Likewise.
1748 * doc/md.texi: Likewise.
1749 * doc/rtl.texi: Likewise.
1750 * doc/tm.texi: Likewise.
1751 * doc/trouble.texi: Likewise.
1752 * ginclude/float.h: Likewise.
1753 * treelang/treelang.texi: Likewise.
1755 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1757 * i386-protos.h (i386_pe_dllexport_name_p,
1758 i386_pe_dllimport_name_p, i386_pe_unique_section,
1759 i386_pe_declare_function_type, i386_pe_record_external_function,
1760 i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
1762 * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
1763 * i386/t-interix (winnt.o): Likewise.
1765 * v850-protos.h (v850_output_addr_const_extra): Prototype.
1767 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
1769 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
1770 MIPS ABI CPP macros.
1771 (TARGET_CPU_CPP_BUILTINS): Redefine.
1772 (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
1773 (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
1775 2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1777 * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
1779 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
1781 * ChangeLog: Follow spelling conventions.
1782 * ChangeLog.0: Likewise.
1783 * ChangeLog.1: Likewise.
1784 * ChangeLog.2: Likewise.
1785 * ChangeLog.3: Likewise.
1786 * ChangeLog.4: Likewise.
1787 * ChangeLog.5: Likewise.
1788 * ChangeLog.6: Likewise.
1789 * FSFChangeLog.10: Likewise.
1790 * FSFChangeLog.11: Likewise.
1791 * c-common.c: Likewise.
1792 * c-common.h: Likewise.
1793 * c-format.c: Likewise.
1794 * c-opts.c: Likewise.
1795 * cpplib.c: Likewise.
1796 * langhooks.h: Likewise.
1798 * reg-stack.c: Likewise.
1799 * toplev.c: Likewise.
1800 * config/arm/arm.c: Likewise.
1801 * config/arm/arm.md: Likewise.
1802 * config/arm/linux-gas.h: Likewise.
1803 * config/arm/netbsd.h: Likewise.
1804 * config/c4x/c4x.c: Likewise.
1805 * config/c4x/c4x.h: Likewise.
1806 * config/c4x/c4x.md: Likewise.
1807 * config/c4x/libgcc.S: Likewise.
1808 * config/fr30/fr30.md: Likewise.
1809 * config/frv/frv.md: Likewise.
1810 * config/ia64/ia64.md: Likewise.
1811 * config/mips/mips.h: Likewise.
1812 * config/mn10300/mn10300.c: Likewise.
1813 * config/stormy16/stormy16.c: Likewise.
1814 * config/v850/v850.md: Likewise.
1815 * doc/extend.texi: Likewise.
1816 * doc/invoke.texi: Likewise.
1817 * doc/md.texi: Likewise.
1819 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
1821 * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
1822 library if -pthread is specified.
1824 2002-09-15 Jason Thorpe <thorpej@wasabisystems.com>
1826 * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
1827 for --enable-threads=yes and --enable-threads=posix.
1829 2002-09-15 Kazu Hirata <kazu@cs.umass.edu>
1831 * config/sparc/cypress.md: Replace Sparc with SPARC.
1832 * config/sparc/freebsd.h: Likewise.
1833 * config/sparc/gmon-sol2.c: Likewise.
1834 * config/sparc/hypersparc.md: Likewise.
1835 * config/sparc/lb1spc.asm: Likewise.
1836 * config/sparc/lb1spl.asm: Likewise.
1837 * config/sparc/linux.h: Likewise.
1838 * config/sparc/linux64.h: Likewise.
1839 * config/sparc/lynx.h: Likewise.
1840 * config/sparc/sol2.h: Likewise.
1841 * config/sparc/sparc-modes.def: Likewise.
1842 * config/sparc/sparc.c: Likewise.
1843 * config/sparc/sparc.h: Likewise.
1844 * config/sparc/sparc.md: Likewise.
1845 * config/sparc/sparclet.md: Likewise.
1846 * config/sparc/supersparc.md: Likewise.
1847 * config/sparc/sysv4.h: Likewise.
1848 * config/sparc/vxsim.h: Likewise.
1849 * config/sparc/vxsparc64.h: Likewise.
1851 2002-09-14 Marek Michalkiewicz <marekm@amelek.gda.pl>
1853 * config/avr/avr.c (output.h): Move after inclusion of tree.h.
1855 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1857 * ChangeLog: Follow spelling conventions.
1858 * ChangeLog.0: Likewise.
1859 * ChangeLog.2: Likewise.
1860 * ChangeLog.3: Likewise.
1861 * ChangeLog.4: Likewise.
1862 * ChangeLog.5: Likewise.
1863 * ChangeLog.6: Likewise.
1864 * cppfiles.c: Likewise.
1865 * cppinit.c: Likewise.
1866 * cpplib.h: Likewise.
1868 * debug.h: Likewise.
1870 * dominance.c: Likewise.
1871 * hashtable.c: Likewise.
1872 * hashtable.h: Likewise.
1874 * config/arm/README-interworking: Likewise.
1875 * config/arm/arm.c: Likewise.
1876 * config/arm/arm.h: Likewise.
1877 * config/arm/arm.md: Likewise.
1878 * config/dsp16xx/dsp16xx.h: Likewise.
1879 * config/frv/frv.c: Likewise.
1880 * config/frv/frv.h: Likewise.
1881 * config/ip2k/ip2k.h: Likewise.
1882 * config/rs6000/rs6000.c: Likewise.
1883 * config/stormy16/stormy-abi: Likewise.
1884 * config/stormy16/stormy16.h: Likewise.
1885 * config/v850/v850.c: Likewise.
1887 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1889 * loop.c: Fix a comment typo.
1891 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1893 * config/fr30/fr30.h: Fix comment typos.
1894 * config/frv/frv.c: Likewise.
1895 * config/i386/xmmintrin.h: Likewise.
1896 * config/mips/mips.c: Likewise.
1897 * config/sh/sh.c: Likewise.
1899 2002-09-14 Kazu Hirata <kazu@cs.umass.edu>
1901 * haifa-sched.c: Follow spelling conventions.
1902 * regclass.c: Likewise.
1903 * regrename.c: Likewise.
1904 * config/fp-bit.c: Likewise.
1905 * config/frv/frv.h: Likewise.
1906 * config/m88k/m88k.c: Likewise.
1907 * config/mcore/mcore.c: Likewise.
1908 * config/rs6000/darwin.h: Likewise.
1909 * config/rs6000/gnu.h: Likewise.
1910 * config/rs6000/linux.h: Likewise.
1911 * config/rs6000/linux64.h: Likewise.
1912 * config/rs6000/rs6000.c: Likewise.
1913 * config/rs6000/rs6000.h: Likewise.
1914 * config/sh/sh.c: Likewise.
1915 * config/sparc/sparc.c: Likewise.
1916 * config/sparc/ultra1_2.md: Likewise.
1918 2002-09-14 Stephane Carrez <stcarrez@nerim.fr>
1920 * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
1921 memory operand when source is 0 (K constraint).
1922 ("movsi_internal"): Likewise.
1923 ("movdf_internal"): Likewise.
1924 ("movsf_internal"): Likewise.
1926 2002-09-14 Alan Modra <amodra@bigpond.net.au>
1928 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
1929 targetm.binds_local_p to set SYMBOL_REF_FLAG.
1930 (rs6000_xcoff_encode_section_info): Likewise.
1931 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1933 2002-09-10 Theodore A. Roth <troth@verinet.com>
1935 * gcc/config/avr/avr.h: Set default options for C++ for avr.
1937 2002-09-13 Richard Henderson <rth@redhat.com>
1939 * Makefile.in (toplev.o): Depend on real.h.
1940 (print-rtl.o, varasm.o, ifcvt.o): Likewise.
1942 2002-09-14 Alan Modra <amodra@bigpond.net.au>
1944 * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
1945 * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
1946 * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
1948 2002-09-13 Nathan Sidwell <nathan@codesourcery.com>
1950 * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
1952 2002-09-13 Steve Ellcey <sje@cup.hp.com>
1954 * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
1955 ia64*-*-linux*): Set extra_parts.
1956 * config/ia64/t-aix (EXTRA_PARTS): Remove.
1957 * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
1959 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
1961 * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
1962 * config/h8300/h8300.c: Likewise.
1963 * config/h8300/h8300.h: Likewise.
1964 * config/h8300/h8300.md: Likewise.
1965 * doc/invoke.texi: Likewise.
1967 2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
1969 * config/h8300/h8300.c (h8300_init_once): Fix formatting.
1971 2002-09-13 Matt Austern <austern@apple.com>
1973 * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
1974 * cp/call.c: Change call-by-const-reference mechanism to use
1975 non_cast_lvalue_p when deciding whether the create a temporary.
1976 We need a temporary when passing, e.g. (long) x by const ref.
1977 * testsuite/g++.dg/other/constref[12].C: New, regression tests for
1978 passing a cast expression to a function by const reference.
1980 2002-09-13 Richard Henderson <rth@redhat.com>
1982 * config/alpha/alpha.md (attr type): Add callpal.
1983 (imb, trap, load_tp, set_tp): Use it.
1984 * config/alpha/ev4.md (ev4_callpal): New.
1985 * config/alpha/ev5.md (ev5_callpal): New.
1986 * config/alpha/ev6.md (ev6_ibr): Handle callpal.
1987 * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
1988 (alphaev5_insn_pipe): Likewise.
1990 2002-09-13 Andreas Jaeger <aj@suse.de>
1992 * Makefile.in (print-rtl.o): Depend on CONFIG_H.
1994 2002-09-13 Steve Ellcey <sje@cup.hp.com>
1996 * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
1997 LIB2ADDEH): New, set to NULL.
1998 (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
2000 2002-09-13 Steve Ellcey <sje@cup.hp.com>
2002 * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
2003 (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
2004 (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
2008 2002-09-13 Dhananjay Deshpande <dhananjayd@kpit.com>
2010 * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
2011 for H8/300, H8S aa:8 mode.
2012 (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
2013 * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
2014 for H8/300 aa:8 mode.
2016 2002-09-13 Hartmut Penner <hpenner@de.ibm.com>
2018 * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
2021 2002-09-12 Richard Henderson <rth@redhat.com>
2023 * Makefile.in (HOST_PRINT): Use print-rtl1.o
2024 (print-rtl.o): Don't define GENERATOR_FILE.
2025 (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
2026 * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
2027 unless GENERATOR_FILE.
2029 2002-09-12 Stan Shebs <shebs@apple.com>
2031 * config/darwin.h (USER_LABEL_PREFIX): Define here...
2032 * config/i386/darwin.h: ... instead of here.
2034 * target.h (struct gcc_target): New field
2035 terminate_dw2_eh_frame_info.
2036 * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
2037 (TARGET_INITIALIZER): Add it.
2038 * dwarf2out.c (output_call_frame_info): Use target hook.
2039 * dwarf2asm.c (dw2_asm_output_delta): Use macro
2040 ASM_OUTPUT_DWARF_DELTA if defined.
2041 * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
2042 (ASM_OUTPUT_DWARF_DELTA): Ditto.
2043 (ASM_OUTPUT_DWARF_OFFSET): Ditto.
2044 (ASM_OUTPUT_DWARF_PCREL): Ditto.
2045 * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
2046 (powerpc-*-darwin*): Ditto.
2047 * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
2048 to work correctly for Darwin.
2049 * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
2050 (STARTFILE_SPEC): Add crtbegin.o.
2051 (ENDFILE_SPEC): Define.
2052 (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
2053 (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
2054 (ASM_OUTPUT_DWARF_DELTA): Define.
2055 (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
2056 * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
2058 2002-09-13 Alan Modra <amodra@bigpond.net.au>
2060 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
2061 nesting. Correct test for non-PowerPC64 ELF ABI_AIX.
2062 * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
2064 2002-09-12 Zack Weinberg <zack@codesourcery.com>
2066 * toplev.c: Move default definition of USER_LABEL_PREFIX...
2067 * defaults.h: ... here.
2069 2002-09-12 Richard Henderson <rth@redhat.com>
2071 * vax.c: Include tree.h earlier.
2073 2002-09-12 Stan Shebs <shebs@apple.com>
2075 * config/darwin.c (machopic_finish): Remove #if 0 chunks.
2076 (machopic_operand_p): Ditto.
2078 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2080 * config/arm/arm.c (arm_compute_initial_elimination_offset):
2083 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2085 * toplev.c (do_abort): Fix a comment typo.
2087 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2089 * cselib.c: Fix comment formatting.
2090 * gengtype.c: Likewise.
2092 2002-09-12 Kazu Hirata <kazu@cs.umass.edu>
2094 * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
2095 (udivmodhi4): Likewise.
2097 2002-09-12 Graham Stott <graham.stott@btinternet.com>
2098 Roger Sayle <roger@eyesopen.com>
2100 * i386.c (any_fp_register_operand, fp_register_operand,
2101 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
2102 New predicate functions.
2103 * i386-protos.h: Add their prototypes.
2104 * i386.h: Add them to PREDICATE_CODES.
2105 * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
2106 "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
2107 "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
2108 "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
2109 "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
2110 "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
2111 "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
2112 "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
2113 "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
2114 "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
2115 "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
2116 Use these new predicates to simplify and correct the use of
2117 FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
2119 2002-09-12 Jason Merrill <jason@redhat.com>
2121 * diagnostic.c (output_add_identifier): New fn.
2122 * diagnostic.h: Declare it.
2124 * calls.c (store_one_arg): Use size_in_bytes to determine the
2125 amount of space to push.
2127 2002-09-12 Jakub Jelinek <jakub@redhat.com>
2129 * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
2131 2002-09-12 Ulrich Weigand <uweigand@de.ibm.com>
2133 * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
2134 * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
2135 (s390_select_ccmode): Likewise.
2136 (s390_branch_condition_mask): Likewise.
2137 (optimization_options): Do not set flag_branch_on_count.
2138 (s390_split_branches): Handle doloop branches.
2139 (s390_chunkify_pool): Likewise.
2140 * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
2141 ("doloop_end"): New expander.
2142 ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
2143 associated splitters): New.
2145 2002-09-11 Hartmut Penner <hpenner@de.ibm.com>
2147 * fold-const.c (make_range): Only narrow to signed range if
2148 the signed range is smaller than the unsigned range.
2150 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2152 * emit-rtl.c (set_mem_size): New function.
2153 * expr.h (set_mem_size): Declare.
2154 * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
2155 (expand_block_move): Instead, use adjust_address and
2156 replace_equiv_address to generate proper aliasing info.
2157 Move common code out of conditionals. Localize vars.
2159 2002-09-09 Eric Botcazou ebotcazou@libertysurf.fr
2161 * optabs.c (expand_binop): Minor cleanup.
2162 (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
2164 2002-09-11 Dan Nicolaescu <dann@ics.uci.edu>
2166 * print-tree.c (print_node): Print the restrict qualifier.
2168 2002-09-11 Janis Johnson <janis187@us.ibm.com>
2170 * doc/install.texi: Fix typos.
2172 2002-09-11 Zack Weinberg <zack@codesourcery.com>
2174 * Makefile.in: Remove all references to s-under and underscore.c.
2175 * collect2.c, tlink.c: Change all uses of prepends_underscore
2176 to look directly at USER_LABEL_PREFIX.
2178 2002-09-11 David Edelsohn <edelsohn@gnu.org>
2180 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
2182 (rs6000_xcoff_unique_section): Only set section name for public
2184 (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
2185 * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
2186 duplicate definition.
2188 2002-09-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
2190 * pa.md (extzv): Check predicates before emitting extzv_32.
2193 2002-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2195 * config/s390/s390.h (MOVE_MAX): Define to correct value.
2196 (MAX_MOVE_MAX): Define.
2197 (MOVE_BY_PIECES_P): Define.
2198 (CLEAR_BY_PIECES_P): Define.
2200 2002-09-10 Denis Chertykov <denisc@overta.ru>
2202 * config/avr/avr.md (movstrhi): Use right operands for conversion.
2204 2002-09-10 Richard Earnshaw <rearnsha@arm.com>
2207 * arm.md (insv): Use reg_or_int_operand for operand[3].
2209 2002-09-10 David Edelsohn <edelsohn@gnu.org>
2211 * rs6000.c (rs6000_assemble_visibility): Protect declaration
2212 inside macro. Correct function definition typo.
2213 (rs6000_xcoff_section_type_flags): New function.
2214 (TARGET_SECTION_TYPE_FLAGS): Remove definition.
2215 (rs6000_elf_section_type_flags): Call default_section_type_flags_1
2216 with appropriate PIC test.
2217 (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
2219 (rs6000_binds_local_p): Combine PIC flags.
2220 * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
2221 * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
2223 2002-09-09 Per Bothner <per@bothner.com>
2225 * print-tree.c (print_node): In a STRING_CST, escape non-ascii
2226 characters, and only print TREE_STRING_LENGTH chars.
2228 2002-09-09 Steve Ellcey <sje@cup.hp.com>
2230 * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
2232 * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
2233 * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
2234 * config/ia64/ia64.c (ia64_asm_output_external): Create list
2235 of external functions if TARGET_HPUX_LD is true.
2236 (ia64_hpux_add_extern_decl): New, routine to put names on
2237 list of external functions.
2238 (ia64_hpux_asm_file_end): Put out declarations for external
2239 functions if and only if they are used.
2241 2002-09-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
2243 * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
2244 on TARGET_64BIT before pic register restore.
2246 2002-09-09 David Edelsohn <edelsohn@gnu.org>
2248 * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
2249 (TARGET_HAVE_TLS): New description.
2251 2002-09-09 Janis Johnson <janis187@us.ibm.com>
2253 * doc/extend.texi (Statement Exprs): Fix broken link.
2255 2002-09-09 Denis Chertykov <denisc@overta.ru>
2257 * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
2258 right conversion of operands[1].
2260 2002-09-09 Ulrich Weigand <uweigand@de.ibm.com>
2262 * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
2263 commutative. Use "nonimmediate_operand" instead of "register_operand"
2264 as predicate for operand 0. Move to after the "*tmXX_mem" insns.
2266 ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
2269 ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
2270 mark as commutative. Use "nonimmediate_operand" instead of
2271 "register_operand" as predicate for operand 1.
2273 ("movstrictsi"): Fix typo in insn name.
2275 2002-09-09 Jan Hubicka <jh@suse.cz>
2277 * i386.c (index_register_operand): New.
2278 * i386.h (predicate_codes): Add new predicate.
2279 * i386.md (lea_general_*): Use index_regsiter_operand
2280 (ashift to lea splitter): Do not produce invalid leas
2281 (ashift to mov+ashift split): New.
2283 2002-09-09 Nick Clifton <nickc@redhat.com>
2285 * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
2288 2002-09-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
2289 J"orn Rennecke <joern.rennecke@superh.com>
2291 * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
2293 2002-09-09 Alan Modra <amodra@bigpond.net.au>
2295 * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
2296 (function_ok_for_sibcall): Use binds_local_p. Respect longcall
2299 2002-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2301 * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
2303 2002-09-08 Richard Henderson <rth@redhat.com>
2305 * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
2306 (DW_OP_GNU_push_tls_address): New.
2307 (DW_OP_lo_user): Fix.
2308 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
2309 (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
2310 (size_of_loc_descr): Likewise.
2311 (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
2312 (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
2313 (loc_descriptor_from_tree): Handle TLS variables.
2314 (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
2315 (add_location_or_const_value_attribute): ... not here. Defer
2316 to loc_descriptor_from_tree for TLS variables.
2318 * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
2319 * config/i386/i386.c (i386_output_dwarf_dtprel): New.
2320 * config/i386/i386-protos.h: Update.
2322 2002-09-08 Roger Sayle <roger@eyesopen.com>
2324 PR optimization/6405
2325 * unroll.c (loop_iterations): last_loop_insn should be the previous
2326 non-note instruction before loop->end.
2327 * loop.c (strength_reduce): The conditional jump is the last
2328 non-note instruction before loop->end (as above).
2330 2002-09-08 Roger Sayle <roger@eyesopen.com>
2332 * combine.c (try_combine): Handle the case that undobuf.other_insn
2333 has been turned into a return or unconditional jump, by inserting
2334 a BARRIER if necessary.
2335 (simplify_set): Test if a condition code setter has a constant
2336 comparison at compile time, if so convert this insn to a no-op move
2337 and update/simplify the condition code user (undobuf.other_insn).
2339 2002-09-08 Krister Walfridsson <cato@df.lth.se>
2341 * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
2342 (CLEAR_INSN_CACHE): Define.
2344 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
2346 * basic-block.h: Fix comment formatting.
2347 * c-common.c: Likewise.
2348 * c-common.h: Likewise.
2349 * c-lex.c: Likewise.
2350 * c-pretty-print.c: Likewise.
2351 * cfglayout.c: Likewise.
2352 * cfgloop.c: Likewise.
2353 * defaults.h: Likewise.
2354 * et-forest.c: Likewise.
2355 * explow.c: Likewise.
2356 * function.h: Likewise.
2358 * genattrtab.c: Likewise.
2359 * gengtype.c: Likewise.
2360 * ifcvt.c: Likewise.
2361 * libgcc2.c: Likewise.
2363 * profile.c: Likewise.
2364 * ra-build.c: Likewise.
2367 * tracer.c: Likewise.
2368 * tree-inline.c: Likewise.
2369 * varasm.c: Likewise.
2371 2002-09-08 Jan Hubicka <jh@suse.cz>
2373 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
2376 * loop.c (loop_gics_reduce): Emit addition after.
2378 2002-09-08 Alan Modra <amodra@bigpond.net.au>
2380 * varasm.c (default_assemble_visibility): Rename from
2381 assemble_visibility.
2382 * output.h: Here too.
2383 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
2384 * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
2386 2002-09-08 Alan Modra <amodra@bigpond.net.au>
2388 * reload.c (find_reloads <p constraint>): Pass operand_mode to
2389 find_reloads_address.
2391 2002-09-08 Kazu Hirata <kazu@cs.umass.edu>
2393 * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
2394 (anonymous pattern): Likewise.
2396 2002-09-07 Scott Snyder <snyder@fnal.gov>
2399 * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
2401 2002-09-07 Roger Sayle <roger@eyesopen.com>
2403 * basic-block.h (struct loop): Remove unused cont_dominator field.
2405 2002-09-07 Igor Shevlyakov <igor@microunity.com>
2407 * varasm.c (decode_rtx_const): Don't check undefined field for
2410 2002-09-07 Glen Nakamura <glen@imodulo.com>
2413 * sched-deps.c (sched_analyze_insn): Make sure to add insn
2414 to reg_last->sets after flushing the dependency lists to guarantee
2415 that subsequent clobbers will be dependent on it.
2417 2002-09-07 Igor Shevlyakov <igor@microunity.com>
2419 * combine.c (simplify_shift_const): Calculate rotate count
2420 correctly for vector operands.
2422 2002-09-07 Ansgar Esztermann <ansgar@thphy.uni-duesseldorf.de>
2424 * c-typeck.c (c_tree_expr_nonnegative_p): New function.
2425 (build_binary_op): Call c_tree_expr_nonnegative_p rather than
2426 tree_expr_nonnegative_p.
2427 (build_conditional_expr): Likewise.
2428 * c-tree.h (c_tree_expr_nonnegative_p): Declare.
2430 2002-09-07 Richard Henderson <rth@redhat.com>
2432 * builtins.def (inf, inff, infl): Mark const.
2433 (huge_val, huge_valf, huge_vall): Likewise.
2434 (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
2436 * real.c (ereal_inf): Clear E before use.
2438 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
2440 * config/h8300/h8300.md (udivmodqi4): Split the pattern into
2441 an expander and an anonymous pattern. Zero out the upper half
2442 of the dividend in the expander.
2443 (udivmodqi4): Likewise.
2445 2002-09-07 Kazu Hirata <kazu@cs.umass.edu>
2447 * config/h8300/h8300.c: Fix formatting.
2448 * config/h8300/h8300.h: Likewise.
2449 * config/h8300/h8300.md: Likewise.
2451 2002-09-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2453 * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
2456 2002-09-07 Graham Stott <graham.stott@btinternet.con>
2458 * rtlanal.c (dead_or_set_regno_p): Fix typo.
2460 2002-09-07 Alan Modra <amodra@bigpond.net.au>
2462 * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2464 * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
2465 * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2466 (TARGET_ASM_OUT): Add the above here.
2467 * target.h (struct gcc_target): Add "visibility" field.
2468 * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
2469 * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
2470 (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
2471 (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
2473 2002-09-06 Ziemowit Laski <zlaski@apple.com>
2475 * c-lang.c (objc_is_id): New stub.
2476 * c-tree.h (objc_is_id): New forward declaration.
2477 * c-typeck.c (build_c_cast): Do not strip protocol
2478 qualifiers from 'id' type.
2479 * objc/objc-act.c (objc_comptypes): Correct handling
2480 of protocol qualifiers.
2483 Fri Sep 6 13:10:08 2002 Jeffrey A Law (law@redhat.com)
2485 * pentium.md (pentium-firstvboth): Fix typo.
2487 2002-09-06 Dhananjay Deshpande <dhananjayd@kpit.com>
2489 * h8300.c (enum shift_alg): Move to earlier in h8300.c.
2490 (enum shift_type, enum h8_cpu): Likewise.
2491 (INL, ROT, LOP, SPC macros): Likewise.
2492 (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise. Lose
2494 (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
2495 space efficient algorithms when optimize for codesize.
2497 Fri Sep 6 16:35:32 2002 Nicola Pero <n.pero@mi.flashnet.it>
2499 Fix PR/1727 and long-standing failing testcase
2500 objc/formal-protocol-6.m.
2501 * objc-act.c (build_protocol_expr): If compiling for the GNU
2502 runtime, create a list of Protocol statically allocated instances
2503 if it doesn't exist, then add the Protocol object to this same
2505 (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
2506 instead of TREE_CHAIN.
2508 Fri Sep 6 16:17:33 2002 Nicola Pero <n.pero@mi.flashnet.it>
2510 * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
2511 10k. Fixed category dumping - print out category names with the
2512 proper syntax. Print '@end\n' and not '\n@end' at the end of the
2514 (finish_objc): Fixed the -gen-decls option. It was printing out
2515 only the last class. Dump an interface declaration of all classes
2516 being compiled instead.
2518 2002-09-06 Jason Thorpe <thorpej@wasabisystems.com>
2520 * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
2522 * config/arm/arm.c (arm_gen_return_addr_mask): New function.
2523 * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
2524 if not APCS26 and not Thumb or ARMv4-or-higher. Use gen_int_mode
2525 rather than GEN_INT.
2526 * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
2527 (return_addr_mask, *check_arch2): New.
2529 2002-09-06 Ulrich Weigand <uweigand@de.ibm.com>
2531 * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
2532 "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
2533 "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2534 "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
2535 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
2536 "adddf3", "*adddf3", "*adddf3_ibm",
2537 "addsf3", "*addsf3", "*addsf3_ibm",
2538 "muldi3", "mulsi3", "mulsidi3",
2539 "muldf3", "*muldf3", "*muldf3_ibm",
2540 "mulsf3", "*mulsf3", "*mulsf3_ibm",
2541 "*anddi3_cc", "*anddi3_cconly", "anddi3",
2542 "*andsi3_cc", "*andsi3_cconly", "andsi3",
2543 "*iordi3_cc", "*iordi3_cconly", "iordi3",
2544 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
2545 "*xordi3_cc", "*xordi3_cconly", "xordi3",
2546 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
2547 instead of "register_operand" as predicate for "%0" operand.
2549 2002-09-06 Jakub Jelinek <jakub@redhat.com>
2551 * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
2552 unconditionally when gcc_cv_as_flags64 checks are gone.
2553 * configure: Rebuilt.
2555 2002-09-06 Alan Modra <amodra@bigpond.net.au>
2557 * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
2558 2002-07-26 change. Comment.
2560 2002-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2562 * frv.c (frv_unique_section, frv_select_section,
2563 frv_select_rtx_section): Delete.
2564 (frv_in_small_data_p): New.
2565 (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
2566 TARGET_ASM_SELECT_RTX_SECTION): Delete.
2567 (TARGET_IN_SMALL_DATA_P): Define.
2569 2002-09-05 Dale Johannesen <dalej@apple.com>
2571 * reload1.c (reload): Retain only those memory clobbers
2572 added for variable-array handling.
2574 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
2576 * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
2577 return-in-memory rules.
2578 * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
2580 2002-09-05 David Edelsohn <edelsohn@gnu.org>
2582 * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
2583 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
2585 2002-09-05 Jason Thorpe <thorpej@wasabisystems.com>
2587 * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
2588 not a compile-time constant for the non-IBM case.
2589 * config/arm/arm-protos.h (arm_float_words_big_endian): New
2591 * config/arm/arm.c (arm_float_words_big_endian): New function.
2592 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
2593 if TARGET_VFP and not TARGET_HARD_FLOAT.
2594 (ARM_FLAG_VFP, TARGET_VFP): Define.
2595 (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
2597 2002-09-05 David Edelsohn <edelsohn@gnu.org>
2599 * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
2600 URLs. Fix AIX wording.
2602 2002-09-05 Stan Shebs <shebs@apple.com>
2604 * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
2605 -fPIC equivalent on Darwin.
2607 Thu Sep 5 16:27:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
2609 * sh.c (sh_expand_builtin): Return early if encountering an
2610 error_mark for a type.
2612 2002-09-05 Ulrich Weigand <uweigand@de.ibm.com>
2614 * config/s390/s390.c (s390_expand_plus_operand): Do not require
2615 double-word scratch register.
2616 config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
2618 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
2619 "*cli"): Replace s_operand by memory_operand.
2620 ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
2622 2002-09-05 Kazu Hirata <kazu@cs.umass.edu>
2624 * config/h8300/h8300.c (asm_file_start): Add a missing
2627 2002-09-04 Krister Walfridsson <cato@df.lth.se>
2629 * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
2630 * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
2631 (ix86_output_addr_diff_elt) Likewise.
2632 (x86_output_mi_thunk) Likewise.
2633 * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
2635 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2637 * frv.c (frv_encode_section_info): Fix error in last change.
2639 2002-09-04 David Edelsohn <edelsohn@gnu.org>
2641 * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
2642 (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
2643 (TARGET_BINDS_LOCAL_P): Define.
2644 (rs6000_override_options): Save original flag_pic value.
2645 (rs6000_elf_select_section): Call default_elf_select_section_1.
2646 (rs6000_elf_unique_section): Call default_unique_section_1.
2647 (rs6000_elf_in_small_data_p): New function.
2648 (rs6000_xcoff_asm_named_section): Determine storage mapping class.
2649 (rs6000_xcoff_select_section): Update based on defaults.
2650 (rs6000_xcoff_unique_section): Set to basic name if not common.
2651 (rs6000_binds_local_p): New function.
2652 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
2653 targetm.have_srodata_section if SDATA_EABI.
2654 (TARGET_IN_SMALL_DATA_P): Define.
2656 2002-09-04 Dale Johannesen <dalej@apple.com>
2658 * varasm.c (struct rtx_const, decode_rtx_const):
2659 Make veclo and vechi fields not share storage.
2661 Thu Sep 5 00:34:33 2002 J"orn Rennecke <joern.rennecke@superh.com>
2663 * loop.c (scan_loop): Don't mark separate insns out of a libcall
2665 (move_movables): Abort if we see the first insn of a libcall.
2667 2002-09-04 Richard Henderson <rth@redhat.com>
2669 * builtin-types.def (BT_FN_FLOAT): New.
2670 (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
2671 * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
2672 BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
2673 * builtins.c (fold_builtin_inf): New.
2674 (fold_builtin): Call it.
2675 * real.c (ereal_inf): New.
2676 * real.h: Declare it.
2677 * doc/extend.texi: Document new builtins.
2679 2002-09-04 Richard Henderson <rth@redhat.com>
2681 * cse.c (cse_insn): Avoid subreg games if the equivalence
2682 is already in the proper mode.
2684 2002-09-04 Eric Botcazou <ebotcazou@multimania.com>
2687 * optabs.c (expand_binop): Convert CONST_INTs in all cases.
2689 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2691 * pa.md (setccfp0, setccfp1): New patterns.
2693 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2695 * frv-protos.h (frv_init_builtins, frv_expand_builtin,
2696 frv_select_section, frv_select_rtx_section,
2697 frv_encode_section_info, frv_unique_section): Delete.
2698 * frv.c: Update for target hooks.
2699 * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
2700 SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
2701 EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
2703 2002-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2705 * ip2k-protos.h (function_prologue, function_epilogue,
2706 encode_section_info): Update to match target hook specification.
2707 * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
2708 (function_prologue, function_epilogue, encode_section_info):
2709 Update to match target hook specification.
2710 * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
2711 ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
2712 (NOTICE_UPDATE_CC): Cast to void.
2713 * ip2k.md: Add defaults in switch statements.
2715 2002-09-04 Janis Johnson <janis187@us.ibm.com>
2717 * doc/trouble.texi (Interoperation): Update information about C++ ABI
2720 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2722 * config/sparc/t-netbsd64: Disable multilib for now.
2724 2002-09-04 David Edelsohn <edelsohn@gnu.org>
2726 * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
2727 * target.h (gcc_target): Add have_srodata_section member.
2728 * varasm.c (section_category): Add SECCAT_SRODATA.
2729 (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
2730 READONLY_SDATA_SECTION defined.
2731 (decl_readonly_section_1): True for SECCAT_SRODATA also.
2732 (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
2733 (default_unique_section_1): Likewise.
2735 2002-09-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
2737 * expr.c (emit_group_load): Revise to allow splitting TCmode source
2740 * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
2741 * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
2742 for floating-point register class.
2743 * pa.c (function_arg): Fix handling of modes wider than one word for
2746 Wed Sep 4 18:48:10 2002 J"orn Rennecke <joern.rennecke@superh.com>
2748 * combine.c (make_compound_operation): Don't generate zero / sign
2749 extensions in floating point modes.
2751 2002-09-04 Janis Johnson <janis187@us.ibm.com>
2753 * doc/c-tree.texi: Fix overfull hboxes.
2754 * doc/cppopts.texi: Ditto.
2755 * doc/extend.texi: Ditto.
2756 * doc/gty.texi: Ditto.
2757 * doc/invoke.texi: Ditto.
2758 * doc/makefile.texi: Ditto.
2759 * doc/rtl.texi: Ditto.
2760 * doc/standards.texi: Ditto.
2761 * doc/tm.texi: Ditto.
2763 2002-09-04 Richard Henderson <rth@redhat.com>
2765 * c-common.c (builtin_define_with_hex_fp_value): New.
2766 (builtin_define_float_constants): Use it. Fix H_FLOAT mant_dig.
2768 2002-09-04 Janis Johnson <janis187@us.ibm.com>
2770 * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
2771 (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
2772 -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
2773 Warn that these options can break ABI compatibility.
2775 2002-09-04 Richard Henderson <rth@redhat.com>
2777 * real.c (ereal_to_decimal): Add digits parameter.
2778 * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
2779 * c-pretty-print.c (pp_c_real_literal): Update call.
2780 * print-rtl.c (print_rtx): Likewise.
2781 * print-tree.c (print_node_brief, print_node): Likewise.
2782 * sched-vis.c (print_value): Likewise.
2783 * config/arc/arc.c (arc_print_operand): Likewise.
2784 * config/c4x/c4x.c (c4x_print_operand): Likewise.
2785 * config/i370/i370.h (PRINT_OPERAND): Likewise.
2786 * config/i386/i386.c (print_operand): Likewise.
2787 * config/i960/i960.c (i960_print_operand): Likewise.
2788 * config/ip2k/ip2k.c (asm_output_float): Likewise.
2789 * config/m32r/m32r.c (m32r_print_operand): Likewise.
2790 * config/m68hc11/m68hc11.c (print_operand): Likewise.
2791 * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
2792 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2793 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
2794 ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
2795 * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
2796 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2797 * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
2798 ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2799 * config/mips/mips.c (print_operand): Likewise.
2800 * config/ns32k/ns32k.c (print_operand): Likewise.
2801 * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
2802 * config/vax/vax.h (PRINT_OPERAND): Likewise.
2803 * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
2805 2002-09-04 Bob Wilson <bob.wilson@acm.org>
2807 * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
2808 xtensa_multibss_section_type_flags.
2809 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
2811 2002-09-04 Richard Henderson <rth@redhat.com>
2813 * doc/install-old.texi: Don't mention enquire.
2814 * doc/sourcebuild.texi: Update float.h description.
2816 Wed Sep 4 11:22:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
2818 * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
2820 2002-09-03 David Edelsohn <edelsohn@gnu.org>
2822 * varasm.c (default_section_type_flags): Append _1 to name with
2823 shlib parameter. Use original name to call new function with
2825 (decl_readonly_section): Likewise.
2826 (default_elf_select_section): Likewise.
2827 (default_unique_section): Likewise.
2828 (default_bind_local_p): Likewise.
2829 (categorize_decl_for_section): Add shlib parameter to use in place
2830 of implicit flag_pic.
2831 * output.h: Declare new functions with _1 and shlib argument.
2833 2002-09-03 Janis Johnson <janis187@us.ibm.com>
2835 * doc/install.texi: Fix typos, formatting problems, and obvious
2836 overfull/underfull boxes.
2838 * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
2839 * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
2840 include its file, compat.texi.
2841 * doc/compat.texi: New file with new chapter, Binary Compatibility.
2843 2002-09-03 Neil Booth <neil@daikokuya.co.uk>
2845 Debian BTS Bug #157416
2846 * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
2847 * cpplib.c (destringize_and_run): Kludge around getting
2848 tokens from in-progress macros.
2849 (_cpp_do__Pragma): Simplify.
2851 2002-09-03 Steve Ellcey <sje@cup.hp.com>
2853 * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
2854 (CPP_CPU_SPEC): Remove.
2855 (TARGET_CPU_CPP_BUILTINS): New.
2856 * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
2858 (TARGET_OS_CPP_BUILTINS): New.
2859 * config/ia64/linux.h (CPP_PREDEFINES): Remove.
2860 (TARGET_OS_CPP_BUILTINS): New.
2861 * config/ia64/aix.h (CPP_SPEC): Move some stuff to
2862 TARGET_OS_CPP_BUILTINS.
2863 (CPP_PREDEFINES): Remove.
2864 (CPLUSPLUS_CPP_SPEC): Remove.
2865 (TARGET_OS_CPP_BUILTINS): New.
2867 2002-09-03 Richard Henderson <rth@redhat.com>
2869 * Makefile.in (USER_H): Add ginclude/float.h.
2871 (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
2872 (mostlyclean): Don't remove float.h intermediate files.
2873 (distclean): Don't remove float.h.
2874 * config.gcc: Remove all float_format references.
2875 * configure.in (float_format, float_h_file): Remove.
2877 * c-common.c: Include tree-inline.h.
2878 (builtin_define_with_int_value): New.
2879 (builtin_define_type_precision): Use it.
2880 (builtin_define_float_constants): New.
2881 (cb_register_builtins): Use it. Define __FLT_RADIX__ and
2882 __FLT_EVAL_METHOD__.
2883 * defaults.h (TARGET_FLT_EVAL_METHOD): New.
2884 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
2885 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
2886 * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
2887 (TARGET_FLT_EVAL_METHOD): New.
2889 * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
2890 config/float-i386.h, config/float-i64.h, config/float-m68k.h,
2891 config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
2892 * ginclude/float.h: New.
2894 2002-09-03 Stan Shebs <shebs@apple.com>
2896 * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
2897 (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
2898 (PREFERRED_DEBUGGING_TYPE): Ditto.
2899 (ASM_OUTPUT_IDENT): Remove empty definition.
2901 2002-09-03 Steve Ellcey <sje@cup.hp.com>
2903 * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
2905 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
2906 handling routine for builtin pragma.
2907 * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
2908 Registered pragma handling routine.
2909 * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
2910 (ia64_hpux_add_pragma_builtin) New subroutine used by above.
2911 If builtin pragma seen for math routine and C89 conformance is
2912 requested use different math function in order to set errno.
2913 * t-ia64 (ia64-c.o): Add new rule for new file.
2915 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2917 * config/s390/s390.md ("movti"): Add Q->Q alternative.
2918 ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
2919 "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
2921 ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
2922 "*movsf_ss"): Remove.
2924 2002-09-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
2926 * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
2929 2002-09-03 Arati Dikey <aratid@kpit.com>
2931 * h8300.c (asm_file_start): Corrected optimization comment.
2933 2002-09-03 Stan Shebs <shebs@apple.com>
2935 * c-lang.c (recognize_objc_keyword): Remove, no longer used.
2936 * c-tree.h (recognize_objc_keyword): Remove decl.
2937 * c-typeck.c (comp_target_types): Update a comment.
2939 2002-09-03 Ulrich Weigand <uweigand@de.ibm.com>
2941 * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
2942 and register validity checks.
2943 (general_s_operand): Adapt to s390_decompose_address interface change.
2944 (q_constraint): Likewise.
2945 (s390_expand_plus_operand): Likewise.
2946 (legitimiate_address_p): Likewise.
2947 (legitimate_la_operand_p): Likewise.
2948 (legitimize_la_operand): Likewise.
2949 (print_operand_address): Likewise.
2950 (print_operand): Likewise.
2952 Tue Sep 3 11:32:14 2002 Nicola Pero <n.pero@mi.flashnet.it>
2955 * objc/objc-act.c (build_typed_selector_reference): Fix typo which
2956 was causing the new selector never to match the existing ones
2957 (Patch by Alexander Malmberg <alexander@malmberg.org>).
2959 2002-09-03 Graham Stott <graham.stott@btinternet.com>
2961 * config/i386/i386.md ("femms"): Add "memory" attr "none".
2963 2002-09-03 Graham Stott <graham.stott@btinternet.com>
2965 * expr.c (expand_expr): Remove extraneous comment and code.
2967 2002-08-31 Richard Henderson <rth@redhat.com>
2969 * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
2971 2002-08-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
2973 * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
2975 2002-08-30 Richard Henderson <rth@redhat.com>
2978 * c-objc-common.c: Include target.h.
2979 (c_cannot_inline_tree_fn): Don't auto-inline functions that
2980 don't bind locally. Factor setting DECL_UNINLINABLE.
2981 * Makefile.in (c-objc-common.o): Update.
2983 2002-08-30 Janis Johnson <janis187@us.ibm.com>
2985 * doc/install.texi (Configuration, Building): Fix a typo and
2986 some formatting directives.
2988 2002-08-30 Paul Koning <pkoning@equallogic.com>
2990 * doc/c-tree.texi (RDIV_EXPR): Fix typo.
2991 * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
2993 * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
2994 for alphabetic order.
2995 * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
2996 VAX_FLOAT_FORMAT. Remove reference to HOST_FLOAT_FORMAT.
2997 (VAX_HALFWORD_ORDER): Document.
2998 (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
3000 (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
3001 (ASM_OUTPUT_LABEL_REF): Fix font.
3002 (CASE_VECTOR_SHORTEN_MODE): Ditto.
3004 2002-08-30 Denis Chertykov <denisc@overta.ru>
3006 * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
3008 (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
3009 CONST_DOUBLE constants.
3011 2002-08-30 Jason Thorpe <thorpej@wasabisystems.com>
3013 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
3014 related defines to...
3015 (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
3016 * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
3019 2002-08-30 Krister Walfridsson <cato@df.lth.se>
3021 * config/arm/arm.c (arm_asm_output_labelref): New function.
3022 * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
3023 * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
3025 2002-08-29 Rodney Brown <rbrown64@csc.com.au>
3027 * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
3028 memory exhausted" workarounds.
3030 2002-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3032 * diagnostic.c (fancy_abort): Don't repeat "internal error".
3033 * toplev.c (crash_signal): Likewise.
3035 Fri Aug 30 00:33:37 2002 Nicola Pero <n.pero@mi.flashnet.it>
3037 * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
3038 * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
3039 Extended, updated documentation.
3040 (-Wundeclared-selector): Documented.
3042 2002-08-29 Jason Thorpe <thorpej@wasabisystems.com>
3044 * config/chorus.h: Consistently define *_DEBUGGING_INFO with
3045 the value 1. Do not undef before defining.
3046 * config/darwin.h: Likewise.
3047 * config/dbx.h: Likewise.
3048 * config/dbxcoff.h: Likewise.
3049 * config/dbxelf.h: Likewise.
3050 * config/elfos.h: Likewise.
3051 * config/interix.h: Likewise.
3052 * config/lynx-ng.h: Likewise.
3053 * config/lynx.h: Likewise.
3054 * config/netware.h: Likewise.
3055 * config/psos.h: Likewise.
3056 * config/svr3.h: Likewise.
3057 * config/alpha/alpha.h: Likewise.
3058 * config/alpha/elf.h: Likewise.
3059 * config/alpha/vms.h: Likewise.
3060 * config/arc/arc.h: Likewise.
3061 * config/arm/aout.h: Likewise.
3062 * config/arm/coff.h: Likewise.
3063 * config/c4x/c4x.h: Likewise.
3064 * config/h8300/h8300.h: Likewise.
3065 * config/i386/cygwin.h: Likewise.
3066 * config/i386/djgpp.h: Likewise.
3067 * config/i386/gas.h: Likewise.
3068 * config/i386/gstabs.h: Likewise.
3069 * config/i386/i386-coff.h: Likewise.
3070 * config/i386/i386-interix.h: Likewise.
3071 * config/i386/sco5.h: Likewise.
3072 * config/i386/svr3dbx.h: Likewise.
3073 * config/i386/sysv3.h: Likewise.
3074 * config/i386/win32.h: Likewise.
3075 * config/i386/x86-64.h: Likewise.
3076 * config/i960/i960.h: Likewise.
3077 * config/ia64/ia64.h: Likewise.
3078 * config/ip2k/ip2k.h: Likewise.
3079 * config/m32r/m32r.h: Likewise.
3080 * config/m68k/3b1.h: Likewise.
3081 * config/m68k/3b1g.h: Likewise.
3082 * config/m68k/ccur-GAS.h: Likewise.
3083 * config/m68k/coff.h: Likewise.
3084 * config/m68k/hp2bsd.h: Likewise.
3085 * config/m68k/hp310g.h: Likewise.
3086 * config/m68k/hp320g.h: Likewise.
3087 * config/m68k/hp3bsd.h: Likewise.
3088 * config/m68k/hp3bsd44.h: Likewise.
3089 * config/m68k/linux-aout.h: Likewise.
3090 * config/m68k/m68k-aout.h: Likewise.
3091 * config/m68k/mot3300.h: Likewise.
3092 * config/m68k/netbsd.h: Likewise.
3093 * config/m68k/openbsd.h: Likewise.
3094 * config/m68k/pbb.h: Likewise.
3095 * config/m68k/plexus.h: Likewise.
3096 * config/m68k/sun2.h: Likewise.
3097 * config/m68k/sun3.h: Likewise.
3098 * config/m68k/tower-as.h: Likewise.
3099 * config/m68k/vxm68k.h: Likewise.
3100 * config/m88k/aout-dbx.h: Likewise.
3101 * config/m88k/m88k-aout.h: Likewise.
3102 * config/mcore/mcore-elf.h: Likewise.
3103 * config/mcore/mcore-pe.h: Likewise.
3104 * config/mips/elf.h: Likewise.
3105 * config/mips/elf64.h: Likewise.
3106 * config/mips/iris5gas.h: Likewise.
3107 * config/mips/iris6.h: Likewise.
3108 * config/mips/mips.h: Likewise.
3109 * config/mips/sni-gas.h: Likewise.
3110 * config/mmix/mmix.h: Likewise.
3111 * config/ns32k/netbsd.h: Likewise.
3112 * config/pa/pa64-hpux.h: Likewise.
3113 * config/romp/romp.h: Likewise.
3114 * config/rs6000/sysv4.h: Likewise.
3115 * config/rs6000/xcoff.h: Likewise.
3116 * config/sh/coff.h: Likewise.
3117 * config/sh/elf.h: Likewise.
3118 * config/sparc/linux64.h: Likewise.
3119 * config/sparc/liteelf.h: Likewise.
3120 * config/sparc/netbsd.h: Likewise.
3121 * config/sparc/openbsd.h: Likewise.
3122 * config/sparc/pbd.h: Likewise.
3123 * config/sparc/sp64-elf.h: Likewise.
3124 * config/sparc/sp86x-elf.h: Likewise.
3125 * config/sparc/sparc.h: Likewise.
3126 * config/vax/vax.h: Likewise.
3127 * config/vax/vaxv.h: Likewise.
3129 2002-08-29 "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
3131 * h8300.c (shift_alg_hi): Various tweaks to improve performance
3133 (get_shift_alg): Corresponding changes.
3135 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3137 * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
3139 2002-08-29 Richard Henderson <rth@redhat.com>
3141 * expr.h (enum block_op_methods): New.
3142 (emit_block_move): Update prototype.
3143 * expr.c (block_move_libcall_safe_for_call_parm): New.
3144 (emit_block_move_via_loop): New.
3145 (emit_block_move): Use them. New argument METHOD.
3146 (emit_push_insn): Always respect the given alignment.
3147 (expand_assignment): Update call to emit_block_move.
3148 (store_expr, store_field, expand_expr): Likewise.
3149 * builtins.c (expand_builtin_apply): Likewise.
3150 (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3151 * function.c (expand_function_end): Likewise.
3152 * config/sh/sh.c (sh_initialize_trampoline): Likewise.
3153 * config/sparc/sparc.c (sparc_va_arg): Likewise.
3154 * calls.c (expand_call, emit_library_call_value_1): Likewise.
3155 (save_fixed_argument_area): Use emit_block_move with
3156 BLOCK_OP_CALL_PARM instead of move_by_pieces.
3157 (restore_fixed_argument_area): Likewise.
3158 (store_one_arg): Fix alignment parameter to emit_push_insn.
3160 2002-08-29 John David Anglin <dave@hiauly1.hia.nrc.ca>
3162 * install.texi (hppa64-hp-hpux11*): Document installation procedure.
3164 2002-08-29 Catherine Moore <clm@redhat.com>
3166 * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
3167 NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
3168 (PREDICATE_CODES): Include new predicates.
3169 (RTX_COSTS): Handle UMOD and UDIV. Tune MULT for v850e.
3170 (TARGET_SWITCHES): Add strict-align.
3171 (TARGET_STRICT_ALIGN): New.
3172 (MASK_DEFAULT, STRICT_ALIGNMENT): Redefine.
3173 * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3175 (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
3177 * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
3178 L_callt_save_r2_r31, L_return_r2_r31,
3179 L_save_all_interrupt): Change addi to add.
3180 (L_save_interrupt, L_return_interrupt): Rework.
3181 (__return_r31): Correct .size directive.
3182 (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
3183 (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
3185 * config/v850/v850.c (expand_prologue): Call
3186 gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
3187 gen_callt_return_interrupt and gen_callt_save_all_interrupt.
3188 (reg_or_int9_operand): New predicate.
3189 (reg_or_const_operand): New routine.
3190 * config/v850/v850.md (return_interrupt): Changed from
3192 (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
3193 (callt_save_interrupt): Change save sequence.
3194 (callt_return_interrupt): New.
3195 (save_interrupt): Don't use runtime function for LONG_CALLS
3196 and TARGET_PROLOG_FUNCTION.
3197 (save_all_interrupt): Likewise.
3198 (mulsi3): Use new predicate.
3199 (moviscc): Disallow some combination of constants.
3200 Fix define_split for sasf insns, so that it will not generate bad
3201 code if operand0 and operand5 are the same.
3202 * config/v850/v850-protos.h: Prototype new predicates.
3204 2002-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
3206 * c-common.c (builtin_define_type_precision): New function.
3207 (cb_register_builtins): Use it. Define __WCHAR_UNSIGNED__ is
3208 wchar_t is unsigned in C++.
3209 * doc/cpp.texi (Common Predefined Macros): Document
3210 __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
3211 __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
3212 __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
3214 2002-08-28 Sylvain Pion <pion@cs.nyu.edu>
3216 * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
3217 section. Mention that it is enabled by -Wall.
3218 (-Wall): Mention that there can be language-specific warnings as well.
3219 (-Wctor-dtor-privacy): Mention that it is enabled by default.
3220 (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
3222 Wed Aug 28 15:35:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
3224 * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
3227 * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
3228 attribute for SHCOMPACT.
3230 * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
3232 (FUNCTION_BOUNDARY): Specify only the minimum alignment required
3235 * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
3237 2002-08-28 Jason Thorpe <thorpej@wasabisystems.com>
3239 * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
3240 "MASK_GAS|MASK_ABICALLS".
3241 * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
3242 (TARGET_DEFAULT): Remove.
3243 (MACHINE_TYPE): Undefine before defining.
3244 (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
3246 2002-08-27 Mark Mitchell <mark@codesourcery.com>
3248 * c-common.c (warn_abi): New variable.
3249 * c-common.h (warn_abi): Likewise.
3250 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
3251 (c_common_decode_option): Handle it.
3252 * doc/invoke.texi: Document -Wabi.
3254 Tue Aug 27 23:03:52 2002 Nicola Pero <n.pero@mi.flashnet.it>
3256 * c-common.c (warn_undeclared_selector): New variable.
3257 * c-common.h (warn_undeclared_selector): Idem.
3258 * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
3259 to on when -Wundeclared-selector is found.
3260 (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
3261 * objc/objc-act.c (build_selector_expr): If
3262 warn_undeclared_selector is set, check that the selector has
3263 already been defined, and emit a warning if not.
3265 2002-08-27 Nick Clifton <nickc@redhat.com>
3266 Catherine Moore <clm@redhat.com>
3267 Jim Wilson <wilson@cygnus.com>
3269 * config.gcc: Add v850e-*-* target.
3270 Add --with-cpu= support for v850.
3271 * config/v850/lib1funcs.asm: Add v850e callt functions.
3272 * config/v850/v850.h: Add support for v850e target.
3273 * config/v850/v850.c: Add functions to support v850e target.
3274 * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
3275 * config/v850/v850.md: Add patterns for v850e instructions.
3276 * doc/invoke.texi: Document new v850e command line switches.
3278 Tue Aug 27 18:30:47 2002 J"orn Rennecke <joern.rennecke@superh.com>
3279 Aldy Hernandez <aldyh at redhat dot com>
3281 * doc/tm.texi: Applied numerous fixes to the automaton based
3282 scheduler descrition.
3284 Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
3286 * i386.c (classify_argument): Handle variable sized objects.
3288 Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
3290 * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
3292 Tue Aug 27 18:01:45 CEST 2002 Jan Hubicka <jh@suse.cz>
3294 * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
3296 Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka <jh@suse.cz>
3298 * i386.c (classify_argument): Properly compute word size of the analyzed object.
3300 Tue Aug 27 14:39:09 2002 J"orn Rennecke <joern.rennecke@superh.com>
3302 * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
3303 mac_gp ftrc_s and cwb. Add / Adjust definitions in individual insn
3305 (attribute insn_class): Provide default definitions based on type.
3306 Remove all insn-specific settings.
3307 (various function units): Remove old SH4 scheduling.
3308 (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
3309 New attributes. Set them where appropriate.
3310 (cpu unit FS): Don't define / use.
3311 (F3, load_store): New cpu units.
3312 (F01): New reservation.
3313 (all insn_reservations): Make dependent on sh4 pipeline model.
3315 (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
3316 (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
3317 (mt insn_reservation): Use type mt_group.
3318 (insn_reservation load_store): Split into sh4_load, sh4_load_si,
3319 sh4_fload and sh4_store.
3320 (insn_reservation branch_zero and branch): Replace with sh4_branch.
3321 (insn_reservation branch_far): Replace with sh4_return.
3322 (insn_reservation return_from_exp): Rename to:
3323 (sh4_return_from_exp). Change to be just d_lock*5.
3324 (insn_reservation lds_to_pr): Rename to:
3325 (sh4_lds_to_pr). Change to be just d_lock*2.
3326 (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
3328 (insn_reservation prload_mem): Rename to:
3329 (sh4_prstore_mem). Change to d_lock*2,nothing,memory.
3330 (insn_reservation fpscr_store): Rename to:
3331 (fpscr_load). Change to d_lock,nothing,F1*3.
3332 (insn_reservation fpscr_store_mem): Rename to:
3333 (fpscr_load_mem). Change to d_lock,nothing,(F1+memory),F1*2.
3334 (insn_reservation multi): Change to
3335 d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
3336 (insn_reservation fp_arith): Change to issue,F01,F2.
3337 (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
3338 (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
3339 (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
3340 (insn_reservation fp_double_cmp): Change to
3341 d_lock,(d_lock+F01),F1+F2,F2.
3342 (insn_reservation dp_div): Change to
3343 issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
3344 * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
3345 (sh_adjust_cost, SHcompact): Differentiate between different
3346 kinds of dependencies. Drop factor of ten for superscalar.
3347 Use new instruction types. Add new exception rules.
3349 * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
3351 * sh.md (mperm_w): Add DONE.
3353 2002-08-27 David Edelsohn <edelsohn@gnu.org>
3355 * longlong.h: Import current PowerPC defintion from GMP-4.1.
3357 * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
3359 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
3361 Tue Aug 27 13:53:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
3363 * sh.h (MAX_FIXED_MODE_SIZE): Define.
3365 2002-08-27 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
3367 * doc/cpp.texi (Common Predefined Macros): Don't mess with table
3370 2002-08-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3372 * c-common.c (cpp_define_data_format): New function.
3373 (cb_register_builtins): Call it.
3375 * doc/cpp.texi (Common Predefined Macros): Document
3376 __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
3377 __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
3378 __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
3379 __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
3380 __TARGET_USES_VAX_H_FLOAT__.
3382 2002-08-26 Ziemowit Laski <zlaski@apple.com>
3384 * objc/objc-act.c (get_super_receiver): If inside a class method
3385 of a category, cast the receiver to 'id' before accessing the 'isa'
3386 field so that <objc/objc-class.h> is not needed. For NeXT runtime.
3388 2002-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3390 * config/s390/s390-protos.h (s390_function_prologue,
3391 s390_function_epilogue): Remove.
3392 config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
3393 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3395 config/s390/s390.c (s390_machine_dependent_recorg): New function.
3396 config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
3397 config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
3398 config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
3399 to being called from MACHINE_DEPENDENT_REORG. Update regs_ever_live.
3401 config/s390/s390.c (s390_frame_info): Inline save_fprs_p. Always
3402 assume BASE_REGISTER and RETURN_REGNUM need to be saved.
3403 (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
3404 function is not a leaf function. Use save_gprs and restore_gprs.
3405 (s390_emit_epilogue): Likewise.
3406 (save_gprs, restore_gprs): New functions.
3407 (struct s390_frame): Remove return_reg_saved_p member.
3408 (save_fprs_p): Remove.
3409 (s390_optimize_prolog): New function.
3410 (s390_legitimate_reload_constant): Remove now unnecessary check.
3412 (s390_function_count): Remove.
3413 (s390_output_symbolic_const): Replace s390_function_count by
3414 current_function_funcdef_no.
3415 (s390_output_constant_pool): Likewise.
3417 (legitimize_pic_address): Use regs_ever_live to track PIC register
3418 instead of current_function_uses_pic_offset_table.
3419 (s390_emit_prologue): Likewise.
3420 config/s390/s390.md ("call", "call_value"): Likewise.
3422 2002-08-26 Neil Booth <neil@daikokuya.co.uk>
3424 * c-opts.c (find_opt): Don't complain about wrong languages
3425 here. Return exact matches even for wrong language.
3426 (c_common_decode_option): Complain about wrong languages
3429 2002-08-24 Stuart Hastings <stuart@apple.com>
3431 * function.h (struct function): Add flag
3432 all_throwers_are_sibcalls.
3433 * except.c (set_nothrow_function_flags): Replaces
3434 nothrow_function_p. Set new flag.
3435 * except.h (set_nothrow_function_flags): Replaces
3437 * dwarf2out.c (struct dw_fde_struct): Add flag
3438 all_throwers_are_sibcalls.
3439 (output_call_frame_info): Test it.
3440 (dwarf2out_begin_prologue) Propagate it from cfun to
3442 * toplev.c (rest_of_compilation): Update calls to
3445 2002-08-23 Zack Weinberg <zack@codesourcery.com>
3447 * ggc-page.c (compute_inverse): Short circuit calculation for
3448 object sizes larger than half a page.
3450 2002-08-23 David Edelsohn <edelsohn@gnu.org>
3452 * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
3453 DEFAULT_ABI == ABI_AIX like PIC. Test PIC & reloc for readonly
3455 (rs6000_elf_unique_section): Likewise.
3457 2002-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3459 * ns32k.c (ns32k_globalize_label): Delete.
3460 * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
3462 2002-08-23 Alan Modra <amodra@bigpond.net.au>
3464 * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
3465 for loading delta with num_insns_constant_wide. Calculate
3466 delta_low, delta_high without using a conditional.
3468 2002-08-22 Jason Merrill <jason@redhat.com>
3470 * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
3471 * c-common.def: Adjust.
3472 * c-dump.c (c_dump_tree): Adjust.
3473 * c-semantics.c (genrtl_return_stmt): Adjust.
3474 * c-pretty-print.c (pp_c_statement): Adjust.
3475 * tree-inline.c (copy_body_r): Adjust.
3477 2002-08-22 Zack Weinberg <zack@codesourcery.com>
3479 * ggc-page.c: Avoid division in ggc_set_mark.
3480 (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
3481 compute_inverse): New.
3482 (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
3483 (init_ggc): Initialize inverse_table.
3485 2002-08-22 Tom Tromey <tromey@redhat.com>
3487 * doc/install.texi (Configuration): Document --datadir.
3489 2002-08-22 Alexandre Oliva <aoliva@redhat.com>
3491 * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
3493 2002-08-22 Hans-Peter Nilsson <hp@bitrange.com>
3495 * gengtype-lex.l (ID): Allow underscore as first character.
3497 2002-08-21 David Edelsohn <edelsohn@gnu.org>
3499 * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
3501 (rs6000_xcoff_asm_named_section): Rename.
3502 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3504 2002-08-21 Tom Tromey <tromey@redhat.com>
3506 For PR java/6005 and PR java/7611:
3507 * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
3509 * langhooks.c (lhd_can_use_bit_fields_p): New function.
3510 * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
3511 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
3512 (LANG_HOOKS_INITIALIZER): Use it.
3513 * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
3516 2002-08-21 Stan Shebs <shebs@apple.com>
3518 * tree.c (finish_vector_type): Fix a typo in a comment.
3519 * Makefile.in: Fix "the the" stutters in comments.
3520 * genautomata.c: Ditto.
3522 * regrename.c: Ditto.
3523 * config/alpha/alpha.c: Ditto.
3524 * config/alpha/vms-crt0-64.c: Ditto.
3525 * config/alpha/vms-crt0.c: Ditto.
3526 * config/alpha/vms-psxcrt0-64.c: Ditto.
3527 * config/alpha/vms-psxcrt0.c: Ditto.
3528 * config/d30v/d30v.h: Ditto.
3529 * config/fr30/fr30.h: Ditto.
3530 * config/rs6000/rs6000.c: Ditto.
3531 * config/stormy16/stormy16.h: Ditto.
3532 * doc/md.texi: Ditto.
3534 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
3536 * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
3538 2002-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
3540 * c-decl.c (grokdeclarator): Make invalid combinations with long,
3541 short, signed or unsigned into hard errors. Fixes PR c/4319.
3542 Also make duplicate modifiers such as "short short" into hard
3545 2002-08-21 Andrew Pinski <pinskia@physics.uc.edu>
3546 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3548 * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
3549 to the actual end. Add '@end table' and '@table @code'.
3551 2002-08-20 Geoffrey Keating <geoffk@redhat.com>
3553 * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
3555 * unroll.c (biv_total_increment): Don't try to compute the total
3556 increment for FP BIVs.
3558 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3560 * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
3561 * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
3562 ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3563 * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
3564 * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
3565 * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
3566 (GLOBAL_ASM_OP): Define.
3567 * arm.c (aof_globalize_label): New function.
3568 (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
3569 * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3570 * c4x.c (c4x_globalize_label): New function.
3571 (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
3572 * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
3573 (GLOBAL_ASM_OP): Define.
3574 * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3575 * darwin-protos.h (darwin_globalize_label): Declare.
3576 * darwin.c (darwin_globalize_label): New function.
3577 * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
3578 (ASM_GLOBALIZE_LABEL): Delete.
3579 (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
3580 * dsp16xx.c (asm_output_common): Use target hook.
3581 * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
3582 * frv.h (ASM_GLOBALIZE_LABEL): Delete.
3583 (GLOBAL_ASM_OP): Define.
3584 * i370.c (i370_globalize_label): New function.
3585 (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
3586 * i370.h (ASM_GLOBALIZE_LABEL): Delete.
3587 * i386.c (ix86_asm_file_end): Use target hook.
3588 * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
3589 (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
3590 * ia64.c (ia64_asm_output_external): Likewise.
3591 * ia64/sysv4.h: Update comment.
3592 * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3593 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3594 * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
3595 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
3596 * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
3597 * mmix-protos.h (mmix_asm_globalize_label): Delete.
3598 * mmix.c (mmix_asm_globalize_label): Likewise.
3599 * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
3600 (GLOBAL_ASM_OP): Define.
3601 * ns32k.c (ns32k_globalize_label): New function.
3602 * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
3603 (ASM_GLOBALIZE_LABEL): Delete.
3604 * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
3605 (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
3606 * pa.c (pa_globalize_label): New function.
3607 * pa.h (ASM_GLOBALIZE_LABEL): Delete.
3608 (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
3609 * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
3610 (GLOBAL_ASM_OP): Define.
3611 (TARGET_ASM_GLOBALIZE_LABEL): Undef.
3612 * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
3613 * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
3614 (GLOBAL_ASM_OP): Define.
3615 * v850.c (v850_output_aligned_bss): Use target hook.
3616 * vax.c (vms_globalize_label): New function.
3617 (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
3618 * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
3619 (GLOBAL_ASM_OP): Define.
3620 * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
3621 * doc/tm.texi: Update docs.
3622 * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
3624 * final.c (output_alternate_entry_point): Likewise.
3625 * hooks.c (hook_FILEptr_constcharptr_void): New function.
3626 * hooks.h (hook_FILEptr_constcharptr_void): Declare.
3627 * output.h (assemble_global): Delete.
3628 (default_globalize_label): Declare.
3629 * system.h (ASM_GLOBALIZE_LABEL): Poison.
3630 * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
3631 (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
3632 * target.h (gcc_target): Add globalize_label member.
3633 * varasm.c (asm_output_bss, asm_output_aligned_bss,
3634 globalize_decl): Use target hook.
3635 (assemble_global): Delete.
3636 (default_globalize_label): New function.
3638 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3640 * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
3642 2002-08-20 Devang Patel <dpatel@apple.com>
3643 * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
3645 2002-08-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3647 * arc.c (output_shift): Use stdio instead of asm_fprintf.
3648 * arm.c (thumb_output_function_prologue): Likewise.
3649 * avr.c (print_operand): Likewise.
3650 * c4x.c (c4x_print_operand): Likewise.
3651 * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
3652 ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
3653 * cris.c (cris_target_asm_function_prologue,
3654 cris_asm_output_mi_thunk): Likewise.
3655 * h8300.c (print_operand): Likewise.
3656 * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3657 * ip2k.c (print_operand): Likewise. Fix format specifier.
3658 * m68hc11.c (asm_print_register, print_operand,
3659 print_operand_address): Use stdio instead of asm_fprintf.
3660 (print_operand_address): Fix format specifier.
3661 * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
3662 ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
3664 * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3665 * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
3666 * m68k.c (m68k_output_function_prologue,
3667 m68k_output_function_epilogue, print_operand): Likewise.
3668 * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
3669 Likewise. Fix format specifier.
3670 * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3671 * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3672 * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
3674 2002-08-15 Eric Christopher <echristo@redhat.com>
3675 Jeff Knaggs <jknaggs@redhat.com>
3677 * config.gcc (mipsisa64sr71k-elf): New target.
3678 * config/mips/sr71k.md: New file.
3679 * config/mips/mips.md: Use it.
3680 (rot*): Add sr71k specifics.
3681 * config/mips/t-sr71k: New file.
3682 * config/mips/mips.h (sr71k): New cpu.
3683 (TARGET_SR71K): Use it.
3684 (TUNE_SR71K): Ditto.
3685 (GENERATE_BRANCHLIKELY): Ditto.
3686 (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
3687 ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
3688 * config/mips/mips.c (sr71k): New cpu.
3689 (mips_use_dfa_pipeline_interface): Use.
3691 2002-08-15 Eric Christopher <echristo@redhat.com>
3692 Richard Sandiford <rsandifo@redhat.com>
3693 Aldy Hernandez <aldyh@redhat.com>
3694 Graham Stott <grahams@redhat.com>
3695 Michael Meissner <meissner@redhat.com>
3696 Gavin Romig-Koch <gavin@redhat.com>
3697 Ken Raeburn <raeburn@cygnus.com>
3698 Alexandre Oliva <aoliva@redhat.com>
3700 * config.gcc (mips64vr-elf): New target.
3701 * config/mips/5400.md: New file.
3702 * config/mips/5500.md: Ditto.
3703 * config/mips/mips.md: Use them.
3705 * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
3707 (mips_issue_rate): Use them.
3708 (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
3709 (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
3710 * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
3712 (TARGET_MIPSx): Use them.
3713 (TUNE_MIPSx): Ditto.
3714 (GETNATE_MULT3_SI): Ditto.
3715 (ISA_HAS_BRANCHLIKELY): Ditto.
3716 (ISA_HAS_CONDMOVE): Ditto.
3717 (ISA_HAS_NMADD_NMSUB): Ditto.
3718 (ISA_HAS_MULHI): New. Ditto.
3719 (ISA_HAS_MULS): Ditto.
3720 (ISA_HAS_MSAC): Ditto.
3721 (ISA_HAS_MACC): Ditto.
3722 (ISA_HAS_ROTR_SI): Ditto.
3723 (ISA_HAS_ROTR_DI): Ditto.
3726 2002-08-20 John David Anglin <dave@hiauly1.hia.nrc.ca>
3728 * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
3730 (remove_dup_nonsys_dirs): New function.
3731 (remove_dup_dirs): Change argument head to head_ptr. Remove warnings.
3732 (merge_include_chains): Remove non-system include directories from
3733 quote and bracket include chains when they duplicate equivalent system
3735 * doc/cpp.texi (-I): Update.
3736 * doc/cppopts.texi (-I): Update.
3737 * doc/install.texi (--with-local-prefix): Further document usage of
3739 * doc/invoke.texi (-I): Update.
3741 2002-08-20 Richard Henderson <rth@redhat.com>
3743 * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
3744 (emit_block_move): Split out subroutines.
3745 (emit_block_move_via_movstr): New.
3746 (emit_block_move_via_libcall): New. Emit bcopy via normal call also.
3747 (emit_block_move_libcall_fn): New. Construct function prototype for
3749 (clear_storage): Split out subroutines.
3750 (clear_storage_via_clrstr): New.
3751 (clear_storage_via_libcall): New. Emit bzero as a normal call also.
3752 (clear_storage_libcall_fn): New. Construct function prototype for
3754 (emit_push_insn): Use emit_block_move.
3755 (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
3756 (store_constructor): Likewise.
3758 2002-08-19 Ziemowit Laski <zlaski@apple.com>
3760 * objc/objc-act.c (building_objc_message_expr): Rename to
3761 current_objc_message_selector.
3763 2002-08-19 Ziemowit Laski <zlaski@apple.com>
3765 * objc/objc-act.c (build_ivar_chain): Remove.
3766 (objc_copy_list): Likewise.
3767 (get_class_ivars): Inline call to removed build_ivar_chain
3768 function. Save off a clean copy of ivars in the CLASS_OWN_IVARS
3769 slot; use that slot (rather than CLASS_IVARS) when accessing
3770 ivars for base classes. Call copy_list and chainon instead of
3772 (build_private_template): Call get_class_ivars instead of
3774 (start_class): Allocate room for the CLASS_OWN_IVARS slot.
3775 (continue_class): Call get_class_ivars instead of
3777 (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
3778 of DECL_BIT_FIELD (which may have been cleared).
3779 * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
3781 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3783 * genautomata.c (output_translate_vect, output_state_ainsn_table,
3784 output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
3786 (output_internal_min_issue_delay_func): Initialize variable in
3789 2002-08-19 Alexandre Oliva <aoliva@redhat.com>
3791 * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
3792 (stage2_build, stage3_build, stage4_build): Likewise, to CC.
3794 2002-08-19 Geoffrey Keating <geoffk@redhat.com>
3795 Steve Ellcey <sje@cup.hp.com>
3797 * machmode.h (SCALAR_INT_MODE_P): New macro to test for
3798 scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
3799 * explow.c (trunc_int_for_mode): Abort when the mode is not
3800 a scaler integer mode.
3801 * combine.c (expand_compound_operation): Don't expand Vector
3802 or Complex modes into shifts.
3803 (expand_field_assignment): Don't do bitwise arithmatic and
3804 shifts on Vector or Complex modes.
3805 (simplify_comparison): Don't call trunc_int_for_mode
3807 * recog.c (general_operand): Likewise.
3808 (immediate_operand): Likewise.
3809 (nonmemory_operand): Likewise.
3811 2002-08-19 David Edelsohn <edelsohn@gnu.org>
3813 * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
3814 multi-instruction SImode constant. Add REG_EQUAL note.
3815 * config/rs6000/rs6000.md (movsi splitter): Use
3816 rs6000_emit_set_const.
3818 2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3820 * tree-inline.c (initialize_inlined_parameters): Wrap variable in
3821 the macro test controlling its use.
3823 2002-08-18 H.J. Lu (hjl@gnu.org)
3825 * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
3826 crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
3828 (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
3829 i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
3830 s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
3831 xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
3833 (cris-*-linux*): Remove setting thread_file here.
3835 2002-08-18 Neil Booth <neil@daikokuya.co.uk>
3837 PR preprocessor/7602
3838 * cppinit.c (path_include): Treat the system environment
3839 variables as being cxx_aware.
3841 2002-08-17 Joseph S. Myers <jsm@polyomino.org.uk>
3843 * c-decl.c (flexible_array_type_p): New function.
3844 (grokdeclarator, finish_struct): Use it.
3845 * doc/extend.texi: Document constraints on use of structures with
3846 flexible array members.
3848 2002-08-17 Richard Sandiford <rsandifo@redhat.com>
3850 * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
3851 config/mips/t-r3900 (MULTILIB_MATCHES): Define.
3852 * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
3854 2002-08-16 Stan Shebs <shebs@apple.com>
3856 * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
3857 for ObjC with -fnext-runtime.
3858 * doc/cpp.texi: Document it.
3860 2002-08-16 Janis Johnson <janis187@us.ibm.com>
3862 * doc/install.texi (Final installation): Replace links to individual
3863 build status pages with a link to a common page that lists them all.
3865 2002-08-16 Sylvain Pion <pion@cs.nyu.edu>
3867 * doc/invoke.texi: Fix typo.
3869 2002-08-16 David Edelsohn <edelsohn@gnu.org>
3871 * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
3873 2002-08-16 Andrew Haley <aph@redhat.com>
3875 * tree-inline.c: Add includes for Java inliner.
3876 (remap_decl): Don't handle anonymous types for Java.
3877 (remap_block): Add handling for Java trees.
3878 (copy_scope_stmt): Conditionalize for non-Java use only.
3879 (copy_body_r): Handle Java trees. Add handling for
3880 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
3881 (initialize_inlined_parameters): Handle Java trees.
3882 (declare_return_variable): Likewise.
3883 (expand_call_inline): Handle Java trees.
3884 (walk_tree): Likewise.
3885 (copy_tree_r): Don't handle SCOPE_STMTs for Java.
3886 (add_stmt_to_compound): New function.
3888 2002-08-15 Richard Henderson <rth@redhat.com>
3890 * Makefile.in (LOOSE_WARN): Remove -fno-common.
3891 (NOCOMMON_FLAG): New substitution point.
3892 (GCC_WARN_CFLAGS): Include it.
3893 * configure.in (ac_checking): Set nocommon_flag.
3894 (nocommon_flag): New substitution point.
3896 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3898 * c-tree.h (skip_evaluation): Move declaration...
3899 * c-common.h: ... here.
3900 * c-typeck.c (build_external_ref): Don't assemble_external nor
3901 mark a tree as used if skip_evaluation is set.
3902 * c-parse.in (typeof): New non-terminal to set skip_evaluation
3904 (typespec_nonreserved_nonattr): Use it.
3906 2002-08-15 Douglas B Rupp <rupp@gnat.com>
3908 * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
3909 (xcoff_debug_hooks): Update end_prologue.
3910 * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
3911 * debug.h (end_prologue): Add file arg.
3912 (end_epilogue): Add line and file args.
3913 (dwarf2out_end_epilogue): Add line and file args.
3914 (vmsdbgout_after_prologue): Remove.
3915 * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
3916 (dwarf2_debug_hooks): Update end_prologue.
3917 * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
3918 (dwarfout_end_prologue): Add file arg.
3919 * final.c (vmsdbgout_after_prologue): Remove
3920 (final_end_function): Update end_epilogue call.
3921 (final_scan_insn): Update end_prologue call.
3922 * sdbout.c (sdbout_end_epilogue): Add line and file args.
3923 (sdbout_end_prologue): Add file arg.
3924 (sdb_debug_hooks): Update end_prologue.
3925 (sdb_begin_prologue): Update sdbout_end_prologue call.
3926 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
3927 vmsdbgout_end_function.
3928 (vmsdbgout_end_prologue): New function renamed from
3929 vmsdbgout_after_prologue. Call vmsdbgout_source_line.
3930 (vmsdbgout_end_function): New function.
3931 (vmsdbgout_end_epilogue): Add line and file args. Call
3932 vmsdbgout_source_line.
3933 (write_pclines): Write only valid line numbers.
3934 (write_srccorr): Don't write source correlation records if 0 lines.
3935 * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
3937 2002-08-15 Steve Ellcey <sje@cup.hp.com>
3939 * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
3940 (_Unwind_Internal_Ptr): 32 bit version for use in
3941 read_encoded_value_with_base.
3942 * gcc/unwind-pe.h (read_encoded_value_with_base): Use
3943 _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
3946 2002-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3948 * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
3949 signed/unsigned warnings.
3951 * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
3952 record_reg_classes): Likewise.
3954 * reload.c (reload_inner_reg_of_subreg, push_reload,
3955 find_reloads_address_1): Likewise.
3957 2002-08-15 David Edelsohn <edelsohn@gnu.org>
3959 * rs6000.c (output_mi_thunk): Return to function section on
3962 * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
3964 2002-08-15 Ulrich Weigand <uweigand@de.ibm.com>
3966 * config/s390/s390.c (legitimize_address): Optimize loading
3967 of large displacements.
3969 2002-08-14 Douglas B Rupp <rupp@gnat.com>
3971 * config/alpha/alpha-protos.h: Update.
3973 * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
3974 (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
3975 (alpha_linkage_symbol_p): New static function.
3976 (print_operand_address): Print linkage operand.
3978 (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
3980 (reloc_kind): New enum.
3981 (struct alpha_funcs): New struct.
3982 (struct alpha_links): Add reloc_kind field. Rename links_kind field.
3984 (alpha_need_linkage): Rewrite.
3985 (alpha_use_linkage): New global function.
3986 (alpha_write_linkage): Rewrite and make static.
3987 (alpha_write_one_linkage): Rewrite
3989 (alpha_start_function): Remove procedure descriptor output.
3990 (alpha_end_function): Write linkages at end of each function.
3992 * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
3993 (call_vms_1, call_value_vms_1): Rewrite.
3995 * config/alpha/vms.h (ASM_FILE_END): Remove.
3997 2002-08-14 Richard Henderson <rth@redhat.com>
3999 * ggc-page.c (RTL_SIZE): New.
4000 (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
4001 * rtl.def (BARRIER, NOTE): Pad to 9 slots.
4003 2002-08-14 Richard Henderson <rth@redhat.com>
4005 * calls.c: Include target.h.
4006 * Makefile.in (calls.o): Update.
4008 * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
4009 * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
4011 2002-08-14 Richard Henderson <rth@redhat.com>
4013 * Makefile.in (LOOSE_WARN): Add -fno-common.
4014 * c-common.h (constant_string_class_name): Add missing extern.
4016 2002-08-15 Neil Booth <neil@daikokuya.co.uk>
4018 PR preprocessor/7358
4019 * c-opts.c (check_deps_environment_vars): Ignore main file
4020 for SUNPRO_DEPENDENCIES.
4021 * cppfiles.c (stack_include_file): Ignore main file if
4023 * cpplib.h (struct cpp_options): New member in deps.
4024 * doc/cppenv.texi: Update.
4026 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
4028 PR preprocessor/7526
4029 * cpplib.c (run_directive): Kludge so _Pragma dependency works.
4031 2002-08-14 Nathan Sidwell <nathan@codesourcery.com>
4033 * doc/invoke.texi (-a): Remove documentation.
4034 (-fprofile-arcs): Remove reference to -a, -ax options.
4035 * doc/gcov.texi (Gcov Data Files): Data might be merged.
4037 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
4040 * c-semantics.c (genrtl_case_label): Don't (mis)use
4043 2002-08-14 Dale Johannesen <dalej@apple.com>
4045 * explow.c (emit_stack_restore): Emit memory clobbers
4046 preceding the stack pop, to prevent the scheduler from
4047 moving refs to variable arrays below this pop.
4048 * reload1.c (reload): Preserve these clobbers for sched2.
4049 * doc/rtl.texi: Document clobber (mem:BLK (scratch)).
4051 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
4053 * c-opts.c (c_common_post_options): Correct test.
4055 2002-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4057 * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
4058 order in call to fprintf.
4060 2002-08-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4062 * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
4064 2002-08-14 Ulrich Weigand <uweigand@de.ibm.com>
4066 * reload.c (find_reloads): Handle constraint letters marked by
4067 EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
4068 (alternative_allows_memconst): Likewise.
4069 * reload1.c (maybe_fix_stack_asms): Likewise.
4070 * recog.c (asm_operand_ok, preprocess_constraints,
4071 constrain_operands): Likewise.
4072 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
4073 * local-alloc.c (block_alloc, requires_inout): Likewise.
4074 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4076 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
4077 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
4078 * doc/tm.texi: Document these two new target macros.
4080 * config/s390/s390.c (s390_expand_plus_operand): Accept already
4082 (q_constraint): New function.
4083 config/s390/s390-protos.h (q_constraint): Declare it.
4084 config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
4085 (EXTRA_MEMORY_CONSTRAINT): New macro.
4087 * config/s390/s390.md: Throughout the machine description,
4088 replace all instances of the constraint combinations 'Qo'
4089 or 'oQ' with simply 'Q'.
4091 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4093 * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
4094 * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
4095 (LIBGCC2_CFLAGS): Compile with -mrelax.
4097 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4099 * doc/invoke.texi: Document -minmax for 68HC12.
4101 * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
4102 ("uminqi3"): Likewise.
4103 ("uminhi3", "umaxhi3"): Likewise.
4105 * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
4106 (TARGET_MIN_MAX): Define.
4107 (TARGET_SWITCHES): New option -minmax/-mnominmax.
4109 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4111 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
4112 (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
4114 * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
4115 (ret, declare, farsym): New gas macros.
4116 (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
4117 ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
4118 and declare the symbol far when compiled with -mlong-calls.
4119 (__far_trampoline): New for 68HC12 trampoline code to invoke a
4120 far handler using jsr/bsr.
4122 * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
4123 (jsr): New macro to transform a 'jsr' into a 'call'.
4125 2002-08-14 Stephane Carrez <stcarrez@nerim.fr>
4127 * doc/invoke.texi: Document -mlong-calls for 68HC12.
4129 * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
4130 -mlong-calls is specified.
4131 (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
4132 assembler directives.
4133 (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
4134 (TARGET_SWITCHES): Add -mlong-calls options.
4135 (current_function_far): Declare.
4137 * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
4138 into account the page register saved on the stack.
4139 (m68hc11_override_options): Take into account -mlong-calls option.
4140 (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
4142 * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
4143 if the function is going to be in 68HC12 banked memory (-mlong-calls).
4144 ("*return_16bit"): Likewise.
4145 ("*return_void"): Likewise.
4146 ("call", "call_value"): Use call for a far function call.
4148 2002-08-14 Neil Booth <neil@daikokuya.co.uk>
4150 * toplev.c (parse_options_and_default_flags): Don't call
4152 (general_init): Initialize GC, pools and tree hash here,
4153 instead of lang_independent_init.
4154 (lang_independent_init): Rename backend_init.
4155 (do_compile): Call post_options hook; exit early if there
4156 have been errors after switch processing.
4157 (toplev_main): Update.
4159 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
4161 * c-pretty-print.h: Guard against multiple inclusion.
4163 (pp_c_attributes): Declare.
4164 * c-pretty-print.c (pp_c_attributes): New function.
4166 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4168 * m68k.c (m68k_output_function_prologue,
4169 m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
4171 * genattrtab.c: Remove dpx2 comment.
4172 * libgcc2.c (__enable_execute_stack): Delete versions for
4173 NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
4174 sony_news/SYSTYPE_BSD.
4175 * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
4176 __gmicro__, __i860__, __NeXT__ and __pyr__.
4177 * rtl.h: Remove convex comment.
4178 * varasm.c: Likewise.
4180 2002-08-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4182 * c-opts.c (lang_flags): Const-ify.
4183 * ra-build.c (undef_table): Likewise.
4184 * ra.c (eliminables): Likewise.
4186 2002-08-14 Gabriel Dos Reis <gdr@nerim.net>
4188 * tree.h: Guard against multiple inclusion.
4190 2002-08-14 Hans-Peter Nilsson <hp@bitrange.com>
4192 * reload1.c (reload_cse_simplify): Before checking
4193 REG_FUNCTION_VALUE_P, check REG_P.
4195 2002-08-13 Geoffrey Keating <geoffk@redhat.com>
4197 * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
4199 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
4201 * c-opts.c (c_common_init_options): Extra braces needed.
4203 Tue Aug 13 17:40:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
4205 * sh.c (sh_init_builtins): Add PARAMS to declaration.
4206 (sh_media_init_builtins, sh_expand_builtin): Likewise.
4207 (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
4208 (sh_expand_binop_v2sf): Likewise.
4209 * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
4210 (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
4211 (sh_initialize_trampoline): Likewise.
4213 2002-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4215 * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
4216 new condition code modes.
4217 s390.c (s390_match_ccmode_set): Handle those new CC modes.
4218 (s390_select_ccmode): Likewise.
4219 (s390_branch_condition_mask): Likewise.
4221 * s390-protos.h (s390_tm_ccmode): Declare.
4222 s390.c (s390_tm_ccmode): New function.
4223 (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
4225 * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
4226 ("*cmpsi_tm2"): Rename to "*tmsi_ext".
4227 ("*cmpqi_tm2"): Rename to "*tmqi_ext".
4229 ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
4230 "*cmphi_tm_sub","*cmphi_cct_0", "*cmpqi_tm", "*cmpqi_tm_sub",
4231 "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
4232 ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
4233 "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
4235 ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
4236 "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
4237 "*cmpqi_ccs_0"): Remove, replace by ...
4238 ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
4239 "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
4240 "*tstqi", "*tstqi_cconly"): ... these new patterns.
4242 ("*cmpsidi_ccs"): Remove, replace by ...
4243 ("*cmpsi_ccs_sign"): ... this new pattern.
4244 ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
4246 ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
4247 ("*cli"): ... this new pattern.
4249 ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
4250 "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
4252 ("adddi3_64"): Rename to "*adddi3_64".
4253 ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
4254 ("adddi3"): Adapt expander.
4256 ("*addsi3_cc"): Allow "general_operand" for operand 2.
4257 ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
4258 "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
4260 ("addhi3", "addqi3"): Remove, replace by ...
4261 ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
4263 ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
4264 "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
4265 ("subdi3"): Replace by insn and splitter "*subdi3_31".
4266 ("subdi3"): New expander.
4268 ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
4270 ("subhi3", "subqi3"): Remove, replace by ...
4271 ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
4273 ("*muldi3_sign"): New pattern.
4274 ("muldi3"): Do not clobber CC.
4275 ("mulsi3"): Likewise.
4276 ("mulsi_6432"): Likewise.
4278 2002-08-13 Denis Chertykov <denisc@overta.ru>
4280 * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
4281 which can change CC0.
4283 Tue Aug 13 14:49:20 2002 J"orn Rennecke <joern.rennecke@superh.com>
4285 * gcse.c (adjust_libcall_notes): New function.
4286 (do_local_cprop): Use it. Add fourth parameter. Changed caller.
4288 2002-08-13 Nathan Sidwell <nathan@codesourcery.com>
4290 * libgcc2.c (L_bb): Remove unneeded #includes.
4291 (__global_counters, __gthreads_active): Remove unused globals.
4292 (__bb_exit_func): Merge counts into files rather than appending.
4293 * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
4294 (ALL_CFLAGS): ... to here.
4296 2002-08-13 Denis Chertykov <denisc@overta.ru>
4298 * config/ip2k/ip2k.c (commands_in_file): Variable removed.
4299 (function_epilogue): Don't calculate function size.
4300 (ip2k_set_compare): Don't use lookup_const_double.
4301 (asm_file_start): Initialization of commands_in_file removed.
4302 (asm_file_end): Output of commands_in_file removed.
4304 * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
4307 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
4309 * c-opts.c (c_common_init_options): Check option array is
4310 sorted if checking enabled.
4312 2002-08-13 Gabriel Dos Reis <gdr@nerim.net>
4314 * c-pretty-print.c: #include "c-tree.h".
4315 (pp_c_simple_type_specifier): Tweak.
4316 (pp_c_storage_class_specifier): New.
4317 (pp_c_function_specifier): Likewise.
4318 (pp_c_declaration_specifiers): Likewise.
4319 (pp_c_init_declarator): Likewise.
4320 (pp_c_declaration): Likewise.
4321 (pp_c_direct_declarator): Stub.
4322 (pp_c_declarator): Likewise.
4323 (pp_c_parameter_declaration): Likewise.
4325 2002-08-13 Neil Booth <neil@daikokuya.co.uk>
4327 * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
4328 handle_deferred_opts, sanitize_cpp_opts, defer_opt,
4329 struct deferred_opt): New.
4330 (COMMAND_LINE_OPTIONS): Add -M*.
4331 (missing_arg): Update.
4332 (c_common_decode_option): Handle -M*.
4333 (c_common_post_options): Handle -M*. Use sanitize_cpp_opts;
4334 don't call cpp_post_options.
4335 (c_common_finish, check_deps_environment_vars): Update.
4336 * cppfiles.c (stack_include_file, handle_missing_header): Update.
4337 * cpphash.h (CPP_PRINT_DEPS): Remove.
4338 * cppinit.c: Don't include version.h.
4339 (cpp_create_reader): Don't call deps_init. Initialize
4341 (cpp_read_main_file): Init deps if necessary.
4342 (cpp_destroy): Conditionally free deps.
4343 (cpp_finish): Update.
4345 (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
4346 (cpp_post_options): Rename post_options.
4347 * cpplib.h (struct cpp_options): Remove some dependency options;
4348 move others to a new structure.
4349 (cpp_post_options): Remove.
4350 (cpp_finish): Comment.
4351 * fix-header.c (read_scan_file): Don't call cpp_post_options.
4353 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
4355 * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
4356 ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
4357 MMIX_rR_REGNUM as clobbered.
4358 * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
4360 2002-08-12 Gabriel Dos Reis <gdr@nerim.net>
4362 * diagnostic.h (output_formatted_scalar): Rename from
4363 output_formatted_integer.
4364 * diagnostic.def: Add DK_DEBUG.
4365 * diagnostic.c (output_decimal): Adjust.
4366 (output_long_decimal): Likewise.
4367 (output_unsigned_decimal): Likewise.
4368 (output_octal): Likewise.
4369 (output_long_octal): Likewise.
4370 (output_hexadecimal): Likewise.
4371 (output_long_hexadecimal): Likewise.
4372 * c-pretty-print.c (pp_c_type_specifier): New function.
4373 (pp_c_specifier_qualifier_list): Likewise.
4374 (pp_c_abstract_declarator): Likewise.
4375 (pp_c_char): Replace pp_format_integer with pp_format_scalar.
4377 2002-08-12 David Edelsohn <edelsohn@gnu.org>
4379 * doc/trouble.texi (Disappointments): Add static constructor and
4380 destructor dependency information for AIX.
4382 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
4384 * cpphash.h (struct printer): New from cppmain.c.
4385 (cpp_reader): New member.
4386 * cppmain.c (struct printer): Move to cpphash.h.
4387 (options, print): Remove.
4388 (account_for_newlines, print_line, maybe_print_line,
4389 cpp_preprocess_file, setup_callbacks, scan_translation_unit,
4390 scan_translation_unit_trad, cb_line_change, cb_ident,
4391 cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
4392 cb_def_pragma): Make reentrant.
4394 2002-08-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4396 * real.c (ieee_64): Always define.
4397 (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4398 (dec_h): Not used yet, hide it.
4399 (emdnorm): Mark parameter in ATTRIBUTE_UNUSED. Guard label with
4400 macro controlling use.
4401 (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
4403 Mon Aug 12 12:48:20 CEST 2002 Jan Hubicka <jh@suse.cz>
4405 * i386.md (tablejump): Sign extend the operand.
4406 * i386.c (classify_argument): Fix missed case from previous patch.
4408 2002-08-12 Neil Booth <neil@daikokuya.co.uk>
4410 * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
4412 (warn_multichar): Die.
4413 (cb_register_builtins): Export.
4414 * c-common.h (warn_multichar, preprocess_file): Remove.
4415 (cb_register_builtins): New.
4416 * c-lang.c (c_init): Remove.
4417 (LANG_HOOKS_INIT): Use c_objc_common_init.
4418 * c-lex.c (init_c_lex): Don't canonicalize filename.
4419 * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
4420 (preprocess_file): Make static. Update for cpplib.
4421 (c_common_decode_option): Remove warn_multichar. Use in_fname.
4422 (c_common_post_options): Set some cpp options here.
4423 (c_common_init): Move from c-common.c.
4424 * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
4425 * cpplib.h (struct cpp_options): Remove in_fname.
4426 (cpp_preprocess_file): Update.
4427 * cppmain.c (cpp_preprocess_file): Update for new prototypes.
4429 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4431 * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
4433 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4435 * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
4436 backslash in comment preceeding macro definition.
4437 * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
4438 * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
4439 * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
4441 2002-08-12 Hans-Peter Nilsson <hp@bitrange.com>
4443 * expr.c (store_expr): In condition for checking if value is
4444 generated in TARGET, move call to expr_size last.
4446 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
4448 * c-common.c (c_common_init): Call preprocess_file instead.
4449 (c_common_finish): Move to c-opts.c.
4450 * c-common.h (preprocess_file): new.
4451 * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
4452 check_deps_environment_vars, c_common_finish): New.
4453 (c_common_decode_option): Update for out_fname and dependencies.
4454 * cppinit.c (init_dependency_output, output_deps): Remove.
4455 (cpp_destroy): Update prototype.
4456 (cpp_add_dependency_target): New.
4457 (cpp_read_main_file): Don't overlay a buffer.
4458 (cpp_finish): Take a deps output stream and write deps to it.
4459 Return the error count.
4460 (cpp_post_options): Don't canonicalize out_fname, or do anything
4462 * cpplib.h (struct cpp_options): Remove out_fname and
4464 (cpp_add_dependency_target): New.
4465 (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
4466 * cppmain.c (cpp_preprocess_file): Update prototype. Don't
4467 set preprocess_only. Don't handle the output stream directly.
4469 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4471 * dsp16xx.c (print_operand): Fix format specifier.
4472 * dsp16xx.md: Avoid automatic aggregate initialization.
4473 * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
4474 * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
4475 integer constant modifier.
4476 * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
4477 * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
4479 * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
4480 * v850.c (v850_select_section): Mark parameter with
4482 * global.c (global_alloc): Const-ify.
4483 * ra-colorize.c (hardregset_to_string): Fix format specifier.
4485 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4487 * darwin-c.c (darwin_pragma_options): Const-ify.
4488 * darwin.c (machopic_non_lazy_ptr_name,
4489 machopic_validate_stub_or_non_lazy_ptr): Likewise.
4490 (machopic_indirect_data_reference): Wrap variables in macros
4491 controlling their use.
4492 (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
4493 (machopic_select_section): Use parentheses around && within ||.
4494 * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
4496 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4498 * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
4499 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
4500 ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
4501 ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
4502 mdr_try_remove_redundant_insns, track_w_reload,
4503 mdr_try_wreg_elim): Make function static to match prototype.
4504 * mmix.c (mmix_target_asm_function_epilogue): Likewise. Mark
4505 parameter with ATTRIBUTE_UNUSED.
4507 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4509 * arc.c (arc_init): Don't use ISO C style function definitions.
4510 * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
4511 arm_get_strip_length, arm_strip_name_encoding): Likewise.
4512 * avr.h (progmem_section): Likewise.
4513 * h8300.c h8300_asm_insn_count): Likewise.
4514 * m32r.c (init_idents): Likewise.
4515 * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
4516 * sh.c (sh_cfun_interrupt_handler_p): Likewise.
4517 * xtensa.c (xtensa_build_va_list): Likewise.
4519 2002-08-11 Neil Booth <neil@daikokuya.co.uk>
4521 * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
4522 * c-opts.c (parse_option): Rename find_opt.
4523 (set_std_c99): New function.
4524 (COMMAND_LINE_OPTIONS): Handle -remap and -o. Remove OPT_std_bad.
4525 (missing_arg): Remove OPT_std_bad. Handle -o.
4526 (c_common_decode_option): Handle input and output file names,
4527 -o and -remap. Clean up -std= handling.
4528 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
4529 (cpp_handle_option): Similarly. Don't handle filenames.
4531 Sun Aug 11 14:43:17 CEST 2002 Jan Hubicka <jh@suse.cz>
4533 * i386.c (classify_argument): Fix computing of field's offsets.
4535 2002-08-11 Andreas Jaeger <aj@suse.de>
4538 * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
4540 2002-08-10 Ziemowit Laski <zlaski@apple.com>
4542 * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
4543 reference to clk_objective_c with flag_objc.
4544 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
4546 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4548 2002-08-10 Neil Booth <neil@daikokuya.co.uk>
4550 * c-opts.c (set_std_cxx98, set_std_c89): New.
4551 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4552 (c_common_decode_option): Handle new switches from cppinit.c.
4554 * cppinit.c (set_lang): Rename cpp_set_lang. Export.
4555 (no_arg, no_num): Remove.
4556 (COMMAND_LINE_OPTIONS): Move more to c-opts.c. Drop all lang-
4557 switches apart from -lang-objc and lang-asm.
4558 (cpp_handle_option): Similarly.
4559 * cpplib.h (cpp_set_lang): New.
4560 * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
4562 * objc/lang-specs.h: Remove -ansi.
4564 Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
4567 * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
4570 2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4572 * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
4573 emit_jump_insn): Fix uninitialized variable.
4574 * gcov.c (init_line_info): Likewise.
4575 * genautomata.c (transform_3): Add braces around ambiguous
4577 * ifcvt.c (cond_exec_process_insns): Mark parameter with
4579 * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
4580 * regrename.c (copyprop_hardreg_forward): Fix uninitialized
4583 * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
4584 warnings in output files.
4586 2002-08-09 Ziemowit Laski <zlaski@apple.com>
4588 * c-common.c (flag_objc): New.
4589 * c-common.h (c_language_kind): Get rid of clk_objective_c
4591 (flag_objc): New extern declaration.
4592 * c-decl.c (implicitly_declare): Call objc_check_decl
4593 instead of maybe_objc_check_decl.
4594 (finish_decl): Likewise.
4595 (grokfield): Likewise.
4596 (finish_struct): Likewise.
4597 * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
4598 (maybe_objc_comptypes): Rename to objc_comptypes.
4599 (maybe_building_objc_message_expr): Rename to
4600 objc_message_selector.
4601 * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
4602 replace with flag_objc as needed.
4603 * c-opts.c (c_common_init_options): Likewise.
4604 (c_common_decode_option): Likewise.
4605 * c-parse.in (init_reswords): Likewise.
4606 * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
4607 (maybe_objc_comptypes): Rename to objc_comptypes.
4608 (maybe_building_objc_message_expr): Rename to
4609 objc_message_selector.
4610 * c-typeck.c (comptypes): Call objc_comptypes instead of
4611 maybe_objc_comptypes, and/or objc_message_selector instead of
4612 maybe_building_objc_message_expr.
4613 (comp_target_types): Likewise.
4614 (convert_for_assignment): Likewise.
4615 (warn_for_assignment): Likewise.
4616 * cppinit.c (init_builtins): Set __OBJC__ manifest constant
4617 independently of those for other languages.
4618 * objc/objc-act.c (maybe_objc_comptypes): Delete.
4619 (maybe_objc_check_decl): Delete.
4620 (maybe_building_objc_message_expr): Rename to
4621 objc_message_selector.
4622 * objc/objc-lang.c (objc_init_options): Use clk_c instead of
4623 clk_objective_c; set flag_objc flag.
4625 2002-08-09 Toshiyasu Morita <toshiyasu.morita@hsa.hitachi.com>
4627 * ifcvt.c (find_if_case_2): Test correct basic block for size.
4629 2002-08-09 Dale Johannesen <dalej@apple.com>
4631 * config/rs6000/rs6000.md: Add sibcall patterns.
4632 * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL): Define.
4633 * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
4634 Rewritten to handle sibcalls.
4635 * config/rs6000/rs6000.c (function_ok_for_sibcall): New.
4636 * config/rs6000/rs6000-protos.h (function_ok_for_sibcall): New.
4638 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
4640 * profile.c (da_file_name): New static var.
4641 (init_branch_prob): Initialize it.
4642 (end_branch_prob): Remove da file.
4644 * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
4645 * configure.in (coverage_flags): Default to nothing.
4646 * configure: Rebuilt.
4648 2002-08-09 Neil Booth <neil@daikokuya.co.uk>
4650 * Makefile.in (c-opts.o): Update
4651 * c-opts.c: Include intl.h.
4652 (print_help): Move from cppinit.c. Remove unused options.
4653 (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
4654 (missing_arg): Complain for switches without an argument.
4655 (c_common_decode_option): Reject missing joined arguments.
4656 Handle new switches from cppinit.c.
4657 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4658 (cpp_handle_option): Similarly.
4659 (print_help): Moved to c-opts.c.
4660 * cpplib.h (struct cpp_options): Remove help_only.
4661 * gcc.c (cpp_unique_options): Remove -$.
4662 * doc/cppopts.texi: Undocument -h.
4664 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4666 * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
4667 legitimate constant.
4668 (legitimate_pic_operand_p): Neither pic operand.
4669 (legitimate_address_p): But legitimate address.
4670 (get_thread_pointer): Generate MEM/u instead of CONST around
4672 (print_operand): Remove printing of UNSPEC_TP.
4673 (print_operand_address): And print it here.
4675 2002-08-08 Devang Patel <dpatel@apple.com>
4677 * objc/objc-act.c (build_selector_translation_table): Issue warning,
4678 when -Wselector is used,if method for which selector is being
4679 created does not exist.
4681 2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
4683 * config/sh/sh.c (prepare_move_operands): Only call
4684 target_reg_operand if TARGET_SHMEDIA.
4686 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4688 * config/rs6000/rs6000.h, config/rs6000/aix.h,
4689 config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
4691 * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
4693 2002-08-08 Lars Brinkhoff <lars@nocrew.org>
4694 Richard Henderson <rth@redhat.com>
4696 * emit-rtl.c (gen_rtx_REG): After reload, only return
4697 frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
4699 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4701 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
4702 * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
4703 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
4706 2002-08-08 Adam Nemet <anemet@lnxw.com>
4708 * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
4710 (thumb_expand_prologue): Likewise.
4711 (thumb_output_function_prologue): Likewise.
4712 * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
4713 the additional push of the PIC register.
4715 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
4717 * configure.in (enable_coverage): New enable switch.
4718 * configure: Rebuilt.
4719 * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
4720 (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
4721 (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
4722 (mostlyclean): Remove coverage files.
4723 * doc/install.texi: Document enable_coverage.
4725 * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
4726 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
4727 * f/Make-lang.in (f.mostlyclean): Remove coverage files.
4728 * java/Make-lang.in (java.mostlyclean): Remove coverage files.
4729 * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
4730 * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
4733 2002-08-08 Neil Booth <neil@daikokuya.co.uk>
4735 * c-opts.c (cpp_opts): New.
4736 (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
4737 (c_common_decode_options): Handle cpplib switches.
4738 (c_common_init_options): Set cpp_opts.
4739 * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
4740 (cpp_handle_option): Similarly.
4742 2002-08-08 David Edelsohn <edelsohn@gnu.org>
4744 * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
4745 (TARGET_ALTIVEC_ABI): Same.
4746 (TARGET_ALTIVEC_VRSAVE): Same.
4748 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
4749 icode not CODE_FOR_nothing. Change switch to if.
4751 2002-08-08 Alan Modra <amodra@bigpond.net.au>
4753 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
4755 2002-08-08 Jakub Jelinek <jakub@redhat.com>
4757 * stor-layout.c (place_union_field): For bitfields if
4758 PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
4761 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4763 * pa.c (struct deferred_plabel): Constify name field.
4765 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
4767 * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
4769 2002-08-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
4771 * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
4772 local_prefix are the same.
4773 * configure: Rebuilt.
4775 2002-08-07 Jakub Jelinek <jakub@redhat.com>
4776 Richard Henderson <rth@redhat.com>
4778 * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
4779 to type_align when PCC_BITFIELD_TYPE_MATTERS. Only apply
4780 ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
4781 (place_field): Likewise.
4782 * config/i386/i386.c (x86_field_alignment): Don't check
4783 DECL_USER_ALIGN here.
4784 * config/rs6000/rs6000.c (rs6000_field_alignment): New.
4785 * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
4787 * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
4788 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
4789 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
4790 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
4791 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
4792 * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
4794 2002-08-07 Neil Booth <neil@daikokuya.co.uk>
4796 * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
4797 * c-common.c: Don't include tree-inline.h.
4798 (c_common_init_options, c_common_post_options): Move to c-opts.c.
4799 * c-common.h (c_common_decode_option): New.
4800 * c-decl.c (c_decode_option): Remove.
4801 * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
4802 * c-opts.c: New file.
4803 * c-tree.h (c_decode_option): Remove.
4804 * doc/passes.texi: Update.
4805 * objc/objc-act.c (objc_decode_option): Remove.
4806 * objc/objc-act.h (objc_decode_option): Remove.
4807 * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
4808 c_common_decode_option.
4810 2002-08-07 Chris Demetriou <cgd@broadcom.com>
4812 * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
4813 dependency on TARGET_DOUBLE_FLOAT.
4815 2002-08-07 Stephen Clarke <stephen.clarke@superh.com>
4817 * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
4818 overwrite callee-save registers. Fix comment.
4820 2002-08-06 Chris Demetriou <cgd@broadcom.com>
4822 * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
4823 in target_flags based on ISA, if it was not set on the command
4824 line. Warn if MASK_BRANCHLIKLEY is set but the ISA does not
4825 support Branch Likely instructions.
4826 * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
4827 (TARGET_BRANCHLIKELY): Likewise.
4828 (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
4829 (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
4830 ISA_HAS_BRANCHLIKELY.
4831 (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
4832 * doc/invoke.texi: Document new MIPS -mbranch-likely and
4833 -mno-branch-likely options.
4835 2002-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4837 * ip2k.c (ip2k_set_compare): Add missing iteration variable.
4839 * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
4842 2002-08-06 Aldy Hernandez <aldyh@redhat.com>
4844 * c-decl.c (duplicate_decls): Error out for incompatible TLS
4847 * testsuite/gcc.dg/tls/diag-3.c: New.
4849 2002-08-06 Dale Johannesen <dalej@apple.com>
4851 * c-common.c (fname_decl): Use line number 0 for
4852 __func__, to avoid confusing debuggers.
4854 2002-08-06 Nathan Sidwell <nathan@codesourcery.com>
4857 (struct line_info, struct coverage): New structures.
4858 (gcov_file_name, gcov_file): Remove globals.
4859 (output_data): Take source file parameter. Fix memory leak. Break
4861 (init_line_info, output_line_info, make_gcov_file_name,
4862 accumulate_branch_counts): ... here.
4863 (calculate_branch_probs, function_summary): Adjust.
4865 (function_*): Remove global variables.
4867 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
4869 * dwarf2out.c: Remove unused macros.
4871 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
4873 * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
4875 2002-08-06 Neil Booth <neil@daikokuya.co.uk>
4877 * cppinit.c (struct lang_flags): Rename trigraphs std.
4879 * cpplib.h (struct cpp_options): New member std.
4880 * cppmacro.c (_cpp_builtin_macro_text): Use std.
4881 (collect_args): Flag whether to swallow a possible future
4882 comma pasted with varargs.
4883 (replace_args): Use this flag.
4884 * doc/cpp.texi: Update varargs extension documentation.
4886 2002-08-06 Jakub Jelinek <jakub@redhat.com>
4888 * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
4890 2002-08-06 Jakub Jelinek <jakub@redhat.com>
4892 * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
4893 and MODE_CLASS_INT modes.
4895 2002-08-06 Jakub Jelinek <jakub@redhat.com>
4897 * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
4898 --{enable,disable}-threads is given to configure.
4899 (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
4900 x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
4901 powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
4902 s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
4903 Remove thread_file setting here.
4905 2002-08-06 David Edelsohn <edelsohn@gnu.org>
4907 * doc/install.texi (Binaries): Update Bull Freeware URL.
4909 2002-08-06 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4911 * doc/gcc.texi (Top): Rename Index to Keyword Index.
4913 2002-08-05 Nathan Sidwell <nathan@codesourcery.com>
4915 * gcov.c (output_data): Round to % to nearest, tweak formatting.
4917 2002-08-05 Jakub Jelinek <jakub@redhat.com>
4919 * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
4920 of the operands into MINUS_EXPR if code is PLUS_EXPR.
4922 2002-08-05 Douglas B Rupp <rupp@gnat.com>
4924 * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
4925 * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
4926 drectve_section): Define.
4927 * config/i386/t-interix: Replace interix.o rule with winnt.o.
4928 * config/i386/interix.c: Remove.
4930 2002-08-05 Geoffrey Keating <geoffk@redhat.com>
4932 * attribs.c: Don't include obstack.h.
4933 * builtins.c: Likewise.
4934 * cfganal.c: Likewise.
4935 * cfgbuild.c: Likewise.
4936 * cfgcleanup.c: Likewise.
4937 * emit-rtl.c: Likewise.
4941 * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
4943 2002-08-05 Gabriel Dos Reis <gdr@nerim.net>
4945 * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
4947 2002-08-04 Chris Demetriou <cgd@broadcom.com>
4949 * doc/invoke.texi: Remove duplicated paragraph describing
4952 2002-08-04 Geoffrey Keating <geoffk@redhat.com>
4954 * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
4955 * collect2.h (permanent_obstack): Delete declaration.
4956 * collect2.c (permanent_obstack): Delete definition.
4957 (main): Don't initialize permanent_obstack. Use xstrdup instead.
4958 * expr.c: Don't include obstack.h.
4959 (permanent_obstack): Delete declaration.
4960 * function.c: Don't include obstack.h.
4961 (permanent_obstack): Delete declaration.
4962 * integrate.c: Don't include obstack.h.
4963 (function_maybepermanent_obstack): Delete declaration.
4964 * print-tree.c (debug_tree): Use x*alloc not permalloc.
4965 * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
4966 * tlink.c (pfgets): Use xstrdup not permanent_obstack.
4967 * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
4968 * tree.h: Rename init_obstacks to init_ttree. Remove declarations
4969 of permalloc, expralloc, perm_calloc.
4970 * tree.c (permanent_obstack): Delete definition.
4971 (init_ttree): Rename from init_obstacks.
4972 (permalloc): Delete.
4973 (perm_calloc): Delete.
4974 (dump_tree_statistics): Don't print information about
4976 * varasm.c (assemble_start_function): Use xstrdup instead of
4978 (assemble_variable): Likewise.
4979 * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
4981 (unicosmk_add_extern): Likewise.
4982 * config/c4x/c4x.c (c4x_external_ref): Likewise.
4983 (c4x_global_label): Likewise.
4984 * config/frv/frv.c (frv_encode_section_info): Likewise.
4985 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4986 (i386_pe_record_exported_symbol): Likewise.
4987 * config/mips/mips.c (mips_output_external): Likewise.
4988 (mips_output_external_libcall): Likewise.
4989 * config/pa/pa.c: (permanent_obstack): Delete declaration.
4990 (output_call): Use ggc_strdup instead of allocating on
4992 * config/romp/romp.c: Include ggc.h.
4993 (get_symref): Don't declare permanent_obstack, use ggc_strdup
4994 intead of permanent_obstack.
4995 * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
4996 instead of permalloc.
4997 * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
4998 instead of permalloc
4999 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
5000 instead of permalloc.
5001 * config/vax/vax.c (vms_check_external): Use xmalloc instead of
5004 2002-08-04 Bernd Schmidt <bernds@redhat.com>
5006 Contribute a port developed primarily by Michael Meissner,
5007 Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
5008 * config.gcc: Add frv-elf target.
5009 * config/frv/cmovd.c: New file.
5010 * config/frv/cmovh.c: New file.
5011 * config/frv/cmovw.c: New file.
5012 * config/frv/frv-abi.h: New file.
5013 * config/frv/frv-asm.h: New file.
5014 * config/frv/frv-modes.def: New file.
5015 * config/frv/frv-protos.h: New file.
5016 * config/frv/frv.c: New file.
5017 * config/frv/frv.h: New file.
5018 * config/frv/frv.md: New file.
5019 * config/frv/frvbegin.c: New file.
5020 * config/frv/frvend.c: New file.
5021 * config/frv/lib1funcs.asm: New file.
5022 * config/frv/media.h: New file.
5023 * config/frv/modi.c: New file.
5024 * config/frv/t-frv: New file.
5025 * config/frv/uitod.c: New file.
5026 * config/frv/uitof.c: New file.
5027 * config/frv/ulltod.c: New file.
5028 * config/frv/ulltof.c: New file.
5029 * config/frv/umodi.c: New file.
5030 * config/frv/xm-frv.h: New file.
5032 * config/frv/media.h: Removed again.
5034 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
5036 * gcov.c (bb_file_time): New static variable.
5037 (object_directory): May also be object file.
5038 (preserve_paths): New static variable.
5039 (print_usage): Adjust.
5041 (process_args): Adjust.
5042 (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
5043 file. Find modification date on bb file.
5044 (read_profile): Don't rewind a NULL file.
5045 (format_hwint): New static function.
5046 (function_summary): Use format_hwint.
5047 (output_data): SOURCE_FILE_NAME is never relative to
5048 OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
5049 mangling. Adjust output format to make it more machine readable.
5050 * doc/gcov.texi: Document & clarify semantics.
5052 2002-08-04 Joseph S. Myers <jsm@polyomino.org.uk>
5054 * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
5056 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
5058 * gcc.c (cc1_options): Pass output file as auxbase when
5060 * profile.c (init_branch_prob): FILENAME has already had ending
5062 * final.c (end_final): Likewise.
5063 * toplev.c (aux_base_name): New global.
5064 (compile_file): Pass aux_base_name to init init_branch_prob and
5066 (independent_decode_option, case 'a'): New auxinfo options.
5067 (case 'd'): Protect against mising basename.
5068 (do_compile): Initialize aux_base_name.
5069 * toplev.h (aux_base_name): New global.
5070 * doc/invoke.texi: Adjust documentation.
5072 2002-08-04 Nathan Sidwell <nathan@codesourcery.com>
5074 * config/i386/i386.c (x86_field_alignment): Remove duplicate test
5075 of TARGET_ALIGN_DOUBLE.
5077 2002-08-04 Gabriel Dos Reis <gdr@nerim.net>
5079 * diagnostic.c (inform): New function.
5080 * diagnostic.h (inform): Declare.
5082 2002-08-03 David Edelsohn <edelsohn@gnu.org>
5084 * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
5085 (movhi_internal): Same.
5086 (movqi_internal): Same.
5087 (movdi_internal64): Same.
5089 * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
5091 * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
5092 (ASM_OUTPUT_SKIP): Use it. SIZE unsigned.
5093 (COMMON_ASM_OP): Define.
5094 (ASM_OUTPUT_ALIGNED_COMMON): Use it. SIZE unsigned.
5095 Use ALIGN parameter.
5096 (LOCAL_COMMON_ASM_OP): Define.
5097 (ASM_OUTPUT_LOCAL): Use it. SIZE unsigned.
5099 2002-08-03 Roger Sayle <roger@eyesopen.com>
5101 * builtins.def: Define new builtin functions exp, expf, expl,
5102 log, logf and logl (and their __builtin_* variants).
5103 * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
5104 Define exp_optab and log_optab.
5105 * optabs.c (init_optans): Initialize exp_optab and log_optab.
5106 * genopinit.c (optabs): Implement exp_optab and log_optab
5107 using exp?f2 and log?f2 patterns.
5108 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
5109 and BUILT_IN_LOG* using exp_optab and log_optab respectively.
5110 (expand_builtin): Ignore the new builtins (and all cos and
5111 sin variants) when not optimizing. Expand new builtins via
5112 expand_builtin_mathfn when flag_unsafe_math_optimizations.
5114 * doc/extend.texi: Document new exp and log builtins.
5115 * doc/md.texi: Document new exp?f2 and log?f2 patterns
5116 (and previously undocumented cos?f2 and sin?f2 patterns).
5118 2002-08-03 Jason Merrill <jason@redhat.com>
5120 * explow.c (int_expr_size): New fn.
5121 * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
5122 * expr.h: Declare it.
5124 2002-08-02 Krister Walfridsson <cato@df.lth.se>
5126 * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
5127 gengtype-* dependencies.
5129 2002-08-02 Eric Christopher <echristo@redhat.com>
5131 * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
5132 * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
5134 (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
5136 2002-08-02 David Edelsohn <edelsohn@gnu.org>
5139 * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
5140 small if optimizing for size.
5142 2002-08-02 Daniel Jacobowitz <drow@mvista.com>
5144 * configure.in (FORBUILD): Use $build_alias.
5145 * configure: Regenerated.
5147 2002-08-02 Richard Sandiford <rsandifo@redhat.com>
5149 * config.gcc: Don't include mips/abi64.h in $tm_file.
5150 * hard-reg-set.h (call_really_used_regs): Declare.
5151 * config/mips/abi64.h: Remove file.
5152 * config/mips/linux.h,
5153 * config/mips/iris6.h: Don't include it.
5154 * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
5155 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
5156 (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
5157 FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
5158 FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
5159 Bring across definitions from abi64.h.
5160 (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
5161 (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
5162 (struct mips_args): Use it.
5163 * config/mips/mips.c (mips_conditional_register_usage): Define.
5165 2002-08-02 Jason Merrill <jason@redhat.com>
5167 * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
5168 * langhooks.c (lhd_expr_size): Define default.
5169 * langhooks.h (struct lang_hooks): Add expr_size.
5170 * explow.c (expr_size): Call it.
5171 * expr.c (store_expr): Don't copy an expression of size zero.
5172 (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
5174 * Makefile.in (builtins.o): Depend on langhooks.h.
5176 2002-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5178 * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
5179 * ra-debug.c: Include "tm_p.h".
5180 * ra-rewrite.c (is_partly_live_1): Change return type to bool.
5182 2002-08-02 Toon Moene <toon@moene.indiv.nluug.nl>
5184 * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
5185 when not honoring signalling NaNs.
5186 (simplify_ternary_operation): a == b has a definite value
5187 when not honoring NaNs.
5189 2002-08-02 Jason Merrill <jason@redhat.com>
5191 * gdbinit.in (pct): New macro.
5193 2002-08-01 Stan Shebs <shebs@apple.com>
5194 Andreas Tobler <toa@pop.agri.ch>
5196 * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
5197 plays nice with Darwin headers.
5198 (_BSD_RUNE_T_DEFINED_): Likewise.
5200 2002-08-01 Zack Weinberg <zack@codesourcery.com>
5202 * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
5203 * cppinit.c (cpp_post_options): Likewise.
5205 * cppexp.c (cpp_classify_number): Suppress -Wtraditional
5206 warning about 'LL' suffix (but not 'ULL' etc) when
5207 -Wno-long-long is in effect.
5209 * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
5210 Check for failing time()/localtime(), issue a warning, and
5211 make __TIME__ and __DATE__ expand to fallback strings.
5213 * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
5214 and __TIME__ when the date and time cannot be determined.
5216 2002-08-02 Alan Modra <amodra@bigpond.net.au>
5218 * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
5220 2002-08-01 Daniel Jacobowitz <drow@mvista.com>
5222 * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
5224 2002-08-01 Chris Demetriou <cgd@broadcom.com>
5226 * config.gcc (mipsisa64sb1-*-elf*): New configuration.
5227 (mipsisa64sb1el-*-elf*): Likewise.
5228 * config/mips/mips.c (mips_cpu_info_table): Add sb1.
5229 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
5230 (TARGET_SB1, TUNE_SB1): New macros.
5231 * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
5234 2002-08-01 David Edelsohn <edelsohn@gnu.org>
5236 * varasm.c (asm_emit_uninitialized): Return false if global BSS
5237 and ASM_EMIT_BSS not supported by target.
5238 (assemble_variable): Do not duplicate uninitialized logic.
5239 Fall through if asm_emit_uninitialized failed.
5241 2002-08-01 Chris Demetriou <cgd@broadcom.com>
5243 * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
5245 2002-08-02 Alan Modra <amodra@bigpond.net.au>
5247 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
5248 (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
5250 * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
5251 HOST_BITS_PER_WIDE_INT == 64.
5253 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5255 * df.c (df_insn_table_realloc): Change parameter to unsigned.
5256 * optabs.c (expand_binop): Make variable unsigned.
5257 * simplify-rtx.c (simplify_subreg): Likewise.
5258 * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
5260 2002-08-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5262 * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
5264 2002-08-01 Richard Henderson <rth@redhat.com>
5266 * toplev.c (parse_options_and_default_flags): Don't set
5267 flag_reorder_blocks for -Os.
5269 * config/avr/avr.c (avr_optimization_options): Remove.
5270 * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
5271 * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
5272 * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
5274 2002-08-01 H.J. Lu <hjl@gnu.org>
5275 Richard Henderson <rth@redhat.com>
5277 * output.h (DECL_READONLY_SECTION): Remove.
5278 (decl_readonly_section): Declare.
5279 * varasm.c (decl_readonly_section): New.
5280 (default_section_type_flags, default_select_section): Use it.
5281 * config/arm/pe.c (arm_pe_unique_section): Likewise.
5282 * config/i386/interix.c (i386_pe_unique_section): Likewise.
5283 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
5284 * config/mcore/mcore.c (mcore_unique_section): Likewise.
5285 * config/mips/mips.c (mips_unique_section): Likewise.
5287 2002-08-01 Richard Henderson <rth@redhat.com>
5289 * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
5290 refers to a subroutine parameter.
5292 2002-08-01 Jakub Jelinek <jakub@redhat.com>
5294 * varasm.c (assemble_visibility): Strip name encoding.
5296 2002-08-01 Ian Dall <ian@sibyl.beware.dropbear.id.au>
5298 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
5299 (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
5300 when there is no frame pointer.
5301 (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
5303 * config/ns32k/__unorddf2.c: New file.
5304 * config/ns32k/__unordsf2.c: New file.
5305 * config/ns32k/t-ns32k: New file.
5306 * config.gcc (ns32k-*-netbsd*): Use it.
5308 2002-08-01 Aldy Hernandez <aldyh@redhat.com>
5310 * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
5312 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
5314 * c-common.c (__GXX_ABI_VERSION): Correct spelling.
5316 2002-08-01 Benjamin Kosnik <bkoz@redhat.com>
5318 * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
5320 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
5322 * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
5324 2002-08-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5326 * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
5328 (expr_hash_table, set_hash_table): Type changed to ...
5329 (struct hash_table): New type.
5330 (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
5331 insert_expr_in_table, insert_set_in_table, compute_hash_table,
5332 dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
5333 compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
5334 (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
5335 (alloc_hash_table): New.
5336 (free_set_hash_table, free_expr_hash_table): Merged to ...
5337 (free_hash_table): New.
5338 (compute_set_hash_table, compute_expr_hash_table): Merged to ...
5339 (compute_hash_table_work): New.
5340 (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
5341 find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
5342 pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
5343 one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
5344 hoist_code, one_code_hoisting_pass,
5345 trim_ld_motion_mems): Altered due to changed type of hash tables.
5347 2002-08-01 Zack Weinberg <zack@codesourcery.com>
5349 * final.c (output_alternate_entry_point):
5350 If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
5352 2002-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5354 * objc/objc-act.c (encode_complete_bitfield): Add prototype and
5355 avoid ISO C style function definition.
5357 * expr.c (expand_assignment): Delete unused variable.
5359 2002-08-01 Toon Moene <toon@moene.indiv.nluug.nl>
5361 * c-common.c (cb_register_builtins): Set
5362 __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
5363 is given, and to 0 otherwise.
5364 * combine.c (simplify_if_then_else): HONOR_NANS
5365 implies FLOAT_MODE_P.
5367 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
5369 * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
5370 (cpp_handle_option): Don't handle it.
5371 (print_help): Update.
5372 * doc/cppopts.texi: Update.
5374 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
5376 * c-common.c (cb_register_builtins): If C++, define
5377 __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
5378 * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
5380 * lang-specs.h: Simplify in accordance with new code in
5383 2002-08-01 Neil Booth <neil@daikokuya.co.uk>
5385 * c-common.c: Define all C/ObjC/C++ warning and flag variables.
5386 * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
5387 * c-decl.c: Move all warning and flag variables to c-common.c.
5388 * c-format.c: Move all warning variables to c-common.c.
5389 * c-tree.h: Move all warning and flag declarations to c-common.h.
5390 * objc/objc-act.c: Move all warning variables to c-common.c.
5391 (flag_warn_protocol): Rename warn_protocol.
5393 2002-07-31 John David Anglin <dave@hiauly1.hia.nrc.ca>
5395 * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
5397 2002-07-31 Graham Stott <graham.stott@btinternet.com>
5399 * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
5402 2002-07-31 Stan Shebs <shebs@apple.com>
5404 * config.gcc (i[34567]86-*-darwin*): New configuration.
5405 * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
5407 (TARGET_ENCODE_SECTION_INFO): Ditto.
5408 (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
5409 * config/darwin.c (machopic_indirect_data_reference): Remove
5410 setting of RTX_UNCHANGING_P.
5411 (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
5412 not to be applied to sums.
5413 * config/i386/t-darwin: New file.
5414 * config/i386/darwin.h: New file.
5415 * config/i386/i386.h (TARGET_MACHO): Add default definition.
5416 * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
5417 * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
5418 label and not the GOT add.
5419 (constant_address_p): For Mach-O, seeing a CONST is enough.
5420 (legitimate_pic_address_disp_p): Add a Mach-O case.
5421 (legitimate_address_p): Also test machopic_operand_p if Mach-O.
5422 (legitimize_pic_address): Use generic Mach-O code to legitimize.
5423 (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
5424 if outputting a difference.
5425 (ix86_output_addr_diff_elt): Add Mach-O case.
5426 (ix86_expand_move): Similarly.
5427 (ix86_expand_call): Similarly.
5428 (current_machopic_label_num): New global.
5429 (machopic_output_stub): New function.
5430 (ix86_value_regno): New function.
5431 (ix86_function_value): Use it instead of VALUE_REGNO.
5432 (ix86_libcall_value): Ditto.
5433 * config/i386/unix.h (VALUE_REGNO): Remove.
5435 2002-07-31 Graham Stott <grahas@btinternet.com>
5437 * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
5438 hash for LABEL_REF's.
5440 2002-07-31 Graham Stott <grahams@btinternet.com>
5442 * config/rs6000/rs6000.c (spe_init_builtins,
5443 altivec_init_builtins, rs6000_common_init_builtins):
5444 Replace ANSI with K&R function def.
5446 2002-07-31 David Edelsohn <edelsohn@gnu.org>
5448 * rs6000.c (validate_condition_mode): Test flag_finite_math_only
5451 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
5453 * config/mips/crtn.asm: Don't use __mips16 to determine the
5454 return-address offset. Define RA to a suitable temporary
5455 register for the return address.
5457 2002-07-31 Richard Sandiford <rsandifo@redhat.com>
5459 * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
5462 2002-07-30 Chris Demetriou <cgd@broadcom.com>
5464 * config/mips/elf.h (STARTFILE_SPEC): Define differently if
5465 default ABI is MEABI. (Undoes incorrect change in Eric Christopher's
5466 patch on 2002-07-29.)
5467 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5469 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5471 * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
5472 fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
5473 ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
5474 openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
5475 s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
5476 (ASM_GLOBALIZE_LABEL): Delete.
5477 (GLOBAL_ASM_OP): Define.
5479 * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
5481 * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
5482 * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
5484 2002-07-30 Geoffrey Keating <geoffk@redhat.com>
5486 * doc/extend.texi (Hints implementation): Document that GCC
5487 mostly ignores `register'.
5489 2002-07-30 Toon Moene <toon@moene.indiv.nluug.nl>
5491 * flags.h: Declare flag_finite_math_only.
5492 Use it in definition of HONOR_NANS and
5494 * c-common.c (cb_register_builtins): Emit
5495 __FINITE_MATH_ONLY__ when flag_finite_math_only
5497 * combine.c (simplify_if_then_else): If
5498 flag_finite_math_only is set, a == b has a
5500 * toplev.c: Initialize flag_finite_math_only.
5501 (set_flags_fast_math): Set it on -ffast-math.
5502 (flag_fast_math_set_p): Test it.
5503 * doc/invoke.texi: Document -ffinite-math-only.
5505 2002-07-30 Richard Henderson <rth@redhat.com>
5507 * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
5508 (noce_process_if_block): Likewise.
5510 2002-07-30 Bernd Schmidt <bernds@redhat.com>
5512 * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
5513 Bail out early if false_expr is NULL and we'd crash due to this.
5514 * genemit.c (gen_expand): Recognize return insns even if the return
5515 appears in a parallel.
5516 * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
5517 * config/fp-bit.c: Likewise.
5518 * doc/tm.texi: Document it.
5520 2002-07-30 David Edelsohn <edelsohn@gnu.org>
5521 Zack Weinberg <zack@codesourcery.com>
5523 * rs6000.c (rs6000_expand_unop_builtin): Check icode not
5524 CODE_FOR_nothing. Change switch to if.
5525 (rs6000_expand_binop_builtin): Same.
5526 (rs6000_expand_builtin): Expand builtin if target support enabled.
5527 (rs6000_init_builtins): Init builtin if target support enabled.
5528 (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
5530 2002-07-30 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5532 * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
5534 2002-07-30 Richard Sandiford <rsandifo@redhat.com>
5536 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
5538 Tue Jul 30 18:31:31 2002 J"orn Rennecke <joern.rennecke@superh.com>
5540 * sh.md (cond_delay_slot): New attribute.
5541 (cbranch delay): Use it for anulled-true case.
5542 (stuff_delay_slot): New pattern.
5543 * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
5545 (gen_far_branch): Emit stuff_delay_slot pattern.
5547 Tue Jul 30 11:21:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
5549 * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
5551 2002-07-30 Kazu Hirata <kazu@cs.umass.edu>
5553 * fold-const.c: Fix comment typos.
5555 * reload1.c: Likewise.
5557 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5559 * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
5562 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
5564 * c-pretty-print.h (pp_c_statement): Declare.
5565 * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
5566 (pp_c_statement): Define.
5568 2002-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5570 * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
5571 darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
5572 ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
5573 mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
5574 rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
5575 v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
5577 * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
5578 * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
5580 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
5582 * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
5583 (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
5584 COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
5585 (pp_c_expression): Update.
5587 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5589 * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
5590 concat in lieu of xmalloc/strcpy/memcpy/sprintf.
5591 * alpha/vms-ld.c (main): Likewise.
5592 * dsp16xx.c (double_reg_to_memory): Likewise.
5593 * mcore.c (mcore_expand_prolog): Likewise.
5594 * cppfiles.c (read_name_map): Likewise.
5595 * gensupport.c (process_rtx, identify_predicable_attribute,
5596 alter_test_for_insn): Likewise.
5597 * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
5599 2002-07-29 Roger Sayle <roger@eyesopen.com>
5601 * builtins.c (expand_builtin): Change the default behavior to
5602 only issue an error if the builtin function doesn't have a
5603 fallback library call. Remove several cases handled by the
5606 2002-07-29 John David Anglin <dave@hiauly1.hia.nrc>
5608 * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
5609 floating point format of the target is IEEE.
5610 * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
5611 format of the target is DEC.
5613 2002-07-29 Richard Henderson <rth@redhat.com>
5615 * unroll.c (verify_addresses): Remove.
5616 (find_splittable_givs): Never split DEST_ADDR givs.
5618 2002-07-29 Geoffrey Keating <geoffk@redhat.com>
5620 * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
5622 (Files): Improve documentation on generated source files.
5624 * doc/extend.texi (Translation implementation): Document what
5625 diagnostics look like.
5626 (Identifiers implementation): Document that there's normally no
5627 limit on identifier names.
5628 (Integers implementation): Document two's complement.
5629 (Hints implementation): Document that GCC honors 'inline', mostly.
5630 (Preprocessing directives implementation): Document that GCC
5631 requires the current time.
5633 2002-07-30 Gabriel Dos Reis <gdr@nerim.net>
5635 * c-pretty-print.h (struct c_pretty_print_info): Add new member.
5636 (pp_initializer): New macro.
5637 (pp_c_initializer): Declare.
5638 * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
5639 (pp_c_initializer): Define.
5640 (pp_c_initializer_list): New function.
5641 (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
5642 VECTOR_CST, CONSTRUCTOR.
5643 (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
5645 (pp_c_cast_expression): Handle FLOAT_EXPR.
5646 (pp_c_assignment_expression): Handle INIT_EXPR.
5647 (pp_c_expression): Update.
5649 2002-07-30 Neil Booth <neil@daikokuya.co.uk>
5651 * objc/objc-act.c (objc_init): Return immediately if filename
5654 2002-07-29 Eric Christopher <echristo@redhat.com>
5656 * config/mips/elf.h: Remove ecoff.h and gofast includes.
5657 (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
5658 (SDB_DEBUGGING_INFO): Undefine.
5659 (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
5660 (PUT_SDB_SIZE): Remove.
5661 (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
5662 (STARTFILE_SPEC): Add isa3264 define.
5663 * config/mips/elf64.h: Ditto. Move TARGET_MEM_FUNCTIONS from here...
5664 * config/mips/ecoff.h: Remove. and here...
5665 * config/mips/iris3.h: and here...
5666 * config/mips/sni-svr4.h: and here...
5667 * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
5668 Add assembler -mmdebug options for non-dwarf debugging.
5669 * config/mips/r3900.h: Remove debug info defines.
5670 * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
5671 * config/mips/isa3264.h: Ditto.
5672 * config/mips/t-isa3264: Fix up for file removal and gofast configure
5674 * config/mips/t-elf: Ditto.
5675 * config/mips/t-ecoff: Ditto.
5676 * config/mips/t-r3900: Ditto.
5677 * config/mips/t-iris5-6: Ditto.
5678 * config/mips/t-isa3264: Ditto.
5679 * config/mips/t-linux: Remove.
5680 * config/mips/t-netbsd: Remove.
5681 * config/mips/t-mips: New file.
5682 * config/mips/t-gofast: Ditto.
5683 * config/mips/netbsd.h: Remove unnecessary undefines.
5684 * config/mips/linux.h: Remove #include of mips.h.
5685 * config.gcc: Add mips.h include for elf targets. Remove tm_file
5686 for ecoff. Add gofast configure option for mips.
5688 2002-07-29 Chris Demetriou <cgd@broadcom.com>
5690 * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
5691 linker scripts use STARTUP directives consistently.
5692 * configure: Regenerate.
5693 * config.in: Regenerate.
5694 * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
5695 on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
5696 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
5697 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
5698 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
5701 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5703 * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
5705 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5707 * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
5709 2002-07-29 Aldy Hernandez <aldy@quesejoda.com>
5711 * config/rs6000/rs6000.md: Move altivec patterns from here...
5713 * config/rs6000/altivec.md: ...to here.
5715 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5717 * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
5719 2002-07-29 Richard Henderson <rth@redhat.com>
5721 * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
5722 set_mem_attributes and add BITPOS argument. Subtract it from
5723 OFFSET when same is adjusted.
5724 (set_mem_attributes): New wrapper function.
5725 * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
5726 remove offset adjustment hack.
5727 * expr.h (set_mem_attributes_minus_bitpos): Declare.
5729 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
5731 * Makefile.in (C_OBJS): Include c-pretty-print.o
5732 (c-pretty-print.o): Add depency rule.
5733 * pretty-print.h: Add more macros.
5734 * c-pretty-print.c: New file.
5735 * c-pretty-print.h: Likewise.
5737 2002-07-29 Aldy Hernandez <aldyh@redhat.com>
5739 * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
5740 constants to __ev64_s32__.
5741 (__internal_ev_mwhgsmian): Same.
5742 (__internal_ev_mwhgsmfan): Same.
5743 (__internal_ev_mwhgssfan): Same.
5744 (__internal_ev_mwhgumiaa): Same.
5745 (__internal_ev_mwhgsmiaa): Same.
5746 (__internal_ev_mwhgsmfaa): Same.
5747 (__internal_ev_mwhgssfaa): Same.
5749 2002-07-29 David Edelsohn <edelsohn@gnu.org>
5751 * varasm.c (assemble_variable): Narrow test for uninitialized
5752 without BSS target support.
5754 2002-07-29 Nathan Sidwell <nathan@codesourcery.com>
5756 * profile.c: Add file comment describing the overall algorithm and
5758 (struct edge_info): Add comments.
5759 (struct bb_info): Add comments.
5760 * basic-block.h (EDGE_*): Add comments.
5761 * doc/gcov.texi (Gcov Data Files): Document bit flags.
5763 2002-07-29 Bob Wilson <bob.wilson@acm.org>
5765 * config/xtensa/elf.h, config/xtensa/linux.h
5766 (TARGET_OS_CPP_BUILTINS): Define.
5767 (CPP_PREDEFINES): Remove.
5768 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
5771 2002-07-29 Zack Weinberg <zack@codesourcery.com>
5773 * gensupport.c: Include hashtab.h.
5774 (insn_elision, condition_table, hash_c_test, cmp_c_test,
5775 maybe_eval_c_test): New routines and data structures to
5776 support insn elision.
5777 (init_md_reader): Read and initialize the condition_table.
5778 (read_md_rtx): Discard insn patterns whose C test is provably
5780 * gensupport.h: Declare new functions and data structures.
5782 * genconditions.c, dummy-conditions.c: New files.
5783 * Makefile.in: Build genconditions; run it to construct
5784 insn-conditions.c; build that and link it into most gen*
5786 (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
5787 (GEN): Delete, unused.
5788 (STAGESTUFF): Update.
5790 * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
5791 CODE_FOR_nothing for all elided patterns.
5792 (main): Tweaked to support this.
5793 * genflags.c (gen_proto): Emit a static inline generator
5794 function here for all elided patterns, which simply returns
5796 (gen_insn): Do not define HAVE_xxx for elided patterns.
5797 (main): Tweaked to support this. No need to forward-declare
5799 * genrecog.c: Do not bother emitting the C test if it's known
5800 to be true at compile time.
5802 2002-07-29 Mike Stump <mrs@apple.com>
5804 * config.gcc (target_gtfiles): Initialize, as otherwise cross
5805 compilers hosted on powerpc-apple-darwin6.0 won't even build.
5807 2002-07-29 Richard Earnshaw <rearnsha@arm.com>
5809 * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
5810 remove clobber of LR.
5811 (sibcall_insn, sibcall_value_insn): Update accordingly.
5812 (sibcall_epilogue): Remove debugging comment from assembler stream.
5814 2002-07-29 Gabriel Dos Reis <gdr@nerim.net>
5816 * pretty-print.h: Define more macros.
5817 * diagnostic.h (output_formatted_integer): Moved from...
5818 * diagnostic.c: ... here.
5820 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5822 * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
5824 2002-07-28 Zack Weinberg <zack@codesourcery.com>
5826 * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
5827 arguments. Always use ".-symbol" as expression argument.
5828 * doc/tm.texi: Update to match. Document requirement for
5829 ".size symbol, .-symbol" to be acceptable to assembler.
5831 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
5832 config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
5833 config/i386/freebsd-aout.h, config/i386/sco5.h,
5834 config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
5835 config/xtensa/linux.h: Update uses of ASM_OUTPUT_MEASURED_SIZE.
5837 2002-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5839 * Makefile.in (gengtype-lex.c): Fix error in last change.
5841 * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
5844 * Makefile.in (vmsdbgout.o): Depend on function.h.
5846 * vmsdbgout.c: Include function.h.
5848 2002-07-28 Alan Modra <amodra@bigpond.net.au>
5850 * prefix.c (update_path): Don't strip single `.' path components
5851 unless stripping a later `..' component. Exit loop as soon as
5852 a valid path is found.
5854 2002-07-27 Roger Sayle <roger@eyesopen.com>
5856 * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
5857 argument. Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
5858 BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
5859 floating point unordered comparisons (e.g. __builtin_isgreater)
5860 as const, and leave the remaining GCC_BUILTINs unchanged.
5862 * c-decl.c (builtin_function): No need to explicitly mark
5863 BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
5865 2002-07-27 Roger Sayle <roger@eyesopen.com>
5867 * Makefile.in: rtlanal.o now depends upon real.h.
5869 * flags.h [flag_signaling_nans]: New flag.
5870 [HONOR_SNANS]: New macro.
5872 * toplev.c [flag_signaling_nans]: Initialize to false.
5873 (f_options): Add processing for "-fsignaling-nans".
5874 (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
5875 (process_options): flag_signaling_nans implies flag_trapping_math.
5877 * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
5878 when -fsignaling-nans. First step to implementing WG14's N965.
5880 * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
5881 1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
5882 [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
5884 * simplify-rtx.c (simplify_relational_operation): Conditionalize
5885 transforming abs(x) < 0.0 into false on !HONOR_SNANS.
5887 * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
5888 required by HONOR_SNANS. (may_trap_p): Floating point DIV, MOD,
5889 UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
5890 -fsignaling_nans. EQ and NE only trap for flag_signaling_nans
5891 not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
5893 * doc/invoke.texi: Document new -fsignaling-nans compiler option.
5895 2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5897 * Makefile.in (gengtype-lex.c): Work around a bug in flex.
5898 * gengtype-lex.l (YY_USE_PROTOS): Undef.
5901 2002-07-27 Roger Sayle <roger@eyesopen.com>
5903 * doc/invoke.texi: Document that both -fno-builtin-foo and
5904 -fno-builtin are supported by the g++ front-end.
5906 2002-07-27 Stan Shebs <shebs@apple.com>
5908 * configure.in: Rename config_gtfiles to target_gtfiles.
5909 * configure: Regenerate.
5910 * doc/gty.texi: Update reference.
5911 * config.gcc (powerpc-*-darwin*): Set target_gtfiles
5912 instead of appending to it.
5914 2002-07-25 Aldy Hernandez <aldyh@redhat.com>
5916 * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
5917 vectors are split into two registers.
5918 (function_arg): Same.
5920 Thu Jul 26 23:00:13 2002 J"orn Rennecke <joern.rennecke@superh.com>
5922 * pa.md (extv): Check predicates before emitting extv_32.
5924 2002-07-27 Alan Modra <amodra@bigpond.net.au>
5926 * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
5927 (rs6000_traceback): New var.
5928 (rs6000_override_options): Set rs6000_traceback.
5929 (rs6000_output_function_epilogue): Implement traceback options.
5930 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
5931 (rs6000_traceback_name): Declare.
5933 * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
5934 label reference when NO_PROFILE_COUNTERS.
5936 2002-07-26 Jason Merrill <jason@redhat.com>
5938 * function.c (assign_parms): Handle frontend-directed pass by
5939 invisible reference.
5941 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
5943 * doc/cppopts.texi: Update.
5945 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
5947 * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
5948 warnings on assertions.
5950 2002-07-26 Neil Booth <neil@daikokuya.co.uk>
5952 * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
5953 RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
5955 * c-parse.in (rid_to_yy): Similarly.
5957 2002-07-26 Jason Merrill <jason@redhat.com>
5959 * c-dump.c: Resurrect.
5960 * tree-dump.c: Move C-specific stuff to c-dump.c.
5961 * c-common.h: Declare c_dump_tree.
5962 * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
5963 * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
5964 (c-dump.o): New rule.
5966 2002-07-26 Alan Modra <amodra@bigpond.net.au>
5968 * config/rs6000/rs6000.md: Enable patterns using rlwinm for
5969 PowerPC64. Replace "T" and "S" constraints with "n" when the
5970 predicate will do. Formatting fixes.
5971 (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
5972 as for extzvsi_internal1.
5974 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5976 * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
5977 DERIV_END_LABEL_FMT): Remove.
5978 (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
5980 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5982 * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
5985 2002-07-25 Stan Shebs <shebs@apple.com>
5987 * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
5989 (output_compiler_stub): Remove unused locals.
5990 (output_call): Always initialize line number.
5992 Thu Jul 25 20:34:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
5994 * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
5995 * sh.md (truncdiqi2, movqi_media): Likewise.
5997 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
5999 * gcse.c (obstack_chunk_alloc): Remove.
6000 (gcse_alloc): Fix to count allocated bytes.
6001 * collect2.c (SYMBOL__MAIN): Remove.
6003 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
6005 * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
6006 HAVE_TARGET_EXECUTABLE_SUFFIX.
6008 Thu Jul 25 18:57:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
6010 * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
6011 SIZE, EXPR and OFFSET.
6013 2002-07-25 Richard Henderson <rth@redhat.com>
6015 * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
6016 in ARRAY_REF of DECL_P case.
6018 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
6020 * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
6021 description. Document -mips32, -mips64, and the associated -march
6022 values. Describe the "mipsN" arguments to -march. Say that the
6023 -mipsN options are equivalent to -march. Reword the description
6024 of default type sizes.
6025 * toplev.h (target_flags_explicit): Declare.
6026 * toplev.c (target_flags_explicit): New var.
6027 (set_target_switch): Update target_flags_explicit.
6028 * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
6029 * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
6030 * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
6031 * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
6032 * config/mips/mips.h (mips_cpu_info): New struct.
6033 (mips_cpu_string, mips_explicit_type_size_string): Remove.
6034 (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
6035 (MIPS_CPP_SET_PROCESSOR): New macro.
6036 (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
6037 Define _MIPS_ARCH and _MIPS_TUNE.
6038 (MIPS_ISA_DEFAULT): Don't provide a default value. Instead...
6039 (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
6040 MIPS_ISA_DEFAULT were already defined.
6041 (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
6042 (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
6043 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
6044 (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
6045 (ABI_GAS_ASM_SPEC): Remove.
6046 (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
6047 (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
6048 Invoke %(asm_abi_default_spec) if no ABI was specified.
6049 (CC1_SPEC): Remove ISA -> register-size rules.
6050 (EXTRA_SPECS): Remove abi_gas_asm_spec. Add asm_abi_default_spec.
6051 * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
6052 (mips_cpu_string, mips_explicit_type_size_string): Remove.
6053 (mips_cpu_info_table): New array.
6054 (mips_set_architecture, mips_set_tune): New fns.
6055 (override_options): Rework to make -mipsN equivalent to -march.
6056 Detect more erroneous cases, including those removed from CC1_SPEC.
6057 Don't change the ABI based on architecture, or vice versa.
6058 Unify logic with GAS.
6059 (mips_asm_file_start): Get architecture name from mips_arch_info.
6060 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
6061 (mips_parse_cpu): Take the name of the option as argument. Handle
6062 'from-abi'. Raise an error if the option is wrong.
6063 (mips_cpu_info_from_isa): New fn.
6065 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
6067 * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
6068 (tablejump_mips162): Likewise.
6070 Thu Jul 25 10:23:41 2002 J"orn Rennecke <joern.rennecke@superh.com>
6072 * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
6075 2002-07-25 Gabriel Dos Reis <gdr@nerim.net>
6077 * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
6079 * c-common.h (c_sizeof): Adjust definition.
6080 (c_alignof): Likewise.
6081 * c-tree.h (c_sizeof_nowarn): Now macro.
6082 * c-typeck.c (c_sizeof_nowarn): Remove definition.
6084 2002-07-25 Neil Booth <neil@daikokuya.co.uk>
6086 * c-decl.c (c_decode_option): No need to handle switches
6089 2002-07-24 Zack Weinberg <zack@codesourcery.com>
6091 * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
6092 ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
6093 * doc/tm.texi: Document them. Also document SIZE_ASM_OP,
6094 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
6096 * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
6097 config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
6098 config/cris/aout.h, config/i386/freebsd-aout.h,
6099 config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
6100 config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
6101 config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
6102 config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
6103 config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
6104 config/xtensa/elf.h, config/xtensa/linux.h:
6106 Where possible, remove redundant definitions of SIZE_ASM_OP,
6107 TYPE_ASM_OP, and TYPE_OPERAND_FMT.
6109 2002-07-24 Aldy Hernandez <aldyh@redhat.com>
6111 * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
6112 TARGET_ISEL, and TARGET_FPRS.
6114 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6115 -mabi=spe, -mabi=no-spe, and -misel=.
6117 * config/rs6000/rs6000-protos.h: Add output_isel.
6118 Move vrsave_operation prototype here.
6120 * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
6124 (abssi2_nopower): Disallow when TARGET_ISEL.
6126 (negsf2): Change to expand and rename old pattern to *negsf2.
6127 (abssf2): Change to expand and rename old pattern to *abssf2.
6129 New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
6132 Change patterns that check for TARGET_HARD_FLOAT or
6133 TARGET_SOFT_FLOAT to also check TARGET_FPRS.
6135 * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
6136 rs6000_isel, rs6000_fprs, rs6000_isel_string.
6137 (rs6000_override_options): Add 8540 case to
6138 processor_target_table.
6139 Set rs6000_isel for the 8540.
6140 Call rs6000_parse_isel_option.
6141 (enable_mask_for_builtins): New.
6142 (rs6000_parse_isel_option): New.
6143 (rs6000_parse_abi_options): Add spe and no-spe.
6144 (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
6145 (rs6000_legitimize_address): Check for TARGET_FPRS when checking
6146 for TARGET_HARD_FLOAT.
6147 Add case for SPE_VECTOR_MODE.
6148 (rs6000_legitimize_reload_address): Handle SPE vector modes.
6149 (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
6151 Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
6152 (rs6000_emit_move): Check for TARGET_FPRS.
6153 Add cases for SPE vector modes.
6154 (function_arg_boundary): Return 64 for SPE vector modes.
6155 (function_arg_advance): Check for TARGET_FPRS and
6157 (function_arg): Same.
6158 (setup_incoming_varargs): Check for TARGET_FPRS.
6159 (rs6000_va_arg): Same.
6160 (struct builtin_description): Un-constify mask field. Move up in
6162 (bdesc_2arg): Un-constify and add SPE builtins.
6164 (bdesc_spe_predicates): New.
6165 (bdesc_spe_evsel): New.
6166 (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
6167 (rs6000_expand_binop_builtin): Same.
6168 (bdesc_2arg_spe): New.
6169 (spe_expand_builtin): New.
6170 (spe_expand_predicate_builtin): New.
6171 (spe_expand_evsel_builtin): New.
6172 (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
6173 (rs6000_init_builtins): Initialize SPE builtins. Call
6174 rs6000_common_init_builtins.
6175 (altivec_init_builtins): Move all non-altivec builtin code to...
6176 (rs6000_common_init_builtins): ...here. New function.
6177 (branch_positive_comparison_operator): Allow NE code for SPE.
6178 (ccr_bit): Return correct ccr bit for SPE fp.
6179 (print_operand): Emit crnor in 'D' case for SPE.
6181 Add SPE code for 'y' case.
6182 (rs6000_generate_compare): Generate rtl for SPE fp.
6183 (output_cbranch): Handle SPE hard floats.
6184 (rs6000_emit_cmove): Handle isel.
6185 (rs6000_emit_int_cmove): New.
6187 (rs6000_stack_info): Adjust stack frame so GPRs are saved in
6189 (debug_stack_info): Add SPE info.
6190 (gen_frame_mem_offset): New.
6191 (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
6192 Change mode of frame pointer, when saving it, to Pmode.
6193 (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
6194 Misc cleanups and use gen_frame_mem_offset when appropriate.
6196 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
6197 (TARGET_SPE_ABI): New.
6201 (FIXED_SCRATCH): New.
6202 (RTX_COSTS): Add PROCESSOR_PPC8540.
6203 (ASM_CPU_SPEC): Add case for 8540.
6204 (TARGET_OPTIONS): Add isel= case.
6205 (rs6000_spe_abi): New.
6208 (rs6000_isel_string): New.
6209 (UNITS_PER_SPE_WORD): New.
6210 (LOCAL_ALIGNMENT): Adjust for SPE.
6211 (HARD_REGNO_MODE_OK): Same.
6212 (DATA_ALIGNMENT): Same.
6213 (MEMBER_TYPE_FORCES_BLK): New.
6214 (FIRST_PSEUDO_REGISTER): Set to 113.
6215 (FIXED_REGISTERS): Add SPE registers.
6217 (REG_CLASS_NAMES): Same.
6218 (REG_CLASS_CONTENTS): Same.
6219 (REGNO_REG_CLASS): Same.
6220 (REGISTER_NAMES): Same.
6221 (DEBUG_REGISTER_NAMES): Same.
6222 (ADDITIONAL_REGISTER_NAMES): Same.
6223 (CALL_USED_REGISTERS): Same.
6224 (CALL_REALLY_USED_REGISTERS): Same.
6225 (SPE_ACC_REGNO): New.
6226 (SPEFSCR_REGNO): New.
6227 (SPE_SIMD_REGNO_P): New.
6228 (HARD_REGNO_NREGS): Adjust for SPE.
6229 (VECTOR_MODE_SUPPORTED_P): Same.
6230 (REGNO_REG_CLASS): Same.
6231 (FUNCTION_VALUE): Same.
6232 (LIBCALL_VALUE): Same.
6233 (LEGITIMATE_OFFSET_ADDRESS_P): Same.
6234 (SPE_VECTOR_MODE): New.
6235 (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
6236 the GPRs. Set FIXED_SCRATCH fixed in SPE case.
6237 (rs6000_stack): Add spe_gp_size, spe_padding_size,
6239 (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
6240 (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
6241 (SPE_CONST_OFFSET_OK): New.
6242 (rs6000_builtins): Add SPE builtins.
6244 * testsuite/gcc.dg/ppc-spe.c: New.
6246 * config/rs6000/eabispe.h: New.
6248 * config/rs6000/spe.h: New.
6250 * config/rs600/spe.md: New.
6252 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6253 __SIMD__ for TARGET_SPE.
6255 * config.gcc: Add powerpc-*-eabispe* case.
6256 Add spe.h to user headers for powerpc.
6258 2002-07-24 Chris Demetriou <cgd@broadcom.com>
6260 * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
6261 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6262 * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
6264 2002-07-24 Richard Henderson <rth@redhat.com>
6266 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
6267 form when not optimizing.
6269 2002-07-24 David Mosberger <davidm@hpl.hp.com>
6271 * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
6272 thread_pointer_rtx as unchanging.
6274 2002-07-24 Michael Matz <matz@suse.de>
6276 * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
6279 2002-07-24 Richard Earnshaw <rearnsha@arm.com>
6281 * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
6283 (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
6284 (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
6286 2002-07-24 Chris Demetriou <cgd@broadcom.com>
6288 * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
6289 * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
6290 * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
6292 Wed Jul 24 17:59:12 CEST 2002 Jan Hubicka <jh@suse.cz>
6294 * toplev.c (rest_of_compilation): Dump loops before clobbering
6297 Wed Jul 24 17:23:16 CEST 2002 Jan Hubicka <jh@suse.cz>
6299 * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
6301 2002-07-24 Frank van der Linden <fvdl@wasabisystems.com>
6303 PR optimization/7291
6304 * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
6307 2002-07-24 Gabriel Dos Reis <gdr@nerim.net>
6309 * pretty-print.h: Add macros from cp/error.c
6311 2002-07-24 Alan Modra <amodra@bigpond.net.au>
6313 * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
6314 (mask64_2_operand): Declare.
6315 (build_mask64_2_operands): Declare.
6316 (and64_2_operand): Declare.
6317 (extract_MB): Declare.
6318 (extract_ME): Declare.
6319 * config/rs6000/rs6000.c (mask64_operand): Allow all ones. Remove
6321 (mask_operand_wrap): New insn predicate.
6322 (mask64_2_operand): Likewise.
6323 (and64_2_operand): Likewise.
6324 (build_mask64_2_operands): New function.
6325 (extract_MB): New function.
6326 (extract_ME): New function.
6327 (print_operand <case m,M>): Use extract_MB and extract_ME.
6328 (print_operand <case S>): Allow all ones. Remove CONST_DOUBLE support.
6329 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
6330 (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
6331 mask64_2_operand. Remove CONST_DOUBLE from mask64_operand.
6332 * config/rs6000/rs6000.md (andsi3_internal3): New
6333 (andsi3_internal3+1): Enable split for powerpc64.
6334 (andsi3_internal3+2): New split.
6335 (andsi3_internal4): Renamed old andsi3_internal3.
6336 (andsi3_internal5): New.
6337 (andsi3_internal5+1): Enable split for powerpc64.
6338 (andsi3_internal5+2): New split.
6339 (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
6340 (anddi3): Handle 't' constraint.
6341 (anddi3+1): New split.
6342 (anddi3_internal2): Handle 't' constraint.
6343 (anddi3_internal2+1): New split.
6344 (anddi3_internal3): Handle 't' constraint.
6345 (anddi3_internal3+1): New split.
6347 2002-07-24 Alan Modra <amodra@bigpond.net.au>
6349 * config/rs6000/rs6000.md: Remove scratch reg on insns using
6350 addze and similar (plus (comparison r1 r2) r3) insns. Add
6351 missing scratch reg in one case. Formatting fixes.
6353 2002-07-24 Neil Booth <neil@daikokuya.co.uk>
6355 * cppexp.c (parse_defined): Mark macro used.
6356 * cpphash.h (struct cpp_macro): New member "used".
6357 (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
6358 (struct cpp_reader): New member.
6359 * cppinit.c (cpp_finish_options): Set first_unused_line.
6360 (cpp_finish): Warn of unused macros if requested.
6361 (OPT_TABLE): New switches.
6362 (cpp_handle_option): Handle them.
6363 * cpplib.c (do_undef): Warn if macro unused.
6364 (do_ifdef, do_ifndef): Mark macro used.
6365 * cpplib.h (struct cpp_options): New member.
6366 * cppmacro.c (_cpp_warn_if_unused_macro): New.
6367 (enter_macro_context): Mark macro used.
6368 (_cpp_create_definition): Mark macro unused; warn if unused
6370 * cpptrad.c (scan_out_logcial_line, push_replacement_text):
6372 * doc/cppopts.texi: Update.
6374 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6376 * dwarf2out.c (SECTION_ASM_OP,
6377 ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6378 * system.h (SECTION_ASM_OP): Poison.
6379 * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
6380 * config/alpha/alpha-interix.h, config/mips/linux.h
6381 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6382 * config/mmix/mmix-protos.h, config/mmix/mmix.c
6383 (mmix_asm_output_define_label_difference_symbol): Remove.
6384 * config/mmix/mmix.h
6385 (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
6386 * doc/tm.texi: Remove documentation.
6388 Tue Jul 23 21:49:24 2002 J"orn Rennecke <joern.rennecke@superh.com>
6390 * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
6391 (constrain_operands): Likewise.
6392 * regclass.c (record_reg_classes): Likewise.
6393 * reload.c (find_reloads): Likewise.
6394 * doc/md.texi: Likewise.
6396 * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
6397 * simplify-rtx.c (simplify_subreg): When converting to a non-int
6398 mode, try to convert to an integer mode of matching size first.
6400 * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
6401 from individual subregs, check that each subreg has been generated
6404 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6406 * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
6407 * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
6408 FOR_EACH_BB_IN_SBITMAP): Remove.
6409 * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
6410 * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
6411 LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
6412 * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
6413 PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
6414 * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
6416 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
6418 * pretty-print.h: New file.
6420 2002-07-23 Paul Koning <pkoning@equallogic.com>
6422 * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
6423 (LARGEST_EXPONENT_IS_NORMAL): Ditto.
6424 (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
6425 (TARGET_G_FLOAT): Default to 0 if not defined.
6426 (ieeetoe): New, common routine to convert target format floats
6428 (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
6430 (e113toe): Change to use ieeetoe.
6432 2002-07-23 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6434 * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
6436 (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
6437 (e64toe): Remove special cases for DEC and IBM. Remove support for
6438 ARM_EXTENDED_IEEE_FORMAT.
6439 (e24toe): Remove special cases for DEC.
6440 (significand_size): Simplify. Indent.
6441 (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
6442 (etoieee, toieee): New.
6443 (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
6444 etoieee and toieee for IEEE arithmetic.
6446 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
6448 * doc/extend.texi: Say ISO C90, not ISO C89.
6449 * doc/invoke.texi: Likewise.
6450 * doc/standards.texi: Likewise.
6452 2002-07-23 Steve Ellcey <sje@cup.hp.com>
6454 * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
6455 Fix permutation of conversion and plus/mult.
6456 * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
6457 ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
6458 (expand_builtin_strncpy) Ditto.
6459 (expand_builtin_memset) Ditto.
6461 2002-07-23 Gabriel Dos Reis <gdr@nerim.net>
6464 * c-common.c (c_sizeof_or_alignof_type): New function.
6465 (c_alignof): Remove definition.
6466 * c-common.h (c_sizeof, c_alignof): Define as macros.
6467 (c_sizeof_or_alignof_type): Declare.
6468 (my_friendly_assert): Moved from cp/cp-tree.h
6469 * c-typeck.c (c_sizeof): Remove definition.
6471 2002-07-23 Jan Hubicka <jh@suse.cz>
6473 * gcse.c (try_replace_reg): Use num_changes_pending.
6474 * recog.c (num_changes_pending): New function.
6475 (validate_replace_src): Use validate_repalce_src_group.
6476 (validate_replace_src_group): New.
6477 * recog.h (validate_repalce_src_group): New.
6478 (num_changes_pending): Likewise.
6480 Tue Jul 23 12:16:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
6482 * calls.c (emit_library_call_value_1): If
6483 FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
6484 libcall, const call nor pure call.
6486 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6488 * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
6490 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6492 * vmsdbgout.c (SECTION_ASM_OP): Remove.
6494 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6496 * config/i386/i386.c (AT_BP): Remove.
6498 2002-07-23 Neil Booth <neil@daikokuya.co.uk>
6500 * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
6502 * gcse.c: Don't define obstack_chunk_free.
6503 * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
6504 flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
6505 integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
6506 reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
6507 Don't define obstack macros.
6509 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
6512 * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
6513 ASM_OPERANDS instructions.
6515 2002-07-22 Stephane Carrez <stcarrez@nerim.fr>
6518 * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
6519 constant addresses only on 68HC12.
6521 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
6523 * cppfiles.c (stack_include_file): Correct test of whether
6524 a dependency should be output.
6526 2002-07-22 David Edelsohn <edelsohn@gnu.org>
6528 * collect2.c (is_ctor_dtor): Add other possible JOINER values.
6530 2002-07-22 Richard Earnshaw <rearnsha@arm.com>
6532 * arm.md (movqi): If optimizing and we can create pseudos, use
6533 a ZERO_EXTEND to load from memory, then copy the result into the
6535 (movhi): Likewise, but only for ARMv4.
6537 2002-07-22 Neil Booth <neil@daikokuya.co.uk>
6539 * ssa-ccp.c (PHI_PARMS): Remove.
6541 2002-07-22 Richard Sandiford <rsandifo@redhat.com>
6543 * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
6544 on big-endian targets.
6546 2002-07-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6548 * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
6549 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
6550 HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
6551 New formatting macros.
6553 * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
6555 Mon Jul 22 15:27:25 2002 J"orn Rennecke <joern.rennecke@superh.com>
6557 * rtlanal.c (subreg_regno_offset): Return correct offset for
6558 big endian paradoxical subregs.
6560 * optabs.c (expand_vector_unop): Don't expand using sub_optab
6561 if we got the wrong mode.
6563 * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
6564 * genrecog.c (write_switch, write_cond): Use it.
6565 * genemit.c (gen_exp): Likewise.
6567 2002-07-22 Jakub Jelinek <jakub@redhat.com>
6569 * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
6571 2002-07-22 Jakub Jelinek <jakub@redhat.com>
6573 * c-decl.c (build_compound_literal): Defer compound literal decls
6574 until until file end to emit them only if they are actually used.
6576 2002-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6578 * ra-build.c (check_conflict_numbers): Hide unused function.
6579 (livethrough_conflicts_bb): Avoid automatic aggregate
6581 (parts_to_webs_1): Avoid `U' integer constant modifier.
6582 (conflicts_between_webs): Wrap a variable in the macro controlling
6584 * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
6585 (dump_igraph, dump_graph_cost): Avoid string concatenation
6586 (dump_static_insn_cost): Avoid automatic aggregate
6588 * ra-rewrite.c (insert_stores): Avoid automatic aggregate
6590 (dump_cost): Avoid string concatenation
6592 2002-07-21 Richard Henderson <rth@redhat.com>
6594 * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
6595 GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
6597 2002-07-21 Richard Henderson <rth@redhat.com>
6599 * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
6600 that are not unrolled completely.
6602 2002-07-21 Richard Henderson <rth@redhat.com>
6604 * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
6605 * loop.c (strength_reduce): Update.
6606 * toplev.c (rest_of_compilation): Do unrolling in the first
6607 loop pass, not the second.
6609 2002-07-21 Richard Henderson <rth@redhat.com>
6611 * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
6612 when flag_argument_noalias == 2.
6613 * alias.c (nonoverlapping_memrefs_p): Handle that.
6614 * print-rtl.c (print_mem_expr): Likewise.
6616 2002-07-21 Hartmut Schirmer <hartmut.schirmer@arcor.de>
6618 * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
6619 instead of __negdi2 directly.
6621 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6623 * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
6624 * function.c (SYMBOL__MAIN): Remove definition.
6625 * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
6626 * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
6627 * profile.c (GCOV_INDEX_TO_BB): Remove.
6628 * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
6629 * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
6631 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6633 * c-lex.c (GET_ENVIRONMENT): Remove.
6634 * collect2.c (GET_ENV_PATH_LIST): Remove.
6635 (prefix_from_env): Use GET_ENVIRONMENT.
6636 * cppinit.c (GET_ENV_PATH_LIST): Remove.
6637 (init_standard_includes): Use GET_ENVIRONMENT.
6638 * defaults.h (GET_ENVIRONMENT): Define here if not already.
6639 * gcc.c (GET_ENV_PATH_LIST): Remove.
6640 (make_relative_prefix, process_command): Update.
6641 * protoize.c (GET_ENV_PATH_LIST): Remove.
6642 (do_processing): Update.
6644 2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
6646 * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
6647 (grokdeclarator): Likewise.
6648 * c-format.c (C_STD_NAME): Likewise.
6649 * c-lex.c (interpret_integer): Likewise.
6650 * c-typeck.c (build_array_ref): Likewise.
6651 * cpplex.c (_cpp_lex_direct): Likewise.
6652 * toplev.c (documented_lang_options): Likewise.
6654 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6656 * c-format.c (T99_I, T99_UI): Remove.
6658 2002-07-21 Neil Booth <neil@daikokuya.co.uk>
6660 * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
6662 Sun Jul 21 21:36:41 CEST 2002 Jan Hubicka <jh@suse.cz>
6664 * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
6667 2002-07-21 Andreas Jaeger <aj@suse.de>
6669 * reload1.c (fixup_abnormal_edges): Remove unused variable.
6671 2002-07-21 Bernd Schmidt <bernds@redhat.com>
6673 Improvements for the ifcvt pass from Michael Meissner, with patches
6674 by Richard Sandiford <rsandifo@redhat.com>
6675 * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
6676 * ifcvt.c (cond_exec_changed_p): New static variable.
6677 (last_active_insn): New function, renamed from last_active_insn_p
6678 and changed to return the last active insn in a basic block. All
6680 (block_fallthru): New function.
6681 (cond_exec_process_insns): New argument CE_INFO. Pass it to
6682 IFCVT_MODIFY_INSN. All callers updated.
6683 Return false if START or END are NULL.
6684 Handle case where we're processing an insn that is already
6687 (noce_process_if_block): CE_INFO argument rather than
6688 multiple args containing the involved basic blocks. All callers
6690 (process_if_block, merge_if_block, find_if_block,
6691 cond_exec_process_if_block): Likewise.
6693 (cond_exec_process_if_block): New arg DO_MULTIPLE_P. All callers
6695 Use new function last_active_insn to simplify some code.
6696 New code to handle multiple tests.
6697 Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
6698 cond_exec_changed_p to TRUE.
6700 (process_if_block): New code to handle multiple tests.
6701 (merge_if_block): Likewise.
6702 (find_if_header): New arg PASS. Changed to return the currently
6703 processed basic block or NULL instead of true/false. All callers
6705 Call IFCVT_INIT_EXTRA_FIELDS.
6706 (block_jumps_and_fallthru_p): New function.
6707 (find_if_block): Discover opportunities to convert multiple tests.
6708 Add additional debugging output.
6709 Update the ce_info structure before returning.
6711 (if_convert): Run multiple passes of if-conversion.
6712 * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
6713 IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
6714 IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
6717 Sun Jul 21 00:54:54 CEST 2002 Jan Hubicka <jh@suse.cz>
6719 * gcse.c: Include cselib.h
6720 (constptop_register): Break out from ...
6721 (cprop_insn): ... here; kill basic_block argument.
6722 (do_local_cprop, local_cprop_pass): New functions.
6723 (one_cprop_pass): Call local_cprop_pass.
6725 2002-07-20 Roger Sayle <roger@eyesopen.com>
6727 * simplify-rtx.c (simplify_relational_operation): Optimize
6728 abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
6730 2002-07-20 Michae Matz <matz@suse.de>
6732 * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
6734 2002-07-20 Neil Booth <neil@daikokuya.co.uk>
6736 * cppexp.c (struct op): Add token pointer.
6737 (check_promotion, CHECK_PROMOTION): New.
6739 (_cpp_parse_expr): Update, use token pointer of struct op.
6740 (reduce): Warn about change of sign owing to promotion.
6741 * cppinit.c (cpp_handle_option): New warning if -Wall.
6742 * cpplib.h (struct cpp_options): New member.
6744 2002-07-19 David Edelsohn <edelsohn@gnu.org>
6746 * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
6747 fpu list. Separate Power4 compare and delayed_compare. Correct
6749 (fix_truncdfsi2_internal): Restore FPR preference.
6750 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
6751 mcpu?power4, mcpu?604e. Remove mpower, mpower2, mpowerpc.
6753 2002-07-19 Momchil Velikov <velco@fadata.bg>
6755 * reload1.c (reload_as_needed): Duplicate oldpat.
6757 2002-07-20 Alan Modra <amodra@bigpond.net.au>
6759 PR optimization/7130
6760 * loop.h (struct loop_info): Add "preconditioned".
6761 * unroll.c (unroll_loop): Set it.
6762 * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
6764 2002-07-19 Zack Weinberg <zack@codesourcery.com>
6766 * rtl.def (CODE_LABEL): Remove slot 8.
6767 * rtl.h (struct rtx_def): Document new uses of jump and call fields.
6768 (LABEL_ALTERNATE_NAME): Delete.
6769 (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
6770 * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6772 * final.c (output_alternate_entry_point): New.
6773 (final_scan_insn): Use it instead of
6774 ASM_OUTPUT_ALTERNATE_LABEL_NAME. Do not consider possibility
6775 of a case label being an alternate entry point.
6777 * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
6778 * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
6779 Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
6781 * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
6783 * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
6784 LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
6785 * doc/tm.texi: Delete documentation of
6786 ASM_OUTPUT_ALTERNATE_LABEL_NAME.
6788 2002-07-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6790 * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
6791 (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
6792 (LINK_SPEC): Define.
6793 (STARTFILE_SPEC): Define.
6794 (ENDFILE_SPEC): Define.
6796 * config/mips/iris6-o32.h (LINK_SPEC): Move ...
6797 * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
6799 * config/mips/iris6-o32-gas.h: New file.
6800 * config.gcc (mips-sgi-irix6*o32): Use it.
6802 * config/mips/t-iris5-gas: New file.
6803 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
6805 2002-07-19 Neil Booth <neil@daikokuya.co.uk>
6807 * cppexp.c (ALWAYS_EVAL): Remove.
6808 (optab, reduce): Always evaluate.
6809 (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
6810 only if not skipping evaluation.
6812 2002-07-19 Marek Michalkiewicz <marekm@amelek.gda.pl>
6814 * config/avr/avr.c (debug_hard_reg_set): Remove.
6816 2002-07-19 Chris Demetriou <cgd@broadcom.com>
6818 * gcc.c (cpp_options): Include "%1" (cc1_spec).
6820 2002-07-19 Richard Henderson <rth@redhat.com>
6822 * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
6824 2002-07-19 Alan Modra <amodra@bigpond.net.au>
6826 * prefix.c (update_path): Don't zap single `.' path components
6827 unless followed by another `.' and fix typo last patch.
6829 2002-07-18 Neil Booth <neil@daikokuya.co.uk>
6831 * cppexp.c (cpp_num_mul): Remove unused parameter.
6832 (UNARY, BINARY, OTHER, binary_handler): Remove.
6835 (reduce): Refactor to a large switch, don't use a function
6838 2002-07-18 Bo Thorsen <bo@berlioz.suse.de>
6840 * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
6842 Thu Jul 18 19:39:18 2002 J"orn Rennecke <joern.rennecke@superh.com>
6844 * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
6845 (sh_expand_binop_v2sf): Likewise.
6846 * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
6847 (int_gpr_dest, trunc_hi_operand): New functions.
6848 * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
6850 (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
6851 * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
6852 (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
6853 (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
6854 (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
6855 (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
6856 (extendhisi2_media+1, extendqisi2_media+1): Likewise.
6857 (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
6858 (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
6859 (movsf_ie+1): Likewise.
6860 (loaddi_trunc): Use int_gpr_dest predicate.
6861 (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
6862 (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
6863 (casesi_worker_0+[12], casesi_worker): Likewise.
6864 (shcompact_preserve_incoming_args): Likewise.
6865 (mov_nop): Use any_register_operand predicate.
6866 (mperm_w0): Use trunc_hi_operand predicate.
6868 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
6870 * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
6871 * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
6874 2002-07-18 John David Anglin <dave@hiauly1.hia.nrc.ca>
6876 * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
6878 2002-07-18 Richard Henderson <rth@redhat.com>
6880 PR optimization/7147
6881 * ifcvt.c (noce_get_condition): Make certain that the condition
6884 Thu Jul 18 13:44:51 2002 J"orn Rennecke <joern.rennecke@superh.com>
6886 * sh.c (barrier_align, push): Shut up compiler warnings.
6887 (initial_elimination_offset,sh_media_init_builtins): Likewise.
6888 (reg_no_subreg_operand): Delete.
6890 2002-07-17 Bo Thorsen <bo@suse.de>
6892 * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
6893 (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
6894 (STARTFILE_SPEC): Remove hardcoded library paths.
6895 (ENDFILE_SPEC): Likewise.
6897 Thu Jul 18 09:38:59 CEST 2002 Jan Hubicka <jh@suse.cz>
6899 * gcse.c (hoist_expr_reaches_here_p): Stop once expr_bb is reached.
6901 * gcse.c (try_replace_reg): Do not return false positives.
6903 2002-07-18 Alan Modra <amodra@bigpond.net.au>
6905 * prefix.c: (update_path): Strip ".." components when prior dir
6906 doesn't exist. Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
6908 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
6909 (ASM_OUTPUT_REG_POP): Likewise.
6911 2002-07-18 Alan Modra <amodra@bigpond.net.au>
6913 * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
6914 adjustments to first_reg for profiling case.
6915 (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
6916 Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
6917 Save static chain reg to sp + 12 on ABI_AIX_NODESC.
6918 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
6919 (ASM_OUTPUT_REG_POP): Define.
6920 * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
6921 (ASM_OUTPUT_REG_POP): Undef.
6923 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
6925 * cpplib.c (do_sccs): Handle #sccs on all systems.
6926 * system.h (SCCS_DIRECTIVE): Poison.
6927 * config/darwin.h, config/freebsd.h, config/netbsd.h,
6928 config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
6929 config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
6930 config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
6931 config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
6932 config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
6933 config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
6934 config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
6935 Remove all references to SCCS_DIRECTIVE.
6936 * doc/cpp.texi, doc/tm.texi: Update.
6938 Wed Jul 17 19:23:32 2002 J"orn Rennecke <joern.rennecke@superh.com>
6940 * regrename.c (maybe_mode_change): New function.
6941 (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
6943 2002-07-17 Rodney Brown <rbrown64@csc.com.au>
6945 * config/i386/i386.c (ix86_expand_int_movcc): In the general case
6946 suppress addition when either ct or cf are zero.
6948 2002-06-17 Eric Botcazou <ebotcazou@multimania.com>
6949 Glen Nakamura <glen@imodulo.com>
6951 PR optimization/6713
6952 * loop.c (loop_givs_rescan): Explicitly delete the insn that
6953 sets a non-replaceable giv after issuing the new one.
6955 2002-07-17 Neil Booth <neil@daikokuya.co.uk>
6957 * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
6958 eval_token): Clarify and correct use of "bool" variables.
6959 * cpplib.h (struct cpp_options): Similarly.
6960 * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
6961 * cpptrad.c (recursive_macro): Similarly.
6963 Wed Jul 17 17:08:06 2002 J"orn Rennecke <joern.rennecke@superh.com>
6965 * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
6968 * sh.md (cmpgtudi_media): Remove spurious @.
6970 * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
6971 * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
6973 * config/sh/lib1funcs.asm (init_trampoline): New entry point.
6974 * sh-protos.h (sh_initialize_trampoline): Declare.
6975 * sh.c (sh_initialize_trampoline): New function.
6976 * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
6977 (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
6978 (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
6979 (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
6980 * sh.md (initialize_trampoline, double_shori): New patterns.
6981 (initialize_trampoline_compact): Likewise.
6982 (shmedia32_initialize_trampoline_big): Remove.
6983 (shmedia32_initialize_trampoline_little): Likewise.
6985 * sh-protos.h (binary_float_operator): Remove declaration.
6986 (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
6987 * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
6988 (unary_float_operator, sh_expand_unop_v2sf): New functions.
6989 (sh_expand_binop_v2sf): Likewise.
6990 (zero_vec_operand): Delete.
6991 (SH_BLTIN_UDI): New builtin shared signature define. Renumbered
6992 all non-shared ones.
6993 (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
6994 Enable nsb and byterev.
6995 * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
6996 (HARD_REGNO_MODE_OK): Allow TImode in fp regs. Allow V2SFmode
6998 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
6999 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise. Remove clause for
7001 (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
7003 (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
7004 lowpart fp regs - only for big endian for now.
7005 (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
7007 (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
7008 (LOAD_EXTEND_OP): NIL for SImode.
7009 (REGISTER_MOVE_COST): Add DF_HI_REGS. Const for moves between
7010 general and fp registers is 4.
7011 PREDICATE_CODES: Amend binary_float_operator entry.
7012 Remove zero_vec_operand. Add unary_float_operator.
7013 * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
7015 (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
7016 (truncdiqi2): Do sign extension.
7017 (movsi_media, movdi_media): Allow to use r63 to an fp register.
7018 (movdf_media, movsf_media): Likewise.
7019 (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
7020 Collapse to one define_insn_and_split. Allow immediate sources.
7021 (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
7022 (movv4sf_i): Allow immediate sources. Use simplify_gen_subreg.
7023 (movv4sf): Allow immediate sources.
7024 (movsf_media_nofpu+1): Don't split moves to FP registers.
7025 (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
7026 (movv8qi_i+3): Check against CONST0_RTX.
7027 (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
7028 for input and output operands. Fix argument 3 to gen_mextr_rl.
7029 (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
7030 (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
7031 (mshf0_w, fipr, ftrv): Likewise.
7032 (mshfhi_l_di): Now insn_and_split. Can handle FP regs.
7034 2002-07-17 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7036 * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
7037 NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively. All uses changed.
7040 2002-07-17 Richard Sandiford <rsandifo@redhat.com>
7042 * config/mips/mips-protos.h (mips_sign_extend): Declare.
7043 * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
7044 (TARGET_SWITCHES): Remove debugh.
7045 (ISA_HAS_TRUNC_W): New macro.
7046 (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
7047 (PREDICATE_CODES): Remove se_nonimmediate_operand.
7048 * config/mips/mips.c (movdi_operand): Allow sign-extensions of
7049 any SImode move_operand.
7050 (se_nonimmediate_operand): Remove.
7051 (mips_sign_extend): New.
7052 (mips_move_2words): Use it for sign-extended source operands.
7053 (override_options): Allow integers to be put into single FPRs.
7054 (mips_secondary_reload_class): Handle integers in float registers.
7055 * config/mips/mips.md (extendsidi2): Turn into a define_expand.
7056 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
7057 (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
7058 (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
7059 (fix_truncdfdi2): Provide only a single alternative, in which the
7060 integer is in a float register. Depend on TARGET_FLOAT64 rather
7062 (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
7063 (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
7064 (movdi_internal2): Don't allow the source operand to be sign-extended.
7065 Add alternatives for float registers.
7066 (*movdi_internal2_extend): New. Version of movdi_internal2 that
7067 allows sign-extension.
7068 (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
7069 (movsi_internal2): Rename to movsi_internal. Add alternatives for
7070 float registers. Remove TARGET_DEBUG_H_MODE test.
7071 (movhi_internal1): Rename to movhi_internal. Don't check
7072 TARGET_DEBUG_H_MODE. Fix transposed *d and *f source constraints.
7073 (movqi_internal1): Rename to movqi_internal and remove
7074 TARGET_DEBUG_H_MODE dependency.
7075 (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
7077 2002-07-16 Jim Wilson <wilson@redhat.com>
7079 * toplev.c (lang_dependent_init): Create function context for
7082 2002-07-16 Hans-Peter Nilsson <hp@axis.com>
7084 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
7085 --gc-sections if -r.
7086 * config/cris/cris.h: Ditto.
7088 2002-07-16 Rodney Brown <rbrown64@csc.com.au>
7090 * config/i386/i386.c (ix86_expand_int_movcc): In the case where
7091 the comparison directly gives a mask suppress addition when cf is
7092 zero by complementing the mask.
7094 2002-07-16 Nathanael Nerode <neroden@gcc.gnu.org>
7096 * Makefile.in: Delete references to enquire.
7097 * enquire.c: Move to contrib.
7099 2002-07-16 Stan Shebs <shebs@apple.com>
7101 * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
7102 config/rs6000/darwin.h.
7103 (ASM_OUTPUT_SKIP): Ditto.
7104 (TEXT_SECTION_ASM_OP): Ditto.
7105 (DATA_SECTION_ASM_OP): Ditto.
7106 (ASM_APP_ON): Define.
7107 (ASM_APP_OFF): Define.
7108 * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
7109 TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
7111 * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
7112 (machopic_function_base_name): Declare result to be const.
7113 (machopic_non_lazy_ptr_name): Ditto.
7114 (machopic_stub_name): Ditto.
7115 * config/darwin-protos.h: Ditto for the prototypes.
7117 Wed Jul 17 00:22:39 CEST 2002 Jan Hubicka <jh@suse.cz>
7119 * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
7121 Wed Jul 17 00:20:48 CEST 2002 Jan Hubicka <jh@suse.cz>
7123 * i386.md (prefetch): Fix for 64bit mode.
7124 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7126 Wed Jul 17 00:19:20 CEST 2002 Jan Hubicka <jh@suse.cz>
7128 * i386.h (MACHINE_DEPENDENT_REORG): New macro.
7129 * i386.c (x86_machine_dependent_reorg): New function.
7130 * i386-protos.h (x86_machine_dependent_reorg): Declare.
7132 2002-07-16 Zack Weinberg <zack@codesourcery.com>
7134 * builtins.c (std_expand_builtin_va_start): Remove unused
7136 (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
7137 std_expand_builtin_va_start with just two arguments.
7138 * expr.h: Update prototypes.
7140 * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
7141 arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
7142 i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
7143 m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
7144 mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
7145 rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
7146 s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
7147 sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
7148 xtensa-protos.h, xtensa.h, xtensa.c: Remove unused first
7149 argument from all implementations of EXPAND_BUILTIN_VA_START
7150 and all uses of std_expand_builtin_va_start.
7152 Tue Jul 16 19:32:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
7154 * regrename.c (copy_value): Don't record high part copies.
7156 2002-07-16 Steve Ellcey <sje@cup.hp.com>
7158 * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
7159 (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
7160 * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
7162 2002-07-16 Ian Dall <ian@sibyl.beware.dropbear.id.au>
7164 * doc/invoke.texi (NS32K Options): Document -mieee-compare option
7166 * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
7167 into addsi3 using register class "x" and "y".
7169 * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
7170 "earlyclobber" constraint modifier for some alternative.
7172 * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
7173 (*ble, *blt): Flag to indicate bCOND and sCOND should check for
7175 config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
7177 * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
7178 (TARGET_SWITCHES): Add -mieee-compare option.
7179 (OVERRIDE_OPTIONS): 32332 is a subset of
7180 32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
7181 (TARGET_SWITCHES): Fix description of bit-field option.
7182 * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
7183 -mieee-compare option. Remove 32332 flag.
7185 2002-07-16 Steve Ellcey <sje@cup.hp.com>
7187 * explow.c (convert_memory_address): Remove special handling
7188 when POINTERS_EXTEND_UNSIGNED < 0.
7189 * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
7190 (movedi_symbolic): Fix typo.
7191 (load_fptr): Remove mode restriction so it works for SI and DI.
7192 (load_fptr_internal1): Ditto.
7193 (load_gprel): Ditto.
7194 (load_symptr_internal1): Ditto.
7196 * config/ia64.c (call_operand): Modify mode check.
7197 (ia64_expand_load_address): Handle DI and SI addresses and symbols.
7198 (ia64_expand_move): Ditto.
7199 (ia64_assemble_integer): Handle SImode function pointers.
7200 (ia64_expand_fetch_and_op): Handle SImode mem addresses.
7201 (ia64_expand_op_and_fetch): Ditto.
7202 (ia64_expand_compare_and_swap): Ditto.
7203 (ia64_expand_lock_test_and_set): Ditto.
7204 (ia64_expand_lock_release): Ditto.
7206 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7208 * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
7210 2002-07-16 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
7211 Richard Earnshaw <rearnsha@arm.com>
7213 * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
7214 CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF. Simplify logic.
7216 2002-07-16 Richard Earnshaw <rearnsha@arm.com>
7218 * arm.md (stack_tie): New insn. Use an idiom that the alias code
7219 understands to be a memory clobber.
7220 * arm.c (arm_expand_prologue): Use it.
7222 2002-07-16 Daniel Berlin <dberlin@dberlin.org>
7224 * ra-rewrite.c: #include reload.h, insn-config.h
7225 * ra-build.c: #include reload.h
7226 * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
7227 depend on reload.h, insn-config.h.
7229 Tue Jul 16 11:57:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
7231 * expr.c (emit_move_insn_1): Handle arbitrary moves that are
7232 the same size as a word.
7234 * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
7235 BYTES_BIG_ENDIAN into account.
7237 Tue Jul 16 12:22:44 CEST 2002 Jan Hubicka <jh@suse.cz>
7239 * i386.md (prefetch): Fix for 64bit mode.
7240 (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
7242 * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
7244 2002-07-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
7246 * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
7248 2002-07-15 Zack Weinberg <zack@codesourcery.com>
7250 * ginclude/varargs.h: Replace with stub which issues #error.
7251 * ginclude/stdarg.h: __builtin_stdarg_start is renamed
7254 * builtins.def (BUILT_IN_VARARGS_START): Delete.
7255 (BUILT_IN_VA_START): New.
7256 * builtins.c (expand_builtin_va_start): Eliminate first
7257 argument and code to implement pre-ISO varargs.
7258 (std_expand_builtin_va_start): Ignore first argument; it is
7260 (expand_builtin): Handle BUILT_IN_VA_START and
7261 BUILT_IN_STDARG_START identically. Delete
7262 BUILT_IN_VARARGS_START case.
7264 * function.c (assign_parms): Delete hide_last_arg and all
7266 (mark_varargs): Delete function.
7267 * function.h (struct function): Delete 'varargs' bit.
7268 (current_function_varargs): Delete macro.
7269 * tree.h: Don't declare mark_varargs.
7271 * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
7272 (c_expand_body): Don't call mark_varargs.
7273 * c-objc-common.c: Handle BUILT_IN_VA_START and
7274 BUILT_IN_STDARG_START identically. Delete
7275 BUILT_IN_VARARGS_START case.
7276 * c-tree.h: Don't declare c_mark_varargs.
7277 * c-parse.in: Remove grammar rules for '&...' (which has been
7278 commented out since before 2.7.2) and for '...' in K+R
7279 argument declarations.
7281 * builtins.c, function.c, integrate.c, sibcall.c,
7282 config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
7283 config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
7284 config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
7285 config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
7286 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
7287 config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
7288 config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
7289 config/stormy16/stormy16.c: Delete all references to
7290 current_function_varargs, and code predicated on that flag.
7292 * config/alpha/alpha.c (alpha_va_start),
7293 config/arc/arc.c (arc_va_start),
7294 config/i386/i386.c (ix86_va_start),
7295 config/mips/mips.c (mips_va_start),
7296 config/mn10300/mn10300.c (mn10300_va_start),
7297 config/rs6000/rs6000.c (rs6000_va_start),
7298 config/s390/s390.c (s390_va_start),
7299 config/sh/sh.c (sh_va_start),
7300 Ignore first argument; it is always 1.
7302 * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
7303 * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
7304 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
7305 Delete m68hc11_va_start.
7306 * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
7307 No need to define EXPAND_BUILTIN_VA_START.
7309 * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
7310 doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
7312 2002-07-15 Eric Botcazou <ebotcazou@multimania.com>
7314 PR optimization/7153
7315 * regmove.c (optimize_reg_copy_3): Don't optimize if the register
7316 dies in more than one insn.
7318 2002-07-15 Jason Thorpe <thorpej@wasabisystems.com>
7320 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
7322 2002-07-15 Michael Matz <matz@suse.de>,
7323 Daniel Berlin <dberlin@dberlin.org>,
7324 Denis Chertykov <denisc@overta.ru>
7326 Add a new register allocator.
7330 * ra-build.c: New file.
7331 * ra-colorize.c: New file.
7332 * ra-debug.c: New file.
7333 * ra-rewrite.c: New file.
7335 * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
7336 (ra-rewrite.o): New .o files for libbackend.a.
7337 (GTFILES): Add basic-block.h.
7339 * toplev.c (flag_new_regalloc): New.
7340 (f_options): New option "new-ra".
7341 (rest_of_compilation): Call initialize_uninitialized_subregs()
7342 only for the old allocator. If flag_new_regalloc is set, call
7343 new allocator, instead of local_alloc(), global_alloc() and
7346 * doc/invoke.texi: Document -fnew-ra.
7347 * basic-block.h (FOR_ALL_BB): New.
7348 * config/rs6000/rs6000.c (print_operand): Write small constants
7351 * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
7352 (df_reg_table_realloc): Make size at least as large as max_reg_num().
7353 (df_insn_table_realloc): Size argument now is absolute, not relative.
7354 Changed all callers.
7356 * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
7357 * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
7359 2002-06-20 Michael Matz <matz@suse.de>
7361 * df.h (struct ref.id): Make unsigned.
7362 * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
7364 2002-06-13 Michael Matz <matz@suse.de>
7366 * df.h (DF_REF_MODE_CHANGE): New flag.
7367 * df.c (df_def_record_1, df_uses_record): Set this flag for refs
7368 involving subregs with invalid mode changes, when
7369 CLASS_CANNOT_CHANGE_MODE is defined.
7371 2002-05-07 Michael Matz <matz@suse.de>
7373 * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
7375 2002-05-03 Michael Matz <matz@suse.de>
7377 * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
7379 Sat Feb 2 18:58:07 2002 Denis Chertykov <denisc@overta.ru>
7381 * regclass.c (regclass): Work with all regs which have sets or
7383 (reg_scan_mark_refs): Count regs inside (clobber ...).
7385 2002-01-04 Michael Matz <matzmich@cs.tu-berlin.de>
7387 * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
7388 (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
7390 (df_bb_refs_update): Don't clear insns_modified here, ...
7391 (df_analyse): ... but here.
7393 * sbitmap.c (dump_sbitmap_file): New.
7394 (debug_sbitmap): Use it.
7396 * sbitmap.h (dump_sbitmap_file): Add prototype.
7398 2001-08-07 Daniel Berlin <dan@cgsoftware.com>
7400 * df.c (df_insn_modify): Grow the UID table if necessary, rather
7401 than assume all emits go through df_insns_modify.
7403 2001-07-26 Daniel Berlin <dan@cgsoftware.com>
7405 * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
7406 increase REG_N_REFS (like flow does), so that regclass doesn't
7407 think a reg is useless, and thus, not calculate a class, when it
7410 2001-01-28 Daniel Berlin <dberlin@redhat.com>
7412 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
7415 2002-07-15 Jakub Jelinek <jakub@redhat.com>
7418 * config/i386/i386.c (const_int_1_31_operand): New.
7419 * config/i386/i386.h (PREDICATE_CODES): Add it.
7420 * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
7421 ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
7422 lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
7424 2002-07-14 Alan Modra <amodra@bigpond.net.au>
7427 * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
7428 (floatunssidf2): Likewise.
7429 (floatsidf_ppc64): New insn_and_split.
7430 (floatunssidf_ppc64): Likewise.
7432 2002-07-14 Andreas Jaeger <aj@suse.de>
7434 * config.gcc (sh64): Remove unused
7435 target_requires_64bit_host_wide_int.
7437 2002-07-12 Roger Sayle <roger@eyesopen.com>
7439 * expr.c [CLEAR_RATIO]: New macro defining the maximum number
7440 of move instructions to use when clearing memory, c.f. MOVE_RATIO.
7441 [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
7442 whether clear_by_pieces should be used to clear storage.
7443 (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
7445 * doc/tm.texi: Document these two new target macros.
7447 2002-07-12 Stephane Carrez <stcarrez@nerim.fr>
7449 * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
7450 the scratch register.
7451 ("*movhi2_push"): Accept Z_REG because a split pattern can make use
7452 of it, forbid reload to use it.
7454 2002-07-12 Marek Michalkiewicz <marekm@amelek.gda.pl>
7456 * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
7457 usage on 64-bit hosts, return value was truncated to 32 bits.
7459 Fri Jul 12 00:49:36 2002 J"orn Rennecke <joern.rennecke@superh.com>
7461 * simplify-rtx.c (simplify_subreg): Handle floating point
7462 CONST_DOUBLEs. When an integer subreg of a smaller mode than
7463 the element mode is requested, compute a subreg with an
7464 integer mode of the same size as the element mode first.
7466 Thu Jul 11 22:02:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
7468 * combine.c (try_combine): When converting a paradoxical subreg
7469 to an extension, take LOAD_EXTEND_OP into account.
7471 2002-07-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7473 * config.gcc (mips-sgi-irix6*o32): New configuration.
7475 * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
7477 * configure: Regenerate.
7479 * config/mips/iris6-o32-as.h: New file.
7480 * config/mips/iris6-o32.h: New file.
7482 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
7484 (HAVE_AS_SHF_MERGE): Undefine.
7486 * config/mips/t-iris5-as: New file.
7487 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
7489 * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
7490 SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
7491 SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
7492 dp-bit.c, fp-bit.c): Move ...
7493 * config/mips/t-iris5-6: ... here.
7494 New file, shared by IRIX 5 and IRIX 6.
7495 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
7496 mips-sgi-irix5*): Use it.
7498 * config/mips/iris6.h: Remove duplicate comment.
7500 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
7501 !TARGET_IRIX6]: Define.
7502 (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
7504 * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
7506 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7508 * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
7509 and delete code to force constant to register.
7510 * pa-protos.h (adddi3_operand): Add prototype.
7511 * pa.c (adddi3_operand): New function.
7513 2002-07-11 Roger Sayle <roger@eyesopen.com>
7515 * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
7516 non-ANSI builtin functions.
7518 Thu Jul 11 11:31:12 2002 J"orn Rennecke <joern.rennecke@superh.com>
7520 * rtl.h (gen_rtx_CONST_VECTOR): Declare.
7521 * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
7522 * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
7523 (gen_const_vector_0): Use it.
7525 2002-07-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
7527 * pa.md (adddi3): For 32-bit targets, force constants to a register
7528 if they don't fit in an 11-bit immediate. Change insn predicate to
7529 arith11_operand. Remove comment.
7530 * pa.c (cint_ok_for_move): Fix comment.
7531 (emit_move_sequence): Don't directly split DImode constants on 32-bit
7534 2002-07-11 Tim Josling <tej@melbpc.org.au>
7536 Remove front end hard coding from gengtype.c.
7539 (STAGESTUFF): add gtyp-gen.h
7540 (GTFILES): Remove front end specific files.
7541 (GTFILES_FILES_LANGS): New, from configure..
7542 (GTFILES_FILES_FILES): Likewise.
7543 (GTFILES_LANG_DIR_NAMES): Likewise.
7544 (GTFILES_SRCDIR): Likewise.
7545 (gtyp-gen.h): Build from configure information.
7546 (s-gtype): Remove command line parameters from gengtype.
7547 (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
7548 (mostlyclean): Delete files generated by and for gengtype.
7550 * c-config-lang.in: New file.
7552 * configure.in (all_gtfiles_files_langs): New. Accumulate files
7554 (all_gtfiles_files_files): New. Accumulate language for each file
7556 (gtfiles): Pick up value for C.
7557 (srcdir): AC-SUBST this variable.
7558 (all_gtfiles_files_langs): AC-SUBST this variable.
7559 (all_gtfiles_files_files): AC-SUBST this variable.
7561 * configure: Regenerate.
7563 * gengtype-lex.l (parse_file): Make parameter const.
7565 * gengtype.c (toplevel): include gtyp-gen.h.
7566 (BASE_FILE_<language> unnamed enum): Delete.
7567 (lang_names): Delete (replaced by gtyp-gen.h)
7568 (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
7570 (NUM_GT_FILES): New.
7571 (NUM_LANG_FILES): New.
7573 (NUM_BASE_FILES): Change calculation.
7574 (open_base_files): Change prototype to avoid warning.
7575 (startswith): Delete.
7576 (get_file_basename): Iterate through generated language list not
7578 (get_base_file_bitmap): Use generated list of files and languages.
7579 (close_output_files): Add prototype to rmove warning.
7580 (main): Iterate through list of generated files from gtyp-gen.h
7581 rather than command line paramaters. Ignore duplicated file
7584 * gengtype.h (parse_file): Amend prototype for const parameter.
7586 * doc/sourcebuild.texi: Document gtfiles variable.
7588 * doc/gty.texi: Document changes to gtfiles variable for front
7591 * objc/config-lang.in (gtfiles): Add files needed for objc front
7594 2002-07-10 Roger Sayle <roger@eyesopen.com>
7597 * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
7598 to SUBREGs of MEMs. (num_sign_bit_copies): Likewise.
7600 2002-07-10 Roger Sayle <roger@eyesopen.com>
7601 Zack Weinberg <zack@codesourcery.com>
7603 * builtins.def: Make the argument types of abort and exit
7604 independent of the front-end.
7606 2002-07-11 Alan Modra <amodra@bigpond.net.au>
7608 * config/rs6000/linux64.h (ASM_SPEC): Define.
7610 2002-07-10 Aldy Hernandez <aldyh@redhat.com>
7612 * config/rs6000/rs6000.c (emit_frame_save): New.
7613 (rs6000_frame_related): Replace reg2 before reg.
7614 (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
7615 and eh_return registers.
7617 2002-07-10 Toon Moene <toon@moene.indiv.nluug.nl>
7619 Revert all patches for optimization of Complex .op. Real.
7620 * complex_part_zero_p: Remove
7621 * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
7623 * expand_cmplxdiv_wide: Ditto.
7624 * expand_binop: Ditto.
7626 2002-07-10 Marek Michalkiewicz <marekm@amelek.gda.pl>
7628 * config/avr/avr.md: Fix two 0x80000000 constants to make them
7629 negative also on 64-bit hosts.
7631 Default to -fno-reorder-blocks when optimizing for size.
7632 * config/avr/avr-protos.h (avr_optimization_options): Declare.
7633 * config/avr/avr.c (avr_optimization_options): New function.
7634 * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
7636 Optimize returning from simple functions.
7637 * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
7638 * config/avr/avr.c (avr_simple_epilogue): New function.
7639 * config/avr/avr.md (return): New insn.
7641 2002-07-10 Douglas B Rupp <rupp@gnat.com>
7643 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Add
7644 HAS_INIT_SECTION to protection.
7646 2002-07-10 Mark Mitchell <mark@codesourcery.com>
7648 * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
7651 Wed Jul 10 19:50:03 2002 J"orn Rennecke <joern.rennecke@superh.com>
7653 * combine.c (gen_lowpart_for_combine): Handle vector modes.
7654 Supply non-VOID mode to simplify_gen_subreg.
7656 Wed Jul 10 18:48:55 CEST 2002 Jan Hubicka <jh@suse.cz>
7658 * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
7660 2002-07-10 Jeffrey A Law <law@redhat.com>
7662 * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
7665 * mn10200.c (expand_epilogue): Fix test to determine which scratch
7668 Wed Jul 10 16:06:00 2002 J"orn Rennecke <joern.rennecke@superh.com>
7670 * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
7672 If simplify_gen_subreg fails, try next equivalent.
7674 2002-07-09 Gabriel Dos Reis <gdr@codesourcery.com>
7676 * diagnostic.h: #include location.h
7677 (location_t): Move definition to..
7678 * location.h: ... here. New file.
7679 * tree.h: #include location.h
7680 (DECL_SOURCE_LOCATION): New macro.
7681 (DECL_SOURCE_FILE): Use.
7682 (DECL_SOURCE_LINE): Likewise.
7683 (struct tree_decl): REplace filename and linenum with locus.
7684 * Makefile.in (TREE_H): add location.h
7685 (diagnostic.o): Depends on gt-location.h
7686 (gt-location.h): Depends on s-gtype
7688 2002-07-09 Matt Kraai <kraai@alumni.cmu.edu>
7690 * config/rs6000/aix.h: Convert CPP_PREDEFINES to
7691 TARGET_OS_CPP_BUILTINS.
7692 * config/rs6000/aix31.h: Likewise.
7693 * config/rs6000/aix41.h: Likewise.
7694 * config/rs6000/aix43.h: Likewise.
7695 * config/rs6000/aix51.h: Likewise.
7696 * config/rs6000/beos.h: Likewise.
7697 * config/rs6000/darwin.h: Likewise.
7698 * config/rs6000/eabi.h: Likewise.
7699 * config/rs6000/eabisim.h: Likewise.
7700 * config/rs6000/linux.h: Likewise.
7701 * config/rs6000/linux64.h: Likewise.
7702 * config/rs6000/lynx.h: Likewise.
7703 * config/rs6000/mach.h: Likewise.
7704 * config/rs6000/rtems.h: Likewise.
7705 * config/rs6000/sysv4.h: Likewise.
7706 * config/rs6000/vxppc.h: Likewise.
7708 2002-07-09 Devang Patel <dpatel@apple.com>
7709 * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
7710 Do not allow ObjC objects as a parameter type for Objective-C methods.
7711 My previous patch restricted 'struct' also.
7713 2002-07-09 Neil Booth <neil@daikokuya.co.uk>
7715 * cpperror.c (cpp_error): Default to directive_line within
7717 * cppexp.c (cpp_interpret_integer): Only use traditional
7718 number semantics in directives.
7719 * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
7720 (do_include_common): Similarly.
7721 * cpptrad.c (scan_out_logical_line): Implement accurate
7722 quoting of <> in #include.
7723 * doc/cpp.texi: Update.
7725 Tue Jul 9 22:37:44 2002 Stephen Clarke <stephen.clarke@superh.com>
7726 J"orn Rennecke <joern.rennecke@superh.com>
7728 * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
7729 * sh.md (attribute issues): Replace with:
7730 (attribute pipe_model). All users changed.
7731 (attribute type): Change pt / ptabs to pt_media / ptabs_media.
7733 (function units sh5issue, sh5fds): New.
7734 (attribute is_mac_media): New.
7735 (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
7736 (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
7737 (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
7738 (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
7739 (call_media, call_value_media, sibcall_media): Likewise.
7740 (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
7741 (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
7742 (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
7743 (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
7744 (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
7745 (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
7746 (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
7747 (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
7748 (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
7749 (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
7750 (truncdfsf2_media): Likewise.
7751 (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
7752 (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
7754 Tue Jul 9 21:39:50 2002 J"orn Rennecke <joern.rennecke@superh.com>
7756 * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
7757 * sh.c (general_extend_operand, inqhi_operand): New functions.
7758 * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
7759 alternatives using 'N' modifier. Add type.
7760 (adddi3z_media): Likewise. Enable generator function generation.
7761 (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
7762 exact predicates / constraints. Add type.
7763 (subsi3): Allow 0 for SHMEDIA.
7764 (udivsi3_i4_media): Use match_operand for input values
7765 rather than hard registers.
7766 (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
7767 unnecessarily through hard registers. Keep copies of pseudo
7768 registers outside of the libcall sequence.
7769 (mulsidi3_media, umulsidi3_media): Use more exact predicates. Add type.
7770 (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
7771 (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
7772 (extendhidi2, extendqidi2): Likewise.
7773 (andsi3_compact): Name.
7774 (andcdi3): Enable generator function generation.
7775 (zero_extendhisi2, zero_extendqisi2): Rename to
7776 (zero_extendhisi2_compact, zero_extendqisi2_compact).
7777 (extendhisi2, extendqisi2): Rename to
7778 (extendhisi2_compact, extendqisi2_compact).
7779 (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
7780 (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
7781 (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
7782 (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
7783 (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
7784 (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
7785 (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
7786 (shmedia32_initialize_trampoline_big): Likewise.
7787 (shmedia32_initialize_trampoline_little): Likewise.
7788 (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
7789 (negdi2): Remove spurious T clobber.
7790 (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
7791 (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
7792 (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
7793 (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
7794 (ic_invalidate_line_media): Write back data cache before invalidating
7795 instruction cache. Add type.
7796 (movsf_media): Sign-extend when the destination is a general
7797 purpose register. Add type.
7798 (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
7799 (casesi_worker_0+1): Only increment ref count for proper label.
7800 (casesi_worker_0+2): Likewise.
7802 2002-07-09 Mark Mitchell <mark@codesourcery.com>
7804 * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
7806 2002-07-09 Steve Ellcey <sje@cup.hp.com>
7808 * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
7809 from Pmode to ptr_mode.
7810 (get_exception_pointer): Ditto.
7811 (connect_post_landing_pads): Ditto.
7812 (dw2_build_landing_pads): Ditto.
7814 2002-07-08 Steve Ellcey <sje@cup.hp.com>
7815 * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
7816 * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
7817 (handle_pragma_redefine_extname): Change to use new function.
7819 2002-07-08 Roger Sayle <roger@eyesopen.com>
7821 * combine.c (combine_simplify_rtx): Add an explicit cast
7822 to avoid signed/unsigned comparison warning.
7823 (simplify_if_then_else): Likewise.
7824 (extended_count): Likewise.
7825 (simplify_shift_const): Likewise.
7826 (simplify_comparison): Likewise.
7828 2002-07-08 Richard Sandiford <rsandifo@redhat.com>
7830 * config/mips/mips.md: Add imadd type. Update scheduler description
7831 to use imadd as well as imul.
7832 (*mul_acc_si, *madsi): Change imul alternatives to imadd.
7833 (*mul_acc_di, *mul_acc_64bit_di): Likewise.
7834 (*mul_sub_si): Likewise for first alternative. Change second
7835 alternative from imul to multi.
7837 2002-07-07 Neil Booth <neil@daikokuya.co.uk>
7839 * c-common.c (c_common_post_options): Update prototype;
7840 don't init backends if preprocessing only.
7841 * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
7842 * langhooks.h (struct lang_hooks): Update post_options to
7844 * toplev.c (parse_options_and_default_flags, do_compile,
7845 lang_independent_init): Update prototypes. Allow the
7846 front end to specify that there is no need to initialize
7848 (general_init): Move call to hex_init here...
7849 (toplev_main): ...from here. Pass flag for back end init
7852 Sun Jul 7 20:38:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
7854 * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
7855 (PREDICATE_CODES): Add entries for equality_comparison_operator,
7856 greater_comparison_operator and less_comparison_operator.
7857 * sh.c (print_operand): Add '\'' code. Make 'o' handle
7859 (equality_comparison_operator): New function.
7860 (greater_comparison_operator, less_comparison_operator): Likewise.
7861 * sh.md (beq_media_i): Disable generator function generation.
7862 Use match_operator to handle a whole class of comparisons. Add
7863 modifier in output template to provide branch prediction. Add type.
7864 (bgt_media_i, ble_media_i): Likewise. Allow zero operands.
7865 (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
7866 (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
7867 (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
7869 2002-07-07 Hans-Peter Nilsson <hp@bitrange.com>
7871 Emit MMIX function prologue and epilogue as rtl.
7872 * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
7873 not unprototyped get_hard_reg_initial_val.
7874 ("call_value", "nonlocal_goto_receiver"): Ditto.
7875 ("return"): Make define_expand. Move real insn to...
7876 ("*expanded_return"): New pattern.
7877 ("prologue", "epilogue"): New define_expands.
7878 * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
7879 (struct machine_function): New member in_prologue.
7880 (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
7881 (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
7882 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
7883 (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
7884 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
7885 (LOCAL_REGNO): Define. Adjust comment.
7886 * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
7887 Consider regs_ever_live[MMIX_rJ_REGNUM], not just
7889 (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
7891 (mmix_target_asm_function_prologue): Make static. Just mark that
7892 the prologue is being emitted. Move guts to...
7893 (mmix_expand_prologue): New function. Adjust for emitting
7894 prologue as rtl. For sizes, use HOST_WIDE_INT only.
7895 (mmix_target_asm_function_epilogue): Make static. Simply emit a
7897 (mmix_expand_epilogue): New function. Adjust for emitting
7898 epilogue as rtl. For sizes, use HOST_WIDE_INT only.
7899 (mmix_target_asm_function_end_prologue): Mark that the prologue
7901 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
7902 (mmix_conditional_register_usage): Improve comments.
7903 (mmix_local_regno): New function.
7904 (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
7905 * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
7906 (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
7907 (mmix_get_hard_reg_initial_val): Ditto.
7909 2002-07-06 Andreas Jaeger <aj@suse.de>
7911 * toplev.c (set_fast_math_flags): Don't use ISO C style function
7913 * gengtype.c (open_base_files): Likewise.
7914 (close_output_files): Likewise.
7915 * tracer.c (find_best_predecessor): Likewise.
7916 (find_best_successor): Likewise.
7917 (ignore_bb_p): Likewise.
7919 2002-07-05 Roger Sayle <roger@eyesopen.com>
7922 * builtin-attrs.def: Define new attribute lists for use in
7924 * builtins.def [DEF_BUILTIN]: Modify to take an additional
7925 ATTRS argument, an enumerated value defined in builtin-attrs.def
7926 that represents the attribute list for the builtins. Modify
7927 all builtin functions to pass an appropriate attribute list.
7928 Specify "abort", "exit", "_exit" and "_Exit" builtins here with
7929 their required noreturn attributes.
7930 * tree.h (enum_builtin_function): Ignore the additional parameter
7932 * builtins.c (built_in_names): Likewise.
7933 * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
7934 argument with a tree representing the functions attribute list.
7935 Pass this "attrs" argument to builtin_function. No longer handle
7936 the noreturn_p processing manually.
7937 (built_in_attributes): Move the definitions from builtin-attrs.def
7938 before c_common_nodes_and_builtins.
7939 (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
7940 DEF_BUILTIN, passing it to both builtin_function and the changed
7943 * doc/extend.texi: Document __builtin_abort, __builtin_exit,
7944 __builtin__exit and __builtin__Exit.
7946 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
7948 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
7949 QI mode registers in soft registers.
7950 ("zero_extendqihi2"): Do not take into account soft registers
7951 for register allocation (use '*' constraint).
7953 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
7955 * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
7957 ("*ashrsi3"): Likewise.
7958 ("*lshrsi3"): Likewise.
7960 2002-07-05 Vladimir Makarov <vmakarov@redhat.com>
7962 * genautomata.c (output_max_insn_queue_index_def): Take latencies
7965 2002-07-05 Stephane Carrez <stcarrez@nerim.fr>
7967 * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
7968 address computation and memory moves.
7970 2002-07-03 Mark Mitchell <mark@codesourcery.com>
7973 * dwarfout.c (output_reg_number): Fix warning message.
7974 (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
7977 2002-07-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7979 * gcc/gcc.c (asm_debug): Move initialization ...
7980 (init_spec): ... here.
7982 2002-07-05 Nathan Sidwell <nathan@codesourcery.com>
7984 * c-parse.in (extdef): Append ';'.
7985 (old_style_parm_decls): Append ';'.
7987 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7989 * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
7990 gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
7991 to gcc_cv_as_gstabs_flag.
7992 * configure: Rebuilt.
7994 2002-07-04 Geoffrey Keating <geoffk@redhat.com>
7996 * ggc.h (ggc_add_root): Document as obsolete.
7998 Thu Jul 4 07:58:01 2002 J"orn Rennecke <joern.rennecke@superh.com>
8000 * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
8001 (mshflo_w): Likewise.
8003 Thu Jul 4 07:36:29 2002 J"orn Rennecke <joern.rennecke@superh.com>
8005 * simplify-rtx.c (simplify_subreg): Reduce problem of finding
8006 vector mode subregs of constants to finding integer mode
8007 subregs of constants.
8008 * cse.c (cse_insn): Use simplify_gen_subreg.
8009 * convert.c (convert_to_integer): Don't strip a NOP_EXPR
8010 From a vector mode expression of different size than the
8013 2002-07-03 Eric Christopher <echristo@redhat.com>
8015 * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
8016 * config/mips/mips.h: Remove deprecated -m<processor> options
8017 and cc1_cpu_spec associated.
8018 (CONSTANT_ADDRESS_P): Fix last patch.
8019 (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
8020 * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
8023 2002-07-03 Stan Shebs <shebs@apple.com>
8025 * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
8026 (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
8027 (CPP_SPEC): Remove insertion of APPLE_CC definition.
8029 2002-07-03 Roger Sayle <roger@eyesopen.com>
8031 * combine.c (struct_undo): Change types of recorded substitutions
8032 to be either "int" or "rtx", instead of "unsigned int" and "rtx".
8033 (do_SUBST_INT): Change types of the substitution from unsigned int
8034 to int, to avoid compilation warning from SUBST_INT's only caller.
8036 (make_extraction): Add cast to avoid compilation warning.
8037 (force_to_mode): Remove cast to avoid compilation warning.
8039 2002-07-03 Eric Botcazou <ebotcazou@multimania.com>
8040 Jeff Law <law@redhat.com>
8042 * i386.md (length_immediate attribute): Fix typo.
8043 (length_address attribute): Likewise.
8044 (modrm attribute): Set it to 0 for immediate call instructions.
8045 (jcc_1 pattern): Set modrm attribute to 0.
8046 (jcc_2 pattern ): Likewise.
8047 (jump pattern): Likewise.
8048 (doloop_end_internal pattern): Explicitly set length.
8049 (leave pattern): Fix typo.
8050 (leave_rex64 pattern): Likewise.
8052 2002-07-03 David Edelsohn <edelsohn@gnu.org>
8054 * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
8055 in FPR as preference.
8057 (floatdidf2, fix_truncdfdi2): Same.
8058 (floatdisf2, floatditf2, fix_trunctfdi2): Same.
8060 (floatsitf2, fix_trunctfsi2): SImode in GPR.
8061 (ctrdi): Remove FPR alternative and splitter.
8063 2002-07-03 Will Cohen <wcohen@redhat.com>
8065 * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
8067 Wed Jul 3 10:24:16 2002 J"orn Rennecke <joern.rennecke@superh.com>
8069 * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
8070 than UNITS_PER_WORD, unless this is little endian and the first unit
8071 in this word. Let extract_bit_field decide how to load an element.
8072 Force arguments to matching mode.
8073 (expand_vector_unop): Likewise.
8075 * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
8076 consist of word_mode elements.
8077 * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
8078 BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
8079 (build_unary_op): Allow vector types for BIT_NOT_EPR.
8080 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
8082 * optabs.c (expand_vector_binop): Try to perform operation in
8083 smaller vector modes with same inner size. Add handling of AND, IOR
8084 and XOR. Reject expansion to inner-mode sized scalars when using
8085 OPTAB_DIRECT. Use simplify_gen_subreg on constants.
8086 (expand_vector_unop): Try to perform operation in smaller vector
8087 modes with same inner size. Add handling of one's complement.
8088 When there is no vector negate operation, try a vector subtract
8089 operation. Use simplify_gen_subreg on constants.
8090 * simplify-rtx.c (simplify_subreg): Add capability to convert vector
8091 constants into smaller vectors with same inner mode, and to
8092 integer CONST_DOUBLEs.
8094 2002-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8096 * c-parse.in (parsing_iso_function_signature): New variable.
8097 (extdef_1): New, copied from...
8098 (extdef): ... here. Reset parsing_iso_function_signature.
8099 (old_style_parm_decls): Reset parsing_iso_function_signature.
8100 (old_style_parm_decls_1): New, copied from old_style_parm_decls.
8101 Warn about ISO C style function definitions.
8102 (nested_function, notype_nested_function): Reset
8103 parsing_iso_function_signature.
8104 (parmlist_2): Set parsing_iso_function_signature.
8106 * doc/invoke.texi (-Wtraditional): Document new behavior.
8108 2002-07-02 Chris Demetriou <cgd@broadcom.com>
8110 * config.gcc (mips*el-*-*): Use tm_defines to set
8111 TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
8112 * config/mips/little.h: Remove.
8114 2002-07-02 Devang Patel <dpatel@apple.com>
8116 * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
8117 object as parameter. Prevent something like 'NSObject' to be
8118 used as the type for a method argument.
8120 2002-07-03 Neil Booth <neil@daikokuya.co.uk>
8122 * cpptrad.c: Update comment.
8124 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
8126 * doc/cpp.texi: Update for traditional preprocessing changes.
8127 * goc/cppopts.texi: Similarly.
8129 2002-07-02 Ziemowit Laski <zlaski@apple.com>
8131 * c-parse.in (designator): Enable designated initializers if ObjC.
8132 (objcmessageexpr): Remove references to objc_receiver_context.
8133 * objc/objc-act.h (objc_receiver_context): Remove decl.
8134 * objc/objc-act.c (objc_receiver_context): Remove.
8135 (lookup_objc_ivar): Test objc_method_context instead of
8136 objc_receiver_context.
8138 Tue Jul 2 18:45:45 2002 J"orn Rennecke <joern.rennecke@superh.com>
8140 * sh.c (print_operand, case 'N'): Allow zero vector.
8141 (arith_reg_or_0_operand): Likewise.
8142 (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
8143 * sh.h (CONST_COSTS): 0 has 0 cost. Check OUTER_CODE for
8144 IOR, XOR, PLUS and SET and take their respective constant
8145 ranges into account.
8146 (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
8147 * sh.md (subdi3, subdi3_media): Allow zero operand.
8148 (movv8qi_i+3): Only vector that is not split is the zero vector.
8149 Fix operand 3 to simplify_subreg.
8150 (movv2si_i): Split alternative 1.
8151 (mshfhi_l_di_rev+1): New splitter.
8153 2002-07-02 Neil Booth <neil@daikokuya.co.uk>
8155 PR preprocessor/7029
8156 * cppinit.c (cpp_handle_option): Suppress warnings with an
8157 implicit "-w" for "-M" and "-MM".
8158 * doc/cppopts.texi: Update.
8160 2002-07-01 Roger Sayle <roger@eyesopen.com>
8162 * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
8163 identifier "bzero" to "memset". Pass extra NULL_TREE argument to
8166 2002-07-02 Alan Modra <amodra@bigpond.net.au>
8168 * README.Portability: Fix typos.
8170 2002-07-01 Hans-Peter Nilsson <hp@axis.com>
8173 * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
8174 of indirections for register inside sign-extended mem part.
8176 2002-07-01 Roger Sayle <roger@eyesopen.com>
8178 * tree.h: Modify builtin_function interface to take an extra
8179 argument ATTRS, which is a tree representing an attribute list.
8181 * c-decl.c (builtin_function): Accept additional parameter.
8182 * objc/objc-act.c (builtin_function): Likewise.
8183 * f/com.c (builtin_function): Likewise.
8184 * java/decl.c (builtin_function): Likewise.
8185 * ada/utils.c (builtin_function): Likewise.
8186 * cp/decl.c (builtin_function): Likewise.
8187 (builtin_function_1): Likewise.
8189 * c-common.c (c_common_nodes_and_builtins): Pass an additional
8190 NULL_TREE argument to builtin_function. (builtin_function_2):
8192 * cp/call.c (build_java_interface_fn_ref): Likewise.
8193 * objc/objc-act.c (synth_module_prologue): Likewise.
8194 * java/decl.c (java_init_decl_processing): Likewise.
8195 * f/com.c (ffe_com_init_0): Likewise.
8197 * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
8198 NULL_TREE argument to builtin_function.
8199 * config/arm/arm.c (def_builtin): Likewise.
8200 * config/c4x/c4x.c (c4x_init_builtins): Likewise.
8201 * config/i386/i386.c (def_builtin): Likewise.
8202 * config/ia64/ia64.c (def_builtin): Likewise.
8203 * config/rs6000/rs6000.c (def_builtin): Likewise.
8205 2002-07-01 Zack Weinberg <zack@codesourcery.com>
8207 * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
8208 * config/mips/t-isa3264: Likewise.
8209 * config/mmix/t-mmix: Likewise.
8211 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
8213 * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
8215 2002-07-01 Roger Sayle <roger@eyesopen.com>
8218 * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
8219 A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
8222 2002-07-01 Nathanael Nerode <neroden@gcc.gnu.org>
8224 * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
8226 2002-07-01 Matt Kraai <kraai@alumni.cmu.edu>
8228 * README.Portability (Function prototypes): Give an example of
8229 declaring and defining a function with no arguments.
8231 * README.Portability (Function prototypes): Document new
8232 variable-argument function macros.
8234 Mon Jul 1 19:55:17 2002 J"orn Rennecke <joern.rennecke@superh.com>
8236 * sh.c (langhooks.h): Include.
8237 (sh_init_builtins, sh_media_init_builtins): New functions.
8238 (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
8239 (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
8240 (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
8241 (builtin_description): New struct tag.
8242 (signature_args, bdesc): New arrays.
8243 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
8244 (print_operand): Add 'N' modifier.
8245 * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
8246 (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
8247 (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
8248 (CONST_COSTS): Add special case for SHmedia AND.
8249 (PREDICATE_CODES): Add and_operand, arith_reg_dest,
8250 extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
8251 sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
8252 target_operand can also be const or unspec.
8253 * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
8254 (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
8255 (attribute type): Add new types.
8256 (anddi3): Add splitter.
8257 (movdi_const_16bit+1): Add code to handle vector constants and
8258 bitmasks efficiently.
8259 (shori_media): Have generator function made.
8260 (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
8261 (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
8262 (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
8263 (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
8264 (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
8265 (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
8266 (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
8267 (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
8268 (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
8269 (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
8270 (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
8271 (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
8272 (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
8273 (mshflo_b, mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
8274 (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
8275 (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
8276 (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
8277 (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
8278 (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
8281 (fpu_switch+1, fpu_switch+2): Remove constraint.
8283 2002-07-01 Aldy Hernandez <aldyh@redhat.com>
8285 * tree.c (build_function_type_list): Update function comment.
8286 Rename first argument to return_type.
8288 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
8290 * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
8291 tradcif.y and related files.
8293 2002-07-01 Neil Booth <neil@daikokuya.co.uk>
8295 * cpptrad.c (skip_whitespace): Pass pointer to prior char.
8297 2002-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8299 * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
8301 See ChangeLog.7 for earlier changes.