1 2002-04-20 Neil Booth <neil@daikokuya.demon.co.uk>
4 * decl.c (push_c_function_context, pop_c_function_context,
5 mark_c_function_context): Rename for consistency.
6 * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
7 * c-tree.h (push_c_function_context, pop_c_function_context,
8 mark_c_function_context): Rename for consistency.
9 * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
11 * function.c (init_lang_status, save_lang_status,
12 restore_lang_status, mark_lang_status, free_lang_status):
14 (push_function_context_to, pop_function_context_from,
15 free_after_parsing, prepare_function_start, ggc_mark_struct_function):
17 * function.h (init_lang_status, save_lang_status,
18 restore_lang_status, mark_lang_status, free_lang_status):
20 * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
21 LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
22 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
23 LANG_HOOKS_FUNCTION_INITIALIZER): New.
24 (LANG_HOOKS_INITIALIZER): Update.
25 (lhd_do_nothing_f): New.
26 * langhooks.h (struct lang_hooks_for_functions): New.
27 (struct lang_hooks): New hooks.
28 * langhooks.c (lhd_do_nothing_f): New.
30 * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
31 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
33 2002-04-19 David S. Miller <davem@redhat.com>
35 * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
36 * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
38 2002-04-19 Jakub Jelinek <jakub@redhat.com>
41 * config/i386/i386.c (ix86_expand_int_movcc): Optimize
42 x = ((int) y < 0) ? cst1 : cst2.
44 2002-04-19 Jakub Jelinek <jakub@redhat.com>
47 * function.c: Reapply patch for c/6358.
48 (expand_function_end): Copy decl_rtl's mode, not
49 current_function_return_rtx mode.
51 2002-04-19 Joel Sherrill <joel@OARcorp.com>
53 * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
56 2002-04-19 Tom Tromey <tromey@redhat.com>
58 * doc/install.texi (Specific): Update status of Solaris 2.8.
61 2002-04-19 Andreas Schwab <schwab@suse.de>
63 * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
64 (PUT_REAL): Restore old definition.
66 2002-04-19 Dan Nicolaescu <dann@godzilla.ics.uci.edu>
67 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
69 * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
70 binutils 2.11.2 and higher generate smaller binaries than Sun's
73 2002-04-19 Mark Mitchell <mark@codesourcery.com>
76 * toplev.c (rest_of_compilation): Do not defer functions for which
77 TREE_SYMBOL_REFERENCED has already been set.
79 Fri Apr 19 15:53:03 CEST 2002 Jan Hubicka <jh@suse.cz>
81 * i386.md (movsi_1, movhi_1): Force reload to use more flexible
84 2002-04-19 Neil Booth <neil@daikokuya.demon.co.uk>
86 * builtins.c: Include langhooks.h.
87 (lang_type_promotes_to): Remove.
88 (expand_builtin_va_arg): Use new hook.
89 * c-common.c (c_common_nodes_and_builtins): Don't set hook.
90 (simple_type_promotes_to): Move to c-typeck.c.
91 * c-common.h (simple_type_promotes_to): Remove.
92 * c-decl.c (duplicate_decls, grokdeclarator): Update.
93 * c-format.c: Include langhooks.h.
94 (check_format_types): Update.
95 * c-tree.h (c_type_promotes_to): New.
96 * c-typeck.c (c_type_promotes_to): Move from c-common.c.
97 (type_lists_compatible_p): Update.
98 * langhooks-def.h (lhd_type_promotes_to): New.
99 (LANG_HOOKS_TYPE_PROMOTES_TO): New.
100 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
101 * langhooks.c (lhd_type_promotes_to): New.
102 * langhooks.h (struct lang_hooks_for_types): New hook.
103 * tree.h (lang_type_promotes_to): Remove.
105 * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
107 2002-04-18 Richard Henderson <rth@redhat.com>
109 * function.c: Revert patch for c/6358.
111 2002-04-18 Richard Henderson <rth@redhat.com>
113 * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
114 blocks. Handle multiple references to the TRAP block. Handle
115 non-adjacent THEN and OTHER blocks.
117 2002-04-18 Richard Henderson <rth@redhat.com>
119 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
120 crash with no type for by-mode libcalls.
122 * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
124 2002-04-18 Bob Wilson <bob.wilson@acm.org>
126 * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
127 __xtensa_nonlocal_goto): Use a syscall instructions to flush
128 the register windows.
130 2002-04-18 Zack Weinberg <zack@codesourcery.com>
132 * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
133 appropriate. Document need for extended precision even when
134 MAX_LONG_DOUBLE_TYPE_SIZE is smaller. Define REAL_WIDTH here,
135 based on REAL_VALUE_TYPE_SIZE. Use REAL_WIDTH to size
136 REAL_VALUE_TYPE. Define CONST_DOUBLE_FORMAT here. Use #error
137 instead of relying on later syntax error when REAL_WIDTH > 5.
138 * real.c: Define NE based only on whether or not we have a
139 full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
140 Require sizeof(REAL_VALUE_TYPE) == 2*NE. Unconditionally
141 define GET_REAL and PUT_REAL as simple memcpy operations; no
142 need to byteswap or round.
143 Use #error instead of #ifdef-ing out the entire file, for
144 prompt error detection.
146 * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
148 2002-04-18 David S. Miller <davem@redhat.com>
150 * config/sparc/sparc.h (BRANCH_COST): Define.
152 * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
155 2002-04-18 Hans-Peter Nilsson <hp@bitrange.com>
157 * flow.c (update_life_info): Ignore return value of cleanup_cfg.
158 Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
159 propagate_block calls after relaxation loop using new variable
160 stabilized_prop_flags.
162 2002-04-18 Richard Henderson <rth@redhat.com>
164 * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
165 (ia64_va_arg): Expect variable sized types by reference.
166 * config/ia64/ia64-protos.h: Update.
167 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
168 ia64_function_arg_pass_by_reference.
170 2002-04-18 Richard Henderson <rth@redhat.com>
172 * ifcvt.c: Include except.h.
173 (block_has_only_trap): Break out from find_cond_trap.
174 (find_cond_trap): Use it. Always delete the trap block.
175 (merge_if_block): Allow then block null. Be less simplistic about
176 what insns can end a block.
177 * Makefile.in (ifcvt.o): Depend on except.h.
179 * config/ia64/ia64.md (trap, conditional_trap): New.
181 2002-04-18 Jakub Jelinek <jakub@redhat.com>
184 * function.c (assign_parms): Assign hard current_function_return_rtx
186 (expand_function_end): ...not here.
188 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
190 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
191 * c-tree.h (c_incomplete_type_error): New.
192 * c-typeck.c (require_complete_type, build_component_ref): Update.
193 (incomplete_type_error): Rename.
194 * langhooks-def.h (lhd_incomplete_type_error): New.
195 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
196 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
197 * langhooks.c (lhd_incomplete_type_error): New.
198 * langhooks.h (struct lang_hooks_for_types): New hook.
199 * tree.c (size_in_bytes): Use new hook.
200 * tree.h (incomplete_type_error): Remove.
202 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
204 2002-04-18 Zack Weinberg <zack@codesourcery.com>
206 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
207 TARGET_FLOAT_FORMAT blocks.
209 2002-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
211 * doc/install.texi (Downloading the source): Do not mention Chill
212 any longer, but mention Ada.
213 (Configuration): Do not mention Chill any longer.
215 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
217 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
219 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
221 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
224 2002-04-18 Jakub Jelinek <jakub@redhat.com>
226 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
227 instead of unsigned_type.
229 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
231 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
232 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
235 2002-04-18 Bernd Schmidt <bernds@redhat.com>
237 * attribs.c (vector_type_node_list): New static variable.
238 (handle_vector_size_attribute): Use it to avoid generating a
239 new type node each time we are called.
241 * combine.c (subst): Avoid trying to make a vector mode subreg of
243 (gen_lowpart_for_combine): Likewise.
245 2002-04-18 Roger Sayle <roger@eyesopen.com>
246 Jakub Jelinek <jakub@redhat.com>
248 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
249 for integer constant c (if x has unsigned type or sign bit is not
250 set in c). This folds the zero/sign extension into the bit-wise and
253 2002-04-18 Jakub Jelinek <jakub@redhat.com>
256 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
259 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
261 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
263 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
265 * gcc.c (read_specs): Detect and fail if an attempt is made to
266 rename a spec string to an already existing string.
268 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
270 * config/s390/s390.c (legitimize_pic_address): Do not generate
271 illegal address constant without CONST.
273 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
275 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
276 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
278 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
281 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
282 to make sure previous reloads are taken into account. Generate
283 better code if one operand is an in-range immediate constant.
285 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
287 * doc/install.texi (Building): libgcj requires GNU make.
289 2002-04-17 Jakub Jelinek <jakub@redhat.com>
292 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
293 even if hard quad and register is not floating.
294 (movtf reg<-mem split): Disallow splitting if hard quad and
295 register is floating.
296 (movtf mem<-reg split): Likewise.
297 * config/sparc/sparc.c (fp_register_operand): New predicate.
298 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
300 2002-04-17 Zack Weinberg <zack@codesourcery.com>
302 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
303 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
304 (unprotoize.o): Ditto. Build from protoize.c. Define
305 UNPROTOIZE on command line.
306 * protoize.c: Include cppdefault.h. Delete include_defaults.
307 (in_system_include_dir): Use cpp_include_defaults (defined in
309 * unprotoize.c: Delete file.
311 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
313 * config/rs6000/altivec.h (vec_ld): Add array variants.
317 2002-04-17 Alan Matsuoka <alanm@redhat.com>
318 Aldy Hernandez <aldyh@redhat.com>
320 * config/rs6000/altivec.h: Define __ALTIVEC__.
327 Add parentheses to all macro arguments.
329 2002-04-16 Richard Henderson <rth@redhat.com>
332 * except.c (remove_eh_handler): Insert inner regions at beginning
333 of sibling chain. Refactor expressions.
335 2002-04-16 Richard Henderson <rth@redhat.com>
337 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
338 * config/sparc/sol2-gas-bi.h: New file.
339 * config.gcc (sparc*-solaris): Add it as needed.
340 * configure.in (AS_SPARC64_FLAG): Remove check.
341 * config.in, configure: Regenerate.
343 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
345 2002-04-16 Richard Henderson <rth@redhat.com>
347 * config/mips/mips.c (override_options): Don't override N32 for
351 * config/mips/mips.md (can_delay): Split out of existing define_delays.
352 (HILO_delay): Set can_delay false.
354 2002-04-16 Dale Johannesen <dalej@apple.com>
356 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
357 instruction addresses.
358 (rs6000_output_function_epilogue): Likewise.
360 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
362 * c-parse.in (poplevel, compstmt_start,
363 compstmt_primary_start): Add ending ';', in accordance
366 2002-04-16 Richard Henderson <rth@redhat.com>
368 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
369 Adjust tm_file order to get TARGET_DEFAULT set properly.
370 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
371 * doc/install.texi (sparc-solaris): Update.
373 2002-04-16 Dale Johannesen <dalej@apple.com>
375 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
376 comparison operands do not match each other or if modes of
377 conditions do not match result.
379 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
382 * config/s390/s390.md (mulsidi3): Set both subregs of the
385 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
387 * config/rs6000/altivec.h (vec_addc): Type check.
389 2002-04-16 Jakub Jelinek <jakub@redhat.com>
392 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
394 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
396 2002-04-15 Richard Henderson <rth@redhat.com>
398 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
399 call_really_used_regs too.
401 2002-04-15 Richard Henderson <rth@redhat.com>
403 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
405 2002-04-15 David S. Miller <davem@redhat.com>
407 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
410 2002-04-16 Jakub Jelinek <jakub@redhat.com>
413 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
414 CONST_VECTOR is { 0, ... 0 }.
416 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
418 * doc/install.texi (Installing GCC: Configuration): Clarify
419 the only supported ways to configure gcc.
421 2002-04-15 Roland McGrath <roland@frob.com>
423 * config.gcc (alpha*-*-gnu*): New target configuration.
424 * config/alpha/gnu.h: New file for it.
425 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
427 2002-04-16 Mark Mitchell <mark@codesourcery.com>
429 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
430 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
431 * tree.h (expand_start_stmt_expr): Update prototype.
432 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
433 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
434 on the STMT_EXPR created for the inline function.
436 2002-04-15 Richard Henderson <rth@redhat.com>
438 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
439 config/i386/linux-aout.h, config/i386/linux-oldld.h,
440 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
441 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
442 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
443 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
444 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
445 Define __gnu_linux__, not gnu_linux.
446 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
448 2002-04-15 Mark Mitchell <mark@codesourcery.com>
450 Remove Chill front end.
451 * gcc.c (default_compilers): Remove Chill entries.
452 * ch: Remove directory.
453 * doc/frontends.texi: Remove information about Chill.
454 * doc/sourcebuild.texi: Likewise.
455 * doc/standards.texi: Likewise.
457 2002-04-15 Douglas B Rupp <rupp@gnat.com>
459 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
460 (LONGLONG_STANDALONE): Define.
462 2002-04-15 David S. Miller <davem@redhat.com>
464 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
465 Call emit_library_call with LCT_NORMAL.
466 (sparc_initialize_trampoline): Use LCT_foo instead of
467 magic constant in emit_library_call invocations.
468 (sparc64_initialize_trampoline): Likewise.
469 (sparc_profile_hook): Likewise.
470 * config/sparc/sparc.md: Likewise.
472 * config/sparc/sparc.c (sparc_extra_constraint_check):
473 Fix type of argument 'c'.
474 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
477 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
479 * diagnostic.h (output_buffer_state): Redefine.
480 (output_format_decoder): New macro.
481 (output_prefixing_rule): Likewise.
482 (output_line_cutoff): Likewise.
483 (diagnostic_format_decoder): Adjust.
484 (diagnostic_prefixing_rule): Likewise.
485 (diagnostic_line_cutoff): Likewise.
486 (diagnostic_state): Likewise.
487 (diagnostic_kind_count): Likewise.
488 (diagnostic_buffer): Now a macro.
490 * diagnostic.c (diagnostic_buffer): Remove definition.
491 (output_is_line_wrapping): Adjust.
492 (set_real_maximum_length): Likewise.
493 (output_set_maximum_length): Likewise.
494 (init_output_buffer): Likewise.
495 (lhd_print_error_function): Likewise.
496 (output_do_verbatim): Likewise.
498 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
500 * cpperror.c (print_location): Don't print include chain
502 (cpp_begin_message): Update to use DL_ macros.
503 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
504 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
505 cpp_notice, cpp_notice_from_errno): Remove.
506 (cpp_error, cpp_error_with_line): Update to take a diagnostic
509 * cppexp.c (CPP_ICE): Remove.
510 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
511 lex, integer_overflow, _cpp_parse_expr): Update.
512 * cppfiles.c (read_include_file, find_include_file,
513 handle_missing_header, _cpp_read_file, remap_filename): Update.
514 * cpphash.h (enum error_type): Remove.
515 (_cpp_begin_message): Update.
516 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
517 cpp_handle_option, cpp_post_options): Update.
518 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
519 skip_whitespace, parse_identifier, parse_slow, parse_string,
520 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
521 cpp_interpret_charconst): Update.
522 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
523 lex_macro_node, do_undef, glue_header_name, parse_include,
524 do_include_common, read_flag, do_line, do_linemarker, do_ident,
525 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
526 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
527 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
528 _cpp_pop_buffer, do_diagnostic): Update.
529 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
530 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
531 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
532 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
533 cpp_notice, cpp_notice_from_errno): Remove.
534 (cpp_error, cpp_error_with_line): Update to take a diagnostic
537 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
538 collect_args, enter_macro_context, save_parameter, parse_params,
539 _cpp_create_definition, check_trad_stringification,
540 cpp_macro_definition): Update.
541 * cppmain.c (cpp_preprocess_file): Update.
542 * fix-header.c (read_scan_file): Update.
544 2002-04-14 Andreas Schwab <schwab@suse.de>
546 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
548 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
550 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
552 2002-04-13 Mark Mitchell <mark@codesourcery.com>
554 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
557 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
559 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
561 2002-04-13 Joel Sherrill <joel@OARcorp.com>
563 * config/sparc/t-elf: Enable v8 multilibs. Impacts
564 sparc-elf and sparc-rtems targets.
566 2002-04-13 Mark Mitchell <mark@codesourcery.com>
568 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
569 defined, and __gnu_hurd__ wherever __GNU__ is defined.
570 * arm/linux-elf.h: Likewise.
571 * cris/aout.h: Likewise.
572 * cris/linux.h: Likewise.
573 * i370/linux.h: Likewise.
574 * i386/gnu.h: Likewise.
575 * i386/linux-aout.h: Likewise.
576 * i386/linux-oldld.h: Likewise.
577 * i386/linux.h: Likewise.
578 * i386/linux64.h: Likewise.
579 * ia64/linux.h: Likewise.
580 * m68k/linux-aout.h: Likewise.
581 * m68k/linux.h: Likewise.
582 * mips/linux.h: Likewise.
583 * pa/pa-linux.h: Likewise.
584 * pj/linux.h: Likewise.
585 * rs6000/sysv4.h: Likewise.
586 * s390/linux.h: Likewise.
587 * sh/linux.h: Likewise.
588 * sparc/linux-aout.h: Likewise.
589 * sparc/linux.h: Likewise.
590 * sparc/linux64.h: Likewise.
591 * xtensa/linux.h: Likewise.
593 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
595 * stmt.c (check_unique_operand_names): Expect operand names to
596 be strings rather than identifiers. Use simple_cst_equal to
598 (resolve_operand_name_1): Make same identifier to string change here.
599 * c-parse.in (asm_operand): Convert a named operand into a string.
600 * cp/parse.y (asm_operand): Likewise.
602 2002-04-13 Andreas Schwab <schwab@suse.de>
604 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
606 2002-04-12 Mark Mitchell <mark@codesourcery.com>
608 Revert these changes:
610 2002-04-06 Mark Mitchell <mark@codesourcery.com>
613 * stor-layout.c (layout_decl): Reset the RTL for the decl.
615 2002-04-12 Richard Henderson <rth@redhat.com>
617 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
618 (sparc*-*-solaris): Clean up header files.
619 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
620 and plan on generating 64-bit code.
621 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
622 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
623 * config/sparc/sol2-sld-64.h: Rename ...
624 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
625 for AS_SPARC64_FLAG not defined.
626 * config/sparc/sol2-gld-bi.h: New.
627 * config/sparc/sol2-sld.h: Remove.
628 * config/sparc/sol26-sld.h: New.
629 * config/sparc/sol2.h: Tidy comments.
630 * doc/install.texi: Document sparc-solaris configury changes.
632 2002-04-12 Richard Henderson <rth@redhat.com>
634 * recog.c (offsettable_address_p): Match the logic in adjust_address.
636 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
637 in 64-bit mode only. Use only for 32-bit or MEDLOW.
639 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
641 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
643 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
645 * pa.c (pa_can_combine_p): Call extract_insn before calling
648 2002-04-12 Douglas B Rupp <rupp@gnat.com>
650 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
651 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
652 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
653 (CPP_PREDEFINES): Handle __declspec.
654 * config/i386/t-interix (USER_H): Remove.
656 2002-04-12 DJ Delorie <dj@redhat.com>
658 * integrate.c (compare_blocks): Make comparisons safe for when
659 sizeof(int) < sizeof(char *).
660 (find_block): Likewise.
662 2002-04-12 Jan Hubicka <jh@suse.cz>
663 David Edelsohn <edelsohn@gnu.org>
665 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
667 (symbol_ref_operand): New.
668 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
669 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
671 2002-04-12 Andreas Schwab <schwab@suse.de>
673 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
674 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
675 overrides the definition in config/svr4.h.
677 2002-04-12 Eric Norum <eric.norum@usask.ca>
679 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
680 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
681 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
682 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
683 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
684 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
685 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
686 definitions to config/rtems.h and make the targets more similar.
688 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
690 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
691 POINTERS_EXTEND_UNSIGNED.
692 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
693 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
695 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
698 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
700 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
701 depends on TARGET_SHMEDIA, not TARGET_SH5.
703 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
705 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
706 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
708 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
710 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
713 2002-04-12 Andreas Schwab <schwab@suse.de>
715 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
717 2002-04-12 Richard Henderson <rth@redhat.com>
720 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
722 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
723 modes spanning multiple hard regs.
725 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
727 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
729 * pa.c (pa_output_function_prologue): Don't accumulate the total
730 number of code bytes when using TARGET_64BIT, or gas, SOM and not
731 the portable runtime.
732 (output_deferred_plabels): Handle 64bit plabels.
733 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
734 generating pic code using the GAS assembler for object formats that
735 are not SOM (ie., ELF32 and ELF64).
736 (output_millicode_call): Check attribute type if attribute length is 28.
737 Likewise use $PIC_pcrel$0. Only call get_attr_length and
738 dbr_sequence_length once.
739 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
740 dbr_sequence_length once.
741 * pa.h (TARGET_SOM): Define if not defined.
742 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
743 with GAS and not SOM.
744 (jump, call_internal_reg, call_value_internal_reg): Likewise.
745 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
747 2002-04-11 David O'Brien <obrien@FreeBSD.org>
749 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
750 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
751 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
752 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
753 elfos.h and dbxelf.h values are fine now.
754 * config/i386/freebsd.h, config/alpha/freebsd.h
755 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
757 2002-04-11 David O'Brien <obrien@FreeBSD.org>
759 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
760 or set Acpu or Amachine. Reformat.
761 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
763 (LINK_SPEC): Do not need to undef.
764 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
765 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
766 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
768 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
769 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
770 (LINK_SPEC): Do not need to undef.
771 (DONT_USE_BUILTIN_SETJMP): Do not define.
772 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
773 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
774 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
775 Remove trailing spaces.
776 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
777 __ELF__, or set Acpu or Amachine. Reformat.
778 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
781 2002-04-11 David O'Brien <obrien@FreeBSD.org>
783 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
784 all other *-*-freebsd* targets.
786 2002-04-11 Richard Henderson <rth@redhat.com>
788 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
790 2002-04-11 David O'Brien <obrien@FreeBSD.org>
792 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
793 Include {cpu}/{cpu}.h thru tm_file.
794 (alpha*-*-linux*ecoff): Remove target.
795 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
796 (LINK_SPEC): Remove, is not OS independent.
797 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
798 (LINK_SPEC): Do not need to #undef any longer.
799 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
801 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
803 (LINK_SPEC): Moved here from alpha/elf.h.
804 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
806 * config/alpha/linux-ecoff.h: Remove.
807 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
808 (CPP_SPEC): Define _POSIX_SOURCE as needed.
809 (CPP_SUBTARGET_SPEC): Do not define.
810 (LINK_SPEC): Do not need to #undef any longer.
811 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
812 * config/alpha/vms.h: Likewise.
814 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
816 * doc/extend.texi: Remove old claim that typedefs cannot have
817 an alignment attribute.
819 2002-04-11 Jakub Jelinek <jakub@redhat.com>
822 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
823 bitpos is 0 and bitsize CONCAT size.
825 2002-04-11 Jakub Jelinek <jakub@redhat.com>
828 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
830 2002-04-10 David O'Brien <obrien@FreeBSD.org>
832 * config/alpha/freebsd.h: Minor reformatting.
833 (CPP_SPEC): Define ELF and add cpp_subtarget.
834 (ASM_SPEC): No longer needed.
836 2002-04-11 Richard Henderson <rth@redhat.com>
838 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
839 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
840 (dimode mem/zero splitter): New.
842 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
844 * config/cris/cris.c (cris_override_options): Tweak error message
845 for PIC not implemented.
847 * config/cris/cris.h: Tweak comments related to parameter-passing.
849 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
851 2002-04-10 Richard Henderson <rth@redhat.com>
853 * except.c (add_ehl_entry): Allow duplicates after landing pad
856 2002-04-10 David Edelsohn <edelsohn@gnu.org>
858 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
860 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
862 * c-decl.c (c_init_decl_processing): Move generation of
863 decls for g77_integer_type_node and friends from here ...
864 * c-common.c (c_common_nodes_and_builtins): ... to here.
866 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
868 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
869 is only used as frame pointer when frame_pointer_needed is true.
871 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
874 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
875 for the fact that the pool entry uses two words.
876 (movdf_hard_insn): Similarly. Also, ADR instruction can span
878 (movdf_soft_insn): Similarly.
879 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
880 for the fact that the pool entry uses three words.
882 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
884 * config/mips/mips.c (mips_va_arg): When using the struct version
885 of the EABI va_list, allow arguments in the register save area to
886 take up less room than a stack argument.
888 2002-04-10 Richard Henderson <rth@redhat.com>
890 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
891 if EXPAND_INITIALIZER.
893 2002-04-09 Richard Henderson <rth@redhat.com>
895 * config/alpha/alpha.md (movdi_er_maybe_g): New.
896 * config/alpha/alpha.c (alpha_expand_mov): Use it.
898 2002-04-10 Alan Modra <amodra@bigpond.net.au>
901 * rtlanal.c (pure_call_p): New function.
902 * rtl.h (pure_call_p): Declare.
903 * loop.c (prescan_loop): Use it to set has_nonconst_call.
904 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
906 2002-04-09 Eric Christopher <echristo@redhat.com>
908 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
909 information to .comm directive.
911 2002-04-09 Richard Henderson <rth@redhat.com>
914 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
916 2002-04-09 Richard Henderson <rth@redhat.com>
918 * basic-block.h (flow_delete_block_noexpunge): Declare.
919 (expunge_block_nocompact): Declare.
920 * cfg.c (expunge_block_nocompact): Split out from ...
921 (expunge_block): ... here.
922 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
923 (flow_delete_block_noexpunge): Split out from ...
924 (flow_delete_block): ... here.
925 * cfgcleanup.c (delete_unreachable_blocks): Compact while
926 removing dead blocks.
927 * except.c (exception_handler_labels): Remove.
928 (exception_handler_label_map): New.
929 (struct eh_region): Add aka member.
930 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
931 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
932 (for_each_eh_label, for_each_eh_label_1): New.
933 (init_eh): Register exception_handler_label_map.
934 (free_eh_status): Use free_region.
935 (find_exception_handler_labels): Use the map, not the list.
936 (remove_exception_handler_label): Likewise.
937 (maybe_remove_eh_handler): Likewise.
938 (remove_eh_handler): Use the region aka bitmap.
939 * except.h (exception_handler_labels): Remove.
940 (for_each_eh_label): Declare.
941 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
942 * loop.c (invalidate_loops_containing_label): New.
943 (find_and_verify_loops): Use it. Use for_each_eh_label.
944 * sched-rgn.c (is_cfg_nonregular): Use
945 current_function_has_exception_handlers.
947 2002-04-09 Richard Henderson <rth@redhat.com>
949 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
950 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
951 Do not return changed status.
952 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
953 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
954 New functions that do return changed status.
955 * sbitmap.h: Update decls.
956 * gcse.c, lcm.c: Use _cg functions as needed.
958 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
960 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
961 (sh64-*-elf*, sh-*-rtemself*): Likewise.
962 * config/sh/embed_bb.c: New file.
963 * config/sh/embed-elf.h: New file.
964 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
965 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
966 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
968 (SUBTARGET_CPP_PTR_SPEC): Don't define.
969 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
970 Add subtarget_asm_endian_spec.
971 (ASM_SPEC): Use subtarget_asm_endian_spec.
972 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
973 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
974 (WCHAR_UNSIGNED): Define.
975 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
976 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
977 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
979 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
980 (sh_adjust_cost): Likewise.
981 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
983 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
984 (WCHAR_TYPE_SIZE): Likewise.
985 (ASM_SPEC): Use subtarget_asm_endian_spec.
986 (SH_ELF_WCHAR_TYPE): #undef/ #define.
987 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
988 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
989 (MAX_WCHAR_TYPE_SIZE): Don't #define .
990 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
991 (USER_LABEL_PREFIX): Don't #undef /#define .
992 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
993 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
994 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
995 (ASM_SPEC): Likewise.
996 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
997 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
998 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
999 (LIB2FUNCS_EXTRA): Define.
1000 * t-sh64 (LIB2FUNCS_EXTRA): Define.
1001 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
1002 (LIB1ASMFUNCS_CACHE): Define.
1003 (LIB2FUNCS_EXTRA): Redefine empty.
1005 2002-04-08 Richard Henderson <rth@redhat.com>
1007 * reorg.c (get_branch_condition): Use reversed_comparison_code.
1009 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1011 * config/m68hc11/larith.asm (__map_data_section): Fix condition
1012 and optimize for size.
1013 (__do_global_ctors): Fix pointer comparison.
1014 (__do_global_dtors): Likewise.
1016 2002-04-09 David S. Miller <davem@redhat.com>
1018 * config/sparc/sparc.c (sparc_extra_constraint_check): New
1019 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
1020 allow reloading pseudos.
1021 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
1022 * config/sparc/sparc-protos.h: Declare it.
1024 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
1025 unsigned comparison warning.
1026 (output_restore_regs): Mark leaf_function as unused.
1028 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1030 * expr.c (is_aligning_offset): New function.
1031 (expand_expr, case COMPONENT_EXPR): Call it.
1033 2002-04-08 David S. Miller <davem@redhat.com>
1036 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
1038 Make init_priority work on Sparc when using GNU ld.
1039 * config/sparc/linux.h, config/sparc/linux64.h,
1040 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
1041 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
1042 * config/sparc/sol2-gld.h: New file to do the same.
1043 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
1044 sparc/sol2-gld.h to tm_file.
1046 PR optimization/4328
1047 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
1048 * doc/md.texi: Document it.
1049 * config/sparc/sparc.md (movdi_insn_sp64_novis,
1050 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
1051 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
1052 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
1053 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
1055 2002-04-08 Andreas Jaeger <aj@suse.de>
1057 * stmt.c (expand_asm_operands): Revert last patch from Richard
1060 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1062 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
1063 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
1065 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1067 * doc/contrib.texi (Contributors): Add David O'Brien.
1069 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1071 * configure.in (auto-build.h): Use target_alias and build_alias
1072 when running configure.
1073 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
1074 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
1075 * configure: Regenerate.
1077 2002-04-07 David S. Miller <davem@redhat.com>
1079 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
1081 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
1084 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
1085 generating 32-bit pic code.
1087 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
1089 * cppinit.c (cpp_create_reader): Initialize
1090 discard_comments_in_macro_exp.
1091 (COMMAND_LINE_OPTIONS): Add "-CC" option.
1092 (cpp_handle_option): Handle "-CC" option.
1093 * cpplex.c (save_comment): If saving a C++ comment in
1094 a directive, convert it to a C comment.
1095 (_cpp_lex_direct): Pass second comment start character to
1096 save_comment to indicate comment type.
1097 * cpplib.c (_cpp_handle_directive): If processing
1098 a "#define" directive and discard_comments_in_macro_exp
1099 is false, re-enable saving of comments.
1100 (lex_macro_node): If discard_comments_in_macro_exp is false,
1101 discard any comments before the macro identifier.
1102 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
1104 * cppmacro.c (cpp_get_token): If expanding a macro while
1105 processing a directive, discard any comments we might encounter.
1106 (parse_params): If discard_comments_in_macro_exp is false,
1107 ignore comments in the macro parameter list.
1108 * gcc.c (cpp_unique_options): Add "-CC" option.
1109 (option_map): Map "--comments-in-macros" to "-CC".
1110 * doc/cppopts.texi: Document "-CC" option.
1111 * f/lang-specs.h: Add "-CC" option.
1112 * testsuite/gcc.dg/cpp/maccom1.c: New test.
1113 * testsuite/gcc.dg/cpp/maccom2.c: New test.
1114 * testsuite/gcc.dg/cpp/maccom3.c: New test.
1115 * testsuite/gcc.dg/cpp/maccom4.c: New test.
1116 * testsuite/gcc.dg/cpp/maccom5.c: New test.
1117 * testsuite/gcc.dg/cpp/maccom6.c: New test.
1119 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
1122 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
1124 2002-04-06 Mark Mitchell <mark@codesourcery.com>
1127 * stor-layout.c (layout_decl): Reset the RTL for the decl.
1130 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
1131 RTX_UNCHANGING_P for the functions arguments when a tail call
1134 2002-04-06 Jason Merrill <jason@redhat.com>
1136 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
1137 (parse_options_and_default_flags): Set them appropriately.
1138 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
1140 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
1142 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
1145 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
1148 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
1149 types come in by-reference. Fix typo in comment.
1151 2002-04-05 David S. Miller <davem@redhat.com>
1153 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
1154 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
1155 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
1156 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
1158 2002-04-05 David S. Miller <davem@redhat.com>
1160 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
1161 are not going to emit return instructions, emit at least a nop
1162 for the sake of sane backtraces.
1164 2002-04-05 Richard Henderson <rth@redhat.com>
1166 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
1168 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
1170 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
1172 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
1174 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
1175 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
1176 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
1178 2002-04-05 Andreas Schwab <schwab@suse.de>
1180 * c-convert.c: Include c-common.h.
1181 * Makefile.in (c-convert.o): Updated.
1183 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1185 * mklibgcc.in: Use separate libgcc.map for each multilib.
1186 * Makefile.in (distclean): Don't remove libgcc.map here.
1188 2002-04-05 Jakub Jelinek <jakub@redhat.com>
1190 * Makefile.in (s-mlib): Handle --disable-multilib by separate
1191 genmultilib invocation.
1193 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
1195 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1196 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
1197 to num_gprs for symmetry.
1198 * config/mips/mips.c: Adjust accordingly.
1200 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
1202 * c-common.c (truthvalue_conversion): Rename, update.
1203 * c-common.h (c_common_truthvalue_conversion): New.
1204 * c-convert.c (convert): Update.
1205 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1206 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1207 * c-typeck.c (build_binary_op, build_unary_op,
1208 build_conditional_expr): Update.
1209 * fold-const.c (constant_boolean_node, fold): Use langhook.
1210 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1211 * langhooks.h (struct lang_hooks): New hook.
1212 * stmt.c (expand_decl_cleanup): Use langhook.
1213 * tree.h (truthvalue_conversion): Remove.
1215 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1217 2002-04-05 Alan Modra <amodra@bigpond.net.au>
1219 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1220 Add rules to make null object file.
1222 2002-04-04 Jim Blandy <jimb@redhat.com>
1224 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1225 macro formal parameter names.
1227 2002-04-04 David S. Miller <davem@redhat.com>
1229 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1231 2002-04-04 Richard Henderson <rth@redhat.com>
1234 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1235 Support copies into and out of memory. Don't accept allows_reg
1236 and allows_mem as gospel.
1238 2002-04-04 Richard Henderson <rth@redhat.com>
1241 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1242 (write_dependence_p): Likewise.
1244 2002-04-04 Richard Henderson <rth@redhat.com>
1246 * predict.c (estimate_bb_frequencies): Do frequency calculation
1247 with a volatile temporary.
1249 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1251 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1253 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1256 * final.c (final_start_function): Don't bump profile_label_no here...
1257 (final_end_function): ...but here.
1259 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1261 * config/sparc/sparc.md (pic): New attribute.
1262 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1264 (split after do_builtin_setjmp_setup): New.
1266 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1269 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1272 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1274 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1275 UNITS_PER_WORD for zero sized aggregates.
1277 2002-04-03 David S. Miller <davem@redhat.com>
1279 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1280 one-character spec for this, just use %(link_gcc_c_sequence).
1282 2002-04-03 David S. Miller <davem@redhat.com>
1284 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1287 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1289 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1290 (DWARF_FRAME_RETURN_COLUMN): Move.
1291 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1292 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1293 * pa.c (except.h, predict.h): Include.
1295 (store_reg_modify, set_reg_plus_d): Revise prototypes.
1296 (output_ascii): Add cast.
1297 (store_reg_modify): Revise to add frame notes.
1298 (set_reg_plus_d): Likewise.
1299 (compute_frame_size): Include space for eh data registers in frame if
1300 the current function calls eh_return.
1301 (hppa_expand_prologue): Ensure register %r2 is saved if the current
1302 function calls eh_return. Save eh data registers if the current
1303 function calls eh_return. Fix code to add frame notes. Emit
1304 blockage to prevent insns with frame notes being scheduled in the
1305 delay slot of calls.
1306 (hppa_expand_epilogue): Restore eh data registers and do final stack
1307 adjustment if the current function calls eh_return. Don't add frame
1309 (output_call): Revise for change in length of call insn. Don't do
1310 return pointer adjustment for an unconditional jump in the delay slot
1311 of a call when using frame notes.
1312 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1313 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1314 (ARG_POINTER_CFA_OFFSET): Define.
1315 * pa.md (return_external_pic): New pattern.
1316 (prologue): Correct formatting. Use return_external_pic if current
1317 function calls eh_return.
1318 (call_internal_symref, call_value_internal_symref,
1319 sibcall_internal_symref, sibcall_value_internal_symref): Change default
1320 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1322 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1324 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1325 list of targets to check using "nop" insn.
1326 * configure: Rebuilt.
1328 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1330 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1332 2002-04-03 David S. Miller <davem@redhat.com>
1334 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1335 library sequence passed to the linker.
1336 (LINK_COMMAND_SPEC): Use it.
1337 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1338 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1339 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1341 2002-04-03 Jason Merrill <jason@redhat.com>
1343 * except.c (struct eh_status): Remove protect_list.
1344 (begin_protect_partials, end_protect_partials): Remove.
1345 (add_partial_entry): Remove.
1346 * except.h: Remove prototypes.
1348 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1349 expand_decl_cleanup_eh.
1352 * tree.h (CLEANUP_EH_ONLY): New macro.
1353 * stmt.c (expand_decl_cleanup_eh): New fn.
1354 (expand_cleanups): Check CLEANUP_EH_ONLY.
1355 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1356 Use expand_decl_cleanup_eh.
1357 (expand_stmt): Adjust.
1358 * c-common.h: Adjust prototype.
1360 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
1362 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1363 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1364 (cris_target_asm_function_epilogue): Ditto.
1365 (cris_initial_frame_pointer_offset): Ditto.
1366 (cris_simple_epilogue): Ditto.
1367 (cris_expand_builtin_va_arg): Variable-size types come in
1370 2002-04-03 David S. Miller <davem@redhat.com>
1372 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1374 (set_fast_math): Correct 'fsr' type.
1376 2002-04-03 Richard Henderson <rth@redhat.com>
1379 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1380 * toplev.c (check_global_declarations): Use it.
1381 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1382 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1383 (LANG_HOOKS_DECLS): Add it.
1384 * langhooks.c (lhd_warn_unused_global_decl): New.
1385 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1386 * c-objc-common.c (c_warn_unused_global_decl): New.
1387 * c-tree.h (c_warn_unused_global_decl): Declare.
1388 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1390 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
1392 * langhooks-def.h (lhd_set_decl_assembler_name,
1393 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1394 (LANG_HOOKS_INITIALIZER): Update.
1395 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1396 * langhooks.h (struct lang_hooks): New hook.
1397 * tree.c (set_decl_assembler_name): Move to langhooks.c.
1398 (lang_set_decl_assembler_name): Remove.
1399 (init_obstacks): Don't set hook.
1400 (decl_assembler_name): New function.
1401 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1402 (decl_assembler_name): New.
1403 (lang_set_decl_assembler_name): Remove.
1405 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1407 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1408 works properly with .hidden symbols.
1409 * configure: Rebuilt.
1410 * config.in: Rebuilt.
1411 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1412 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1413 properly with .hidden symbols.
1415 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1418 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1421 2002-04-03 Richard Henderson <rth@redhat.com>
1424 * sched-rgn.c (sets_likely_spilled): New.
1425 (sets_likely_spilled_1): New.
1426 (add_branch_dependences): Use it.
1428 2002-04-02 Richard Henderson <rth@redhat.com>
1431 * loop.h (LOOP_FIRST_PASS): New.
1432 * loop.c (strength_reduce): Mind it when deciding to unroll.
1433 * toplev.c (rest_of_compilation): Set it.
1435 2002-04-02 David S. Miller <davem@redhat.com>
1437 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1438 mems_ok_for_ldd_peep when the order of the loads being examined
1440 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1441 existing comment to increase comprehension of this situation.
1443 2002-04-02 Zack Weinberg <zack@codesourcery.com>
1445 * config/sh/sh.md: Don't use union real_extract.
1447 2002-04-02 Richard Henderson <rth@redhat.com>
1449 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1451 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1453 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1454 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1455 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1456 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1457 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1458 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1459 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1460 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1461 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1462 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1463 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1464 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1465 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1466 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1467 Include as many configury headers via tm_file as possible. This
1468 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1469 * config/openbsd-oldgas.h: New file.
1470 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1471 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1472 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1473 config/i386/i386-coff.h, config/i386/i386-interix.h,
1474 config/i386/iscdbx.h, config/i386/linux-aout.h,
1475 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1476 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1477 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1478 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1479 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1480 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1481 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1482 config/i386/vxi386.h: Do not directly include configury headers.
1483 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1484 Directly include configury headers that are no longer automatically
1485 included by the above headers.
1486 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1487 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1488 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1489 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1490 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1491 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1492 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1493 (TARGET_VERSION): Define.
1494 * config/i386/beos-elf.h, config/i386/freebsd.h,
1495 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1496 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1497 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1498 config/i386/sco5.h, config/i386/sysv4.h
1499 (TARGET_VERSION): Do not need to protect.
1500 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1501 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1502 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1503 config/i386/i386-interix.h, config/i386/linux-aout.h,
1504 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1505 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1506 (YES_UNDERSCORES): Do not define - not needed.
1507 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1508 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1509 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1510 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1511 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1512 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1513 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1514 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1516 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
1517 Richard Henderson <rth@redhat.com>
1520 * function.c (assign_temp): Accept either type or decl argument.
1521 Detect variables whose size is too large to fit into an integer.
1522 * stmt.c (expand_decl): Pass the decl, not the type.
1524 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1526 * protoize.c: Match include directory usage with cppdefault.c.
1528 2002-04-03 Jeffrey A Law (law@redhat.com)
1529 Hans-Peter Nilsson <hp@bitrange.com>
1531 * combine.c (simplify_comparison): Avoid narrowing a comparison
1532 with a paradoxical subreg when doing so would drop signficant bits.
1534 2002-04-02 Steve Ellcey <sje@cup.hp.com>
1536 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1537 if POINTERS_EXTEND_UNSIGNED is defined.
1539 2002-04-02 Richard Henderson <rth@redhat.com>
1542 * local-alloc.c (contains_replace_regs): LO_SUM may contain
1545 2002-04-02 Richard Henderson <rth@redhat.com>
1547 * doc/standards.texi: Document required freestanding libc entry points.
1549 2002-04-02 Alan Modra <amodra@bigpond.net.au>
1551 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1552 associated splitter. Remove MQ constraint.
1553 (ctrdi_internal4): Correct CCmode clobber.
1555 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1557 * milli64.S ($$dyncall): New function.
1558 * t-linux (LIB1ASMFUNCS): Revise module list.
1559 (LIB1ASMSRC): Use pa/milli64.S.
1561 2002-04-02 Richard Henderson <rth@redhat.com>
1563 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1564 rename solaris_sys_varargs_h.
1566 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1568 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1569 the same mode as its component.
1571 2002-04-02 Richard Henderson <rth@redhat.com>
1574 * final.c (this_is_asm_operands): Export.
1575 * output.h (this_is_asm_operands): Declare.
1576 * config/i386/i386.c (print_operand): Error odd asm operands.
1578 2002-04-02 Richard Henderson <rth@redhat.com>
1581 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1583 2002-04-01 Richard Henderson <rth@redhat.com>
1586 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1587 * fixinc/fixincl.x: Rebuild.
1589 2002-04-01 Richard Henderson <rth@redhat.com>
1591 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1592 (atomic_alloc, atomic_free): New.
1593 (SIZE, MASK_FOR, PTR_IN): New.
1594 (emergency_reg_state, emergency_reg_state_free): New.
1595 (emergency_labeled_state, emergency_labeled_state_free): New.
1596 (reg_state_alloced, labeled_state_alloced): New.
1597 (alloc_reg_state, free_reg_state): New.
1598 (alloc_label_state, free_label_state, free_label_states): New.
1599 (push, pop, dup_state_stack, free_state_stack): Use them.
1600 (desc_label_state): Likewise.
1601 (uw_frame_state_for): Free label states and state stack.
1602 (uw_update_reg_address): Eliminate warnings.
1604 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
1606 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1607 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1609 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1611 * c-decl.c (grokdeclarator): Update.
1612 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1613 * c-tree.h (c_mark_addressable): New.
1614 * c-typeck.c (default_function_array_conversion, build_unary_op,
1615 build_array_ref, convert_for_assignment): Update.
1616 (mark_addressable): Rename.
1617 * calls.c (try_to_integrate, expand_call): Use langhook.
1618 * expr.c (expand_expr): Use langhook.
1619 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1620 * langhooks.h (struct lang_hooks): New hook.
1621 * stmt.c (expand_asm_operands): Use langhook.
1622 * tree.h (mark_addressable): Remove.
1624 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1626 2002-04-01 Bob Wilson <bob.wilson@acm.org>
1628 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1631 2002-04-01 Bob Wilson <bob.wilson@acm.org>
1633 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1634 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1636 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1638 * c-common.c (unsigned_conversion_warning, convert_and_check,
1639 unsigned_type, signed_type, shorten_compare,
1640 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1641 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1642 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1644 * c-decl.c (grokdeclarator): Update.
1645 * c-format.c (check_format_types): Update.
1646 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1647 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1648 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1649 * convert.c (convert_to_integer): Use new hooks.
1650 * expmed.c (make_tree): Use new hooks.
1651 * expr.c (store_expr): Use new hooks.
1652 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1653 all_ones_mask_p, unextend, fold): Use new hooks.
1654 * langhooks.h (struct lang_hooks_for_types): New hooks.
1655 * tree.h (signed_or_unsigned_type, signed_type,
1656 unsigned_type): Remove.
1658 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1659 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1661 2002-03-31 Richard Henderson <rth@redhat.com>
1663 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1664 (desc_frgr_mem): Fix reference to f16-f31.
1666 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1668 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1669 RTVEC_ELT): Const-ify.
1670 * varray.h (VARRAY_CHECK): Const-ify.
1671 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1672 ggc_mark_rtvec, ggc_mark): Const-ify.
1674 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1676 * diagnostic.c: Include langhooks-def.h.
1677 * Makefile.in (diagnostic.o): Update.
1679 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1681 * c-common.c (c_unsafe_for_reeval): Rename.
1682 * c-common.h (c_unsafe_for_reeval): Rename.
1683 * c-decl.c (finish_incomplete_decl): Rename.
1684 (c_init_decl_processing): Don't set langhook.
1685 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1686 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1687 * c-objc-common.c (c_objc_common_init): Don't set langhook.
1688 * c-tree.h (finish_incomplete_decl): Rename.
1689 * langhooks-def.h (lhd_unsafe_for_reeval): New.
1690 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1691 (LANG_HOOKS_INITIALIZER): Update.
1692 * langhooks.c (lhd_unsafe_For_reeval): New.
1693 * langhooks.h (struct langhooks): New hooks.
1694 * toplev.c (incomplete_decl_finalize_hook): Remove.
1695 (wrapup_global_declarations): Update.
1696 * tree.c (lang_unsafe_for_reeval): Remove.
1697 (unsafe_for_reeval): Update.
1698 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1701 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1702 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1704 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1706 * diagnostic.c (print_error_function): Remove.
1707 (default_print_error_function): Rename.
1708 (report_error_function): Update.
1709 * diagnostic.h (print_error_function): Remove.
1710 (default_print_error_function): Remove.
1711 * langhooks-def.h (struct diagnostic_context): Predeclare.
1712 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1713 (LANG_HOOKS_INITIALIZER): Update.
1714 * langhooks.h (struct diagnostic context): Predeclare.
1715 (struct lang_hooks): New hook.
1717 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1719 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1720 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1722 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1723 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1724 of PIC_OFFSET_TABLE_REGNUM thruout.
1725 * config/rs6000/rs6000.md: Likewise.
1726 * config/rs6000/darwin.h: Likewise.
1728 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1730 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1731 unsigned HOST_WIDE_INT, not unsigned int.
1733 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1735 PR middle-end/6096, middle-end/6098, middle-end/6099
1736 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1738 (fill_slots_from_thread): Likewise.
1740 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1742 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1743 floating fields in float regs.
1744 (function_arg_record_value_2): Likewise.
1746 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1748 * config/mmix/mmix.md (define_constants): Remove misleading
1749 FIXME. Add MMIX_fp_rO_OFFSET.
1750 ("nonlocal_goto_receiver"): Don't have stack-frame address of
1751 saved rO as part of the pattern. Remove FIXME.
1752 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
1753 here, at output-time.
1755 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1758 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1760 (output_v9branch): Likewise.
1762 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
1764 * gcc.c: Revert previous patch for now.
1765 * config/i386/djgpp.h: Likewise.
1767 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1769 * config/mmix/crti.asm (_init): Register _fini with atexit.
1770 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1772 2002-03-31 Richard Henderson <rth@redhat.com>
1775 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1776 (ASM_OUTPUT_DEF_FROM_DECLS): New.
1778 2002-03-31 Richard Henderson <rth@redhat.com>
1780 * libgcc2.c (__bb_exit_func): Make static.
1782 * config/alpha/alpha.md (trap): New.
1784 2002-03-31 Richard Henderson <rth@redhat.com>
1786 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1787 promoted argument types; build trap.
1788 (expand_builtin_trap): New.
1789 (expand_builtin): Use it.
1790 * stmt.c (expand_nl_goto_receivers): Likewise.
1791 * expr.h (expand_builtin_trap): Declare.
1792 * libfuncs.h (LTI_abort, abort_libfunc): New.
1793 * optabs.c (init_optabs): Init abort_libfunc.
1795 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
1797 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1798 (LINK_COMMAND_SPEC): ... from here.
1799 (init_gcc_specs): Duplicate it here too, omitting
1800 shared_name in the second copy.
1801 (init_spec): Test for duplicate
1802 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1804 2002-03-30 David S. Miller <davem@redhat.com>
1806 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1807 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1809 2002-03-30 Roger Sayle <roger@eyesopen.com>
1810 Richard Henderson <rth@redhat.com>
1812 * regmove.c (combine_stack_adjustments_for_block): Avoid
1813 emitting a stack adjustment of zero bytes. Let delete_insn
1816 2002-03-30 Richard Henderson <rth@redhat.com>
1818 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1819 (sparc_emitting_epilogue): New.
1820 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1821 * config/sparc/sparc-protos.h: Update.
1822 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1823 (TARGET_SWITCHES): Update.
1824 * config/sparc/sparc.md (return): Remove.
1825 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1826 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1827 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1828 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1829 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1830 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1831 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1832 Remove MASK_EPILOGUE.
1833 * doc/invoke.texi: Update.
1835 2002-03-30 Daniel Berlin <dan@dberlin.org>
1837 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1838 CPP will start the file for us.
1840 2002-03-30 Richard Henderson <rth@redhat.com>
1843 * config/ia64/ia64.c (group_barrier_needed_p): Special case
1844 prologue_allocate_stack.
1845 (ia64_single_set): Use insn codes for recognition of special
1846 cases, not rtl matching.
1847 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1849 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
1851 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1853 2002-03-30 Richard Henderson <rth@redhat.com>
1856 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1857 or -fomit-frame-pointer with profiling.
1858 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1859 (FUNCTION_PROFILER): Do nothing.
1860 (PROFILE_HOOK): New.
1861 * config/sparc/sparc.c (sparc_override_options): Don't check
1862 code models for profiling.
1863 (sparc_function_profiler): Remove.
1864 (sparc_profile_hook): New.
1865 * config/sparc/sparc-protos.h: Update.
1867 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1869 PR optimization/6086
1870 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1871 of SUBREG of volatile MEM or because the MEM was mode dependent,
1872 return CLOBBER instead of unmodified SUBREG.
1874 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1876 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1877 when not optimizing.
1879 * toplev.c (rest_of_compilation): Cann mark_constant_function
1880 only when optimizing.
1882 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1885 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1886 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1887 (try_optimize_cfg): clear all AUX fields.
1889 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1890 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1891 (ix86_address_cost): Be prepared for SUBREGed registers.
1892 (legitimate_address_p): Accept SUBREGed registers.
1894 2002-03-29 Richard Henderson <rth@redhat.com>
1897 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1899 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1901 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1902 for aggregate and TFmode types.
1904 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1906 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1908 2002-03-29 Richard Henderson <rth@redhat.com>
1911 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1912 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1914 2002-03-29 Richard Henderson <rth@redhat.com>
1917 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1918 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1919 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1920 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1922 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1924 2002-03-29 Dale Johannesen <dalej@apple.com>
1926 * loop.c (combine_movables): Do allow combination of pseudos.
1928 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
1930 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1931 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1932 No functional change except ...
1933 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
1934 * doc/install.texi (*-*-freebsd*): Document port configuration.
1936 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1938 * Makefile.in (convert.o, calls.o, expmed.o): Update.
1939 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1941 * builtin-types.def (BT_PTRMODE): Update.
1942 * c-common.c (type_for_size): Rename c_common_type_for_size.
1943 (type_for_mode): Similarly.
1944 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1946 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1947 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1948 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1950 * c-typeck.c (common_type, comptypes, default_conversion):
1952 * calls.c: Include langhooks.h.
1953 (emit_library_call_value_1): Use new hooks. Avoid redundant
1955 * convert.c: Include langhooks.h
1956 (convert_to_pointer, convert_to_integer): Use new hooks.
1957 * except.c (init_eh): Similarly.
1958 * expmed.c: Include langhooks.h.
1959 (expand_mult_add): Use new hooks.
1960 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1961 try_casesi): Similarly.
1962 * fold-const.c (optimize_bit_field_compare, make_range,
1963 decode_field_reference, fold_truthop, fold): Similarly.
1964 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1965 put_var_into_stack): Similarly.
1966 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1967 LANG_HOOKS_TYPE_FOR_SIZE): New.
1968 (LANG_HOOKS_TYPES_INITIALIZER): Update.
1969 * langhooks.h (lang_hooks_for_types): New hooks.
1970 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1971 * tree.c (get_unwidened, get_narrower): Similarly.
1972 * tree.h (type_for_mode, type_for_size): Remove.
1973 * varasm.c (force_const_mem): Use new hooks.
1974 * utils2.c (nonbinary_modular_operation): Update.
1976 * objc-act.c (handle_impent): Update.
1977 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1980 2002-03-29 Steve Ellcey <sje@cup.hp.com>
1982 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1983 * config/ia64/ia64.c (basereg_operand): New.
1984 * config/ia64/ia64-protos.h (basereg_operand): Declare.
1985 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1987 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1989 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1990 unwind information when frame_pointer_needed.
1991 (mmix_assemble_integer): Tweak wording in comment.
1993 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1995 * Makefile.in (except.o): Update.
1996 * except.c: Include langhooks.h.
1997 (init_eh): Use langhook.
1998 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1999 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
2000 (LANG_HOOKS_INITIALIZER): Update.
2001 * langhooks.h (lang_hooks_for_types): New.
2002 (struct lang_hooks): Add it.
2003 * tree.c (make_lang_type_fn, make_lang_type): Remove.
2004 * tree.h (make_lang_type_fn, make_lang_type): Remove.
2006 * alpha/alpha.c: Include langhooks.h.
2007 (alpha_build_va_list): Use langhook.
2008 * d30v/d30v.c: Include langhooks.h.
2009 (d30v_build_va_list): Use langhook.
2010 * i386/i386.c: Include langhooks.h.
2011 (ix86_build_va_list): Use langhook.
2012 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
2013 * s390/s390.c: Include langhooks.h.
2014 (s390_build_va_list): Use langhook.
2015 * stormy16/stormy16.c: Include langhooks.h.
2016 (stormy16_build_va_list): Use langhook.
2018 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2021 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
2023 (length): Compute variable length for branches/calls/jumps here.
2024 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
2025 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
2026 define branch_type attribute.
2027 (divsi3_sp32): Maximum length is 6 not 7.
2028 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
2029 call_address_untyped_struct_value_sp32,
2030 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
2031 * config/sparc/sparc.c (empty_delay_slot): New function.
2032 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
2033 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
2035 2002-03-29 Jakub Jelinek <jakub@redhat.com>
2037 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
2038 nonzero_bits if not needed.
2039 (nonzero_bits) [XOR]: Likewise.
2040 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
2041 reg_last_set_mode and mode are both MODE_INT, but not equal.
2042 (record_value_for_reg): Compute reg_last_set_nonzero_bits
2043 in nonzero_bits_mode for MODE_INT modes.
2045 2002-03-28 Richard Henderson <rth@redhat.com>
2048 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
2049 to GAS. Correct drift between alternatives.
2051 2002-03-28 Richard Henderson <rth@redhat.com>
2054 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
2056 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
2058 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
2059 emulation to the linker.
2061 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
2063 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
2064 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
2066 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
2068 * combine.c (simplify_and_const_int): Make sure to apply mask
2069 when force_to_mode returns a constant integer. PR3311.
2071 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
2073 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
2075 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2077 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
2078 and Objective-C Dialect Options.
2080 2002-03-28 Richard Henderson <rth@redhat.com>
2082 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
2083 comparison should be done vs !=0 not >0 return code. Tidy cases.
2085 2002-03-28 Richard Henderson <rth@redhat.com>
2087 * c-decl.c (finish_function): New arg can_defer_p. Pass it
2088 on to c_expand_body.
2089 * c-tree.h (finish_function): Update decl.
2090 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
2092 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
2094 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
2096 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
2098 * rtlanal.c: Include flags.h
2099 (may_trap_p): Do not mark FP operations if trapping
2100 if !flag_trapping_math
2101 * Makefile.in (rtlanal.o): Add dependency on flag.h
2102 * ifcvt.c (noce_operand_ok): Avoid the lameness.
2104 2002-03-27 Zack Weinberg <zack@codesourcery.com>
2106 * mips.md: Use dconst1, not 1.0, as first argument of
2107 REAL_VALUE_LDEXP. Don't use union real_extract.
2109 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2111 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
2112 rather than $target. Heed program_prefix and
2113 program_transform_name. Search for gas in cross-compiler case too.
2114 "test -x" rather than "test -f".
2115 (gcc_cv_ld): Likewise.
2116 (gcc_cv_nm): Heed program_prefix and program_transform_name.
2117 (gcc_cv_objdump): Likewise.
2118 * configure: Regenerate.
2120 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2122 * Makefile.in (attribs.o): Update.
2123 * attribs.c: Include langhooks.h.
2124 (decl_attributes): Use langhook.
2125 * c-decl.c (insert_default_attributes): Rename.
2126 * c-tree.h (c_insert_default_attributes): New.
2127 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
2128 (LANG_HOOKS_INITIALIZER): Update.
2129 * langhooks.h (struct lang_hooks): New hook.
2130 * tree.h (insert_default_attributes): Remove.
2132 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
2134 2002-03-27 Andreas Schwab <schwab@suse.de>
2136 * config/i386/i386.c (classify_argument): Also check for
2139 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2141 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
2144 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
2146 * i960.md (ret): Set PC.
2147 (nonlocal_goto): Fix expander.
2148 * builtins.c (epxand_builin_longjmp): Check that we've emitted
2151 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
2153 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
2156 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2158 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
2159 assigning to BLOCK_FOR_INSN directly.
2161 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
2163 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
2165 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2167 * c-common.c (c_expand_expr): Fix prototype.
2168 * c-common.h (c_expand_expr): Always declare, update.
2169 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2170 * c-objc-common.c (c_objc_common_init): No global hook.
2171 * expr.c (expand_expr): Use langhook.
2172 * expr.h (enum expand_modifier): Conditionally declare.
2173 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
2174 (LANG_HOOKS_INITIALIZER): Update.
2175 * langhooks.c (lhd_expand_expr): New.
2176 * langhooks.h (struct lang_hooks): New hook.
2177 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
2178 (lang_independent_init): Don't default hook.
2180 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
2182 2002-03-27 Richard Henderson <rth@redhat.com>
2185 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
2186 TARGET_CONST_GP. Simplify conditions.
2188 2002-03-27 Richard Henderson <rth@redhat.com>
2190 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
2191 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
2192 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2194 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
2196 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2197 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2198 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2199 Remove unnecessary masks.
2200 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2201 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2202 -mwindows, -mdll switches and their negations.
2204 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2206 * gcc-common.c (lang_mark_false_label_stack): Remove.
2207 * ggc.h (lang_mark_false_label_stack): Similarly.
2209 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
2211 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2213 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2214 or __rtems_ is defined.
2216 2002-03-26 Richard Henderson <rth@redhat.com>
2218 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2219 if a non-trivial load was emitted.
2220 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
2221 in high+extra+low case.
2223 2002-03-26 Richard Henderson <rth@redhat.com>
2225 * config.gcc (sparc*-solaris): Use float_format=sparc.
2227 2002-03-26 Richard Henderson <rth@redhat.com>
2229 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2230 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2231 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2232 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2233 (WINT_TYPE_SIZE): Fix at 32.
2235 2002-03-26 Richard Henderson <rth@redhat.com>
2237 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2238 until after eh landing pad generation.
2239 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2240 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2242 2002-03-26 Richard Henderson <rth@redhat.com>
2244 * expr.h (ADD_PARM_SIZE): One more convert for INC.
2246 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
2248 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
2249 and warning switches.
2250 (cc1_options): Likewise.
2252 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
2254 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2255 Restore more of the signal context. Set no_reg_stack_frame.
2256 * config/ia64/unwind-ia64.c (unw_state_record):
2257 Add no_reg_stack_frame, comments.
2258 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2259 (uw_update_context): Adjust bsp when unwinding from leaf,
2260 but not signal frame.
2262 2002-03-26 David Edelsohn <edelsohn@gnu.org>
2264 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2266 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2268 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2270 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2273 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2274 "Add a pool_range attribute", which was lost during the ARM/Thumb
2277 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2279 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2280 a register into the MAC16 accumulator.
2282 2002-03-26 Andrew Cagney <ac131313@redhat.com>
2284 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2285 (Warning Options): Document -Wswitch-enum.
2286 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
2288 (warn_switch_enum): Define variables.
2289 * flags.h (warn_switch_enum): Declare variables.
2290 * stmt.c (expand_end_case_type): When warn_switch_enum /
2291 -Wswitch-enum, perform switch checks.
2294 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2296 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2297 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2298 (reload_muladdsi_compare0_scratch): Delete.
2300 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
2302 * doc/install.texi (*-*-freebsd*): Update.
2304 2002-03-26 Richard Henderson <rth@redhat.com>
2306 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2307 (SUB_PARM_SIZE): Cast DEC to ssizetype.
2309 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2310 types from the normal argument frame.
2312 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2313 variable sized objects by reference.
2314 (sparc_va_arg): Receive them by reference too.
2316 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
2318 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2319 code to not restoring global registers.
2321 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
2323 * Makefile.in (ggc-common.o): Update.
2324 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2325 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2326 * c-tree.h (c_mark_tree): New.
2327 * ggc-common.c: Include langhooks.h.
2328 (gcc_mark_trees): Use new langhook.
2329 * ggc-callbacks.c: Delete file.
2330 * ggc.h (lang_mark_tree): Remove.
2331 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2332 (LANG_HOOKS_INITIALIZER): Update.
2333 * langhooks.h (struct lang_hooks): New hook.
2335 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2337 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2339 * doc/cpp.texi: Exclude entire Top node from printed manual.
2340 Move option index after directive index. Insert page breaks
2341 before GFDL and concept index. Index environment variables
2342 with command line options.
2343 * doc/cppenv.texi: Use @vtable for environment variable list.
2344 Add paragraph explaining semantics of empty elements in path
2345 variables. Exclude a cross-reference to Fishkill from the
2346 manpage. Remove an unnecessary cross-reference of the entry
2347 right above the referer. Don't use @anchor in text that goes
2349 * doc/cppopts.texi: Cross-reference the environment variables
2350 section, not the specific environment variable, for consistency.
2352 2002-03-25 Richard Henderson <rth@redhat.com>
2354 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2355 anywhere in the block. Don't refer to insns that have been
2356 removed from the chain. Iterate backward through the new insns.
2357 Don't refer to edges that have been removed.
2359 2002-03-26 Alan Modra <amodra@bigpond.net.au>
2361 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2362 test for overflow of constant.
2364 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
2367 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2368 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2369 these patterns on arm_archv4.
2371 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
2373 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2376 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2378 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
2379 float_handled, float_handler, float_signal, set_float_handler,
2380 and do_float_handler. Set handler for SIGFPE to crash_signal.
2381 * toplev.h: Don't prototype do_float_handler.
2383 * c-lex.c: Fold parse_float into lex_number. Make warning
2384 about portability of hex float constants more informative, and
2385 don't issue it on top of a syntax error.
2386 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2388 * real.h: Define REAL_VALUE_ABS here...
2389 * simplify-rtx.c: ... not here. Fold check_fold_consts,
2390 simplify_unary_real, simplify_binary_real, and
2391 simplify_binary_is2orm1 into their callers.
2392 * tree.c: Fold build_real_from_int_cst_1 into caller.
2394 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2396 * tsystem.h: Include float.h here...
2397 * libgcc2.c: ... not here.
2399 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
2401 Fixes for: PR bootstrap/3591, target/5676
2402 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2403 defined. Do not disable exceptions or rtti.
2404 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2405 mcore.h. Disable exceptions and rtti, since they are not
2408 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
2410 * c-decl.c (maybe_build_cleanup): Remove.
2411 * expr.c (expand_expr): Use langhook.
2412 * langhooks-def.h (lhd_return_null_tree,
2413 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2414 (LANGHOOKS_INITIALIZER): Update.
2415 * langhooks.c (lhd_return_null_tree): New.
2416 * langhooks.h (struct lang_hooks): New hook.
2417 * tree-inline.c (initialize_inlined_parameters): Use langhook.
2418 * tree.h (maybe_build_cleanup): Remove.
2420 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2422 * regrename.c (build_def_use): Move recog_memoized
2423 before extract_insn.
2425 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2428 * expr.c (emit_group_store): Handle storing into CONCAT.
2430 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2432 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2433 corresponding MATCH_DUP.
2435 2002-03-24 Richard Henderson <rth@redhat.com>
2437 * unroll.c (unroll_loop): Zero label_map.
2439 * gcse.c: Include except.h.
2440 * Makefile.in (gcse.o): Update.
2442 2002-03-24 Richard Henderson <rth@redhat.com>
2444 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2445 Do resolve_unique_section before shared data clause.
2447 2002-03-24 Richard Henderson <rth@redhat.com>
2449 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2451 2002-03-24 Richard Henderson <rth@redhat.com>
2453 * recog.c (peephole2_optimize): Split blocks when EH insns are
2454 generated in the middle of a block. Do global life update if
2457 2002-03-24 Richard Henderson <rth@redhat.com>
2459 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2461 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2464 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2465 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2466 (init_dependency_output): Don't make no_output decision here.
2468 2002-03-24 Andrew Cagney <ac131313@redhat.com>
2470 * stmt.c (check_for_full_enumeration_handling): Remove tests of
2471 warn_switch. Update description.
2472 (expand_end_case_type): Call check_for_full_enumeration_handling
2475 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2477 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2478 (m68hc11_split_move): Call it to see if the source and destination
2479 operands use the same direction auto inc/dec mode, otherwise make the
2480 source an offsetable memory operand and generate an add.
2482 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2484 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2485 register for operand 2.
2486 ("*subsi3_zero_extendqi"): Likewise.
2487 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2488 bits so that it is compatible with a pop.
2489 ("*andhi3_gen"): Likewise.
2490 ("xorhi3"): Likewise.
2492 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2494 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2496 (cpp_post_options): ... not here.
2498 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2499 Aldy Hernandez <aldyh@redhat.com>
2501 Removal of separate preprocessor cpp0.
2503 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2504 cpp0, install-common): Update.
2505 * c-common.c (flag_preprocess_only): New.
2506 (c_common_init): Preprocess for -E.
2507 * c-common.h (flag_preprocess_only): New.
2508 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2509 * c-objc-common.c (c_init_decl_processing): Exit quickly
2510 for NULL return from c_common_init.
2511 * cpplib.h (cpp_preprocess_file): New.
2512 * cppmain.c (main, general_init, pfile, progname): Remove.
2513 (do_preprocessing): Rename cpp_preprocess_file, don't call
2514 cpp_finish. Don't close stdout here.
2515 (setup_callbacks): Update prototype.
2516 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2518 * tradcpp.c (main): Ignore -quiet.
2520 * lang-specs.h (default_compilers): Preprocess with cc1obj.
2522 2002-03-24 Richard Henderson <rth@redhat.com>
2524 PR optimization/5742
2525 * machmode.def: Add inner mode field to complex modes.
2526 * config/mips/mips.c (mips_function_value): Always define. Add
2527 new argument to handle libcalls.
2528 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2529 (FUNCTION_VALUE): Likewise.
2530 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2531 * config/mips/mips-protos.h: Update.
2533 2002-03-23 Richard Henderson <rth@redhat.com>
2535 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2536 * config/sparc/sparc-protos.h: Update.
2537 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2539 2002-03-23 Richard Henderson <rth@redhat.com>
2541 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2542 _start or _init begins the text segment.
2544 2002-03-23 David Edelsohn <edelsohn@gnu.org>
2546 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
2547 not HOST_WIDEST_INT.
2548 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2550 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
2553 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2554 operand argument to output_return_instruction.
2555 * arm.c (arm_print_operand, case 'd'): If the operand is
2556 const_true_rtx then just return.
2557 (arm_print_operand, case 'D'): If the operand is const_true_rtx
2560 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2562 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2563 (Warning Options): Document -Wswitch-default.
2564 * toplev.c (W_options): Add -Wswitch-default. Update comment on
2566 (warn_switch_default): Define variable.
2567 (warn_switch): Update comment.
2568 * flags.h (warn_switch_default): Declare variable.
2569 (warn_switch): Update comment.
2570 * stmt.c (expand_end_case): Check for and, when
2571 warn_switch_no_default, warn of a missing default case.
2573 2002-03-23 Alan Modra <amodra@bigpond.net.au>
2575 * real.h (N): Special case 128 bit doubles.
2577 * combine.c (simplify_comparison): When widening modes, ignore
2578 sign extension on CONST_INTs.
2580 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2582 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2583 passed to adjust_address. Fix comment formatting.
2586 2002-03-22 Zack Weinberg <zack@codesourcery.com>
2588 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2589 Always make REAL_VALUE_TYPE a struct containing an array of
2590 HOST_WIDE_INT, not a double. Tidy up the code deciding how
2591 big it is. Don't declare or use union real_extract.
2593 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2594 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2595 (print_operand), config/arm/arm.c (output_move_double),
2596 config/arm/arm.md (consttable_4, consttable_8),
2597 config/romp/romp.c (output_fpops), config/s390/s390.h
2598 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2599 (xtensa_output_literal): Don't use union real_extract.
2601 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2602 (sfmode_constant_to_ulong), config/ns32k/merlin.h
2603 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2604 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2605 (PRINT_OPERAND): Don't use local version of union
2608 * config/convex/convex.c (check_float_value), config/vax/vax.c
2609 (vax_float_literal), config/m88k/m88k.md (divdf3),
2610 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2611 config/pdp11/pdp11.c (output_move_quad): Don't do host
2612 arithmetic on target floating point quantities.
2614 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2615 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2617 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2618 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2620 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2621 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2623 * print-rtl.c (print_rtx): Disable code which needs
2624 floating-point emulator.
2625 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2626 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2627 depending on HOST_FLOAT_FORMAT to be defined properly.
2629 * config/1750a/1750a.c (get_double, float_label): Delete.
2630 (print_operand): Delete huge commented-out chunk. Use
2631 REAL_VALUE_TO_DECIMAL.
2632 * config/1750a/1750a-protos.h: Delete prototypes of deleted
2634 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2636 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2637 Use REAL_VALUE_TO_DECIMAL as ELF version does.
2638 * config/m88k/m88k.c (real_power_of_2_operand,
2639 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2640 real_extract out of the union; run the input through
2641 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2642 from that into the union.
2643 * config/pdp11/pdp11.c (output_move_double): Rearrange
2644 parentheses to make automatic indenter happy.
2646 * doc/tm.texi (Cross-compilation): Rename node to "Floating
2647 Point" and rewrite to describe current situation. Also adjust
2648 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2650 * doc/rtl.texi: Adjust cross reference.
2652 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2654 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2655 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2656 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2657 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2658 prevent use of sp as a reload register.
2659 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2660 non_acc_reg_operand.
2661 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2662 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2663 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2664 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2666 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2668 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2669 * cpplex.c (unterminated): Delete.
2670 (parse_string): No string literal may extend over multiple
2671 lines. Suppress the error when preprocessing assembly.
2672 * cppmain.c (scan_translation_unit): Strings are single-line.
2674 * doc/cpp.texi: Update to match.
2676 2002-03-22 Jakub Jelinek <jakub@redhat.com>
2678 PR optimization/5854
2679 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2681 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2682 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2683 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2684 const0 if scratch register was not allocated.
2685 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2686 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2688 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2689 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2690 with GEN_INT (...) everywhere. Remove constraints in define_split
2692 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2693 require scratch register for setting 0 into regs/non-pushable memory.
2695 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
2697 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2698 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2700 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
2702 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
2703 * cppinit.c (cpp_create_reader): On by default.
2704 (cpp_handle_option): Handle -W[no-]endif-labels.
2705 (cpp_post_options): Also enable if -pedantic.
2706 * cpplib.c (do_else): Use it.
2707 (do_endif): Likewise.
2708 * doc/cppopts.texi: Document new option.
2709 * doc/invoke.texi: Document new option.
2711 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
2713 * config/i386/i386.c, config/i386/i386.md: Change all occurences
2714 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2716 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
2718 * flow.c (calculate_global_regs_live): Clear aux fields of
2721 2002-03-22 Jakub Jelinek <jakub@redhat.com>
2723 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2724 REG or MEM subregs, pass rtx * instead of rtx to it.
2725 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2726 rtx * instead of rtx to alter_subreg.
2727 * config/m32r/m32r.c (gen_split_move_double): Likewise.
2728 * config/pj/pj.c (pj_output_rval): Likewise.
2730 2002-03-22 Richard Henderson <rth@redhat.com>
2733 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2734 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2735 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2736 (ia64_expand_prologue): Look at int_regs, not words, for number
2737 of incomming int regs.
2739 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
2741 * expr.c (expand_expr): A RESULT_DECL is part of a call.
2743 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
2745 * toplev.c (flag_loop_optimize, flag_crossjumping):
2746 New static variables.
2747 (rest_of_compilation): Conditionalize crossjumping and
2749 (parse_options_and_default_flags): Default loop_optimize and
2751 (lang_independent_options): Add -fcrossjumping and -floop-optimize
2752 * invoke.texi (crossjumping, loop-optimize): Document.
2754 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2756 * real.c (eiisneg): Move outside #ifdef NANS.
2758 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
2760 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2761 frequencies match; avoid match on different loop depths.
2762 (try_crossjump_to_bb): Kill tests that no longer brings time
2764 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2766 (split_edge): Likewise.
2768 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2771 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2772 * cfgrtl.c: Include insn-config.h
2773 (split_block) Dirtify block in presence of conditional execution
2775 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2777 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2778 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2779 (function_arg): Constify CUMULATIVE_ARGS.
2780 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2781 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2782 (UNITS_PER_DOUBLE): New macro.
2783 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
2784 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
2785 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
2786 fp_regs and stack_words.
2787 (EABI_FLOAT_VARARGS_P): New macro.
2788 * config/mips/mips.c (struct mips_arg_info): New.
2789 (mips_arg_info): New function.
2790 (function_arg_advance): Use it. Add adjustment instructions here
2791 rather than in function_arg.
2792 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
2793 for VOIDmode at the beginning of the function.
2794 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
2795 (function_arg_pass_by_reference): Likewise.
2796 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2797 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2798 (mips_va_start): Likewise. Use the new stack_words field of
2799 CUMULATIVE_ARGS to set up overflow area. Reformat.
2800 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
2801 doubles and other types, aligning the overflow pointer for non-doubles
2802 too. Remove some code duplication. Replace hard-coded constants.
2804 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2806 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2807 (CLASS_UNITS): Undefine.
2808 (CLASS_MAX_NREGS): Use FP_INC.
2809 * config/mips/mips.c (compute_frame_size): Likewise.
2810 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2812 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2814 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2815 prototype, and handle lexing numbers and identifiers.
2816 (parse_identifier): Update to new form of parse_slow.
2817 (parse_number): Fast path only, use parse_slow otherwise.
2818 (_cpp_lex_direct): Update calls to parse_number.
2820 2002-03-21 DJ Delorie <dj@redhat.com>
2822 * bb-reorder.c (make_reorder_chain_1): Protect against
2823 when redundant edges are omitted.
2824 * predict.c (dump_prediction): Likewise.
2826 2002-03-21 Richard Henderson <rth@redhat.com>
2829 * fixinc/inclhack.def (solaris_stdio_tag): New.
2830 * fixinc/fixincl.x: Regenerate.
2832 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2835 * c-typeck.c (process_init_element): Flag non-static
2836 initialization of a flexible array member as illegal.
2838 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2840 * config/rs6000/t-linux64: New.
2841 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2842 t-ppccomm. Use t-rs6000 and t-linux64.
2843 (powerpc64-*-gnu* <tmake_file>): Likewise.
2844 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2845 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2846 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2848 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
2850 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2851 flag_really_no_inline instead of optimize == 0.
2853 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2855 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2857 * flags.h (flag_really_no_inline): New.
2859 * c-common.c (c_common_post_options): Initialize
2860 flag_really_no_inline.
2862 * toplev.c (flag_really_no_inline): New.
2864 2002-03-21 Jakub Jelinek <jakub@redhat.com>
2866 * config/avr/avr.md (length): Fix length computation for
2867 conditional branches.
2869 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
2871 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2872 sdbout.o, profile.o): Update.
2873 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2875 * c-common.h (gettags): Move here from tree.h.
2876 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2877 insert_block, getdecls, kept_level_p, global_bindings_p): New.
2878 * dbxout.c (dbxout_init): Use getdecls langhook.
2879 * expr.c (expand_expr): Use insert_block langhook.
2880 * fold-const.c: Include langhooks.h.
2881 (fold_range_test, fold_binary_op_with_conditional_arg,
2882 fold): Use global_bindings_p langhook.
2883 * integrate.c (expand_inline_function): Use insert_block langhook.
2884 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2885 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2886 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2887 LANG_HOOKS_GETDECLS): New.
2888 (LANG_HOOKS_INITIALIZER): Update.
2889 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2891 * langhooks.h (struct lang_hooks_for_decls): New.
2892 (struct lang_hooks): Update.
2893 * profile.c: Include langhooks.h.
2894 (output_func_start_profiler): Use new langhooks.
2895 * sdbout.c: Include langhooks.h.
2896 (sdbout_init, sdbout_finish): Use getdecls langhook.
2897 * stmt.c: Include langhooks.h.
2898 (expand_fixup, fixup_gotos): Use new langhooks.
2899 * stor-layout.c: Include langhooks.h.
2900 (variable_size): Use global_bindings_p langhook.
2901 * toplev.c (compile_file): Use getdecls langhook.
2902 * tree-inline.c (remap_block): Use insert_block langhook.
2903 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2904 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2906 2002-03-21 Richard Henderson <rth@redhat.com>
2908 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2909 constants in .data when -fpic.
2911 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2913 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2916 2002-03-21 Tom Tromey <tromey@redhat.com>
2918 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
2920 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2922 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2924 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2926 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2927 Richard Henderson <rth@redhat.com>
2930 * c-common.c (c_expand_expr): Preserve result of a statement
2931 expression if needed.
2933 2002-03-21 Jakub Jelinek <jakub@redhat.com>
2936 * genrecog.c (maybe_both_true_mode): Remove.
2937 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2938 * machmode.def (Pmode): Likewise.
2940 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
2942 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2943 (nonlocal_mentioned_p_1): New function.
2944 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2945 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2946 (mark_constant_function): Recognize pure functions.
2947 * rtl.h (global_reg_mentioned_p): New prototype.
2948 * rtlanal.c (global_reg_mentioned_p,
2949 global_reg_mentioned_p_1): New function.
2951 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2953 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2955 * fixinc/fixincl.x: Regenerate.
2957 2002-03-20 Jason Merrill <jason@redhat.com>
2959 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2961 2002-03-20 Michael Meissner <meissner@redhat.com>
2963 * doc/invoke.texi (Optimize Options): Document that -O2 sets
2966 2002-03-20 Bob Wilson <bob.wilson@acm.org>
2968 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2969 ".literal_position" directive before the constant pool.
2971 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2973 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2974 Add Craig Rodrigues.
2975 Add Brad Lucier to testers.
2977 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2980 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2982 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2983 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2984 instead of insn_extract.
2986 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2989 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2991 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2992 stmt if some case has been output.
2994 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2997 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2998 movsfcc_1, movdfcc_1): Add %O2.
2999 * config/i386/i386.c (print_operand): Handle %ON.
3000 Print . before float condition codes in Sun as cmov syntax.
3001 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
3002 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
3005 2002-03-20 Philip Blundell <pb@nexus.co.uk>
3007 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
3008 return instruction if PC was popped.
3010 2002-03-20 Bob Wilson <bob.wilson@acm.org>
3012 * config/xtensa/xtensa.md: Remove unused type attributes.
3013 (adddi_carry, subddi_carry): Change type attribute to "multi".
3015 2002-03-19 Dale Johannesen <dalej@apple.com>
3017 PR optimization/5999, middle-end/5731
3018 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
3019 multiplications by reciprocals.
3021 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
3023 * Makefile.in: Update.
3024 * c-common.c: Include langhooks.h.
3025 (inline_forbidden_p): Use new hook.
3026 * diagnostic.c: Include langhooks.h.
3027 (format_with_decl, announce_function,
3028 default_print_error_function): Use new hook.
3029 * dwarf2out.c (dwarf2_name): Use new hook.
3030 * function.c: Include langhooks.h.
3031 (init_function_start): Use new hook.
3032 * langhooks-def.h (lhd_decl_printable_name): New.
3033 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
3034 (LANGHOOKS_INITIALIZER): Update.
3035 * langhooks.c (lhd_decl_printable_name): New.
3036 * langhooks.h (struct lang_hooks): New hook.
3037 * toplev.c (decl_name, decl_printable_name): Remove.
3038 (open_dump_file): Use new hook.
3039 (process_options): Remove old hook.
3040 * tree.h (decl_printable_name): Remove.
3042 * objc-act.c (objc_init): Remove old hook.
3043 (objc_printable_name): Export.
3044 * objc-act.h (objc_printable_name): New.
3045 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
3047 2002-03-19 Jim Blandy <jimb@redhat.com>
3049 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
3050 the start_source_file debug hook, not the current line number.
3052 2002-03-19 Richard Henderson <rth@redhat.com>
3054 * flow.c (EH_USES): Provide default.
3055 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
3056 * doc/tm.texi (EH_USES): New.
3058 * config/ia64/ia64.c (ia64_eh_uses): New.
3059 * config/ia64/ia64-protos.h: Update.
3060 * config/ia64/ia64.h (EH_USES): New.
3062 2002-03-19 Richard Henderson <rth@redhat.com>
3064 * varasm.c (output_constant_def): Fix stupid typo.
3066 2002-03-19 Richard Henderson <rth@redhat.com>
3069 * except.c (current_function_has_exception_handlers): New.
3070 * except.h: Declare it.
3071 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
3072 Combine tests that disable all sibcalls for the function.
3074 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
3076 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
3079 2002-03-19 Richard Henderson <rth@redhat.com>
3082 * config/ia64/ia64.c: Revert 2002-03-01 patch.
3083 * config/ia64/ia64.h (INIT_EXPANDERS): New.
3085 2002-03-19 Jim Blandy <jimb@redhat.com>
3087 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
3088 name, even if the replacement list contains no tokens, as required
3091 2002-03-19 Jason Merrill <jason@redhat.com>
3093 * varasm.c (globalize_decl): Get the name from the RTL, not
3094 DECL_ASSEMBLER_NAME.
3096 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
3098 2002-03-19 Bob Wilson <bob.wilson@acm.org>
3100 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
3101 subdi_carry): Define.
3103 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3105 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
3106 about -fpic/-fPIC if extra_warnings set.
3108 2002-03-19 David Edelsohn <edelsohn@gnu.org>
3110 * expr.c (expand_expr): Sign-extend CONST_INT generated from
3111 TREE_STRING_POINTER.
3112 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
3114 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3116 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
3117 in favor of SP if FRAME_POINTER_REQUIRED is false.
3119 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
3121 * emit-rtl.c (gen_int_mode): New function.
3122 * rtl.h: Prototype for it.
3123 * combine.c (make_extraction, simplify_comparison), expmed.c
3124 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
3125 (convert_modes, store_field), optabs.c (expand_fix),
3126 simplify-rtx.c (neg_const_int, simplify_unary_real),
3128 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
3129 Use it instead of GEN_INT (trunc_int_for_mode (...)).
3131 2002-03-19 Jakub Jelinek <jakub@redhat.com>
3134 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
3135 convert_parm_for_inlining.
3136 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3138 * langhooks-def.h: Likewise.
3139 * objc/objc-lang.c: Likewise.
3140 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
3142 * tree-inline.c (initialize_inlined_parameters):
3143 Call convert_parm_for_inlining lang hook if needed.
3144 * c-typeck.c (c_convert_parm_for_inlining): New function.
3145 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
3147 2002-03-18 Mark Mitchell <mark@codesourcery.com>
3149 * calls.c (precompute_arguments): Do not assume that temporaries
3150 can be destroyed after expanding the argument.
3151 (expand_call): Likewise.
3153 2002-03-15 Eric Christopher <echristo@redhat.com>
3155 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
3156 Fix register preference on last change.
3157 * config/mips/mips.c (mips_return_in_memory): New function.
3158 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
3159 * config/mips/mips-protos.h: Declare.
3160 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
3161 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
3163 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
3165 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
3167 (anddi3, iorsi3): Likewise.
3169 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
3170 use %gprel for symbols that are going to be placed in linkonce
3173 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
3174 RETURN_ADDRESS_POINTER_REGNUM to $ra.
3175 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
3176 not needed. Disregard leaf_function_p().
3177 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
3178 mips16 frame pointer.
3179 * config/mips/mips.md (store ra): Only to small SP offsets.
3180 2001-08-22 Graham Stott <grahams@redhat.com>
3181 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
3182 return a REG rtx for the return address register.
3184 2002-03-18 Bob Wilson <bob.wilson@acm.org>
3186 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
3187 constant-pool addresses as "mode-dependent".
3188 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
3190 2002-03-18 Jakub Jelinek <jakub@redhat.com>
3193 * expr.c (emit_group_load): Use extract_bit_field if
3194 needed for CONCAT arguments.
3196 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
3199 * arm.md (tablejump): Make this a define_expand. For PIC add the
3200 offset to the base of the table.
3201 (thumb_tablejump): Matcher for Thumb tablejump insn.
3202 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3203 as the difference of two labels.
3204 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3205 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3207 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3208 * arm.c (get_jump_table_size): If the table is not in the text
3209 section, return zero.
3211 2002-03-18 Bernd Schmidt <bernds@redhat.com>
3213 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3215 (arm_reload_out_hi): Use gen_lowpart instead of
3216 gen_rtx_SUBREG to access QImode components.
3217 * config/arm/arm.md: Disable zero_extend split for QImode
3218 subregs in BIG_ENDIAN mode.
3219 (storehi_bigend): Match use of least significant byte.
3220 (storeinthi): Remove extraneous SUBREG.
3221 Add missing construction of operands[2].
3222 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3223 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3224 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3226 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
3228 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3231 2002-03-17 Richard Henderson <rth@redhat.com>
3233 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3236 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3238 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3239 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3241 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3243 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3245 * predict.c (estimate_bb_frequencies): Delete unused variables.
3247 2002-03-17 Richard Henderson <rth@redhat.com>
3249 * config/ia64/ia64.c (ia64_attribute_table): Move before
3250 targetm definition. Make static.
3252 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
3254 * c-common.h (yyparse, c_common_parse_file): New.
3255 * c-lang.c: Include c-common.h.
3256 (LANG_HOOKS_PARSE_FILE): Redefine.
3257 * c-lex.c: Include c-common.h.
3258 (yyparse): Rename c_common_parse_file. Call yyparse.
3259 * c-parse.in (yyparse): Remove macro.
3260 * c-tree.h (yyparse_1): Remove.
3261 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3262 (LANG_HOOKS_INITIALIZER): Update.
3263 * langhooks.h (struct lang_hoooks): New hook parse_file.
3264 * toplev.c (compile_file): Use parse_file hook.
3265 * tree.h (yyparse): Remove.
3266 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3268 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3270 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3271 float_truncate, not fix.
3272 ("*truncdfsf2_real"): Ditto.
3273 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3275 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3277 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
3279 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3280 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
3281 where appropriate. Make the second reference to
3282 leaf_function_p a function call, as intended. Reindented.
3284 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3285 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3287 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3288 add register to non-constant into sp.
3290 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3291 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3292 (mips16_gp_pseudo_rtx): Lose.
3293 (INIT_EXPANDERS): Deleted.
3294 * config/mips/mips.c (mips_init_machine_status): New.
3295 (mips_free_machine_status): New.
3296 (mips_mark_machine_status): New.
3297 (override_options): Set them.
3298 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3299 (struct machine_function): ... new. Replaced all references.
3300 (mips_add_gc_roots): Don't mark them.
3301 (embedded_pic_fnaddr_reg): New, extracted from...
3302 (embedded_pic_offset): ... here.
3303 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3306 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3308 * cppinit.c: Revert -MD removal.
3310 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3312 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3313 soft registers by default for 68HC12.
3314 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3315 when compiling with -fomit-frame-pointer.
3316 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3317 (expand_epilogue): Likewise.
3318 (m68hc11_gen_rotate): Use exg when rotating by 8.
3320 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3322 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3323 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3324 (splits): Remove unused add splits.
3325 ("*addhi3_68hc12"): Tune constraints.
3326 ("addhi_sp"): Try to use X instead of Y in all cases and if the
3327 constant fits in 8-bits and D is dead use abx/aby instructions.
3328 ("*addhi3"): Remove extern declaration of ix_reg.
3329 ("*subsi3"): Optimize and provide new split.
3330 ("subhi3"): Cleanup.
3331 ("*subhi3_sp"): Avoid saving X if we know it is dead.
3332 (arith splits): For 68hc12 save the address register on the stack
3333 and do the arithmetic operation with a pop.
3335 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3337 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3338 allocating QImode in address registers.
3339 ("*movqi_m68hc11"): Likewise.
3341 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
3343 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3345 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3347 * cppinit.c (print_help): Display -MD and -MMD.
3348 Don't display usage string. Update assertion syntax and
3350 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3351 (cpp_handle_option): Update.
3353 2002-03-15 Chris Demetriou <cgd@broadcom.com>
3355 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3356 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3357 and define it so that regardless of target CPU size,
3358 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3359 of "int" rather than "long."
3361 2002-03-15 Richard Henderson <rth@redhat.com>
3363 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3366 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3368 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3369 ("tstqi" split): Avoid using memory for tstqi on address register.
3370 (splits): Remove constraints.
3371 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3372 ("cmpdf", "cmpsf"): Remove since not used.
3373 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3374 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3376 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3378 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3379 ("neghi2"): Tighten constraints.
3380 ("one_cmplsi2"): Optimize and simplify split.
3381 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3383 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3385 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3386 and split of AND operation to clear the upper bits.
3387 ("*logicalsi3_zextqi"): Likewise.
3388 ("*logicallhi3_zexthi_ashift8"): Likewise.
3389 ("*logicalsi3_silshr16"): Likewise.
3390 ("logicalsi3_silshl16"): Likewise.
3391 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3393 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3395 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3396 (m68hc11_indirect_p): New function.
3397 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3398 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3400 (asm_print_register): Likewise.
3401 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3402 (m68hc11_indirect_p): Declare.
3403 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3404 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3405 (TARGET_SWITCHES): New option -mrelax.
3406 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3408 ("iorsi3", "xorsi3"): Likewise.
3409 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3410 ("*andhi3_mem"): New to handle destination in memory with bclr
3411 and a scratch register.
3412 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3413 ("*andhi3_const"): New when operand2 is constant.
3414 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3415 ("*andhi3_gen"): Cleanup of the old "andhi3".
3416 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3417 ("xorqi3"): Update constraints.
3419 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3421 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3422 for reg_equiv_memory_loc when the operand is a register that does
3423 not get a hard register (stack location).
3424 (tst_operand): After reload, accept all memory operand.
3425 (symbolic_memory_operand): Fix detection of symbolic references.
3426 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3427 accept symbols and any constant.
3429 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3431 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3432 note on the insn that sets the soft frame register.
3433 (must_parenthesize): ix and iy are also reserved names.
3434 (print_operand_address): One more place where parenthesis are required
3435 to avoid confusion with register names.
3436 (m68hc11_gen_movhi): Allow push of stack pointer.
3437 (m68hc11_check_z_replacement): Fix handling of parallel with a
3439 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3440 the replacement register is.
3441 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3442 and D8_REGS classes.
3443 (MODES_TIEABLE_P): All modes are tieable except QImode.
3445 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3447 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3448 (___subdi3): Likewise.
3449 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3450 (__map_data_section): Optimize 68hc11 case.
3452 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3454 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3455 than a shift to avoid adding a register with itself.
3456 (m68hc11_memory_move_cost): Take into account NO_REGS.
3457 (m68hc11_register_move_cost): Update and use memory move cost
3459 (m68hc11_address_cost): Make cost of valid offset not 0 so that
3460 it gives more opportunities to cse to optimize.
3461 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3462 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3464 2002-03-15 Mark Mitchell <mark@codesourcery.com>
3466 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3467 * c-common.def (CLEANUP_STMT): New tree node.
3468 * c-common.h (CLEANUP_DECL): New macro.
3469 (CLEANUP_EXPR): Likewise.
3470 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3471 * expr.c (expand_expr): Tidy.
3472 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3473 * tree-inline.c (initialize_inlined_parameters): Clean up
3474 new local variables.
3476 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3479 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3480 before movrXX only, use reg_overlap_mentioned_p.
3481 Only special case NE if just one insn can be generated.
3483 2002-03-15 Jason Merrill <jason@redhat.com>
3485 * varasm.c (assemble_variable): Call resolve_unique_section before
3486 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
3489 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3492 * arm.md (split pattern for thumb shiftable immediates): Add comment
3493 explaining non-obvious test.
3495 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3498 * arm.md (movaddr, movaddr_insn): Delete.
3500 2002-03-15 Jason Merrill <jason@redhat.com>
3502 * toplev.c (wrapup_global_declarations): Clarify variable handling.
3503 -fkeep-static-consts doesn't apply to comdats.
3505 2002-03-14 Richard Henderson <rth@redhat.com>
3507 * c-decl.c: Include c-pragma.h.
3508 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3509 (finish_function): Tidy.
3510 * c-pragma.c: Include c-common.h.
3511 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3512 (handle_pragma_weak): Use them.
3513 (init_pragma): Register pending_weaks.
3514 * c-pragma.h (maybe_apply_pragma_weak): Declare.
3515 * print-tree.c (print_node): Print DECL_WEAK.
3516 * varasm.c (mark_weak_decls): Remove.
3517 (remove_from_pending_weak_list): Remove.
3519 (asm_emit_uninitialised): Call globalize_decl for weak commons.
3520 (weak_decls): Make a tree_list.
3521 (declare_weak): Cons weak_decls directly.
3522 (globalize_decl): Remove weak_decls elements directly.
3523 (weak_finish): Simplify weak_decls walk. Don't weaken unused
3524 symbols. Don't pretend to handle aliases.
3525 (init_varasm_once): Update weak_decls registry.
3526 * Makefile.in: Update dependencies.
3528 2002-03-14 Richard Henderson <rth@redhat.com>
3531 * config/ia64/ia64.c: Include tm_p.h last.
3532 (gen_nop_type): Remove duplicate definition.
3533 (cycle_end_fill_slots): Set sched_data for second L slot.
3534 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3535 (nop_cycles_until): Fix typos.
3537 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3539 PR optimization/5891
3540 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3542 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3544 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3545 descriptors correctly.
3547 2002-03-14 Michael Meissner <meissner@redhat.com>
3549 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3550 100, allowing MAX_UNROLLED_INSNS to be overridden.
3552 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3555 * unroll.c (params.h): Include.
3556 (MAX_UNROLLED_INSNS): Delete, now in params.h.
3558 * doc/invoke.texi (--param max-unroll-insns): Document.
3560 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3562 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3564 * arm.md: Fix warnings about constraints in peepholes and splits.
3566 2002-03-14 Zack Weinberg <zack@codesourcery.com>
3568 * cpphash.h (struct lexer_state): Remove line_extension member.
3569 * cpplib.c (dequote_string, do_linemarker): New functions.
3570 (linemarker_dir): New data object.
3571 (DIRECTIVE_TABLE): No longer need to interpret #line in
3572 preprocessed source. Delete obsolete comment about return
3574 (end_directive, directive_diagnostics, _cpp_handle_directive):
3575 Don't muck with line_extension.
3576 (directive_diagnostics): No need to issue warnings for
3578 (_cpp_handle_directive): Issue warnings for linemarkers here,
3579 when appropriate. Dispatch linemarkers to do_linemarker, not
3581 (do_line): Code to handle linemarkers split out to do_linemarker.
3582 Convert escape sequences in filename argument, both places.
3584 * cppmacro.c (quote_string): Rename cpp_quote_string and
3585 export. All callers changed.
3586 * cpplib.h (cpp_quote_string): Prototype.
3587 * cppmain.c (print_line): Call cpp_quote_string on to_file
3590 * doc/cpp.texi: Document that escapes are now interpreted in
3591 #line and in linemarkers, and that non-printing characters are
3592 converted to octal escapes when linemarkers are generated.
3594 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
3596 * emit-rtl.c (try_split): Use delete_insns.
3597 * recog.c (split_all_insns): Fix terminating condition.
3599 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3600 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3603 * arm.c (arm_output_epilogue): Fix floating-point register save
3604 adjustment when using a frame pointer.
3606 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
3608 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3609 * config/mips/mips.c (compute_frame_size): Retrofit them here.
3610 (save_restore_insns, mips_expand_epilogue): And here.
3611 (build_mips16_call_stub): And here.
3612 (mips_function_value): Use the new macros to decide whether a single
3613 or complex float can be returned in floating-point registers. Return
3614 a parallel rtx in the complex case.
3616 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
3618 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3619 call after liveness analysis.
3621 * recog.c (split_insn): Use delete_insn_and_edges.
3623 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3624 instructions to have branch prediction notes.
3625 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3627 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
3629 * configure.in: Don't pass -Wno-long-long to a ADA compiler
3630 that doesn't support it.
3631 * configure: Regenerate.
3633 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3636 * config/sparc/sparc.md (normal_branch, inverted_branch,
3637 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3638 inverted_fp_branch): Adjust calls to output_cbranch.
3639 Set length attribute.
3640 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3641 output_v9branch. Set length attribute.
3642 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3644 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3645 (output_cbranch): Likewise. Handle far branches.
3646 (output_v9branch): Handle far branches.
3647 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3649 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3650 noov_compare64_op predicates.
3652 2002-03-13 Jason Merrill <jason@redhat.com>
3654 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3655 into the function and constify it.
3656 * gthr-dce.h, gthr-solaris.h: Likewise.
3658 2002-03-13 David Edelsohn <edelsohn@gnu.org>
3660 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3661 * config/rs6000/rs6000.c (rs6000_va_arg): Use
3662 std_expand_builtin_va_arg if not ABI_V4.
3664 2002-03-13 Jason Merrill <jason@redhat.com>
3666 * varasm.c (globalize_decl): New fn.
3667 (assemble_start_function): Use it.
3668 (asm_emit_uninitialized): Use it.
3669 (assemble_alias): Use it.
3670 (assemble_variable): Use it.
3672 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
3674 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3675 2002-03-12 internal visibility change.
3676 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3677 visibility into SYMBOL_REF_FLAG.
3679 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
3681 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3682 VOIDmode operand. Add compile-time optimization for constant results.
3684 2002-03-12 Jason Merrill <jason@redhat.com>
3686 * c-typeck.c (convert_for_assignment): Don't allow conversions
3687 between pointers and references. Only allow lvalues to convert to
3690 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
3692 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3693 before prologue, to avoid scheduling problems.
3695 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3697 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3698 (ELIMINABLE_REGS): Add sfp->sp.
3699 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3701 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3703 PR optimization/5892
3704 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3706 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3708 * loop.c (basic_induction_var): Don't call convert_modes if mode
3709 classes are different.
3711 2002-03-12 Richard Henderson <rth@redhat.com>
3713 PR optimization/5901
3714 * function.c (reposition_prologue_and_epilogue_notes): Position
3715 the markers after/before the last/first insn not deleted.
3717 2002-03-12 Richard Henderson <rth@redhat.com>
3719 PR optimization/5878
3720 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3721 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3722 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3724 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3725 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3726 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3728 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3729 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3730 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3731 also. Don't set it if not flag_pic.
3732 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3733 to be INVALID_REGNUM when not used.
3735 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
3737 * expmed.c (store_bit_field): Reset alias set for memory.
3738 (extract_bit_field): Same.
3740 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3742 * c-common.c (c_tree_code_type, c_tree_code_length,
3743 c_tree_code_name, add_c_tree_codes): Delete.
3744 * c-common.h (add_c_tree_codes): Delete.
3745 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3747 * c-objc-common.c (c_objc_common_init): Don't call
3748 add_c_tree_codes, instead set lang_unsafe_for_reeval.
3749 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3750 objc_tree_code_name, add_objc_tree_codes): Delete.
3751 (objc_init): Don't call add_objc_tree_codes.
3752 * objc/objc-lang.c (tree_code_type, tree_code_length,
3753 tree_code_name): Define.
3754 * toplev.c (lang_independent_init): Don't set
3755 tree_code_length[IDENTIFIER_NODE].
3756 * tree.c (tree_code_type, tree_code_length, tree_code_name):
3757 Delete definitions, moved to language front-ends.
3758 * tree.def (IDENTIFIER_NODE): Hardwire the length.
3759 * tree.h (tree_code_type, tree_code_length, tree_code_name):
3761 (tree_code_length): Change type to unsigned char.
3763 2002-03-12 Richard Henderson <rth@redhat.com>
3765 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3766 internal visibility change.
3768 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3770 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3771 validize_mem() instead of change_address to avoid clobbering
3774 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
3776 * c-lex.h (position_after_whitespace): Remove.
3778 2002-03-12 Jakub Jelinek <jakub@redhat.com>
3780 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3781 (lex_string): Use unsigned char pointers.
3783 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3785 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3786 is not a valid memory_operand.
3788 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3790 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3791 * config/xtensa/lib1funcs.asm: Fix copyright to include
3792 special case for libgcc files.
3793 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3794 (__divsi3): Likewise.
3795 (__umodsi3): Likewise.
3796 (__modsi3): Likewise.
3797 * config/xtensa/lib2funcs.S: Fix copyright to include
3798 special case for libgcc files.
3800 2002-03-12 Tom Rix <trix@redhat.com>
3802 * collect2.c (resolve_lib_name): Move outside of
3803 OBJECT_FORMAT_COFF ifdef.
3804 (ignore_library): Same.
3806 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3808 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3810 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3812 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3813 to function_section before writing out the constant pool.
3815 2002-03-12 David Edelsohn <edelsohn@gnu.org>
3817 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3819 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3821 2002-03-12 Alan Modra <amodra@bigpond.net.au>
3823 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3827 (cmpsi splitter): Likewise.
3828 (modsi3): Fail if <= 0.
3829 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3830 redundant test when HOST_BITS_PER_WIDE_INT != 32.
3831 (reg_or_sub_cint64_operand): Likewise.
3832 (num_insns_constant_wide): Optimize sign extension.
3833 (rs6000_legitimize_address): Likewise.
3835 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
3837 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3838 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3840 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
3842 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3843 address calculation.
3845 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3847 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3848 scratch register to DImode / TImode.
3849 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3850 register used does not overlap the target.
3852 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3854 * Makefile.in (debug.o): Depend on debug.h.
3855 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3856 * debug.c (do_nothing_debug_hooks): Likewise.
3857 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3858 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3859 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3860 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3861 * dwarfout.c (dwarf_debug_hooks): Likewise.
3862 * integrate.c (output_inline_function): Likewise.
3863 * objc/objc-act.c (synth_module_prologue): Likewise.
3864 * sdbout.c (sdb_debug_hooks): Likewise.
3865 * toplev.c (debug_hooks): Likewise.
3866 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3868 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3870 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3871 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3872 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3873 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3874 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3875 * defaults.h (POINTER_SIZE): Define.
3876 * doc/tm.texi (POINTER_SIZE): Document default.
3878 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3880 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3882 2002-03-11 Richard Henderson <rth@redhat.com>
3884 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3885 if rebuild_label_notes_after_reload.
3887 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
3889 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
3890 emit pic register load if "internal" visibility.
3891 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3892 (cris_expand_builtin_va_arg): Do all computations on trees.
3894 2002-03-11 Richard Henderson <rth@redhat.com>
3896 * rtlanal.c: Include recog.h.
3897 (keep_with_call_p): Fix thinko.
3898 * Makefile.in (rtlanal.o): Update dependencies.
3900 2002-03-11 Chris Meyer <cmeyer@gatan.com>
3902 * genflags.c (gen_insn): Use IS_VSPACE.
3903 * genoutput.c (output_insn_data): Likewise.
3904 (process_template): Likewise.
3906 2002-03-11 Richard Henderson <rth@redhat.com>
3908 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3910 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
3912 * Makefile.in: Update.
3913 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3914 Update documentation.
3915 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3916 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3918 2002-03-11 Zack Weinberg <zack@codesourcery.com>
3920 * Makefile.in: Give texi2pod its input file as a command line
3921 argument, not on stdin.
3923 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
3924 Daniel Berlin <dan@dberlin.org>
3926 C++ alias analysis improvement.
3927 * alias.c (record_component_aliases): Record aliases for base
3930 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3932 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3934 2002-03-11 Douglas B Rupp <rupp@gnat.com>
3936 * toplev.c (vms_fopen): Remove, not needed.
3938 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3940 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3942 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3943 for FP, already done later.
3945 * toplev.c (debug_args): Add entry for VMS_DEBUG.
3946 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3948 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
3950 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3951 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3952 LARGEST_EXPONENT_IS_NORMAL for the given mode.
3953 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3954 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3955 (ediv, emul, eldexp, esqrt): Likewise.
3956 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3957 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3958 (saturate): New function.
3959 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3960 (make_nan): Use a saturation value instead of a NaN if
3961 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
3962 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3963 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
3964 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
3965 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3966 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3967 !ROUND_TOWARDS_ZERO.
3968 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3969 (ROUND_TOWARDS_ZERO): Document.
3971 2002-03-11 Andreas Jaeger <aj@suse.de>
3973 * cfg.c (dump_flow_info): Remove unused variable.
3975 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
3977 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3978 computations on trees.
3980 2002-03-10 Richard Henderson <rth@redhat.com>
3983 * reload.c (copy_replacements_1): New.
3984 (copy_replacements): Use it to recurse through the rtx.
3986 2002-03-10 Richard Henderson <rth@redhat.com>
3988 * loop.c (strength_reduce): Compute number of iterations as
3989 unsigned HOST_WIDE_INT.
3991 2002-03-10 Richard Henderson <rth@redhat.com>
3993 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3994 to move away from the end of the block.
3996 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3998 PR preprocessor/5899
3999 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
4001 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4003 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
4005 * attribs.c (decl_attributes): Fix signed/unsigned warning.
4007 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
4009 * config/mmix/mmix.c: Improve comments.
4010 (mmix_target_asm_function_prologue): Drop variable
4011 empty_stack_frame. Don't allocate unused slot above fp.
4012 (mmix_target_asm_function_epilogue): Mirror prologue changes.
4013 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4014 brace in first column.
4015 (enum reg_class): Ditto.
4016 (FIRST_PARM_OFFSET): Now 0.
4017 (USER_LABEL_PREFIX): Remove #if 0:d definition.
4019 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4021 * combine.c (make_extraction): Fix error in last change.
4023 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4025 * c4x.c (c4x_fp_reglist): Const-ify.
4026 * cris.c (cris_print_operand): Likewise.
4027 * i386.c (ix86_va_arg): Likewise.
4028 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
4029 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
4030 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
4031 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
4032 * mcore.h (regno_reg_class): Likewise.
4033 * mips.c (gen_int_relational): Likewise.
4034 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
4035 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
4036 * pdp11.c (move_costs): Likewise.
4037 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
4038 * s390.c (s390_branch_condition_mnemonic, regclass_map):
4040 * s390.h (regclass_map): Likewise.
4041 * sh.c (shift_amounts): Likewise.
4042 * sh.md (rotlsi3): Likewise.
4044 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4046 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
4047 (ne0+5): Use new clobber to generate proper shift pattern.
4048 Patch by Michael Matz <matz@kde.org>.
4050 2002-03-09 Andreas Schwab <schwab@suse.de>
4052 * gcc.c (validate_all_switches): Also handle `%W{...}'.
4054 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
4056 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
4058 2002-03-09 Jakub Jelinek <jakub@redhat.com>
4061 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
4062 even for non-representable constants.
4064 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4066 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
4067 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
4068 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
4069 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
4070 (pop_function_context): Compute MAY_SHARE parameter for
4072 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
4073 (gen_mem_addressof): Call fixup_var_refs with new parm.
4075 * combine.c (make_extraction): Don't make extension of CONST_INT.
4077 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4079 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
4080 in o32 and o64 ABIs.
4081 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
4082 but getting fixed-size structs passed in registers regardless of
4083 padding in o32 and o64 ABIs.
4085 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
4086 offset before loading address of argument passed by transparent
4089 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
4091 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
4093 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
4095 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
4096 marker such that registers after it are saved.
4098 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4100 * sparc.c (arith_4096_operand): Fix error in last change.
4102 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4104 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
4107 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4109 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
4112 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
4114 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
4116 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
4118 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
4119 removed; fix return value.
4120 * combine.c (combine_instructions): Dirtify blocks where we failed to
4121 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
4122 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
4124 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4126 * gcse.c (insert_insn_end_bb): Fix typo in last change.
4128 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
4130 * recog.c (peephole2_optimize): Re-distribute EH edges.
4132 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
4134 * expr.c (expand_expr): Use unsave lang hook.
4135 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
4136 (LANG_HOOKS_INITIALIZER): Update.
4137 * langhooks.h (struct lang_hooks): New hook unsave.
4138 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
4139 (unsave_expr_1): Remove unused lang_unsave_expr_now.
4140 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
4141 (unsave_expr_now): Remove.
4142 * tree.h (unsave_expr_now, lang_unsave,
4143 lang_unsave_expr_now): Remove.
4146 2002-03-08 Andreas Jaeger <aj@suse.de>
4148 * flow.c (propagate_block_delete_insn): Remove unused variable.
4150 2002-03-08 Kazu Hirata <kazu@hxi.com>
4152 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
4153 insn length for memory load/store.
4155 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
4157 * doc/install.texi (--with-libiconv-prefix): Document.
4159 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
4161 * doc/sourcebuild.texi: Fix typo.
4163 2002-03-08 Jakub Jelinek <jakub@redhat.com>
4166 * builtins.c (std_expand_builtin_va_arg): Do all computations on
4169 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4171 * rtl.c (copy_most_rtx): Move from here ...
4172 * emit-rtl.c (copy_most_rtx): ... to here.
4174 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
4176 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
4177 SUBTARGET_CPP_SIZE_SPEC.
4178 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
4180 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
4182 2002-03-07 Matt Hiller <hiller@redhat.com>
4184 * gensupport.c (first_dir_md_include): Renamed from include;
4185 change all references.
4186 (last_dir_md_include): Renamed from last_include; change all
4188 (init_md_reader): Unconditionally initialize base_dir whether or
4189 not filename is a relative path.
4191 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
4193 * config/fp-bit.c (_unord_f2): Compile it in even if
4194 US_SOFTWARE_GOFAST is enabled.
4196 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4197 NULL_RTX. Set all HFmode operations as NULL_RTX.
4198 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4199 NULL_RTX, try reversing the comparison and the operands.
4201 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4203 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4204 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4207 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
4209 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4211 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4213 * basic-block.h (fixup_abnormal_edges): Declare.
4214 * reload1.c (fixup_abnormal_edges): New function.
4215 * reg-stack.c (convert_regs): Use it.
4217 * gcse.c (insert_insn_end_bb): Handle trapping insns.
4219 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4221 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
4223 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4224 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4225 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4226 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4227 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4228 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4229 unless x and y could be infinite.
4230 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4231 Check that the common type of both arguments is a real, even for
4232 targets without unordered comparisons. Allow an integer argument
4233 to be compared against a real.
4234 (expand_tree_builtin): Use expand_unordered_cmp.
4235 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4236 * cse.c (fold_rtx): Likewise. Fix indentation.
4237 * fold-const.c (fold_real_zero_addition_p): New.
4238 (fold): Use it, and the new HONOR_... macros.
4239 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4240 * jump.c (reversed_comparison_code_parts): After searching for
4241 the true comparison mode, use HONOR_NANS to decide whether it
4242 can be safely reversed.
4243 (reverse_condition_maybe_unordered): Remove IEEE check.
4244 * simplify-rtx.c (simplify_binary_operation): Use the new macros
4245 to decide which simplifications are valid. Allow the following
4246 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4247 and (a - -b) to (a + b).
4248 (simplify_relational_operation): Use HONOR_NANS.
4249 * doc/tm.texi: Document the MODE_HAS_... macros.
4251 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4253 * combine.c (simplify_comparison): If simplifying a logical shift
4254 right and compare with constant, force the comparison to unsigned.
4256 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
4258 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4260 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4262 (alt_reg_names): Remove % for vrsave.
4264 2002-03-06 Richard Henderson <rth@redhat.com>
4266 PR optimization/5844
4267 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
4268 if used indicates we've already emitted one copy of an operand.
4269 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4270 (gen_split): Supply a non-null used.
4272 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4274 * reload1.c (reload): Unshare all rtl after reload is done.
4276 * simplify-rtx.c (simplify_plus_minus): Do not abort,
4277 but simply fail if the expression is too complex to simplify.
4278 (simplify_gen_binary): Handle simplify_plus_minus failures.
4280 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
4282 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4283 consistently call delete_trivially_dead_insns after CSE and GCSE;
4284 fix DFI_life dumping; do jump threading after liveness; do crossjumping
4285 after liveness2; update comment in last crossjumping.
4286 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4288 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
4290 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4291 after completing fast dead code elimination.
4293 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4296 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
4298 * version.c: Fix misplaced leading blanks on first line.
4300 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
4302 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4304 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
4306 * cfgcleanup.c (mentions_nonequal_regs): New function.
4307 (thread_jump): Use it.
4308 * toplev.c (rest_of_compilation): Run jump threading after
4311 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4313 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4316 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
4318 * predict.c (estimate_bb_frequencies): Do not reload the
4319 frequencies from notes.
4321 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
4323 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4324 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4326 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4327 delete_noop_moves): Return indeger.
4328 * flow.c (ndead): New variable.
4329 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4330 BB argument; update callers.
4331 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4332 (life_analysis): Do not call purge_all_dead_edges.
4333 (update_life_info): Return number of deleted insns; print statistics.
4334 (update_life_info_in_dirty_blocks): likewise.
4335 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4336 return number of insns deleted.
4338 * cse.c: Include timevar.h
4339 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4340 iterate until stabilizes; print statistics; return number of killed
4342 * Makefile.in: (cse.o): Add timevar.h dependency
4343 * rtl.h (delete_trivially_dead_insns): New.
4344 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4345 * toplev.c (rest_of_compilation): Update callers.
4347 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4348 (try_optimize_cfg): Do not update liveness.
4349 (cleanup-cfg): Loop until try_optimize_cfg and dead code
4350 removal stabilizes; use delete_trivially_dead_insns.
4352 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4354 2002-03-05 Zack Weinberg <zack@codesourcery.com>
4356 * cppmain.c (setup_callbacks): Disable #pragma and #ident
4357 callbacks when processing assembly language.
4359 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4361 * pa.h (ASM_FILE_END): Define.
4362 * som.h (ASM_FILE_END): Delete.
4364 * pa.c (function_arg): Don't pass floats in general registers in
4365 indirect calls if TARGET_ELF32.
4367 2002-03-05 Richard Henderson <rth@redhat.com>
4369 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4371 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
4373 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4375 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4377 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4378 -r command line. Don't hide any symbols if not building
4381 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
4383 * cfg.c (dump_flow_info): Warn about profile mismatches.
4384 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4385 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4387 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4389 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4390 wide volatile memory by parts.
4392 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4394 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4397 2002-03-05 Richard Henderson <rth@redhat.com>
4399 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4401 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4403 * toplev.c (documented_lang_options): Document more
4404 language-specific options.
4405 * doc/invoke.texi (Warning Options): Correct documentation for
4406 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4407 * c-decl.c (c_decode_option): Use a table to handle warning options.
4409 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
4411 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4412 parameter to mmix_encode_section_info.
4413 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4414 relocatably. Always produce ELF, not mmo if linking relocatably.
4415 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4416 first is non-zero, don't add symbol prefix.
4417 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4418 prototype accordingly.
4420 2002-03-04 Krister Walfridsson <cato@df.lth.se>
4422 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4424 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
4426 * configure.in: Increase required makeinfo version to 4.1.
4427 * configure: Regenerate.
4429 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4431 * .cvsignore: Remove *.info* and genrtl*; these files are generated
4434 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
4436 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4437 * doc/invoke.texi: Fix @math uses.
4439 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4441 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4444 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
4446 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4447 (powerpc-*-eabisimaltivec*): Same.
4449 * config/rs6000/t-ppcendian: New.
4451 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4453 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4454 nonimmediate_src_operand and nonimmediate_lsrc_operand to
4455 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4457 2002-03-03 Richard Henderson <rth@redhat.com>
4459 * toplev.c (rest_of_decl_compilation): Revert last two changes.
4461 2002-03-03 Zack Weinberg <zack@codesourcery.com>
4463 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4464 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4465 tree.c, config/m68k/m68k.c:
4466 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4467 REAL_ARITHMETIC blocks unconditional. Delete some further
4468 #ifdef blocks predicated on REAL_ARITHMETIC.
4469 * flags.h, toplev.c: Delete remaining references to
4472 * doc/invoke.texi: Remove documentation of -fpretend-float.
4473 * doc/tm.texi: Describe the various REAL_* macros as provided by
4474 real.h, not by the target configuration files.
4476 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4477 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4478 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4479 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4480 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4481 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4482 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4483 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4484 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4485 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4486 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4487 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4488 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4489 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4490 config/xtensa/xtensa.h:
4491 Do not define, undefine, or mention in comments any of
4492 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4493 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4494 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4495 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4496 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4497 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4498 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4499 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4500 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4502 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4504 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4505 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4506 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4507 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4508 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4509 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4511 * defaults.h (BITS_PER_WORD): Define.
4512 * doc/tm.texi (BITS_PER_WORD): Document default value.
4514 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4515 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4516 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4518 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4520 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4521 lieu of explicit sizeof/sizeof.
4522 * i386.c (override_options, ix86_init_mmx_sse_builtins,
4523 ix86_expand_builtin): Likewise.
4524 * mips.c (mips_add_gc_roots): Likewise.
4525 * mmix.c (mmix_output_condition): Likewise.
4526 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4527 altivec_init_builtins): Likewise.
4528 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4529 * cppexp.c (Nsuff, parse_number): Likewise.
4530 * cppinit.c (builtin_array_end): Likewise.
4531 * gcc.c (n_default_compilers, process_command): Likewise.
4532 * genpreds.c (output_predicate_decls): Likewise.
4533 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4534 * lcm.c (N_ENTITIES): Likewise.
4535 * stor-layout.c (set_sizetype): Likewise.
4537 2002-03-03 Richard Henderson <rth@redhat.com>
4539 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4540 for types or labels.
4542 2002-03-03 Richard Henderson <rth@redhat.com>
4544 * c-decl.c (start_decl): Initialized variables are not common.
4546 2002-03-02 Per Bothner <per@bothner.com>
4548 * gcc.c (option_map): Suport new --bootclasspath option.
4549 --CLASSPATH is now just an alias for --classpath.
4551 2002-03-02 Richard Henderson <rth@redhat.com>
4553 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4554 load if "internal" visibility.
4555 * doc/extend.texi: Document visibility meanings.
4557 2002-03-02 Richard Henderson <rth@redhat.com>
4559 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4560 to functions as well.
4562 2002-03-02 Richard Henderson <rth@redhat.com>
4564 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4565 (handle_visibility_attribute): Don't call assemble_visibility.
4566 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4567 without asmspec. Invoke assemble_alias when needed.
4568 * varasm.c (maybe_assemble_visibility): New.
4569 (assemble_start_function, assemble_variable, assemble_alias): Use it.
4571 2002-03-02 Richard Henderson <rth@redhat.com>
4573 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4574 invoke ENCODE_SECTION_INFO with first call flag.
4576 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4577 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4578 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4579 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4580 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4581 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4582 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4583 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4584 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4585 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4586 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4587 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4588 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4589 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4590 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4591 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4592 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4593 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4594 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4595 config/sh/sh.h, config/sparc/sparc.h,
4596 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4597 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4598 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4599 FIRST argument. As needed, examine it and do nothing.
4601 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4602 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4603 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4605 * config/arm/t-pe (pe.o): Add dependencies.
4607 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4609 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4610 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4611 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4612 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4613 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4614 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4615 * defaults.h (BITS_PER_UNIT): Define.
4616 * doc/tm.texi (BITS_PER_UNIT): Document default value.
4618 2002-03-02 Kazu Hirata <kazu@hxi.com>
4620 * config/h8300/h8300-protos.h: Add a prototype for
4621 compute_a_shift_length.
4622 * config/h8300/h8300.c (h8300_asm_insn_count): New.
4623 (compute_a_shift_length): Likewise.
4624 (h8300_adjust_insn_length): Do not adjust insn length of shift
4626 * config/h8300/h8300.md (anonymous shift patterns): Use
4627 compute_a_shift_length.
4629 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4631 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4634 * emit-rtl.c (offset_address): Call update_temp_slot_address.
4636 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4638 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4639 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4640 * flags.h (flag_zero_initialized_in_bss): Declare.
4641 * toplev.c (flag_zero_initialized_in_bss): New flag.
4642 (lang_independent_options): Add flag_zero_initialized_in_bss.
4643 * tree.c (initializer_zerop): New function.
4644 * tree.h (initializer_zerop): Declare.
4645 * varasm.c (assemble_variable): If we can emit bss, put zero
4646 initializers in the bss section.
4648 2002-03-02 Alan Modra <amodra@bigpond.net.au>
4650 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4651 like more than one symbol per .weak directive.
4653 2002-03-01 Richard Henderson <rth@redhat.com>
4655 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4656 adjust argument_pointer by pretend_args_size.
4657 (ia64_va_start): Adjust va_start address by -pretend_args_size.
4659 2002-03-01 Kazu Hirata <kazu@hxi.com>
4661 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4663 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
4665 * toplev.c (rest_of_compilation): Delete dead jumptables before
4667 * flow.c (delete_dead_jumptables): Make global.
4668 * rtl.h (delete_dead_jumptables): Declare.
4670 2002-03-01 David Edelsohn <edelsohn@gnu.org>
4672 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4673 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4674 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4676 2002-03-01 Kazu Hirata <kazu@hxi.com>
4678 * config/h8300/h8300-protos.h: Fix formatting.
4679 * config/h8300/h8300.c: Likewise.
4680 * config/h8300/h8300.h: Likewise.
4682 2002-03-01 Kazu Hirata <kazu@hxi.com>
4684 * config/h8300/h8300.c (print_operand): Support 16-bit
4686 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4688 2002-02-28 Richard Henderson <rth@redhat.com>
4690 * expmed.c (store_bit_field): Prevent generation of CONCATs;
4691 pun complex values as integers; use gen_lowpart instead of
4693 (extract_bit_field): Likewise.
4695 2002-03-01 Alan Modra <amodra@bigpond.net.au>
4696 David Edelsohn <edelsohn@gnu.org>
4698 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4699 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4700 (SUPPORTS_WEAK): Likewise.
4701 * output.h (add_weak): Add tree param.
4702 * varasm.c (add_weak): Likewise. Save decl.
4703 (struct weak_syms): Add decl field.
4704 (mark_weak_decls): New function.
4705 (init_varasm_once): ggc_add_root mark_weak_decls.
4706 (assemble_start_function): Use ASM_WEAKEN_DECL.
4707 (assemble_variable): Likewise.
4708 (assemble_alias): Likewise.
4709 (declare_weak): Pass decl to add_weak.
4710 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4711 (remove_from_pending_weak_list): Declare and define for
4713 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4714 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4715 * defaults.h (SUPPORTS_WEAK): Likewise.
4716 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4717 .weak for code sym. Do emit .size for descriptor sym.
4718 (ASM_DECLARE_FUNCTION_SIZE): Define.
4719 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4720 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
4721 .lglobl unless TARGET_XCOFF. Formatting fixes.
4722 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4724 (HANDLE_PRAGMA_WEAK): Remove.
4725 (ASM_WEAKEN_LABEL): Remove.
4726 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4728 2002-03-01 Jason Merrill <jason@redhat.com>
4730 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4731 (TARGET_EXPR_CLEANUP): New macro.
4733 2002-02-28 Steve Ellcey <sje@cup.hp.com>
4735 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4736 to take ptr_extend into account as third type of extension.
4737 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4738 fields used by SUBREG_PROMOTED_UNSIGNED_P.
4739 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4740 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4741 * calls.c (precompute_arguments): Use new macro.
4742 (expand_call): Ditto.
4743 * combine.c (nonzero_bits): Ditto.
4744 (record_promoted_value): Ditto.
4745 * expr.c (store_expr): Ditto.
4746 (expand_expr): Ditto.
4747 * function.c (assign_parms): Ditto.
4749 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
4751 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4752 override -shared and -shared-libgcc.
4754 2002-02-28 David O'Brien <obrien@FreeBSD.org>
4756 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4758 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
4761 2002-02-28 Richard Henderson <rth@redhat.com>
4763 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4764 4 cycle latency from MM producers.
4765 (ia64_internal_sched_reorder): Likewise with pipeline flush.
4767 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4769 * mklibgcc.in: Don't use GNU make extension.
4771 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4773 * c-parse.in (STATIC): New terminal.
4774 (scspec): New non-terminal. Update productions accordingly.
4775 (program): Remove bogus ifc / end ifc.
4776 (array_declarator): Simplify production using STATIC.
4778 2002-02-28 Jim Meyering <meyering@lucent.com>
4780 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4781 \a still means TARGET_BELL.
4783 2002-02-28 Richard Henderson <rth@redhat.com>
4785 * haifa-sched.c (sched_emit_insn): New.
4786 (schedule_block): Use last_scheduled_insn to track last insn.
4787 * sched-int.h (sched_emit_insn): Prototype.
4788 * config/ia64/ia64.c (last_issued): Remove.
4789 (ia64_variable_issue): Don't set it.
4790 (nop_cycles_until): Use sched_emit_insn.
4792 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
4794 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4797 2002-02-28 Kazu Hirata <kazu@hxi.com>
4799 * config/h8300/h8300.c: Fix formatting.
4800 * config/h8300/h8300.h: Likewise.
4802 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
4804 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4805 which may overwrite the high byte of the frame pointer.
4807 2002-02-28 Bo Thorsen <bo@suse.de>
4809 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4810 (STARTFILE_SPEC): Add 64 bit files.
4811 (ENDFILE_SPEC): Likewise.
4813 2002-02-28 Jason Merrill <jason@redhat.com>
4815 * c-decl.c (finish_function): Only warn about missing return
4816 statement with -Wreturn-type.
4818 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
4820 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4822 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4823 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4825 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
4827 * basic-block.h (BB_REACHABLE): Renumber.
4828 (BB_DIRTY, BB_NEW): New flags.
4829 (clear_bb_flags): Declare.
4830 (update_life_info_in_dirty_blocks): Declare.
4831 * cfg.c (clear_bb_flags): New function.
4832 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4833 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4834 reorder_insns, emit_insn_after): Mark block as dirty.
4835 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4836 (update_life_info_in_dirty_blocks): New function.
4837 * recog.c (apply_change_group): Dirtify block.
4839 * cse.c (cse_insn): Reorder emitting of jump insn to keep
4841 * gcse.c (delete_null_pointer_checks): Likewise.
4843 * toplev.c (dump_file_index): Move cse2 after bp,
4845 (dump_file_info): Similary.
4846 (rest_of_compilation): Avoid most of CFG rebuilds;
4847 do first if converision after null pointer checks, do cse2
4848 after branch prediction; avoid full liveness rebuild after
4849 initializing subregs.
4850 * invoke.texi (-d options): Document -du, renumber.
4852 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4853 (notice_new_block): Do not set BB_UPDATE_LIFE.
4854 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4855 merge_blocks_move_successor_nojumps, merge_blocks,
4856 try_crossjump_to_edge): Likewise.
4857 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4858 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4859 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4860 (merge_of_block): Do not use life_data_ok.
4861 (find_if_case_1): Do not use SET_UPDATE_LIFE.
4862 (if_convert): Use BB_DIRTY mechanizm to update life.
4863 * lcm.c (optimize_mode_switching): Update
4864 update_life_info_in_dirty_blocks
4866 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4868 * Makefile.in (integrate.o): Update.
4869 * c-decl.c (copy_lang_decl): Rename.
4870 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4871 * integrate.c: Include langhooks.h.
4872 (copy_decl_for_inlining): Update to use langhook.
4873 * langhooks-def.h (lhd_do_nothing_t,
4874 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4875 (LANG_HOOKS_INITIALIZER): Update.
4876 * langhooks.c (lhd_do_nothing_t): New.
4877 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4878 * tree.h (copy_lang_decl): Remove.
4880 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4882 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
4884 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4885 POST_DEC, and POST_MODIFY.
4887 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4889 * c-typeck.c (digest_init): Remove unused parameter; all
4892 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
4894 * expmed.c (expand_shift): Correctly test for low part of a
4897 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4899 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4900 insn UIDs with insn addresses.
4902 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4904 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4905 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4906 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4907 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4908 gcc.c, toplev.c: Delete code implementing -traditional mode.
4910 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4911 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4912 Document removal of -traditional mode for compilation, and
4913 remove documentation only relevant to that mode.
4915 * config/nextstep.h, config/ptx4.h, config/svr4.h,
4916 config/convex/convex.h, config/d30v/d30v.h,
4917 config/i386/dgux.h, config/i386/osf1elf.h,
4918 config/i386/osfelf.h, config/i386/osfrose.h,
4919 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4920 config/m68k/hp310.h, config/m88k/dgux.h,
4921 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4922 config/m88k/m88k.h, config/m88k/openbsd.h,
4923 config/mips/abi64.h, config/mips/osfrose.h,
4924 config/mips/svr4-5.h, config/mips/svr4-t.h,
4925 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4926 config/stormy16/stormy16.h: Remove all references to
4927 -traditional from target specs. Delete all mention of the
4928 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
4929 delete a couple of commented-out definitions of
4930 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4933 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4934 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4936 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4938 * mklibgcc.in: Don't use \n in a line subject to
4939 interpretation by echo.
4941 2002-02-27 Graham Stott <grahams@redhat.com>
4943 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4946 * loop.c (prescan_loop): Handle PARALLEL.
4948 * unroll.c (loop_iterations): Return 0 if the add_val for
4951 * final.c (output_operand_lossage): Constify PFX_STR.
4953 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4955 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
4957 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4958 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4960 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
4962 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4964 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
4966 * cpplex.c (_cpp_lex_token): Handle directives in macro
4968 * cpplib.c (_cpp_handle_directive): Save and restore state
4969 if parsing macro args when entering a directive.
4970 * cppmacro.c (collect_args): No need to handle directives
4972 (enter_macro_context, replace_args): Use the original macro
4973 definition in case it was redefined whilst collecting arguments.
4977 2002-02-26 David Edelsohn <edelsohn@gnu.org>
4979 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4980 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4981 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4983 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4984 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4985 (load_toc_v4_PIC_2): Same.
4987 2002-02-26 Alan Modra <amodra@bigpond.net.au>
4989 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4991 2002-02-26 Richard Henderson <rth@redhat.com>
4993 * config/alpha/alpha.md (ashldi_se): Re-enable.
4995 2002-02-26 Richard Henderson <rth@redhat.com>
4997 * config/alpha/alpha.c (alpha_encode_section_info): Examine
4998 MODULE_LOCAL_P; improve commentary.
5000 2002-02-26 Zack Weinberg <zack@codesourcery.com>
5002 * doc/cpp.texi: Clarify documentation of relationship between
5005 2002-02-26 Kazu Hirata <kazu@hxi.com>
5007 * config/h8300/h8300-protos.h: Update the prototype for
5008 compute_logical_op_length. Add the prototype for
5009 compute_logical_op_cc.
5010 * config/h8300/h8300.c (compute_logical_op_length): Figure out
5012 (compute_logical_op_cc): New.
5013 * config/h8300/h8300.md: Combine all the logical op patterns
5014 in HImode and SImode. Use compute_logical_op_cc.
5016 2002-02-26 Kelley Cook <kelleycook@comcast.net>
5018 * config/i386/i386.c (print_operand): Don't append ATT-style
5019 length suffixs to x87 opcodes when in Intel mode.
5021 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
5023 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5024 (init_emit_once): Update calls.
5025 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5026 (init_syntax_once): Prototype.
5028 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
5030 * pa-linux.h (LIB_SPEC): Update definition.
5031 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5033 2002-02-26 Richard Henderson <rth@redhat.com>
5035 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5036 if we emitted a stop bit.
5038 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5040 * configure.in (libgcc_visibility): Substitute.
5041 * configure: Rebuilt.
5042 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5043 defined symbols .hidden.
5045 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5047 * attribs.c (c_common_attribute_table): Add visibility.
5048 (handle_visibility_attribute): New function.
5049 * varasm.c (assemble_visibility): New function.
5050 * output.h (assemble_visibility): Add prototype.
5051 * tree.h (MODULE_LOCAL_P): Define.
5052 * crtstuff.c (__dso_handle): Use visibility attribute.
5053 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
5054 for MODULE_LOCAL_P symbols too.
5055 * config/ia64/ia64.c (ia64_encode_section_info): Handle
5056 MODULE_LOCAL_P symbols the same way as local symbols.
5057 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
5058 into .sdata/.sbss by the user.
5059 * doc/extend.texi (Function Attributes): Document visibility
5062 2002-02-26 Jakub Jelinek <jakub@redhat.com>
5065 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5066 STRING_CST initializer spanning the whole variable without
5068 If expand_expr returned MEM, don't use it.
5070 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
5072 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5073 generate a die for the lexical block.
5075 2002-02-26 Kazu Hirata <kazu@hxi.com>
5077 * config/h8300/h8300-protos.h: Add a prototype for
5078 compute_logical_op_length.
5079 * config/h8300/h8300.c (compute_logical_op_length): New.
5080 * config/h8300/h8300.md (anonymous logical patterns): Use
5081 compute_logical_op_length for length.
5083 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5085 * dwarf2out.c (modified_type_die): Do not call type_main_variant
5087 (gen_type_die): Same.
5089 * attribs.c (handle_vector_size_attribute): Set debug information.
5091 2002-02-26 Daniel Egger <degger@fhm.edu>
5093 * config/rs6000/rs6000.md: Swap define_insn attributes to
5094 fix incorrect generation of merge high instructions instead
5097 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5099 * c-typeck.c (really_start_incremental_init): Use
5100 bitsize_zero_node for vectors.
5102 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
5104 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
5105 ("*set_vrsave_internal"): Same.
5107 2002-02-25 Richard Henderson <rth@redhat.com>
5109 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5110 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
5112 2002-02-25 Jakub Jelinek <jakub@redhat.com>
5115 * config/i386/i386.c (ix86_return_pops_args): Only pop
5116 fake structure return argument if it was passed on the stack.
5118 2002-02-25 Jason Merrill <jason@redhat.com>
5120 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5123 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5125 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5126 link with shared_name only.
5127 * doc/invoke.texi (Link Options): Document new behavior.
5129 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5131 * c-typeck.c (push_init_level): Handle vectors.
5133 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
5135 * config/sparc/sparc.c (const64_high_operand): Zero-extend
5136 operands of SPARC_SETHI_P.
5137 (input_operand): Likewise.
5138 (sparc_emit_set_const32): Likewise.
5139 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5140 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5141 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
5142 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5143 (movdi_insn_sp64_vis): Likewise.
5144 (movdi split, movdf split): Use SETHI32.
5145 * doc/md.texi: Document SPARC constraints L, M and N.
5147 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
5149 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5150 ("*set_vrsave_internal"): use mfspr for Darwin.
5152 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5153 gen_get_vrsave_internal.
5155 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5157 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5159 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
5161 * cpplex.c (cpp_interpret_charconst): Get signedness or
5162 otherwise of wide character constants correct.
5163 * cppexp.c (lex): Get signedness of wide charconsts correct.
5165 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5167 * optabs.c (widen_operand): Only call convert_modes for
5168 promoted SUBREG if signedness matches.
5169 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5171 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5173 * cpplib.c (glue_header_name): Use local buffer to build up
5176 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5178 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5180 2002-02-23 Kazu Hirata <kazu@hxi.com>
5182 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5183 H8/300[HS] separately.
5184 * config/h8300/h8300.md: Remove the early clobber constraint
5185 from bit field patterns.
5187 2002-02-23 Kazu Hirata <kazu@hxi.com>
5189 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5191 (mulhisi3): Likewise.
5192 (umulqisi3): Likewise.
5193 (umulhisi3): Likewise.
5195 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5197 * cppinit.c (output_deps): Correct test for stdout output.
5198 (init_dependency_output): Cure warning.
5200 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5202 * expr.c (store_expr): When converting expression to promoted
5203 equivalent type, allow using SUBREG_REG of TARGET as the target
5204 of the expansion of EXP.
5205 * loop.c (basic_induction_var, case SUBREG): Always look inside.
5206 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5207 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5208 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5209 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5211 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
5213 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5214 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5215 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5217 2002-02-23 Jakub Jelinek <jakub@redhat.com>
5219 PR optimization/5747
5220 * loop.c (scan_loop): Update reg info if move_movables created new
5223 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5225 * gcc.c (init_gcc_spec): Revert last change.
5227 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5229 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5230 gpc_reg_operand constraint.
5232 2002-02-23 Alan Modra <amodra@bigpond.net.au>
5234 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5235 Simplify comparison of `low'.
5236 (add_operand): Fix formatting.
5237 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5238 (mask_operand): Disallow mask to wrap in 64-bit mode.
5239 (rs6000_stack_info): Remove redundant test setting push_p.
5240 (output_toc): Fix formatting.
5241 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5242 cc_reg_not_cr0_operand constraint.
5243 (booldi3, boolcdi3 splitters): Same.
5245 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
5247 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5249 2002-02-22 David Edelsohn <edelsohn@gnu.org>
5251 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5252 gcc invoked with -shared-libgcc.
5254 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5257 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5258 decl if any of elements was TREE_USED.
5260 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
5262 * config/sparc/sol2.h: Don't include sys/mman.h.
5263 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5264 (arith_4096_operand): Don't throw high bits away.
5265 (const64_operand): Take sign extension of CONST_INTs into account.
5266 (const64_high_operand, sparc_emit_set_const32): Likewise.
5267 (GEN_HIGHINT64): Likewise.
5268 (sparc_emit_set_const64_quick1): Likewise.
5269 (const64_is_2insns): Likewise.
5270 (print_operand): Use trunc_int_for_mode for sign extension.
5271 * config/sparc/sparc.h (SMALL_INT32): Likewise.
5272 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5273 chars. Assume CONST_INT is already properly sign-extended.
5274 (movdi split): Sign-extend each SImode part.
5275 (andsi3 split): Don't mask high bits off, so that result
5276 remains properly sign-extend.
5277 (iorsi3 split): Likewise.
5278 (xorsi3 split): Likewise.
5280 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
5282 * fold-const.c (fold): Fix typo in comments.
5284 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5286 * Makefile.in (langhooks.o): Update dependencies.
5288 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5290 * langhooks.c: Include flags.h.
5292 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
5294 * testsuite/gcc.dg/attr-alwaysinline.c: New.
5296 * c-common.c (c_common_post_options): Set inline trees by
5299 * doc/extend.texi (Function Attributes): Document always_inline
5301 Update documentation about inlining when not optimizing.
5303 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5305 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5306 unless DECL_ALWAYS_INLINE.
5308 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5309 unless DECL_ALWAYS_INLINE.
5310 (c_disregard_inline_limits): Disregard if always_inline set.
5312 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5313 Disregard if always_inline set.
5314 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5315 unless DECL_ALWAYS_INLINE.
5317 * attribs.c (handle_always_inline_attribute): New.
5318 (c_common_attribute_table): Add always_inline.
5320 * config/rs6000/altivec.h: Add prototypes for builtins
5321 requiring the always_inline attribute.
5323 2002-02-21 Eric Christopher <echristo@redhat.com>
5325 * expmed.c (store_bit_field): Try to simplify the subreg
5326 before generating a new one when when the mode size of
5327 value is less than maxmode.
5329 2002-02-21 Richard Henderson <rth@redhat.com>
5331 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5332 than gen_rtx_PLUS to form the sum.
5333 * explow.c (force_reg): Rearrange to not allocate new pseudo
5334 when force_operand returns a register.
5335 * expr.c (expand_assignment): Allow offset_rtx expansion to
5336 return a sum. Do not force addresses into registers.
5337 (expand_expr): Likewise.
5338 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5339 to canonicalize arithmetic that didn't simpify.
5340 (simplify_plus_minus): New argument force; update
5341 all callers. Don't split CONST unless we can do something with it,
5342 and wouldn't lose the constness of the operands.
5344 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5345 that we generated earlier.
5347 2002-02-21 Tom Tromey <tromey@redhat.com>
5349 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5350 (output_line_info): Use constant `1', with a long explanatory
5352 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5354 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
5356 * jump.c (redirect_jump): If old label has no UID, don't try to
5359 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
5361 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5362 If input is constant, do shifts at compile time.
5364 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
5366 * doc/extend.texi: Fix some more overfull hboxes.
5368 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5370 PR optimization/4994
5371 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5374 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5377 * expr.h (expand_and): Add mode argument.
5378 * expmed.c (expand_and): Add mode argument.
5379 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5380 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5381 * except.c (expand_builtin_extract_return_addr): Likewise.
5382 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5383 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5384 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5385 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5386 * config/c4x/c4x.md: Use GEN_INT (x) instead of
5387 gen_rtx (CONST_INT, VOIDmode, x).
5389 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5392 * stmt.c (warn_if_unused_value): Move side effects test once more.
5394 2002-02-20 Torbjorn Granlund <tege@swox.com>
5396 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5397 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5399 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
5401 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5402 SUBREG or ZERO_EXTEND.
5404 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
5406 * sh.h (current_function_anonymous_args): Remove.
5407 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5408 of current_function_varargs and current_function_stdarg is set.
5409 * sh.c (sh_expand_prologue): Check current_function_varargs /
5410 current_function_stdarg / TARGET_SH5 instead of
5411 current_function_anonymous_args.
5413 * sh64.h (TARGET_VERSION): Define.
5415 2002-02-20 David Edelsohn <edelsohn@gnu.org>
5417 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5418 VRSAVE_REGNO on TARGET_ALTIVEC.
5420 2002-02-20 Alan Modra <amodra@bigpond.net.au>
5422 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5423 bits of SImode const_int.
5424 (includes_rshift_p): Likewise.
5425 (print_operand): Call mask_operand and mask64_operand with correct
5427 (rs6000_output_function_epilogue): Pad traceback table to word.
5428 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5429 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5430 mask64_operand with correct mode.
5431 (FUNCTION_ARG_REGNO_P): Correct parentheses.
5433 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5436 * varasm.c (get_pool_constant_mark): New.
5437 * rtl.h (get_pool_constant_mark): Add prototype.
5438 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5439 be represented if it has not been output.
5441 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5443 * combine.c (do_SUBST): Sanity check substitutions of
5444 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5445 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5446 CONST_INT into its operand.
5447 (known_cond): Likewise, for ZERO_EXTEND.
5448 * simplify-rtx.c (simplify_unary_operation): Fix condition to
5449 allow for simplification of wide modes. Reject CONST_INTs in
5450 ZERO_EXTEND when their actual mode is not given.
5452 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5454 * c-decl.c (pushdecl): If no global declaration is found for an
5455 extern declaration in block scope, try a limbo one.
5457 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5460 * c-common.c (pointer_int_sum): Moved from...
5461 * c-typeck.c (pointer_int_sum): ...here.
5462 * c-common.h (pointer_int_sum): Add prototype.
5464 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5467 * c-decl.c (duplicate_decls): Return 0 if issued error about
5470 2002-02-20 Roger Sayle <roger@eyesopen.com>
5471 Jakub Jelinek <jakub@redhat.com>
5474 * tree.c (host_integerp): Ensure that the constant integer is
5475 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5476 when pos is zero or non-zero respectively. Clarify comment.
5477 * c-format.c (check_format_info_recurse): Fix host_integerp
5478 usage; the pos argument should be zero when assigning to a
5479 signed HOST_WIDE_INT.
5481 2002-02-20 Richard Henderson <rth@redhat.com>
5483 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5484 of the operand, rather than assuming TImode.
5485 (ix86_expand_binop_builtin): Cope with commutative patterns
5486 using nonimmediate_operand for both operands.
5487 (ix86_expand_timode_binop_builtin): Likewise.
5488 (ix86_expand_store_builtin): Validate operand 1.
5489 (ix86_expand_unop1_builtin): Likewise.
5491 2002-02-20 Philip Blundell <philb@gnu.org>
5494 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5496 2002-02-20 Richard Henderson <rth@redhat.com>
5499 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5501 2002-02-20 Tom Tromey <tromey@redhat.com>
5503 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5504 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5505 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5506 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5507 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5510 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5512 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5513 for (const_int 0) in X not just INTVAL.
5515 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
5517 * doc/extend.texi: Avoid or reduce overfull hboxes.
5519 2002-02-20 Diego Novillo <dnovillo@redhat.com>
5521 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5522 operations if the field does not start at a mode boundary.
5524 2001-02-20 Joel Sherrill <joel@OARcorp.com>
5526 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5527 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5528 Also done for -Acpu and -Amachine.
5530 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
5532 * cppinit.c (init_dependency_output): Take deps output file
5533 from -o if none given with -MF. Suppress normal output.
5534 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5535 * doc/cpp.texi, doc/invoke.texi: Update.
5537 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5539 * toplev.c (output_quoted_string): Write unprintable
5540 characters with octal escapes.
5542 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5544 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5545 really_call_used[VRSAVE_REGNO] if not Altivec.
5547 2002-02-19 Alan Modra <amodra@bigpond.net.au>
5549 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5551 (constant_pool_expr_1): Fix formatting.
5552 (rs6000_legitimize_reload_address): Likewise.
5554 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5556 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5557 now that we have one.
5559 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5561 * tree.h (struct tree_common): Remove aux. Add unused_0 at
5562 end of first block of bitfields (which was only seven bits);
5563 rename dummy to unused_1; remove comment which is no longer true.
5565 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5567 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5569 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5572 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5576 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5577 arm_is_longcall_p rather than inspecting call-type cookie
5579 (call_value_insn) [TARGET_THUMB]: Likewise.
5581 2002-02-19 Graham Stott <grahams@redhat.com>
5583 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5585 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5587 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5588 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5589 (FP_SAVE_INLINE): Delete.
5591 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5592 * config/rs6000/eabi.asm: Remove ABI save restore routines.
5593 * config/rs6000/t-ppccomm: Build crtsavres.o.
5594 * config/rs6000/crtsavres.asm: New file.
5596 2002-02-19 Philip Blundell <philb@gnu.org>
5598 * config/arm/arm.c (use_return_insn): Don't reject interrupt
5600 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5601 (output_return_instruction): Allow interrupt functions to return with
5602 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
5603 (arm_expand_prologue): Subtract 4 before stacking LR in an
5606 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5608 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5609 decl, not just FUNCTION_DECL.
5610 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5611 (arm_assemble_integer): Likewise.
5612 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5615 2002-02-19 matthew green <mrg@eterna.com.au>
5617 * config.gcc (sparc-*-netbsdelf*): Enable target.
5618 (sparc64-*-netbsd*): New target.
5619 * config/sparc/netbsd-elf.h: New file.
5620 * config/sparc/t-netbsd64: New file.
5622 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5624 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5626 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
5628 * doc/invoke.texi: explicitly list the style guidelines that
5629 -Weffc++ checks for.
5631 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
5633 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5635 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
5638 * gcc.c (cpp_unique_options): Treat -o as indicating object file
5639 only if not -E. If -E, pass -o through to the preprocessor.
5641 2002-02-19 Kazu Hirata <kazu@hxi.com>
5643 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5644 register number with an appropriate macro.
5646 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5648 * doc/rtl.texi (Constants): Close @code tag.
5650 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
5652 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5653 ("mmx_uavgv4hi3"): Same.
5654 ("pmulhrwv4hi3"): Same.
5656 * tree-inline.c (walk_tree): Handle vectors.
5658 * c-common.c (constant_expression_warning): Handle vectors.
5659 (overflow_warning): Same.
5661 * sched-deps.c (sched_analyze_2): Handle vectors.
5663 * rtlanal.c (rtx_unstable_p): Handle vectors.
5664 (rtx_varies_p): Same.
5665 (count_occurrences): Same.
5666 (regs_set_between_p): Same.
5667 (modified_between_p): Same.
5668 (modified_in_p): Same.
5669 (volatile_insn_p): Same.
5670 (volatile_refs_p): Same.
5671 (side_effects_p): Same.
5673 (inequality_comparisons_p): Same.
5674 (replace_regs): Same.
5675 (computed_jump_p_1): Same.
5677 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5679 (inner_mode_array): New.
5680 (copy_rtx): Handle vectors.
5681 (copy_most_rtx): Same.
5682 (rtx_equal_p): Same.
5683 (get_mode_alignment): Adjust for vectors.
5685 * resource.c (mark_referenced_resources): Handle vectors.
5686 (mark_set_resources): Same.
5688 * reload1.c (eliminate_regs): Handle vectors.
5689 (elimination_effects): Same.
5690 (scan_paradoxical_subregs): Same.
5692 * reload.c (subst_reg_equivs): Handle vectors.
5694 * regrename.c (scan_rtx): Handle vectors.
5696 * regclass.c (reg_scan_mark_refs): Handle vectors.
5698 * recog.c (find_single_use_1): Handle vectors.
5700 * local-alloc.c (equiv_init_varies_p): Handle vectors.
5701 (contains_replace_regs): Same.
5702 (memref_referenced_p): Same.
5704 * integrate.c (copy_rtx_and_substitute): Handle vectors.
5705 (subst_constants): Same.
5707 * genattrtab.c (attr_copy_rtx): Handle vectors.
5708 (encode_units_mask): Same.
5709 (clear_struct_flag): Same.
5710 (count_sub_rtxs): Same.
5712 * gcse.c (want_to_gcse_p): Handle vectors.
5713 (oprs_unchanged_p): Same.
5714 (hash_expr_1): Same.
5715 (oprs_not_set_p): Same.
5716 (expr_killed_p): Same.
5717 (compute_transp): Same.
5718 (store_ops_ok): Same.
5720 * function.c (purge_addressof_1): Do not allow paradoxical subregs
5722 (fixup_var_refs_1): Same.
5723 (instantiate_virtual_regs_1): Same.
5725 * fold-const.c (operand_equal_p): Handle vectors.
5727 (rtl_expr_nonnegative_p): Same.
5729 * flow.c (mark_used_regs): Handle vectors.
5731 * df.c (df_uses_record): Handle vectors.
5733 * cselib.c (cselib_subst_to_values): Handle vectors.
5734 (cselib_mem_conflict_p): Same.
5737 * cse.c (canon_reg): Handle vectors.
5739 (cse_process_notes): Same.
5740 (count_reg_usage): Same.
5743 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5745 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5747 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5748 (gen_rtx): Handle CONST_VECTOR.
5749 (gen_const_vector_0): New.
5750 (copy_rtx_if_shared): CONST_VECTORs can be shared.
5751 (reset_used_flags): Same.
5752 (copy_insn_1): Same.
5753 (initializer_constant_valid_p): Handle VECTOR_CST.
5755 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5757 * doc/rtl.texi (Constants): Document const_vector.
5758 (CONST0_RTX): Update for vectors.
5759 (RTL sharing): Same.
5761 * print-tree.c (print_node): Add case for VECTOR_CST.
5763 * tree.h (TREE_VECTOR_CST_ELTS): New.
5764 (struct tree_vector): New.
5765 (union tree_node): Add vector node.
5766 (build_vector): Add prototype.
5768 * tree.def (VECTOR_CST): New.
5770 * tree.c (build_vector): New.
5772 * expmed.c (make_tree): Handle CONST_VECTOR.
5774 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5775 (CONST_VECTOR_ELT): New.
5776 (CONST_VECTOR_NUNITS): New.
5778 * machmode.h (GET_MODE_INNER): New.
5779 (DEF_MACHMODE): Accept 8th arg.
5781 * machmode.def: Add 8th argument for vector inner mode.
5782 Add inner vector modes for vectors.
5784 * rtl.def (VEC_CONST): Remove.
5785 (CONST_VECTOR): New.
5787 * expr.c (clear_storage): Allow vectors.
5788 (is_zeros_p): Handle VECTOR_CST.
5790 * varasm.c (output_constant_pool): Handle vectors.
5791 (rtx_const): Add veclo and vechi fields.
5792 (kind): Add RTX_VECTOR.
5793 (decode_rtx_const): Add case for vector.
5795 * config/rs6000/rs6000-protos.h: Add zero_constant.
5797 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5798 constants. Force easy vector constants into memory.
5799 (easy_vector_constant): New.
5800 (emit_easy_vector_constant): New.
5801 (rs6000_legitimize_reload_address): Do not generate bad reloads on
5804 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5806 ("altivec_lvxl"): Same.
5807 (altivec_lvebx): Same.
5808 (altivec_lvehx): Same.
5809 (altivec_lvewx): Same.
5810 ("*movv4si_const0"): New.
5811 ("*movv4sf_const0"): New.
5812 ("*movv8hi_const0"): New.
5813 ("*movv16qi_const0"): New.
5815 2002-02-18 Kazu Hirata <kazu@hxi.com>
5817 * config/h8300/h8300.c (notice_update_cc): Use
5820 2002-02-18 Kazu Hirata <kazu@hxi.com>
5822 * config/h8300/h8300.md (divmod patterns): Change the
5823 constraints for operands[1] to register_operand.
5825 2002-02-18 Kazu Hirata <kazu@hxi.com>
5827 * config/h8300/h8300-protos.h: Remove the prototype for
5829 * config/h8300/h8300.c (p_operand): Remove.
5830 * config/h8300/h8300.md: Replace p_operand with
5833 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5835 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5837 (output_return_instruction): Allow use of LDR to unstack
5838 return addresss even for interrupt handlers or when
5839 interworking. If compiling for ARMv5, use interworking-safe
5840 return instructions by default. Remove duplicated code and
5841 lengthy "strcat" sequences.
5843 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5845 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5846 (LINK_EH_SPEC): Define.
5847 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5849 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5851 * config/s390/s390.c (s390_emit_prologue): Do not set the
5852 frame_related flag for call-clobbered registers.
5854 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
5856 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5857 (construct_container): Fix handling of SSE operands.
5858 (ix86_expand_builtin): Fix handling of 64bit pointers.
5859 (mmx_maskmovq_rex): New pattern.
5861 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
5863 * regrename.c (kill_set_value): Handle subregs properly.
5865 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
5867 * objc/objc-act.c (handle_impent): Remove leading '*'
5868 from objc_class_name.
5870 2002-02-17 Richard Henderson <rth@redhat.com>
5872 * config/alpha/alpha.c (some_small_symbolic_operand,
5873 some_small_symbolic_operand_1, split_small_symbolic_operand,
5874 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5875 Handle small SYMBOL_REFs anywhere, not just inside memories.
5876 * config/alpha/alpha-protos.h: Update.
5877 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5878 * config/alpha/alpha.md (small symbolic operand splitter): Update.
5880 2002-02-17 Roland McGrath <roland@frob.com>
5882 * config.gcc (powerpc-*-gnu-gnualtivec*,
5883 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5884 * config/rs6000/gnu.h: New file.
5885 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5886 Grok "gnu" in rs6000_abi_name.
5887 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5888 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5889 Grok -mcall-gnu analogous to -mcall-linux et al.
5890 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5891 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5892 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5894 2002-02-17 Jakub Jelinek <jakub@redhat.com>
5897 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5900 2002-02-17 Philipp Thomas <pthomas@suse.de>
5902 * config/cris/cris.h: Undefine STARTFILE_SPEC and
5903 ENDFILE_SPEC before (re)defining them.
5905 2002-02-17 Kazu Hirata <kazu@hxi.com>
5907 * config/h8300/h8300.c: Fix formatting.
5908 * config/h8300/h8300.h: Likewise.
5910 2002-02-17 Philipp Thomas <pthomas@suse.de>
5912 * doc/tm.texi: Explain why empty strings should not be
5913 marked for translation.
5915 2002-02-17 Philipp Thomas <pthomas@suse.de>
5917 * final.c (output_operand_lossage): Changed to accept
5918 printf style arguments. Change calls where necessary.
5919 * output.h (output_operand_lossage): Change declaration
5920 accordingly. Update copyright.
5921 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5922 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5923 Update copyright date where necessary.
5925 * config/i386/i386.c (print_operand): Likewise. Remove use of
5928 * config/cris/cris.c (cris_operand_lossage): Likewise.
5929 Rename parameter so that exgettext recognizes it as
5930 translatable message.
5931 (LOSE_AND_RETURN): Rename parameter to msgid.
5933 2002-02-17 Kazu Hirata <kazu@hxi.com>
5935 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5936 hard coded register number with an appropriate macro.
5937 (HARD_REGNO_MODE_OK): Likewise.
5938 (ARG_POINTER_REGNUM): Likewise.
5939 (STATIC_CHAIN_REGNUM): Likewise.
5940 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5941 * config/h8300/h8300.md (define_constants): Define more
5944 2002-02-17 Philipp Thomas <pthomas@suse.de>
5946 * config/i386/i386.h: Don't mark empty strings for translation.
5948 2002-02-16 H.J. Lu <hjl@gnu.org>
5950 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5952 2002-02-16 Zack Weinberg <zack@codesourcery.com>
5954 * cppinit.c (merge_include_chains): Check for brack being
5955 NULL before attempting to merge it with qtail.
5957 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5959 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5962 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5964 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5966 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5968 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5969 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5970 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5972 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5974 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5975 now only if !TARGET_FIX.
5976 (*movsi_nt_vms_fix): New pattern.
5978 2002-02-16 Douglas B Rupp <rupp@gnat.com>
5980 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5981 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5982 (alpha_sa_mask, alpha_sa_size): Reflect above change.
5983 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5984 (alpha_start_function, alpha_expand_epilogue): Likewise.
5985 (unicosmk_gen_dsib): Likewise.
5987 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5989 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5991 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
5993 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5994 check_and_change_labels, s390_final_chunkify): Delete.
5995 (s390_split_branches, s390_chunkify_pool): New functions.
5996 (s390_function_prologue): Call them.
5998 * config/s390/s390.h (S390_REL_MAX): Delete.
5999 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6001 * config/s390/s390.md (cjump, icjump, jump): Fix length
6002 attribute calculation.
6005 2002-02-15 David Edelsohn <edelsohn@gnu.org>
6007 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6008 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6010 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
6012 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6013 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6014 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6016 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6018 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6020 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
6022 * reload.c (find_dummy_reload): Check that an output register
6023 is valid for its mode.
6025 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
6027 * combine.c (known_cond): After replacing the REG of a SUBREG, try
6030 * function.c (assign_parms): Demote promoted argument passed by
6031 transparent reference.
6033 2001-02-14 Joel Sherrill <joel@OARcorp.com>
6035 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6036 -Acpu() and -Amachine() to eliminate warnings.
6038 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
6040 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6042 2002-02-14 Kazu Hirata <kazu@hxi.com>
6044 * config/h8300/h8300-protos.h: Update the prototype for
6046 * config/h8300/h8300.c (const_costs): Treat SET as a little
6047 more expensive operation.
6048 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6049 reference to const_costs.
6051 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
6053 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6055 2002-02-14 Jakub Jelinek <jakub@redhat.com>
6058 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6059 use arguments from newtype.
6061 2002-02-13 Eric Christopher <echristo@redhat.com>
6063 * config/mips/mips.c (override_options): Add check for march/mipsX
6064 on the same command line. Fix error message in cpu processing.
6065 Remove architecture and ISA checks.
6067 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6069 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6071 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6073 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
6075 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6077 ("*movv8hi_internal1"): Same.
6078 ("*movv16qi_internal1"): Same.
6079 ("*movv4sf_internal1"): Same.
6081 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6082 not push_reload for altivec modes.
6084 2002-02-13 Joel Sherrill <joel@OARcorp.com>
6086 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6087 all RTEMS targets including removal of #includes from config/*/rtems*.h
6088 file and adding them to tm_file setting. Added xm_defines=POSIX to
6090 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6091 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6092 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6093 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6094 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6095 config/m68k/rtemself.h: Ditto.
6096 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6097 config/mips/rtems64.h: Ditto.
6098 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6099 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6101 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6102 config/sparc/rtemself.h: Ditto.
6103 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6104 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6105 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6107 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6108 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6109 target made more similar to i386-elf.
6110 * config/i386/t-rtems-i386: Added soft float support and multilibs.
6111 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6112 be similar to config/m68k/t-m68kelf.
6113 * gthr-rtems.h: Encapsulate with extern "C" for C++.
6115 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
6117 * regmove.c (kill_value): Handle subregs.
6119 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
6121 * i386.md (mul patterns): Allow memory operand to be first;
6122 add expanders where needed; fix constraints.
6123 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6124 Allow memory operand to be the first.
6126 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6129 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6132 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6135 2002-02-13 Jakub Jelinek <jakub@redhat.com>
6137 PR optimization/5547:
6138 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6139 all valid IA-32 address modes involving non-scaled %ebx and
6140 GOT/GOTOFF as displacement.
6142 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6144 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6145 after emitting ltorg insns.
6147 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6148 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6149 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6150 *abssf2): Fix "op_type" attribute.
6152 2002-02-13 Douglas B Rupp <rupp@gnat.com>
6154 * mkconfig.sh: Avoid using a subshell redirect.
6155 ($output.T): Change to $(output)T.
6156 (ENABLE_NLS): Remove unneeded undef.
6158 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6159 * config/alpha/x-vms (libsubdir): Define.
6161 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6162 register frame procedures. Optimize retrieving context.
6164 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6165 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6166 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6168 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6170 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6171 Make same change as for find_base_value.
6173 2002-02-13 Kazu Hirata <kazu@hxi.com>
6175 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6176 of QImode and SImode.
6178 2002-02-13 Kazu Hirata <kazu@hxi.com>
6180 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6181 length computation of movsi.
6182 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6184 2002-02-13 Kazu Hirata <kazu@hxi.com>
6186 * config/h8300/h8300.md (subqi3): Tighten the predicate for
6187 operands[2] to register_operand.
6189 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
6191 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6193 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
6195 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6196 for altivec_lvx* and altivec_stvx*.
6197 ("*movv4si_internal"): Add constraint for loading from GPRs.
6198 ("*movv8hi_internal1"): Same.
6199 ("*movv16qi_internal1"): Same.
6200 ("*movv4sf_internal1"): Same.
6202 * config/rs6000/rs6000.c (altivec_register_operand): New.
6204 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6205 altivec_register_operand.
6207 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
6209 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6212 2002-02-13 Stan Shebs <shebs@apple.com>
6214 * c-typeck.c (digest_init): Handle vectors.
6215 (really_start_incremental_init): Same.
6216 (pop_init_level): Same.
6217 (process_init_element): Same.
6219 * varasm.c (output_constant): Same.
6221 * expr.c (clear_storage): Same.
6222 (store_constructor): Same.
6224 2002-02-12 Eric Christopher <echristo@redhat.com>
6226 * explow.c (hard_function_value): Add comment explaining
6227 signed/unsigned comparison.
6229 2002-02-12 Jakub Jelinek <jakub@redhat.com>
6231 * jump.c (never_reached_warning): Add finish argument.
6232 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6233 real insn after end.
6234 * rtl.h (never_reached_warning): Adjust prototype.
6235 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6236 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6237 never_reached_warning.
6239 2002-02-12 Graham Stott <grahams@redhat.com>
6241 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6243 2002-02-12 Kazu Hirata <kazu@hxi.com>
6245 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6246 logical shifts on H8/300.
6247 (shift_alg_si): Improve several shifts on H8/300.
6248 (get_shift_alg): Likewise.
6250 2002-02-12 Graham Stott <grahams@redhat.com>
6252 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6254 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6256 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6257 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6259 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
6261 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6262 non-CONST_INT through default_assemble_integer.
6263 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6264 <case 8>: Abort for CONST_DOUBLE.
6266 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6268 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6270 * config/pa/pa-linux.h (LIB_SPEC): Delete.
6271 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6273 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
6275 * config/stormy16/stormy16.md (zero_extendqihi2): New.
6277 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6279 * regrename.c (regrename_optimize): Don't accept a
6280 part-clobbered register if the replaced register is not part
6283 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6284 take padding into account when computing the argument value.
6286 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6288 * combine.c (try_combine): Apply substitutions in
6289 CALL_INSN_FUNCTION_USAGE too.
6291 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
6293 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6294 __builtin_altivec_abs*.
6297 * config/rs6000/rs6000.h (rs6000_builtins): Add
6298 ALTIVEC_BUILTIN_ABS*.
6300 * config/rs6000/altivec.h: Use const char for builtins expecting
6302 (vec_abs): New versions for C and C++.
6305 2002-02-10 Kazu Hirata <kazu@hxi.com>
6307 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6310 2002-02-10 Kazu Hirata <kazu@hxi.com>
6312 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6313 constant definition from h8300.md.
6314 (FRAME_POINTER_REGNUM): Likewise.
6315 * config/h8300/h8300.md (define_constants): Add FP_REG.
6317 2002-02-10 Kazu Hirata <kazu@hxi.com>
6319 * config/h8300/h8300.c (print_operand): Remove redundant code.
6321 2002-02-10 Kazu Hirata <kazu@hxi.com>
6323 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6324 * config/h8300/h8300.c (byte_reg): Make it static.
6326 2002-02-10 Richard Henderson <rth@redhat.com>
6329 * c-typeck.c (incomplete_type_error): Handle flexible array members.
6331 2002-02-10 Richard Henderson <rth@redhat.com>
6334 * tree.c (append_random_chars): Don't abort if main_input_filename
6337 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
6339 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6341 2002-02-10 Kazu Hirata <kazu@hxi.com>
6343 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6344 (pushhi1): Likewise.
6346 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
6348 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6349 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6351 2002-02-09 David O'Brien <obrien@FreeBSD.org>
6353 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6355 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
6357 2002-02-09 Kazu Hirata <kazu@hxi.com>
6359 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6360 a half of an SImode register on H8/300.
6362 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
6364 * i386.md (movdi_2): Add missing '!'.
6366 2002-02-09 Kazu Hirata <kazu@hxi.com>
6368 * config/h8300/h8300.h: Fix formatting. Remove commented-out
6371 2002-02-09 Kazu Hirata <kazu@hxi.com>
6373 * config/h8300/h8300.md (length): Correct the distance valid
6374 for the short branch.
6376 2002-02-09 Kazu Hirata <kazu@hxi.com>
6378 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6380 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6382 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6383 registers in SImode.
6384 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6387 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6390 Contribute sh64-elf.
6391 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6392 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6393 (sh_cannot_modify_jumps_p): New function.
6394 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6395 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6396 (sh_ms_bitfield_layout_p): New function.
6397 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6398 Zack Weinberg <zack@codesourcery.com>
6399 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6400 expand_simple_binop instead of expand_binop.
6401 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
6402 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6403 use of .quad and .uaquad.
6404 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6405 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6406 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6407 * config/sh/sh.md (movdi_const, movdi_const_32bit,
6408 movdi_const_16bit): Make sure all CONSTs have modes.
6409 (sym2PIC): Ditto, but by adjusting all callers.
6410 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6411 if the prologue calls the SHmedia argument decoder or register
6413 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6414 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6415 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6416 (sh_expand_epilogue): Don't emit USE of return target register.
6417 (prepare_move_operands): Legitimize DImode PIC addresses.
6418 (sh_media_register_for_return): Skip tr0, used to initialize the
6420 (sh_expand_prologue): Remove explicit USE of return register.
6421 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
6422 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
6423 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6424 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6425 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6427 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6428 (MOVI_SHORI_BASE_OPERAND_P): New.
6429 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6430 (EXTRA_CONSTRAINT_T): Define in terms of them.
6431 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6432 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6433 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6434 alternatives supporting TARGET_REGS.
6435 (UNSPEC_GOTPLT): New constant.
6436 (movdi split): Move incrementing of LABEL_NUSES...
6437 (movdi_const, movdi_const_32bit): Here. Use
6438 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6439 (movdi_const_16bit): New.
6440 (call, call_value) [flag_pic]: Use GOTPLT.
6441 (call_pop, call_value_pop): New expands.
6442 (call_pop_compact, call_pop_rettramp): New insns.
6443 (call_value_pop_compact, call_value_pop_rettramp): New insns.
6444 (sibcall) [flag_pic]: Use GOT.
6445 (builtint_setjmp_receiver): Remove bogus, unused expand.
6446 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6447 (*pt, *ptb, ptrel): New insns.
6448 (sym2GOT): Handle DImode GOT.
6449 (sym2GOTPLT, symGOTPLT2reg): New expands.
6450 (sym2PIC): New expand.
6451 (shcompact_return_tramp): Use GOTPLT to return trampoline.
6452 (shcompact_return_tramp_i): Use return register explicitly.
6453 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6454 disable flag_reorder_blocks.
6455 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
6456 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6457 clobbers, for clarity.
6458 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6459 restoring of r0 in macl as MAYBE_DEAD.
6460 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6461 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6462 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6463 alter_subreg all over.
6464 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6465 reload, instead of emitting instructions that would require
6467 (casesi_load_media): Add missing modes.
6468 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
6469 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6470 as used if the argument decoder is called.
6471 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6472 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6473 Pmode, then extend it to DImode if necessary.
6474 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6475 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6476 constants in FPU-enabled SHmedia, let them be loaded from memory.
6477 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6478 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6479 Adjust whitespace in assembly output templates.
6480 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6481 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6482 mode of if_then_else.
6483 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
6484 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6486 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
6487 Joern Rennecke <amylaar@redhat.com>
6488 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6489 (SUBTARGET_CPP_PTR_SPEC): New.
6490 (SUBTARGET_CPP_SPEC): Remove.
6491 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6492 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6493 Fix typo in previous checkin.
6494 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
6495 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6496 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
6497 Alexandre Oliva <aoliva@redhat.com>
6498 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6499 what single FP register can hold for SHmedia target.
6500 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6501 Alexandre Oliva <aoliva@redhat.com>
6502 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6503 Do not split into SUBREG.
6504 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
6505 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6506 and added new functions as specified in SH5 ABI r9.
6507 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
6508 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6510 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
6511 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6512 gen_consttable_4 and gen_consttable_8. Emit multiple labels
6513 and consttable_window_ends.
6514 2001-06-03 Graham Stott <grahams@redhat,com>
6515 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6516 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
6517 * config/sh/sh.c (print_operand): Handle floating-point pair,
6518 vector and matrix registers.
6519 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6520 vector modes into account.
6521 * config/sh/sh.md (movv2sf): Split move between registers into
6523 (movv4sf, movv16sf): Introduce insns that get split only after
6525 * config/sh/shmedia.h: Fix Copyright dates.
6526 * config/sh/ushmedia.h: Likewise. Move loop counter
6527 declarations into conditionals that uses them.
6528 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6530 * config/sh/sshmedia.h: Fix Copyright dates.
6531 (sh_media_PUTCFG): Fix constraints.
6532 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
6533 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6534 ptrmemfunc_vbit_in_delta for SH5.
6535 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
6536 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6537 * invoke.texi: Likewise.
6538 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6539 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6540 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6541 GCC_pop_shmedia_regs_nofpu): New global symbols.
6542 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6543 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6544 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6545 compact function with nonlocal labels.
6546 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6547 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6548 (initial_elimination_offset): Account for their stack space.
6549 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6550 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6551 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6552 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6553 least one of the operands to be a register.
6554 (movv2sf): Likewise. Renamed to movv2sf_i.
6555 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6556 prepare_move_operands() before emitting SHmedia insns.
6557 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
6558 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6559 Don't save nor initialize r12. Don't mis-align the stack.
6560 Pad the code with a nop.
6561 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
6563 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
6564 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6565 [__SHMEDIA__]: Implement.
6566 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
6567 * config/sh/sh.md: Set latency of `pt' closer to reality.
6568 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6569 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6570 Set move, load and store type attributes.
6571 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6572 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6574 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6575 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6576 * config/sh/sh.c (sh_media_register_for_return): New function.
6577 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6578 branch-target register.
6579 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6580 * config/sh/sh.md (return_media_i): Use any call-clobbered
6581 branch-target register.
6582 (return_media): If r18 wasn't copied in the prologue, copy it
6584 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6585 Clear class FP0_REGS.
6586 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6588 2001-03-08 DJ Delorie <dj@redhat.com>
6589 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6590 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
6591 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6592 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
6593 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6594 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
6595 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6596 return value correctly for call_cookie.
6597 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
6598 * config/sh/crt1.asm (start): Modified so as to call
6599 ___setup_argv_and_call_main.
6600 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
6601 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6603 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
6604 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6605 (STRIP_NAME_ENCODING): Use it.
6606 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
6607 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
6608 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6609 prepare_scc_operands().
6610 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6611 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6612 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
6613 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6614 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
6615 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6616 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6617 used in shcompact_incoming_args.
6618 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6620 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6622 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6624 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6625 Simplify. Adjust. Add sanity check.
6626 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6628 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6630 (udivsi3, divsi3): Use them.
6631 (force_mode_for_call): New insn.
6632 (call, call_value, sibcall_value): Emit it before SHcompact
6634 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
6635 * config/sh/sh.md (call, call_value, sibcall): Make sure the
6636 call cookie is non-NULL before taking its value.
6637 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
6638 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6639 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
6640 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6642 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6643 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6644 temporary for stack adjusts. Use MACL and MACH to pass
6645 arguments to shcompact_incoming_args.
6646 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
6648 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6649 (nested_trampoline): Load static chain address into r1.
6650 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6651 2001-01-07 Alexandre Oliva <aoliva@redhat.com
6652 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6653 fp_arith_reg_operand().
6654 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
6655 * config/sh/sh.md (casesi): Sign-extend the first two operands,
6656 and use signed compares for them.
6657 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6658 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
6659 ones properly aligned.
6660 (find_barrier): Account for extra alignment needed for 8-byte wide
6662 (machine_dependent_reorg): Require a label for the second 4-byte
6663 constant after an 8-byte one.
6664 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6666 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6667 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6668 last_float when switching float modes.
6669 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6670 auto-increment for general-purpose registers.
6671 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6673 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6675 * config/sh/sh.c (sh_builtin_saveregs): Support using all
6676 registers for varargs.
6677 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
6678 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6679 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6680 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6681 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6682 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
6683 call_cookie accordingly.
6684 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6685 (SHCOMPACT_BYREF): Likewise.
6686 (SHCOMPACT_FORCE_ON_STACK): New macro.
6687 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6688 (sh_builtin_saveregs): Likewise.
6689 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6690 shcompact_incoming_args): Use new shift values. Support
6691 sequences of consecutive and non-consecutive pushes/pops.
6692 * config/sh/sh.md (return): Don't explicitly use PR_REG.
6693 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6694 * config/sh/sh.h (TEXT_SECTION): Define.
6695 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6696 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6697 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6698 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6699 return values on FPU-enabled SHmedia.
6700 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6701 FPU-enabled SHmedia.
6702 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6703 value is returned in a non-FP reg and is not returned by
6705 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6707 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
6708 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6709 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6710 quad-aligned to be passed by callee-copy reference.
6711 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
6712 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6713 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6714 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
6715 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6716 copying low-numbered FP regs to r7 and r8.
6717 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6718 FP regs to general-purpose regs only if the copy was passed on the
6720 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6721 copying FP reg to r9.
6722 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6723 copy FP regs to general-purpose regs only in outgoing calls.
6724 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6725 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
6727 * config/sh/sh.h (struct sh_args): Document all fields.
6728 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6729 passed partially on the stack should not consider making
6731 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6732 stack_regs only for incoming calls. When passing FP args,
6733 make sure there are FP regs available before modifying
6735 (SHCOMPACT_BYREF): Pass double args in general-purpose
6736 registers by reference.
6737 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
6738 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6739 attempt to generate sibcalls if the caller got any arguments
6741 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6742 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6743 to 8-byte boundaries.
6744 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6745 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6746 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6747 stored in the stack.
6748 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6749 for the offsets to have the ISA bit set.
6750 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
6751 invocation. Use beq instead of bgt to mark end of sequence of
6753 (shcompact_incoming_args): Fix store of r2. Use beq instead of
6754 bgt to mark end of sequence of stores.
6755 * config/sh/sh.c (arith_operand): Don't check whether
6756 CONST_OK_FOR_J for now.
6757 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6758 instead of long for conversion.
6759 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
6760 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6761 before passing it to fprintf.
6762 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
6763 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6764 Call set_fpscr before reading/writing SR.
6765 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6767 * config/sh/lib1funcs.asm: Add `.align 2' directives before
6769 (FMOVD_WORKS): Define on SH5 with FPU.
6770 (set_fpscr): Define on SH5. Remove separate _fpscr_values
6772 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6774 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
6775 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6777 (ia_main_table): Ditto.
6778 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
6779 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6780 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6781 the definitions from sh.h.
6782 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6784 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6785 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6786 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6787 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
6788 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6789 Increment LABEL_NUSES.
6791 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6793 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6795 * config/sh/elf.h (SIZE_TYPE): Likewise.
6796 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6797 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6798 shcompact_incoming_args): Load switch table addresses using
6800 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6801 (NO_BUILTIN_SIZE_TYPE): Define.
6802 (SIZE_TYPE): Don't define.
6803 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6804 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6805 definition of __SH5__=32 for -m5-compact-nofpu.
6806 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6808 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
6809 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6810 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
6811 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6812 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6813 (INSN_LENGTH_ALIGNMENT): Likewise.
6814 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6815 * config/sh/sh.md (call, call_value, sibcall): Simplify
6816 copying of non-branch-target register.
6817 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6818 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
6819 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6820 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6821 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6822 floating-point values as structs.
6823 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6824 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6825 general-purpose register.
6826 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6827 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6828 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6829 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6830 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6831 (ENCODE_SECTION_INFO): Enclose variables and constants in
6833 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6834 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6835 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6836 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6837 only for LABEL_REFs. For SYMBOL_REFs, prepend
6838 SH_DATALABEL_ENCODING to the symbol name.
6839 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6841 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6842 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6844 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6845 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6846 (DATALABEL_REF_P): Don't require CONST.
6847 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6849 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
6850 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6852 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6853 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6854 Use shallow_copy_rtx and PUT_MODE to change the mode of
6855 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6856 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6857 on SHmedia using GENERAL_REGs.
6858 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6859 bltu_media_i): Fix reversion of conditions.
6860 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6861 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6862 * config/sh/sh.c (output_far_jump): Save r13 in macl.
6863 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
6864 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6865 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
6866 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6867 (GCC_nested_trampoline): Likewise.
6868 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6869 * config/sh/sh.c (gen_datalabel_ref): Define.
6870 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6871 (INITIALIZE_TRAMPOLINE): Likewise.
6872 (TRAMPOLINE_ADJUST_ADDRESS): Define.
6873 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6874 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6875 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6876 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6877 (ic_invalidate): Adjust for SH5.
6878 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6879 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6881 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
6882 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6883 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6884 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6885 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6886 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6887 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6888 * config/sh/sh.c (target_reg_operand): Match only target-branch
6889 registers and pseudos that aren't virtual registers.
6890 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6891 Copy operands that don't match target_reg_operand to pseudos.
6892 (call_media, call_value_media, sibcall_media): Use
6893 target_reg_operand instead of target_operand.
6894 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
6895 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6896 * config/sh/sh.c (target_reg_operand): Match hardware registers
6897 other than branch-target registers.
6898 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6899 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6900 (fpscr_values) [SH5 == 32]: Define.
6901 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6902 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6903 Handle function addresses coming in SUBREGs.
6904 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
6905 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6906 shcompact_return_trampoline): Use datalabel where appropriate.
6907 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
6908 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6909 general-purpose register to copy one branch-target register to
6911 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6912 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6913 SYMBOL_REFs with VOIDmode.
6914 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6915 bltu_media_i): New insns.
6916 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6917 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6918 (INIT_CUMULATIVE_ARGS): Likewise.
6919 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
6920 * machmode.def (V16SFmode): New mode.
6921 * c-common.c (type_for_mode): Support V2SF and V16SF.
6922 * tree.c (build_common_tree_nodes_2): Likewise.
6923 * tree.h (tree_index): Likewise.
6924 * calls.c (emit_call_1): Take args_so_far. Adjust all
6925 callers. Introduce CALL_POPS_ARGS.
6926 * tm.texi (CALL_POPS_ARGS): Document.
6927 * config/sh/crt1.asm: Implement in SHmedia mode.
6928 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6929 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6930 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6931 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6932 Implement divsi and udivsi in SHmedia mode. Introduce
6933 SHcompact trampolines.
6934 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6936 (regno_reg_class): Rewrite.
6937 (fp_reg_names): Remove.
6938 (sh_register_names, sh_additional_register_names): New.
6939 (print_operand): Added `u'. Support SUBREGs in addresses.
6940 Add parentheses around shifted CONSTs.
6941 (output_file_start): Output .mode and .abi directives.
6942 (shiftcosts, addsubcosts, multcosts): Adjust.
6943 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
6944 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
6945 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
6946 bytes, not registers. Take into account the need for the
6947 SHcompact incoming args trampoline. Adjust all callers.
6948 (sh_expand_prologue): Take stack_regs into account. Call
6949 incoming args trampoline. Keep stack aligned as per SH5 ABI.
6950 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
6951 stack aligned as per SH5 ABI.
6952 (sh_builtin_saveregs): Support SH5 ABI.
6953 (sh_build_va_list, sh_va_start): Likewise.
6954 (initial_elimination_offset): Take alignment into account.
6955 Compute location of PR according to the SH5 stack frame.
6956 (arith_reg_operand): Reject branch-target registers.
6957 (shmedia_6bit_operand): New.
6958 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6959 (target_reg_operand): Match DImode only. Accept SUBREGs.
6960 (target_operand): New.
6961 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6962 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
6963 SIBCALL_REGS for SHmedia.
6964 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6965 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6966 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6967 (TARGET_SWITCHES): New SH5 flags.
6968 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
6969 VALID_REGISTER_P to disable unsupported registers.
6970 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6971 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6972 (FUNCTION_ARG_PADDING): Define.
6973 (FASTEST_ALIGNMENT): Adjust.
6974 (SH_REGISTER_NAMES_INITIALIZER): New.
6975 (sh_register_names): Declare.
6976 (DEBUG_REGISTER_NAMES): Define.
6977 (REGISTER_NAMES): Define based on sh_register_names.
6978 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6979 (sh_additional_register_names): Declare.
6980 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6981 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6982 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6983 (REGISTER_NATURAL_MODE): Define.
6984 (FIRST_PSEUDO_REGISTER): Adjust.
6985 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6986 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6987 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6988 (VECTOR_MODE_SUPPORTED_P): Define.
6989 (REG_CLASS_CONTENTS): Adjust.
6990 (SMALL_REGISTER_CLASSES): Adjust.
6991 (REG_ALLOC_ORDER): Adjust.
6992 (INDEX_REG_CLASS): Adjust.
6993 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6994 (CONST_OK_FOR_LETTER_P): Adjust.
6995 (PREFERRED_RELOAD_CLASS): Adjust.
6996 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6997 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6998 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6999 (FIRST_FP_PARM_REG): Adjust.
7000 (CALL_POPS_ARGS): Define.
7001 (FUNCTION_ARG_REGNO_P): Adjust.
7002 (struct sh_args): New fields.
7003 (GET_SH_ARG_CLASS): Adjust.
7004 (INIT_CUMULATIVE_ARGS): Adjust.
7005 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7006 (FUNCTION_ARG_ADVANCE): Adjust.
7007 (FUNCTION_ARG): Adjust.
7008 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7009 (FUNCTION_ARG_CALLEE_COPIES): Define.
7010 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7011 (STRICT_ARGUMENT_NAMING): Define.
7012 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7013 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7014 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7015 (SETUP_INCOMING_VARARGS): Adjust.
7016 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7017 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7018 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7019 (SUBREG_OK_FOR_INDEX_P): Adjust.
7020 (EXTRA_CONSTRAINT_S): Update.
7021 (EXTRA_CONSTRAINT_T): New.
7022 (EXTRA_CONSTRAINT): Adjust.
7023 (GO_IF_LEGITIMATE_INDEX): Adjust.
7024 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7025 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7027 (MAX_MOVE_MAX): Define.
7029 (CONST_COSTS): Adjust.
7030 (REGISTER_MOVE_COST): Adjust.
7031 (BRANCH_COST): Adjust.
7032 (TEXT_SECTION_ASM_OP): Adjust.
7033 (DBX_REGISTER_NUMBER): Adjust.
7034 (ASM_OUTPUT_DOUBLE_INT): New.
7035 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7036 (PREDICATE_CODES): Adjust.
7037 (PROMOTE_MODE): Adjust.
7038 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7039 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7040 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7041 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7042 (DR0_REG, DR2_REG, DR4_REG): Renumber.
7043 (TR0_REG, TR1_REG, TR2_REG): New.
7044 (XD0_REG): Renumber.
7045 (UNSPEC_COMPACT_ARGS): New.
7046 (type): Added pt and ptabs.
7047 (length): Default to 4 on SHmedia. Default pt length to 12
7048 and 20 on SHmedia32 and SHmedia64, respectively.
7049 (pt): New function unit.
7050 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
7051 Add whitespace between operands of SHmedia instructions.
7053 (adddi3_media, addsi3_media): Adjust constraints.
7054 (subsi3) [SHmedia]: Force operand 1 into a register.
7055 (udivsi3_i1_media, udivsi3_i4_media): New.
7056 (udivsi3): Support SHmedia.
7057 (divsi3_i1_media, divsi3_i4_media): New.
7058 (divsi3): Support SHmedia.
7059 (anddi3, iordi3, xordi3): Adjust constraints.
7060 (zero_extendhidi2, zero_extendqidi2): New.
7061 (extendsidi2, extendhidi2, extendqidi2): New.
7062 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7063 (pop_e, pop_fpul, pop_4): Likewise.
7064 (movsi_media): Support FP and BT registers.
7065 (movsi_media_nofpu): New. Adjust splits to DImode.
7066 (lduw, ldub): Renamed to zero_extend* above.
7067 (movqi_media): Fix typo.
7068 (movdi_media): Support FP and BT registers.
7069 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
7070 (movdi_const_32bit): New.
7071 (shori_media): Require immediate operand. Use `u' for output.
7072 (movdf_media, movsf_media): Simplified.
7073 (movdf_media_nofpu, movsf_media_nofpu): New.
7074 (movdf, movsf): Adjust
7075 (movv2sf, movv2sf, movv16sf): New.
7076 (beq_media, beq_media_i): Adjust constraints. Don't use
7077 scratch BT register.
7078 (bne_media, bne_media_i): Likewise.
7079 (bgt_media, bgt_media_i): Likewise.
7080 (bge_media, bge_media_i): Likewise.
7081 (bgtu_media, bgtu_media_i): Likewise.
7082 (bgeu_media, bgeu_media_i): Likewise.
7083 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7084 bunordered): Emit jump insn. Force operands to registers when
7086 (jump_media, jump): Simplify.
7087 (call_compact, call_compact_rettramp): New.
7088 (call_value_compact, call_value_compact_rettramp): New.
7089 (call_media, call_value_media): Simplify.
7090 (sibcall_compact, sibcall_media): New.
7091 (call, call_value): Adjust for SHmedia and SHcompact.
7092 (sibcall, sibcall_value, untyped_call): Likewise.
7093 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7094 (indirect_jump): Adjust for SHmedia.
7095 (casesi_jump_media): New.
7096 (nop): Re-enable for SHmedia.
7097 (call_site): Restrict to SH1.
7098 (casesi): Adjust for SHmedia.
7099 (casesi_shift_media, casesi_load_media): New.
7100 (return): Explicitly use PR register. Call return trampoline
7102 (return_i): Explicitly use PR register.
7103 (shcompact_return_tramp, shcompact_return_tramp_i): New.
7104 (return_media): Adjust.
7105 (shcompact_incoming_args): New.
7107 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7108 (movstrsi): Disable on SH5.
7109 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7110 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7111 (subsf3, subsf3_media): Likewise.
7112 (mulsf3, mulsf3_media, mac_media): Likewise.
7113 (divsf3, divsf3_media): Likewise.
7114 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
7115 (floatsisf2, fux_truncsfsi2): Likewise.
7116 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
7118 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7119 (cmpunsf_media, cmpsf): Likewise.
7120 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7121 (abssf2, abssf2_media): Likewise.
7122 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7123 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7124 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
7125 (floatsidf2, fix_truncdfsi2): Likewise.
7126 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
7128 (cmpeqdf_media, cmpgtdf_media): Likewise.
7129 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7130 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7131 (absdf2, absdf2_media): Likewise.
7132 (extendsfdf2, extendsfdf2_media): Likewise.
7133 (truncsfdf2, truncsfdf2_media): Likewise.
7134 * config/sh/sh64.h: New file.
7135 * config/sh/t-sh64: New file.
7136 * config/sh/shmedia.h: New file.
7137 * config/sh/ushmedia.h: New file.
7138 * config/sh/sshmedia.h: New file.
7139 * configure.in: Added sh64-*-elf.
7140 * configure: Rebuilt.
7141 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
7142 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7143 (reg_class_from_letter): Use `b' for TARGET_REGS.
7144 (print_operand): Support `%M', `%m', `AND' and
7145 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
7146 (andcosts): Adjust for SHmedia.
7147 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7149 (target_reg_operand): New function.
7150 * config/sh/sh-protos.h (target_reg_operand): Declare.
7151 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7152 FP registers on SH5.
7153 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7155 (TARGET_REGISTER_P): New macro.
7156 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7157 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7158 (EXTRA_CONSTRAINT_S): New macro.
7159 (EXTRA_CONSTRAINT): Adjust.
7160 (FLOAT_TYPE_SIZE): Define to 32.
7161 (Pmode): DImode on SHmedia.
7162 (CONST_COSTS): Adjust for SHmedia literals.
7163 (PREDICATE_CODES): Added target_reg_operand.
7164 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7165 * config/sh/sh.md: Remove all attrs from SHmedia insns.
7166 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7167 (cmpdi): Accept SHmedia.
7168 (movdicc_false, movdicc_true): New insns.
7169 (movdicc): New expand.
7170 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7172 (addsi3_media): Match `S' constraint.
7173 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7174 (negdi2): Expand for SHmedia.
7175 (one_cmpldi2): New expand.
7176 (zero_extendsidi2): Change from expand to insn.
7177 (extendsidi2): Add constraints.
7178 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
7179 LD/ST address. Fix SI immediate loading split.
7180 (movhi_media, movqi_media, lduw, ldub): New insns.
7181 (movhi, movqi): Accept SHmedia.
7182 (shori_media, movdi_media): Relax input constraints. Split
7184 (movdf_media, movsf_media): New insn. New split to movdi.
7185 (movdf, movsf): Match on SHmedia.
7186 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7187 bgeu_media): New insns and splits. New insns with `_i' suffix.
7188 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7189 (bunordered): New expand.
7190 (jump_compact): Renamed from `jump'.
7191 (jump_media): New insn.
7193 (call_media, call_value_media): New insns.
7194 (call, call_value): Adjust.
7195 (indirect_jump_compact): Renamed from `indirect_jump'.
7196 (indirect_jump_media): New insn.
7197 (indirect_jump): New expand.
7198 (untyped_call, return): Accept SHmedia.
7199 (return_media): New insn.
7200 (prologue, epilogue, blockage): Accept SHmedia.
7201 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7202 (sunordered): New expand.
7203 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7204 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7205 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7206 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7207 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7208 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7209 abssf2_media): New insns.
7210 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7211 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7212 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7213 floatdidf2, floatsidf2_media, fix_truncdfdi2,
7214 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7215 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7216 absdf2_media): New insns.
7217 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7218 (extendsfdf2_media, truncdfsf2_media): New insns.
7219 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7220 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7221 * config/sh/sh.h (CONST_OK_FOR_J): Document.
7222 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7223 * config/sh/sh.md (adddi3): New expand.
7224 (adddi3_media, adddi3z_media): New insns.
7225 (adddi3_compact): Renamed from adddi3.
7226 (addsi3_media): Use add.l r63 to add constant zero.
7227 (subdi3): New expand.
7228 (subdi3_media): New insn.
7229 (subdi3_compact): Renamed from subdi3.
7230 (mulsidi3): New expand.
7231 (mulsidi3_media): New insn.
7232 (mulsidi3_compact): Renamed from mulsidi3.
7233 (umulsidi3): New expand.
7234 (umulsidi3_media): New insn.
7235 (umulsidi3_compact): Renamed from umulsidi3.
7236 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7237 (ashlsi3, ashrsi3, lshrsi3): Use them.
7238 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7239 (ashldi3, ashrdi3, lshrdi3): Use them.
7240 (zero_extendsidi2): New expand.
7241 (extendsidi2): New insn.
7242 (movsi_media): New insn. Split to movdi to load constants.
7243 (movsi): Enable for shmedia.
7244 (movdi_media): New insn. Use shori_media to load wide constants.
7245 (short_media): New insn.
7246 (movdi): Enable for shmedia.
7247 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7248 * config/sh/sh.h (CPP_SPEC): Added `m5'.
7249 (SUBTARGET_CPP_SPEC): Added `!m5'.
7250 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7251 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
7252 to all other SH variants.
7253 (TARGET_DEFAULT): Set to SH1_BIT.
7254 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7255 (BITS_PER_WORD): Raise to 64 on shmedia.
7256 (MAX_BITS_PER_WORD): Change to 64.
7257 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7258 (INT_TYPE_SIZE): Keep as 32.
7259 (UNITS_PER_WORD): Raise to 8 on shmedia.
7260 (MIN_UNITS_PER_WORD): Keep as 4.
7261 (POINTER_SIZE): Raise to 64 on shmedia.
7262 (CONST_OK_FOR_J): New macro.
7263 (CONST_OK_FOR_LETTER_P): Use it.
7264 (processor_type): Add PROCESSOR_SH5.
7265 * config/sh/sh.md: Conditionalize all expands, insns and
7266 splits to TARGET_SH1.
7268 (addsi3_compact): Renamed from...
7269 (addsi3): Now an expand.
7270 (addsi3_media, subsi3_media): New insns.
7271 (subsi3): Don't negate constants with SHmedia.
7273 * hooks.c: New file.
7274 * hooks.h: New file.
7275 * Makefile.in (HOOKS_H): New.
7276 (TARGET_DEF_H): Added $(HOOKS_H).
7277 (OBJS): Added hooks.o.
7278 (cfgcleanup.o, bb-reorder.o): Added target.h.
7279 (hooks.o): Added dependencies.
7280 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7281 (TARGET_INITIALIZER): this.
7282 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7283 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7284 * bb-reorder.c: Include target.h.
7285 (reorder_basic_blocks): Skip if cannot modify jumps.
7286 * cfgcleanup.c: Include target.h.
7287 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7289 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7291 * config/mips/mips.md (casesi_internal, casesi_internal_di):
7292 Protect jump delay slot instructions with .set noreorder and
7295 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7297 * config/mips/mips.md (casesi_internal_di): Calculate
7298 the index into the target offset table correctly.
7300 2002-02-08 Richard Henderson <rth@redhat.com>
7302 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7303 * final.c (output_addr_const): Accept and discard SUBREG.
7304 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7305 mark them unknown instead.
7306 (simplify_subtraction): Handle RTX_UNKNOWN.
7307 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7309 2002-02-08 David Edelsohn <edelsohn@gnu.org>
7311 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7313 2002-02-08 Richard Henderson <rth@redhat.com>
7315 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7317 2002-02-08 Andreas Jaeger <aj@suse.de>
7319 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7320 * config/i386/t-linux64: New file.
7322 2002-02-08 Jakub Jelinek <jakub@redhat.com>
7324 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7325 * c-parse.in (compstmt): Clear last_expr_type.
7327 2002-02-07 Richard Henderson <rth@redhat.com>
7329 * loop.c (strength_reduce): Sink final_value when not
7332 2002-02-07 David O'Brien <obrien@FreeBSD.org>
7334 * config/sparc/freebsd.h: Fix mismatched spec {.
7336 2002-02-07 Richard Henderson <rth@redhat.com>
7338 * cfgrtl.c: Include recog.h and insn-config.h.
7339 (keep_with_call_p): Fix general_operand invocation.
7340 * Makefile.in (cfgrtl.o): Update dependencies.
7342 2002-02-07 Kazu Hirata <kazu@hxi.com>
7344 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7345 comment. Accept HImode only if TARGET_H8300.
7347 2002-02-07 Eric Christopher <echristo@redhat.com>
7349 * config/mips/crtn.asm: Cleanup #ifdefs.
7351 2002-02-07 Eric Christopher <echristo@redhat.com>
7353 * config/mips/crti.asm: Add changes for mips16. mips16 uses
7354 register 7 as RA instead of $31.
7355 * config/mips/crtn.asm: Ditto.
7356 * config/mips/mips.c (mips_move_2words): Add case for
7357 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7358 (compute_frame_size): Fix typo.
7359 (save_restore_insns): Ditto. Make documentation about using
7360 register $7 as return register more precise.
7361 (mips_expand_epilogue): Fix comment. Add code to work around not
7362 being able to add to the stack pointer directly.
7363 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7364 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7367 2002-02-07 Tom Rix <trix@redhat.com>
7369 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7370 immediates in ldu and stdu DS opcode field.
7371 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7372 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7373 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7375 2002-02-07 Jeff Sturm <jsturm@one-point.com>
7377 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7378 offset for stack bias.
7380 2002-02-07 H.J. Lu <hjl@gnu.org>
7382 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7384 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
7386 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7388 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
7390 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7391 * i386.c (x86_order_regs_for_local_alloc): New global function.
7392 * i386.h (REG_ALLOC_ORDER): CLeanup.
7393 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7395 2002-02-07 Richard Henderson <rth@redhat.com>
7397 PR optimization/2463
7398 * alias.c (find_base_value): Recall base values for fixed hard regs.
7399 * loop.c (loop_regs_update): Don't use single_set on non-insns.
7401 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
7403 * config/mips/mips.md (define_delay) [mips16]: Adjust required
7406 2002-02-06 Richard Henderson <rth@redhat.com>
7409 * stmt.c (resolve_operand_name_1): Take more care with mixed
7410 named and unnamed operands.
7412 2002-02-06 Janis Johnson <janis187@us.ibm.com>
7413 Jan Hubicka <jh@suse.cz>
7415 * loop.c (remove_constant_addition): Avoid clobbering a shared
7418 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7420 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7421 * config/s390/t-linux64: New file.
7422 * config/s390/libgcc-glibc.ver: New file.
7424 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7426 * config/s390/linux64.h: Delete file.
7427 * config/s390/s390x.h: New file.
7428 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7429 as target header file.
7430 * config/s390/linux.h (TARGET_VERSION): Define depending on
7431 DEFAULT_TARGET_64BIT.
7432 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7433 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7434 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7435 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7436 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7437 (EXTRA_SPEC): New define.
7438 * config/s390/s390.h (TARGET_VERSION): Define depending on
7439 DEFAULT_TARGET_64BIT.
7440 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7442 2002-02-06 Jason Merrill <jason@redhat.com>
7444 * c-decl.c (finish_function): Warn about a non-void function with
7445 no return statement and no abnormal exit.
7446 (current_function_returns_abnormally): New variable.
7447 (start_function): Clear it.
7448 (struct c_language_function): Add returns_abnormally.
7449 (push_c_function_context): Save it.
7450 (pop_c_function_context): Restore it.
7451 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7452 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7453 an explicit return type.
7454 * c-tree.h: Declare current_function_returns_abnormally.
7455 (C_FUNCTION_IMPLICIT_INT): New macro.
7456 * c-typeck.c (build_function_call): Set it.
7457 (c_expand_return): Set current_function_returns_value even if the
7460 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7463 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7464 unsafe for reevaluation.
7466 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7469 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7470 EXPR_STMT, but COMPOUND_STMT, recurse into it.
7472 2002-02-06 Richard Henderson <rth@redhat.com>
7474 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7475 be a general_operand. Dest for function value must be a pseudo.
7477 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7479 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7480 as SYMBOL_REFs from the constant pool.
7482 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
7484 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7485 passed by invisible reference.
7487 2002-02-05 Richard Henderson <rth@redhat.com>
7489 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7491 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
7493 Implement using "base addresses" in insn operands as default.
7494 * config/mmix/mmix.c (mmix_conditional_register_usage): if
7495 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7496 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7497 used to read the rtx value.
7498 (mmix_target_asm_function_epilogue): Fix spacing.
7499 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7500 (mmix_legitimate_address): Ditto.
7501 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7502 should be loaded with a GETA insn. Don't allocate needless extra
7503 char for nul termination and fix misleading comment.
7504 (mmix_print_operand_address): Handle constants if
7505 TARGET_BASE_ADDRESSES.
7506 (mmix_output_register_setting): Use base addressing if
7507 TARGET_BASE_ADDRESSES and the number of insns is 3.
7508 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7509 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7510 to use R as constraint, add LDA to match s.
7511 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7512 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7513 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7514 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7515 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7516 order with other fixed registers.
7517 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7518 other parameter/call-clobbered registers.
7519 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7520 -mbase-addresses, -mno-base-addresses.
7521 (MMIX Options): Ditto.
7523 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7525 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7527 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
7529 * config/rs6000/altivec.h: Change elem to _S_elem.
7531 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7533 * config/netbsd.h (WCHAR_TYPE): Define.
7534 (WCHAR_TYPE_SIZE): Ditto.
7536 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7537 (WCHAR_UNSIGNED): Ditto.
7538 (WCHAR_TYPE_SIZE): Ditto.
7540 * config/arm/netbsd.h: Likewise.
7541 * config/i386/netbsd-elf.h: Likewise.
7542 * config/i386/netbsd.h: Likewise.
7543 * config/m68k/netbsd-elf.h: Likewise.
7544 * config/m68k/netbsd.h: Likewise.
7545 * config/ns32k/netbsd.h: Likewise.
7546 * config/sparc/netbsd.h: Likewise.
7547 * config/vax/netbsd.: Likewise.
7549 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7551 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7552 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
7553 (TARGET_INITIALIZER): this.
7554 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7555 (BITFIELD_NBYTES_LIMITED): Markup fix.
7556 * tree.h (default_ms_bitfield_layout_p): Declare.
7557 (record_layout_info): Added prev_field.
7558 * tree.c (default_ms_bitfield_layout_p): New fn.
7559 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7560 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7561 * stor-layout.c: Include target.h.
7562 (start_record_layout): Initialize prev_field.
7563 (place_field): Handle MS bit-field layout, and disregard
7564 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7565 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
7566 * Makefile.in (stor-layout.o): Adjust dependencies.
7568 2002-02-05 Jason Merrill <jason@redhat.com>
7570 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7572 2002-02-05 Andreas Jaeger <aj@suse.de>
7574 * crtstuff.c: Fix comments.
7576 2002-02-05 Richard Henderson <rth@redhat.com>
7579 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7580 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7583 * config/mips/mips.c (function_arg): Handle TImode.
7584 (function_arg_advance): Likewise.
7586 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7588 * config/rs6000/altivec.h (vec_step_help): Rename to
7591 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7593 * config/rs6000/altivec.h: Fix typos.
7595 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7597 * config/arm/netbsd.h: Correct a comment.
7599 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7601 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7602 building void typed builtins.
7604 * config/rs6000/altivec.h (vec_ld*): Fix typos.
7605 (vec_step): Implement for C++.
7607 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7609 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7611 2002-02-04 Richard Henderson <rth@redhat.com>
7613 * combine.c (nonzero_bits): Re-introduce special case for
7614 sp/fp/ap wrt REGNO_POINTER_ALIGN.
7616 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7618 * doc/extend.texi: Warn about unsupported usage of altivec
7621 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7622 (altivec_predicate_*): New.
7624 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7625 Add C++ version of vec_*() functions.
7627 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7628 (bdesc_2arg): Remove altivec predicates.
7629 (altivec_expand_builtin): Handle predicates.
7630 (altivec_init_builtins): Handle predicates.
7631 (altivec_expand_predicate_builtin): New.
7633 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7635 * pa.c (DO_FRAME_NOTES): Move forward.
7636 (store_reg): Revise handling of frame notes.
7637 (load_reg): Likewise.
7638 (set_reg_plus_d): Likewise.
7639 (hppa_expand_prologue): Likewise.
7640 (hppa_expand_epilogue): Likewise.
7642 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7644 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7646 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7648 PR c/4475, c++/3780:
7649 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7650 * c-common.h (SWITCH_TYPE): Define.
7651 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7652 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7653 Rename spareness variable to sparseness.
7654 (expand_end_case_type): Renamed from expand_end_case, use orig_type
7655 if non-NULL instead of TREE_TYPE (orig_index).
7656 * tree.h (expand_end_case_type): Renamed from expand_end_case.
7657 (expand_end_case): Define using expand_end_case_type.
7658 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7659 to expand_end_case_type.
7660 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7662 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7664 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7665 (BIGGEST_ALIGNMENT): Change to 128.
7667 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7669 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7671 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7673 * pa.md (call_internal_reg_64bit): Remove unused variable.
7675 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
7677 * config/arm/arm.h (machine_function): Add uses_anonymous_args
7679 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7680 * config/arm/arm.c (current_function_anonymous_args): Delete,
7681 replace uses with cfun->machine->uses_anonymous_args.
7682 (arm_reorg): Do not reset uses_anonymous_args.
7684 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7685 any geenral register.
7687 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
7689 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7692 2002-02-04 Richard Henderson <rth@redhat.com>
7694 * combine.c (force_to_mode): Remove STACK_BIAS code.
7695 (nonzero_bits): Likewise. Replace sp/fp special case with
7696 REGNO_POINTER_ALIGN.
7698 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7699 (HARD_FRAME_POINTER_REGNUM): New.
7700 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7701 (FIXED_REGS, CALL_USED_REGS): Update.
7702 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7703 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7704 (HARD_REGNO_NREGS): Update for SFP.
7705 (STACK_POINTER_OFFSET): Include bias here ...
7706 (FIRST_PARM_OFFSET): ... not here.
7707 (STACK_BIAS): Remove.
7708 (INIT_EXPANDERS): New.
7709 (STARTING_FRAME_OFFSET): Do not include bias.
7710 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7711 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7712 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7713 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7714 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7715 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7716 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7717 (MUST_SAVE_REGISTER): Likewise.
7718 (sparc_flat_function_prologue): Likewise.
7719 (sparc_flat_function_epilogue): Likewise.
7720 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7721 (sparc_init_modes): SFP is GENERAL_REGS.
7722 (sparc_builtin_saveregs): SFP does not have bias applied.
7724 2002-02-04 Richard Henderson <rth@redhat.com>
7726 * config/alpha/alpha.c (current_function_is_thunk): Don't check
7727 current_function_is_thunk.
7728 (alpha_sa_mask): Distinguish between current_function_is_thunk
7729 called from ASM_OUTPUT_MI_THUNK and not.
7730 (alpha_does_function_need_gp): Thunks always need gp.
7731 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7732 (alpha_output_mi_thunk_osf): New.
7733 * config/alpha/alpha-protos.h: Update.
7734 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7736 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
7738 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7739 function types, not when they're taken away.
7741 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
7743 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7744 CODE_LABEL and jump table when replacing a table jump with a
7747 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7749 * config/s390/s390-protos.h (legitimize_la_operand,
7750 s390_secondary_input_reload_class, s390_plus_operand,
7751 s390_expand_plus_operand): Add prototypes.
7753 config/s390/s390.c (s390_secondary_input_reload_class,
7754 s390_plus_operand, s390_expand_plus_operand): New functions.
7756 (struct s390_address): New member 'pointer'.
7757 (s390_decompose_address): Compute it.
7758 (legitimate_la_operand_p): Use it.
7759 (legitimize_la_operand): New function.
7760 (movti, movdi, movdf splitters): Call it.
7762 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7763 (PREDICATE_CODES): Add s390_plus_operand.
7765 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7766 (la_ccclobber): Allow GENERAL_REGS as output operand.
7768 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7769 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7770 (*la_64, *la_31, reload_indi, reload_insi): ... these.
7772 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7774 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7775 register names for regular asm () construct.
7777 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7779 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7782 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7784 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7787 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
7789 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7790 constant pool to be identical by string address and index.
7792 2002-02-04 Anthony Green <green@redhat.com>
7794 * output.h (SECTION_OVERRIDE): Define.
7795 * varasm.c (named_section): Obey SECTION_OVERRIDE.
7797 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7799 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7800 by existing arm*-*-netbsd* (a.out) target.
7801 (ns32k-*-netbsdelf*): Likewise.
7802 (sparc-*-netbsdelf*): Likewise.
7803 (vax-*-netbsdelf*): Likewise.
7805 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
7807 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7808 headers and libobjc headers.
7810 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
7812 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7813 (_mingw.h): Remove duplicate include.
7815 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7817 * config.gcc: Set cpu_type to m68k for 68010, as well.
7818 (m68010-*-netbsdelf*): New...
7819 (m68k*-*-netbsdelf*): ...targets.
7820 * config/m68k/netbsd-elf.h: New file.
7822 2002-02-02 Kazu Hirata <kazu@hxi.com>
7824 * config/h8300/h8300.c (hand_list): Move inside function_arg.
7826 2002-02-02 Kazu Hirata <kazu@hxi.com>
7828 * config/h8300/h8300.c (h8_push_ops): Move inside
7830 (h8_pop_ops): Likewise.
7831 (h8_move_ops): Likewise.
7833 2002-02-02 Kazu Hirata <kazu@hxi.com>
7835 * config/h8300/h8300.c (os_task): Make it static.
7836 (monitor): Likewise.
7837 (pragma_saveall): Likewise.
7839 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
7841 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7842 constant is a valid sign-extension for Pmode.
7844 2002-02-02 Kazu Hirata <kazu@hxi.com>
7846 * config/h8300/h8300.c: Fix formatting.
7848 2002-02-02 Kazu Hirata <kazu@hxi.com>
7850 * config/h8300/h8300.md: Fix formatting.
7852 2002-02-02 Kazu Hirata <kazu@hxi.com>
7854 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7855 predicates of operands[1]. Split the patterns for each
7858 2002-02-02 Kazu Hirata <kazu@hxi.com>
7860 * config/h8300/h8300.md (xor patterns): Tighten the predicates
7861 of operands[1] to register_operand.
7863 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7865 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7866 * cpphash.c (_cpp_init_hashtable): Similarly.
7867 * cppinit.c (cpp_create_reader): Default the signed_char flag.
7868 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7869 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7870 (cpp_handle_option): Handle the new options.
7871 * cpplex.c (cpp_interpret_charconst): Use new flag.
7872 * cpplib.h (struct cpp_options): New member signed_char.
7873 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7874 (cpp_options): Handle -fsigned-char and -funsigned-char.
7875 (static_specs): Remove signed_char_spec.
7876 (do_spec1): Don't handle %c.
7877 * system.h: Poison SIGNED_CHAR_SPEC.
7878 * tradcif.y (yylex): Use flag_signed_char.
7879 * tradcpp.h (flag_signed_char): New.
7880 * tradcpp.c (flag_signed_char): New.
7881 (main): Handle new command-line options.
7882 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7884 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7885 * avr/avr.h: Remove old comments.
7886 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7887 (CC1_SPEC): Pass -fsigned-char if -mic*.
7888 (SIGNED_CHAR_SPEC): Remove.
7890 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7892 2002-02-01 Eric Christopher <echristo@redhat.com>
7894 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7895 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7896 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7897 (ASM_OUTPUT_REG_POP): Ditto.
7899 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7901 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7904 2002-02-02 Jakub Jelinek <jakub@redhat.com>
7906 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7908 2002-02-02 Jakub Jelinek <jakub@redhat.com>
7911 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7914 2002-02-01 Janis Johnson <janis187@us.ibm.com>
7916 * cfganal.c: Include tm_p.h.
7917 (keep_with_call_p): Fix the test that determines if a register holds
7918 the return value of a call.
7920 2002-02-01 DJ Delorie <dj@redhat.com>
7922 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7923 we are given conflicting registers, switch to the other one we
7924 had allocated for us.
7925 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7926 as TImode so we know when the "other" register is available.
7928 2002-02-01 David O'Brien <obrien@FreeBSD.org>
7930 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7933 2002-02-01 Janis Johnson <janis187@us.ibm.com>
7935 * cfganal.c (keep_with_call_p): New function.
7936 (flow_call_edges_add): Prevent splitting a block between a call and
7937 a single-set instruction that should be kept in the same block.
7939 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
7941 * doc/install.texi (avr): Update outdated URL.
7943 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
7945 * config/stormy16/stormy16.md (pushqi): New.
7949 (movhi): Remove stack operands.
7951 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7952 nonimmediate_nonstack_operand.
7953 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7955 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7958 2002-01-31 Jason Merrill <jason@redhat.com>
7960 * Makefile.in (c-parse.c): Handle .output file.
7961 * objc/Make-lang.in (objc-parse.c): Likewise.
7963 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
7965 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7966 the -me[lb] option is given. Don't output the default flag
7969 2002-01-31 Zack Weinberg <zack@codesourcery.com>
7971 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7972 the primary source file; this has not been done yet.
7973 * c-decl.c (c_expand_body): Reset input_filename from
7974 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7976 2002-01-31 Kazu Hirata <kazu@hxi.com>
7978 * rtlanal.c (subreg_regno_offset): Do not use
7979 SUBREG_REGNO_OFFSET.
7980 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7981 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7983 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7985 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
7986 version rather than GNATS version in --version output.
7988 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
7990 * ifcvt.c (noce_process_if_block): Make a copy of the destination
7991 when copying back from a temporary.
7993 2002-01-30 Richard Henderson <rth@redhat.com>
7995 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7996 and new_dest are the same.
7998 2002-01-30 Richard Henderson <rth@redhat.com>
8001 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8002 * rtl.c (note_insn_name): Update.
8003 * emit-rtl.c (remove_unnecessary_notes): Kill it.
8004 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
8005 to perform loop rotation.
8006 (expand_exit_loop_top_cond): New.
8007 * tree.h (expand_exit_loop_top_cond): Declare it.
8008 * c-semantics.c (genrtl_while_stmt): Use it.
8009 (genrtl_for_stmt): Likewise.
8011 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
8013 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8014 arguments to 64-bit boundaries on 64-bit ABIs.
8016 2002-01-30 Steve Ellcey <sje@cup.hp.com>
8018 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8020 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
8022 * c-decl.c (grokdeclarator): Handle type being a typedef for an
8025 2002-01-30 David O'Brien <obrien@FreeBSD.org>
8027 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8028 * config/sparc/sparc_bi.h: Remove file.
8029 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8031 2002-01-30 Richard Henderson <rth@redhat.com>
8033 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8035 2002-01-30 Zack Weinberg <zack@codesourcery.com>
8037 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8039 2002-01-30 Jason Merrill <jason@redhat.com>
8041 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8042 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8043 (reg_save): Use DW_CFA_offset_extended_sf instead.
8045 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8047 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8049 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8052 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
8054 * rs6000.md ("*call_value_local32"): Remove constraints.
8055 ("*call_value_local64"): Same.
8056 ("*call_value_indirect_nonlocal_aix32"): Same.
8057 ("*call_value_nonlocal_aix32"): Same.
8058 ("*call_value_indirect_nonlocal_aix64"): Same.
8059 ("*call_value_nonlocal_aix64"): Same.
8060 ("*call_value_nonlocal_sysv"): Same.
8062 2002-01-29 Richard Henderson <rth@redhat.com>
8064 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8066 2002-01-29 Richard Henderson <rth@redhat.com>
8068 * expr.c (force_operand): Ignore flag_pic for detecting pic
8070 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8071 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8072 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8073 instead of open-coded loop.
8074 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8075 be fixed when in use.
8077 2002-01-29 Richard Henderson <rth@redhat.com>
8079 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8080 * sched-rgn.c (propagate_deps): Update them.
8081 * sched-deps.c (sched_analyze_insn): Update them. Flush the
8082 clobbers list when either gets too long.
8084 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8086 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8087 and INDEX_REGS the same as GENERAL_REGS.
8088 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8090 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8092 * tree.c (build_nonstandard_integer_type): Correct prototype.
8094 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
8096 * config/s390/s390.md (movstrsico, movstrdix_64,
8097 movstrsix_31): Remove, replace by ...
8098 (movstrdi_short, movstrsi_short, movstrdi_long,
8099 movstrsi_long): ... these. New.
8100 (movstrdi, movstrsi): Adapt.
8102 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8103 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8104 Remove unnecessary CC clobber.
8105 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8106 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8108 (divmoddi4): Don't partially initialize TImode register.
8110 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
8112 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8114 2002-01-29 Richard Henderson <rth@redhat.com>
8116 * flow.c (print_rtl_and_abort): Remove.
8117 (print_rtl_and_abort_fcn): Remove.
8118 (verify_local_live_at_start): Use dump_bb instead.
8119 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8120 (verify_wide_reg_1): Return 2 on mode test failure.
8122 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
8124 PR c/3325, c/3326, c/2511, c/3347
8125 * c-decl.c (enum_decl_context): Remove BITFIELD.
8126 (grokdeclarator): Take bitfield width as an input.
8127 Ensure bitfields are given the correct type. Perform
8128 bitfield width validation with build_bitfield_integer_type
8129 rather than waiting for finish_struct.
8130 (grok_typename, grok_typename_in_parm_context, start_decl,
8131 push_parmdecl, grokfield, start_function): Update calls to
8133 (build_bitfield_integer_type): New function.
8134 (finish_struct): Move bitfield validation to grokdeclarator
8135 and build_bitfield_integer_type.
8136 * tree.c (build_nonstandard_integer_type): New function.
8137 * tree.h (build_nonstandard_integer_type): New prototype.
8139 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8141 2002-01-29 Jakub Jelinek <jakub@redhat.com>
8144 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8145 don't ignore unrecognized -W* options.
8146 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8147 * cpplib.h (cpp_handle_option): Adjust prototype.
8148 * c-decl.c (c_decode_options): Pass 0 as last argument to
8152 * gcc.c (cpp_unique_options): Split from cpp_options.
8153 (cpp_options): Source cpp_unique_options.
8154 (default_compilers): Use cpp_unique_options instead of cpp_options
8155 when used together with cc1_options.
8156 (static_specs): Add cpp_unique_options.
8157 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8158 when used together with cc1_options.
8160 2002-01-29 Kazu Hirata <kazu@hxi.com>
8162 * config/h8300/h8300-protos.h: Update the prototype of
8164 * config/h8300/h8300.c (output_a_shift): Remove an unused
8165 argument 'insn'. Remove redundant code.
8166 * config/h8300/h8300.md: Adust to the new prototype of
8169 2002-01-29 Kazu Hirata <kazu@hxi.com>
8171 * config/h8300/h8300-protos.h: Update the prototypes of
8172 emit_a_rotate and expand_a_rotate.
8173 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8174 first argument to 'enum rtx_code'.
8175 (expand_a_rotate): Likewise.
8177 2002-01-28 Kazu Hirata <kazu@hxi.com>
8179 * config/h8300/h8300-protos.h: Update the prototype of
8181 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8183 * config/h8300/h8300.md: Adjust to the new prototype.
8185 2002-01-28 Kazu Hirata <kazu@hxi.com>
8187 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8190 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
8192 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8193 is a fixed register before returning pic_offset_table_rtx.
8194 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8195 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8197 2002-01-28 Jason Merrill <jason@redhat.com>
8199 * dwarf2.h: Sync with src version.
8201 2002-01-28 Paul Koning <pkoning@equallogic.com>
8203 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8205 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8206 * doc/extend.texi (__builtin_prefetch): Update documentation:
8207 first argument is now const void ptr.
8209 2002-01-28 Kazu Hirata <kazu@hxi.com>
8211 * config/h8300/h8300-protos.h: Remove an unused prototype.
8213 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
8215 * toplev.c (lang_independent_init): Round up identifier size.
8217 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8219 * config.gcc: Revert previous change.
8221 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
8223 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8225 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8227 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8228 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
8229 other non-elf netbsd config frags.
8230 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8231 collect2 will does that.
8232 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8233 shared-lib frobbing will work.
8235 2002-01-28 Kazu Hirata <kazu@hxi.com>
8237 * config/h8300/h8300.h: Fix formatting.
8238 * config/h8300/h8300.md: Likewise.
8240 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
8242 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8243 the old, removed AAA_standards fix.
8244 * fixinc/fixincl.x: Rebuilt.
8246 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
8248 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8249 atexit call in crtbegin, hooked in after call to frame_dummy;
8250 register EH before registering __fini__start.
8252 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
8254 * config/rs6000/altivec.h: Remove spurious semicolons.
8256 2002-01-27 Kazu Hirata <kazu@hxi.com>
8258 * config/h8300/h8300.md: Replace dead bit extraction patterns
8259 with ones that work.
8261 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8263 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8264 if not STRICT_ALIGNMENT.
8265 * rtl.h (MEM_ALIGN): Likewise.
8267 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
8269 * doc/invoke.texi (-fdump-translation-unit): Revert this
8270 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
8272 2002-01-27 Kazu Hirata <kazu@hxi.com>
8274 * config/h8300/h8300.md (define_constants): New.
8275 (anonymous patterns) Use defined constants appropriately.
8277 2002-01-27 Kazu Hirata <kazu@hxi.com>
8279 * config/h8300/h8300.c (function_arg): Remove redundant code.
8281 2002-01-26 Richard Henderson <rth@redhat.com>
8283 * sched-deps.c (reg_pending_uses_head): New.
8284 (reg_pending_barrier): Rename from reg_pending_sets_all.
8285 (find_insn_list): Don't mark inline.
8286 (find_insn_mem_list): Remove.
8287 (add_dependence_list, add_dependence_list_and_free): New.
8288 (flush_pending_lists): Replace only_write param with separate
8289 for_read and for_write parameters. Update all callers. Use
8290 add_dependence_list_and_free.
8291 (sched_analyze_1): Do not add reg dependencies here; just set
8292 the pending bits. Use add_dependence_list.
8293 (sched_analyze_2): Likewise.
8294 (sched_analyze_insn): Replace schedule_barrier_found with
8295 reg_pending_barrier. Add all dependencies for pending reg
8296 uses, sets, and clobbers.
8297 (sched_analyze): Don't add reg dependencies for calls, just
8298 set pending bits. Use regs_invalidated_by_call. Treat
8299 sched_before_next_call as a normal list, not a fake insn.
8300 (init_deps): No funny init for sched_before_next_call.
8301 (free_deps): Free pending mems lists. Don't zero reg_last.
8302 (init_deps_global): Init reg_pending_uses.
8303 (finish_deps_global): Free it.
8304 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
8305 (find_insn_mem_list): Remove.
8306 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8307 (propagate_deps): Use them. Zero temp mem lists.
8309 2002-01-26 Richard Henderson <rth@redhat.com>
8311 * Makefile.in (CRTSTUFF_CFLAGS): New.
8312 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8313 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8314 crtstuff.c instead of alpha assembly version.
8315 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8316 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
8317 not FORCE_{INIT,FINI}_SECTION_ALIGN.
8318 (__do_global_dtors_aux): Mark used.
8319 (frame_dummy, __do_global_ctors_aux): Mark used.
8320 (fini_dummy, init_dummy): Remove.
8322 * config/alpha/crtbegin.asm: Remove file.
8323 * config/alpha/crtend.asm: Remove file.
8324 * config/alpha/t-crtbe: Remove file.
8325 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8326 (LINK_EH_SPEC): New.
8328 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8329 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
8330 calling constructors.
8331 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8333 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8334 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8335 CRT_END_INIT_DUMMY hack.
8336 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8337 FORCE_{INIT,FINI}_SECTION_ALIGN.
8339 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8340 FORCE_{INIT,FINI}_SECTION_ALIGN.
8342 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8343 invocation sequence.
8344 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8346 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8347 (FORCE_CODE_SECTION_ALIGN): New.
8349 2002-01-26 Richard Henderson <rth@redhat.com>
8351 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8353 2002-01-26 Richard Henderson <rth@redhat.com>
8355 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8356 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8358 2002-01-26 Kazu Hirata <kazu@hxi.com>
8360 * config/h8300/h8300.md: Remove bit extraction patterns that
8361 cannot be triggered.
8362 Restrict each bit extraction pattern to a variant on which the
8365 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
8367 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8369 2002-01-26 Kazu Hirata <kazu@hxi.com>
8371 * config/h8300/h8300.md: Remove bit test patterns that cannot
8373 Restrict each bit test pattern to a variant on which the
8376 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8378 * builtins.c (expand_builtin_strncat): Remove redundant check for
8381 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8383 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8385 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8388 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8390 * dbxout.c (dbxout_init): Use assemble_name rather than just
8391 stripping off the first character.
8392 (dbxout_source_file): Likewise.
8394 2002-01-25 DJ Delorie <dj@redhat.com>
8396 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8397 using rtx_equal_p, not by comparing pointers.
8399 2002-01-25 Steve Ellcey <sje@cup.hp.com>
8401 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8402 for PIC_OFFSET_TABLE_REGNUM.
8403 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8405 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8407 * config.gcc (x86_64-*-freebsd*): New target.
8408 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8410 (i[34567]86-*-freebsd*): Don't include svr4.h.
8411 * config/i386/freebsd64.h: New file.
8413 2002-01-25 Douglas B Rupp <rupp@gnat.com>
8415 * config/alpha/x-vms (version): Make static.
8417 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8418 in previous checkin.
8420 * Makefile.in (install-headers-cp): New target.
8421 * config.gcc (alpha-dec-*vms*): Install headers with
8424 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
8426 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8429 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8431 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8432 of compare_tree_int.
8433 (expand_builtin_strncat): Likewise.
8434 * c-decl.c (finish_struct): Use tree_low_cst.
8435 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8436 * tree.c (compare_tree_int): Likewise.
8438 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
8440 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8441 adjustments even if they are implemented by more than two insns.
8443 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
8445 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8446 * df.h (struct ref): Kill B.
8447 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8449 * basic-block.h (PROP_EQUAL_NOTES): New flag.
8450 * flow.c (propagate_one_insn): Use it.
8451 (mark_used_regs): Handle NIL.
8453 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8455 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8458 2002-01-25 David Edelsohn <edelsohn@gnu.org>
8460 * rs6000.md (prefetch): Make address V4SI mode so that the address
8461 is restricted to legitimate form for instruction.
8463 2002-01-25 Bob Wilson <bob.wilson@acm.org>
8465 * doc/install.texi (xtensa-*-elf): New target.
8466 (xtensa-*-linux*): New target.
8467 * doc/contrib.texi: Add myself.
8469 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
8471 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8472 purpose register to hold an SImode (or smaller) value.
8474 2002-01-25 Jakub Jelinek <jakub@redhat.com>
8476 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8478 * crtstuff.c: Likewise.
8480 2002-01-25 Kazu Hirata <kazu@hxi.com>
8482 * config/h8300/h8300.md (negation patterns): Tighten
8483 predicates to register_operand.
8485 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
8487 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8490 * builtins.c (expand_builtin_prefetch): Same.
8492 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8494 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8497 2002-01-24 Kazu Hirata <kazu@hxi.com>
8499 * config/h8300/h8300.c (print_operand): Remove support for
8500 operand character 'A'.
8501 * config/h8300/h8300.md (three anonymous patterns): Replace
8502 operand character 'A' with either 'T' or 'S'.
8504 2002-01-24 Kazu Hirata <kazu@hxi.com>
8506 * config/h8300/h8300.c (print_operand): Remove support for
8507 operand character 'U'.
8509 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
8511 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8513 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
8515 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8516 values to be assigned to the stack pointer.
8518 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8520 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8521 to const_double needs to be done right for big-endian systems.
8523 2002-01-24 Jason Merrill <jason@redhat.com>
8526 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8527 to can_throw_internal.
8529 2002-01-23 Richard Henderson <rth@redhat.com>
8531 * fold-const.c (fold): Change UINT_MAX test to check vs precision
8532 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
8534 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8536 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8537 (symGOT2reg): Use them, then set as GOT value as unchanging.
8538 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
8539 as a temporary, if possible.
8540 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
8541 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8543 2002-01-23 Kazu Hirata <kazu@hxi.com>
8545 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8546 accept to accept 0x80 as operands[2].
8548 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8550 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8552 2002-01-23 Richard Henderson <rth@redhat.com>
8554 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8556 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
8558 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8559 (parmlist_or_identifiers_1): Verify that only a parmlist follows
8562 2002-01-23 Richard Henderson <rth@redhat.com>
8564 * expr.c (move_by_pieces_1): Extend size before negation.
8566 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8567 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8568 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8569 * config/m68k/t-m68kelf: Likewise.
8571 2002-01-23 Bob Wilson <bob.wilson@acm.org>
8573 * config/xtensa/elf.h: New file.
8574 * config/xtensa/lib1funcs.asm: New file.
8575 * config/xtensa/lib2funcs.S: New file.
8576 * config/xtensa/linux.h: New file.
8577 * config/xtensa/t-xtensa: New file.
8578 * config/xtensa/xtensa-config.h: New file.
8579 * config/xtensa/xtensa-protos.h: New file.
8580 * config/xtensa/xtensa.c: New file.
8581 * config/xtensa/xtensa.h: New file.
8582 * config/xtensa/xtensa.md: New file.
8583 * config.gcc (xtensa-*-elf*): New target.
8584 (xtensa-*-linux*): New target.
8585 * cse.c (canon_hash): Compare rtx pointers instead of register
8586 numbers. This is required for the Xtensa port.
8587 * integrate.c (copy_insn_list): Handle case where the static
8588 chain is in memory and the memory address has to be copied to
8590 * doc/invoke.texi (Option Summary): Add Xtensa options.
8591 (Xtensa Options): New node.
8592 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8594 2002-01-23 Zack Weinberg <zack@codesourcery.com>
8596 * diagnostic.c (internal_error): Do ICE suppression only
8597 when ENABLE_CHECKING is not defined.
8599 * c-typeck.c (require_complete_type): Return error_mark_node
8600 if type is error_mark_node.
8602 2002-01-23 Janis Johnson <janis187@us.ibm.com>
8604 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8605 -Os and issue a warning.
8607 2002-01-23 Zack Weinberg <zack@codesourcery.com>
8609 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8610 current (lack of) need for host configuration by hand.
8612 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8613 references. Documentation of some target macros moved from
8614 hostconfig.texi to tm.texi.
8616 2002-01-23 Will Cohen <wcohen@redhat.com>
8618 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8621 2002-01-23 Kazu Hirata <kazu@hxi.com>
8623 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8626 2002-01-23 Jason Merrill <jason@redhat.com>
8628 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8630 * function.c (assign_parms): Don't put args of inline functions
8631 into registers when not optimizing.
8633 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
8635 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8636 (prologue_use): New pattern.
8637 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8638 preference to gen_rtx_USE.
8639 (thumb_expand_prologue): Use gen_prologue_use in preference to
8641 (thumb_expand_epilogue): Use gen_prologue_use in preference to
8644 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
8646 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8648 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
8651 * doc/extend.texi: Correct documentation of __alignof__.
8653 2002-01-22 Zack Weinberg <zack@codesourcery.com>
8655 * params.h: Rename arguments of DEFPARAM so that it will be
8656 recognized as a translation keyword.
8658 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8660 * extend.texi: Document altivec functions.
8661 Fix N-bit adjectives in X86 builtin documentation.
8663 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
8665 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8666 auto_inc_dec values.
8668 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
8670 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8672 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8674 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
8676 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8678 2002-01-22 Richard Henderson <rth@redhat.com>
8680 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8681 copy_insn not copy_rtx.
8683 2002-01-23 Alan Modra <amodra@bigpond.net.au>
8685 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8686 "nonzero" as that might add "1" bits. Ensure "constop" is
8687 properly sign extened.
8688 (force_to_mode): Tweak for sign extended constop.
8690 2002-01-22 Richard Henderson <rth@redhat.com>
8692 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8693 for_each_rtx instead of assuming we're already looking at the MEM.
8694 (split_small_symbolic_mem_operand): Likewise.
8695 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8696 * config/alpha/alpha.md (small symbolic memory splitters): Update.
8698 2002-01-22 Richard Henderson <rth@redhat.com>
8700 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8701 sequence number for the literal.
8702 (divmoddi_internal_er): Likewise.
8704 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8707 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8708 in LIBICONV variable.
8709 * configure: Regenerated.
8711 2002-01-22 Krister Walfridsson <cato@df.lth.se>
8713 * dependence.c (build_def_use): Remove array_idx.
8715 * dwarfout.c (last_filename): Remove.
8716 (output_compile_unit_die): Remove last_filename.
8718 2002-01-22 Roger Sayle <roger@eyesopen.com>
8719 Richard Henderson <rth@redhat.com>
8722 * fold-const.c (fold): Optimize unsigned comparisons against
8723 UINT_MAX (and similar unsigned constants).
8725 2002-01-22 Janis Johnson <janis187@us.ibm.com>
8727 * Makefile.in (loop.o): Depend on OPTABS_H.
8728 * loop.c (emit_prefetch_instructions): Check the prefetch operand
8729 against the predicate.
8732 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8733 for the address operand.
8735 2002-01-22 Richard Henderson <rth@redhat.com>
8737 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8739 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8742 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8745 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
8747 * config.gcc (x86_64-*-netbsd*): New target.
8748 * config/i386/netbsd64.h: New file.
8750 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8752 * regrename.c (kill_value): Fix typo.
8754 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8756 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8758 * config/rs6000/rs6000.h: Same.
8760 * function.c (instantiate_virtual_regs): Remove
8761 STARTING_FRAME_PHASE.
8762 (assign_stack_local_1): Same.
8763 Calculate frame phase.
8765 2002-01-22 Nick Clifton <nickc@redhat.com>
8767 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8768 variable declaration to outer scope in order to simplify
8770 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8771 arm_hard_regno_mode_ok.
8772 * config/arm/arm-protos.h: Add a prototype for
8773 arm_hard_regno_mode_ok.
8774 * config/arm/arm.c (soft_df_operand): Remove now redundant
8775 check for DImode values using IP_REGNUM.
8776 (nonimmediate_soft_df_operand): Remove now redundant check for
8777 DImode values using IP_REGNUM.
8778 (arm_hard_regno_mode_ok): New function. New check: make sure
8779 that DImode values are not stored in IP_REGNUM.
8781 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8783 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8785 2002-01-22 Jason Merrill <jason@redhat.com>
8787 * c-semantics.c (genrtl_compound_stmt): Only check nesting
8788 consistency if this COMPOUND_STMT is scoped.
8790 2002-01-22 Kazu Hirata <kazu@hxi.com>
8792 * predict.c: Fix formatting.
8793 * print-tree.c: Likewise.
8794 * protoize.c: Likewise.
8797 * sbitmap.h: Likewise.
8799 * sched-deps.c: Likewise.
8800 * sched-vis.c: Likewise.
8801 * sdbout.c: Likewise.
8802 * sibcall.c: Likewise.
8804 * ssa-ccp.c: Likewise.
8805 * ssa-dce.c: Likewise.
8807 * stor-layout.c: Likewise.
8808 * system.h: Likewise.
8810 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8812 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8813 if fits in bounds of base type.
8815 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8816 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8817 (add_bound_info, default): If can't find a context, make a
8819 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8821 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
8823 * c-typeck.c (parser_build_binary_op): If result from
8824 build_binary_op is ERROR_MARK just return error_mark_node without
8827 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
8829 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8830 Split a.out-specific bits into...
8831 * config/netbsd-aout.h: ...this.
8832 * config/netbsd-elf.h: New file.
8833 * config/alpha/netbsd-elf.h: Remove.
8834 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8835 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8836 (STARTFILE_SPEC): Remove redundant definition.
8837 (ENDFILE_SPEC): Likewise.
8838 (LINK_SPEC): Likewise.
8839 (CPP_SPEC): Likewise.
8840 (ASM_SPEC): Likewise.
8841 (LIB_SPEC): Likewise.
8842 (SWITCH_TAKES_ARG): Likewise.
8843 (TARGET_MEM_FUNCTIONS): Likewise.
8844 (CPP_PREDEFINES): Redefine.
8845 (ASM_FINAL_SPEC): Remove redefinition.
8846 (ASM_COMMENT_START): Redefine.
8847 (FUNCTION_PROFILER): Define.
8848 (TARGET_VERSION): Redefine.
8849 Comment and formatting cleanup.
8850 * config/i386/netbsd.h: Include <netbsd-aout.h>.
8851 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8852 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8853 big- or little-endian.
8854 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8855 * config.gcc (*-*-netbsd*): Add definitions common to all
8857 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8858 gnu_ld definitions. Add netbsd-elf.h to and remove
8859 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
8860 tmake_file, and don't lose previous tmake_file contents.
8861 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8862 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8863 gnu_ld definitions. Add netbsd-elf.h to tm_file.
8864 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8865 (mipsel-*-netbsd*): Rename this to...
8866 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
8867 mips/little.h to tm_file for mips*el-*.
8868 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8869 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8870 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8872 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8874 * pa-protos.h (reg_before_reload_operand): New function prototype.
8875 * pa.c (reg_before_reload_operand): New function implementation.
8876 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
8879 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8881 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8883 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8885 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8886 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8887 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8888 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8889 (ENDFILE_SPEC): Undefine.
8890 (STARTFILE_SPEC): Redefine for PA.
8892 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8894 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8896 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
8898 * config.gcc: Add entries to supported PowerPC --with-cpu
8901 2002-01-21 Jakub Jelinek <jakub@redhat.com>
8903 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8904 true for 64-bit mode only SSE registers in 32-bit mode.
8906 2002-01-21 Kazu Hirata <kazu@hxi.com>
8908 * unwind-dw2.c: Fix formatting.
8909 * unwind-dw2-fde.c: Likewise.
8910 * unwind-dw2-fde.h: Likewise.
8911 * unwind-pe.h: Likewise.
8912 * varasm.c: Likewise.
8913 * varray.h: Likewise.
8915 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
8917 Remove workaround for register stack overwrite bug in mmix.
8918 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8919 support for TARGET_REG_STACK_FILL_BUG.
8920 * config/mmix/mmix.h: Remove member has_call_without_parameters.
8921 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8923 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8924 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8925 -mno-reg-stack-fill-bug-workaround.
8926 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8927 machine member has_call_without_parameters.
8928 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8929 -mreg-stack-fill-bug-workaround and
8930 -mno-reg-stack-fill-bug-workaround.
8931 (MMIX Options): Ditto.
8933 2002-01-21 Kazu Hirata <kazu@hxi.com>
8935 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8937 Remove redundant code.
8939 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
8941 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8942 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8943 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8944 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8945 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8946 out target macro definitions and non-target-specific comments
8947 mostly taken from old versions of the manual.
8949 2002-01-20 Kazu Hirata <kazu@hxi.com>
8951 * config/h8300/h8300.h: Fix comment formatting.
8952 * config/ia64/aix.h: Likewise.
8953 * config/ia64/ia64-protos.h: Likewise.
8954 * config/ia64/ia64.c: Likewise.
8955 * config/ia64/ia64.h: Likewise.
8956 * config/ia64/ia64intrin.h: Likewise.
8957 * config/ia64/linux.h: Likewise.
8958 * config/ia64/unwind-aix.c: Likewise.
8959 * config/ia64/unwind-ia64.c: Likewise.
8961 2002-01-20 Kazu Hirata <kazu@hxi.com>
8963 * config/h8300/h8300.c: Revise comments about shift code.
8965 2002-01-20 Kazu Hirata <kazu@hxi.com>
8967 * config/h8300/h8300.c (function_arg): Update a comment.
8969 2002-01-20 Kazu Hirata <kazu@hxi.com>
8971 * config/h8300/h8300.md: Update the comments at the beginning
8974 2002-01-20 Kazu Hirata <kazu@hxi.com>
8976 * config/i370/i370.c: Fix comment formatting.
8977 * config/i370/i370.h: Likewise.
8978 * config/i370/i370.md: Likewise.
8979 * config/i370/linux.h: Likewise.
8981 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8983 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8985 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8986 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8989 2002-01-20 Graham Stott <grahams@redhat.com>
8991 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8993 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
8995 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8997 2002-01-19 Tom Rix <trix@redhat.com>
8999 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9001 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
9003 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9005 * function.c (assign_stack_local_1): Adjust x_frame_offset with
9006 STARTING_FRAME_PHASE.
9007 (STARTING_FRAME_PHASE): New.
9008 (instantiate_virtual_regs): Check saneness of
9009 STARTING_FRAME_PHASE.
9011 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9013 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
9015 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9017 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
9019 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9020 be used for bootstrapping GCC 3.0.
9022 2002-01-18 Kazu Hirata <kazu@hxi.com>
9024 * config/h8300/h8300.md: Fix an insn length.
9026 2002-01-18 Kazu Hirata <kazu@hxi.com>
9028 * bitmap.h: Fix comment formatting.
9029 * combine.c: Likewise.
9030 * cppfiles.c: Likewise.
9031 * c-pragma.h: Likewise.
9032 * c-typeck.c: Likewise.
9034 * dwarf2out.c: Likewise.
9035 * function.c: Likewise.
9037 * genattrtab.c: Likewise.
9038 * gthr-win32.h: Likewise.
9039 * haifa-sched.c: Likewise.
9040 * predict.c: Likewise.
9041 * rtlanal.c: Likewise.
9043 * unwind-dw2-fde.h: Likewise.
9044 * unwind-pe.h: Likewise.
9045 * vmsdbgout.c: Likewise.
9047 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9049 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9050 if type_required and passed decl.
9052 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
9054 * config.gcc (cpu_type): Include altivec.h in powerpc
9058 * config/rs6000/altivec.h: New.
9060 2002-01-17 David Edelsohn <edelsohn@gnu.org>
9062 * doc/install.texi (*-ibm-aix*): Update assembler and exception
9063 handling information.
9064 * doc/trouble.texi (Interoperation): Add libstdc++ information
9066 (Misunderstandings): Add template instantiation and static template
9067 member information for AIX.
9069 2002-01-17 Jason Merrill <jason@redhat.com>
9071 * dbxout.c (dbxout_type): Support const and volatile.
9073 * except.c (add_partial_entry): Remove backwards compatibility code.
9074 (end_protect_partials): Likewise.
9076 2002-01-17 Jakub Jelinek <jakub@redhat.com>
9078 * config/ia64/ia64.md (prologue_use): New.
9079 * config/ia64/ia64.c (ia64_expand_prologue): Use
9080 gen_prologue_use instead of gen_rtx_USE.
9081 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9082 as CODE_FOR_pred_rel_mutex.
9083 (ia64_sched_reorder2): Likewise.
9085 2002-01-16 Eric Christopher <echristo@redhat.com>
9087 * config/mips/r3900.h: Reformat.
9088 (SUBTARGET_CPP_SIZE_SPEC): Remove.
9089 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9090 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9091 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9092 * config/mips/t-elf: Remove mips3 multilib.
9094 2002-01-16 H.J. Lu <hjl@gnu.org>
9096 * config/mips/linux.h: Include "mips/abi64.h".
9098 2002-01-16 H.J. Lu <hjl@gnu.org>
9100 * config/mips/t-linux: New.
9102 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9104 * config/mips/linux.h: Don't include "gofast.h".
9105 (INIT_SUBTARGET_OPTABS): Removed.
9107 2002-01-16 Kazu Hirata <kazu@hxi.com>
9109 * config/h8300/h8300-protos.h: Replace emit_a_shift with
9111 * config/h8300/h8300.c: Likewise.
9112 * config/h8300/h8300.md: Likewise.
9114 2002-01-16 Kazu Hirata <kazu@hxi.com>
9116 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9117 spaces after an opcode name.
9118 (pushqi1_h8300hs): Likewise.
9119 (pushhi1_h8300hs): Likewise.
9121 2002-01-16 Kazu Hirata <kazu@hxi.com>
9123 * doc/extend.texi: Replace "option" with "attribute"
9126 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9128 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9129 (and:DI () (const_int -8)).
9130 (split_small_symbolic_mem_operand): Split
9131 (mem (and:DI () (const_int -8)).
9133 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9136 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9137 same way as TYPE_IMUL.
9138 (ultrasparc_sched_reorder): Likewise.
9139 * config/sparc/sparc.md (type): Add comment to update
9140 ultrasparc_sched_reorder when making changes.
9142 2002-01-16 Kazu Hirata <kazu@hxi.com>
9144 * doc/invoke.texi: Change the dump file name of block
9145 reordering pass from 28.bbro to 29.bbro.
9148 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
9150 * i386.md (minsf splitter): Fix pasto.
9152 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9154 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9155 to frame pointer initialisation instruction.
9156 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9157 initialisation instruction.
9158 (soft_df_operand): Do not accept the IP register.
9159 (nonimmediate_soft_df_operand): Do not accept the IP register.
9161 2002-01-16 Jakub Jelinek <jakub@redhat.com>
9164 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9165 MASK_V8 being both set.
9167 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
9169 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9170 insn for GOT register; add REG_MAYBE_DEAD notes instead.
9171 config/s390/s390.md (call, call_value): Add GOT register to
9172 CALL_INSN_FUNCTION_USAGE where needed.
9173 (call_exp, call_value_exp): New.
9175 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
9177 * config/arm/arm.c: General formatting tidy up.
9179 2002-01-16 Graham Stott <grahams@redhat.com>
9181 * calls.c (try_to_integrate): Use "(size_t)" intermediate
9182 cast and when casting an integer literal to "rtx" pointer.
9183 (expand_call): Likewise.
9184 * flow.c (try_pre_increment): Likewise.
9185 (find_use_as_address): Likewise.
9186 * integrate.c (expand_iline_function): Likewise.
9187 * regmove.c (try_auto_increment): Likewise.
9189 2002-01-16 Graham Stott <grahams@redhat.com>
9191 * sched-rgn.c (passed): Use sbitmap_free.
9194 (in_queue): Likewise.
9195 (in_stack): Likewise.
9197 2002-01-15 Eric Christopher <echristo@redhat.com>
9199 * flow.c (propagate_one_insn): Change to use fatal_insn.
9201 2002-01-15 Kazu Hirata <kazu@hxi.com>
9203 * expmed.c (extract_fixed_bit_field): Remove unused code.
9204 * system.h: Poison SLOW_ZERO_EXTEND.
9205 * doc/tm.texi: Remove.
9206 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9207 * config/arm/arm.h: Likewise.
9208 * config/avr/avr.h: Likewise.
9209 * config/clipper/clipper.h: Likewise.
9210 * config/convex/convex.h: Likewise.
9211 * config/d30v/d30v.h: Likewise.
9212 * config/dsp16xx/dsp16xx.h: Likewise.
9213 * config/elxsi/elxsi.h: Likewise.
9214 * config/fr30/fr30.h: Likewise.
9215 * config/h8300/h8300.h: Likewise.
9216 * config/i370/i370.h: Likewise.
9217 * config/i386/i386.h: Likewise.
9218 * config/m68k/m68k.h: Likewise.
9219 * config/mips/mips.h: Likewise.
9220 * config/ns32k/ns32k.h: Likewise.
9221 * config/pdp11/pdp11.h: Likewise.
9222 * config/pj/pj.h: Likewise.
9223 * config/s390/s390.h: Likewise.
9224 * config/sh/sh.h: Likewise.
9225 * config/stormy16/stormy16.h: Likewise.
9226 * config/v850/v850.h: Likewise.
9227 * config/vax/vax.h: Likewise.
9228 * config/we32k/we32k.h: Likewise.
9230 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9232 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9233 (altivec_lvsl): Change constraint to b.
9234 (altivec_lvsr): Same.
9235 (altivec_lvebx): Same.
9236 (altivec_lvehx): Same.
9237 (altivec_lvewx): Same.
9238 (altivec_lvxl): Same.
9239 (altivec_lvx): Same.
9240 (altivec_stvx): Add parallel.
9241 (altivec_stvxl): Same.
9242 (altivec_stvehx): Same.
9243 (altivec_stvebx): Same.
9244 (altivec_stvebx): Same.
9246 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9248 * config.gcc: Change altivec.h to altivec-defs.h.
9250 * config/rs6000/altivec.h: Delete.
9252 * config/rs6000/altivec-defs.h: Add.
9254 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9256 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9259 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9260 less than or equal to eight bytes.
9262 * vax.md (andsi3): Remove constraints and change SET destination
9263 operand type to nonimmediate_operand.
9264 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
9265 when it is a CONST_INT.
9267 2002-01-15 Jason Merrill <jason@redhat.com>
9269 * c-common.def (FILE_STMT): New code.
9270 * c-common.c (statement_code_p): It's a statement.
9271 * c-common.h (stmt_tree_s): Add x_last_filename.
9272 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9273 (last_expr_filename): New macro.
9274 * c-semantics.c (begin_stmt_tree): Initialize it.
9275 (add_stmt): If the filename changed, also insert a
9277 (expand_stmt): Handle seeing one.
9279 2002-01-15 Eric Christopher <echristo@redhat.com>
9281 * flow.c (propagate_one_insn): Add error message and print out
9284 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9286 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9287 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9288 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9289 TRAMPOLINE_ALIGNMENT.
9290 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
9292 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9293 PCC_BITFIELD_TYPE_MATTERS.
9294 * config/interix.h (STDC_VALUE): Remove. Use
9295 STDC_0_IN_SYSTEM_HEADERS.
9296 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9297 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9298 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9300 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
9302 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9303 not work on this platform currently.
9305 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9307 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9308 readonly_warning in _().
9310 2002-01-15 Douglas B Rupp <rupp@gnat.com>
9312 * gcc.c (delete_if_ordinary): Backout previous change.
9314 2002-01-15 Kazu Hirata <kazu@hxi.com>
9316 * config/h8300/h8300.c (print_operand): Remove support for
9317 unused operand characters.
9319 * read-rtl.c: Fix formatting.
9321 * recog.c: Likewise.
9322 * regclass.c: Likewise.
9323 * regmove.c: Likewise.
9324 * reg-stack.c: Likewise.
9325 * reload1.c: Likewise.
9326 * rtlanal.c: Likewise.
9328 2002-01-15 Kazu Hirata <kazu@hxi.com>
9330 * config/i386/i386.c: Fix formatting.
9332 2002-01-15 Jakub Jelinek <jakub@redhat.com>
9334 * c-typeck.c (process_init_element): Don't save_expr
9335 COMPOUND_LITERAL_EXPR if just its initializer will be used.
9337 2002-01-15 David Edelsohn <edelsohn@gnu.org>
9339 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9340 emit optional traceback table if optimize_size or TARGET_ELF.
9341 * config/rs6000/rs6000.md (prefetch): New.
9343 2002-01-15 Andreas Jaeger <aj@suse.de>
9345 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9347 2002-01-15 Kazu Hirata <kazu@hxi.com>
9349 * mips-tfile.c: Fix formatting.
9351 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
9353 * unroll.c (final_reg_note_copy): Fix previous commit.
9355 2002-01-14 Kazu Hirata <kazu@hxi.com>
9357 * config/h8300/h8300-protos.h: Remove the prototype for
9359 * config/h8300/h8300.c (eq_operator): Remove.
9361 2002-01-14 Richard Henderson <rth@redhat.com>
9363 * config/i386/i386.md (prefetch): Tidy.
9364 (prefetch_3dnow): Fix locality operand.
9366 2002-01-14 Richard Henderson <rth@redhat.com>
9368 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9369 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9371 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
9373 * reload1.c (reload_combine): Pass reg_sum replacement through
9374 copy_rtx in loop performing multiple changes.
9376 2002-01-14 Jakub Jelinek <jakub@redhat.com>
9378 * except.c (remove_unreachable_regions): New.
9379 (free_eh_status): Clear exception_handler_labels.
9380 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9381 (find_exception_handler_labels): Don't add the same label more than
9383 (remove_exception_handler_label): Don't die if
9384 find_exception_handler_labels hasn't been called for the current
9387 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
9389 * toplev.c (rest_of_compilation): Rebuild jump labels after
9392 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
9394 * doc/extend.texi: Move documentation of X86 built-in functions
9396 * doc/invoke.texi: From here.
9397 * doc/sourcebuild.texi: Document location of documentation for
9398 machine built-in functions.
9400 2002-01-13 Christopher Faylor <cgf@redhat.com>
9402 * cppfiles.c (TEST_THRESHOLD): New macro.
9403 (SHOULD_MMAP): Ditto.
9404 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9407 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
9409 * unroll.c (final_reg_note_copy): Properly handle
9411 (unroll_loops): Fix LOOP_CONDITION heuristics.
9413 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
9415 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9416 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9418 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
9420 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9423 2002-01-14 Tom Rix <trix@redhat.com>
9425 * config/rs6000/rs6000.md: Fix typo with sradi.
9427 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
9429 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9430 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9431 (clrstrdi, clrstrsi): Adapt callers.
9433 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9435 (movti splitter): Never use register 0 as base register.
9437 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9439 * combine.c (simplify_shift_const): Always generate new rtx
9440 for shift expression instead of reusing given expression.
9442 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9444 * config/alpha/alpha.c (alpha_expand_mov): Don't call
9445 alpha_legitimize_address unless mode is Pmode.
9447 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
9449 * doc/md.texi (Modifiers): Document the '*' constraint for the
9452 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9453 * doc/extend.texi (Function Attributes): 'interrupt' is valid
9456 2002-01-13 Richard Henderson <rth@redhat.com>
9458 * reload.c (find_reloads): Use a hard reg destination as reload reg
9459 for an input reload of the source.
9461 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9463 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9466 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
9468 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9469 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9471 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9473 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9475 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9477 2002-01-12 Tom Rix <trix@redhat.com>
9479 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9482 2002-01-12 Richard Henderson <rth@redhat.com>
9484 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9486 * doc/invoke.texi: Update Alpha options.
9488 * doc/invoke.texi: Update i386 built-in function lists.
9490 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
9492 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9493 referencing outside.
9495 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9497 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9498 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9499 offsets, and change line folding.
9500 * optabs.c (expand_binop): Remove warnings.
9501 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9503 2002-01-12 Graham Stott <grahams@redhat.com>
9505 * attribs.c (handle_deprecated_attribute): constify WHAT.
9506 * diagnostic.c (warn_deprecated_use): Add braces, fixes
9507 dangling else warning and constify WHAT.
9508 * except.h (struct function, struct inline_remap): Move
9509 struct tag forward defs before all prototypes.
9510 (duplicate_eh_regions): Whitespace.
9512 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
9514 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9515 MODE_BASE_REG_CLASS.
9516 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9518 2002-01-12 Richard Henderson <rth@redhat.com>
9520 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9521 (ix86_expand_vector_move): New.
9522 (bdesc_2arg): Remove andps, andnps, orps, xorps.
9523 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
9524 Remove old prefetch builtins. Special case the logicals removed above.
9525 (ix86_expand_builtin): Likewise.
9526 (safe_vector_operand): Use V4SFmode, not TImode.
9527 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
9528 (ix86_expand_timode_binop_builtin): New.
9529 * config/i386/i386-protos.h: Update.
9530 * config/i386/i386.h (enum ix86_builtins): Update.
9531 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9532 Use ix86_expand_vector_move in vector move expanders.
9533 (movti_internal, movti_rex64): Add xorps alternative.
9534 (sse_clrv4sf): Rename and adjust from sse_clrti.
9535 (prefetch): Don't work so hard.
9536 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9537 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9538 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9540 2002-01-11 Richard Henderson <rth@redhat.com>
9542 * config/i386/mmintrin.h: New file.
9543 * config/i386/xmmintrin.h: New file.
9544 * config.gcc (i?86-*-*): Add extra_headers.
9545 * simplify-rtx.c (simplify_unary_operation): Handle saturating
9547 (simplify_binary_operation): Handle saturating arithmetic codes.
9548 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9549 not the lowpart subreg.
9550 (ix86_expand_builtin): Return a TImode dummy register instead of 0
9552 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9554 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9556 * conflict.c (conflict_graph_compute): Free regsets when finished.
9557 * ssa.c (compute_coalesced_reg_partition): Likewise.
9559 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9561 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9562 every where we allocate a register.
9564 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9566 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9567 * lcm.c (compute_earliest, compute_farthest): Likewise.
9569 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9571 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9573 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9575 * doc/rtl.texi (Insns): Fix 2 typos.
9577 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
9579 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
9580 options. Use @table @gcctabopt for MMIX options. Add index
9581 entries for MMIX options. Start new paragraph with first
9582 heading of the machine-dependent options.
9584 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
9587 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9588 * combine.c (force_to_mode): Same.
9589 * reload1.c (clear_reload_reg_in_use): Same.
9591 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
9593 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9596 2002-01-11 Andreas Jaeger <aj@suse.de>,
9597 Brad Lucier <lucier@math.purdue.edu>
9599 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9602 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
9604 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9605 Protect with IN_LIBGCC.
9606 (LINK_EH_SPEC): Add required trailing space.
9608 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
9610 * c-tree.h: Move function declarations so that they are listed
9611 under the filename which contains them.
9612 (check_identifier, finish_decl_top_level,
9613 lookup_name_current_level_global, shadow_record_fields): Remove.
9615 2002-01-11 Andreas Jaeger <aj@suse.de>
9617 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9620 2002-01-10 Richard Henderson <rth@redhat.com>
9622 * config/alpha/alpha.c (print_operand): Add 'J'.
9623 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9624 new operand with the sequence number for the lituse. When splitting
9625 the insns, use gen_movdi_er_high_g and generate a sequence number.
9626 (gen_movdi_er_high_g): Print the sequence number if non-zero.
9628 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
9630 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9631 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9633 (altivec_expand_builtin): Same.
9634 (altivec_expand_stv_builtin): New.
9636 * config/rs6000/rs6000.h (rs6000_builtins): Same.
9638 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9639 ("altivec_lvehx"): New.
9640 ("altivec_lvewx"): New.
9641 ("altivec_lvxl"): New.
9642 ("altivec_lvx"): New.
9643 ("altivec_stvx"): New.
9644 ("altivec_stvebx"): New.
9645 ("altivec_stvehx"): New.
9646 ("altivec_stvewx"): New.
9647 ("altivec_stvxl"): New.
9649 2002-01-10 Richard Henderson <rth@redhat.com>
9651 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9652 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
9653 care not to delete instructions twice.
9655 2002-01-10 Zack Weinberg <zack@codesourcery.com>
9657 * toplev.c: Don't declare environ (it's not used anywhere).
9658 * configure.in: Don't check for declaration of environ.
9659 * config/i386/xm-mingw32.h: Don't #define environ.
9660 * config.in, configure: Regenerate.
9662 2002-01-10 Zack Weinberg <zack@codesourcery.com>
9664 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9665 * configure: Regenerate.
9667 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9668 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9669 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9671 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9672 LIMITS_H_TEST here, not in m68k/x-next.
9673 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9674 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9676 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9677 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9678 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
9680 * config/i386/x-djgpp: Renamed i386/t-djgpp.
9681 * config/m88k/x-dolph: Renamed m88k/t-dolph.
9682 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9683 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
9684 replacement of quadlib.asm with quadlib.c.
9686 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9687 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9688 config/rs6000/xm-beos.h: Delete file.
9690 * config.gcc: Update to match above changes.
9692 2002-01-10 Kazu Hirata <kazu@hxi.com>
9694 * config/h8300/h8300.h: Fix comment typos.
9695 * config/h8300/h8300.md: Likewise.
9696 * config/h8300/lib1funcs.asm: Likewise.
9698 2002-01-10 Dale Johannesen <dalej@apple.com>
9700 PR optimization/5269
9701 * unroll.c (precondition_loop_p): Make *increment be the correct
9702 sign when n_iterations known, to avoid confusing caller.
9704 2002-01-10 Kazu Hirata <kazu@hxi.com>
9706 * doc/extend.texi (deprecated): Fix a typo.
9708 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
9710 * basic-block.h (update_br_prob_note): Declare.
9711 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9712 (try_forward_edges): Care negative frequencies and update note.
9713 (outgoing_edges_match): Tweek conditional merging heuristics.
9714 (try_crossjump_to_edge): use update_br_prob_note.
9715 * cfglayout.c (fixup_reorder_chain): Likewise.
9716 * cfrtl.c (update_br_prob_note): New.
9717 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9719 * i386.c (ix86_decompose_address): Return -1 if address contains
9721 (legitimate_address_p): Require ix86_decompose_address to return 1.
9723 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9724 (cprop_insn): Likewise.
9726 2002-01-10 Kazu Hirata <kazu@hxi.com>
9728 * toplev.c: Fix formatting.
9730 * tree-dump.c: Likewise.
9731 * unroll.c: Likewise.
9732 * unwind-dw2.c: Likewise.
9733 * unwind-dw2-fde.c: Likewise.
9734 * unwind-dw2-fde-glibc.c: Likewise.
9735 * unwind-sjlj.c: Likewise.
9737 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9739 * doc/invoke.texi: Document PDP-11 options.
9741 2002-01-10 Kazu Hirata <kazu@hxi.com>
9743 * config/h8300/h8300.h: Fix formatting.
9745 2002-01-10 Ira Ruben <ira@apple.com>
9747 Add __attribute__ ((deprecated)).
9748 * extend.texi: Document __attribute__ ((deprecated)).
9749 * invoke.texi: Document -Wno-deprecated-declarations.
9750 * testsuite/g++.dg/other/deprecated.C: New C++ test.
9751 * testsuite/gcc.dg/deprecated.c: New C test.
9752 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9753 (c_common_attribute_table): Add "deprecated" entry.
9754 (handle_deprecated_attribute): New function.
9755 * c-decl.c (deprecated_states): New enum.
9756 deprecated_state: State of "deprecated" handling.
9757 (start_decl): Set deprecated_state based on attributes.
9758 (grokdeclarator): Test for deprecated uses, propagate attribute.
9759 * c-typeck.c (build_component_ref): Test for deprecated fields.
9760 (build_external_ref): Test for deprecated primaries.
9761 * diagnostic.c (warn_deprecated_use) New function to issue
9762 warnings about __attribute__ ((depricated)) references.
9763 * flags.h (warn_deprecated_decl): Extern declared for
9764 -W[no-]deprecated-declarations option.
9765 * print-tree.c (print_node): Show deprecated flag status.
9766 * toplev.c (warn_deprecated_decl): Defined.
9767 (W_options): Added "deprecated-declaration".
9768 * toplev.h (warn_deprecated_use): Extern declared.
9769 * tree.h (struct tree_common): Define deprecated_flag.
9770 (TREE_DEPRECATED): New macro to access flag.
9771 * cp/call.c (build_call): Test for deprecated calls.
9772 * cp/class.c (add_implicitly_declared_members): Set global
9773 flag to tell grokdeclarator to not issue deprecated warnings.
9774 * cp/cp-tree.h: Add extern for adding_implicit_members.
9775 * cp/decl.c (deprecated_states): New enum.
9776 (start_decl): Set deprecated_state based on attributes.
9777 (grokdeclarator): Test for deprecated uses, propagate attribute.
9778 * cp/lex.c (do_identifier): Test for deprecated primaries.
9779 * cp/typeck.c (build_component_ref): Test for deprecated fields.
9781 2002-01-10 Ira Ruben <ira@apple.com>
9783 Fix to assign attributes to inline member functions.
9784 * cp/decl.c (start_method): Handle attrlist.
9786 2002-01-10 Kazu Hirata <kazu@hxi.com>
9788 * combine.c (expand_field_assignment): Use subreg_lsb().
9790 2002-01-10 David Edelsohn <edelsohn@gnu.org>
9792 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9793 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9794 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9795 Recurse for any operand of AND as long as constant is non-zero.
9797 2002-01-10 Kazu Hirata <kazu@hxi.com>
9799 * config/h8300/h8300.md: Remove constraints from expanders.
9801 2002-01-10 Kazu Hirata <kazu@hxi.com>
9803 * varasm.c: Fix formatting.
9804 * varray.c: Likewise.
9805 * vmsdbgout.c: Likewise.
9806 * xcoffout.c: Likewise.
9808 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
9810 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9811 update edge probabilities to match.
9813 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9815 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9817 * doc/languages.texi, doc/sourcebuild.texi: New files.
9818 * doc/configfiles.texi: Make a subsubsection. Update.
9819 * doc/configterms.texi: Add @node. Remove warning that this isn't
9820 instructions for building GCC.
9821 * doc/makefile.texi: Make a subsection.
9822 * doc/gccint.texi: Update.
9824 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
9826 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9828 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
9830 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9832 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
9834 * optabs.c (expand_fix): Look for wider integer modes first.
9836 * i386.md (mov?f): Avoid the fake const double trick for medium
9838 (min?f*/max?f*): Prohibit memory operands for i387 variant.
9839 (fop_df_4): Disable for SSE compilation.
9841 2002-01-10 Graham Stott <grahams@redhat.com>
9843 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9844 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9846 2002-01-10 Richard Henderson <rth@redhat.com>
9848 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9850 2002-01-10 Richard Henderson <rth@redhat.com>
9852 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9853 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
9855 2002-01-10 Kazu Hirata <kazu@hxi.com>
9857 * combine.c (can_combine_p): Fix a comment typo.
9859 2002-01-09 Zack Weinberg <zack@codesourcery.com>
9861 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9862 empty list correctly. Change loop index $t to $f for
9863 consistency with rest of Makefile.
9865 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
9867 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9868 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9870 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9871 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9872 (altivec_init_builtins): Same.
9873 (altivec_expand_unop_builtin): Return NULL_RTX on error.
9874 (altivec_expand_binop_builtin): Same.
9875 (altivec_expand_ternop_builtin): Same.
9878 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9879 ("altivec_vctuxs"): Fix typo.
9880 ("altivec_vnmsubfp"): Same.
9881 ("altivec_dssall"): New.
9882 ("altivec_mfvscr"): New.
9883 ("altivec_dss"): New.
9884 ("altivec_lvsl"): New.
9885 ("altivec_lvsr"): New.
9886 ("altivec_dstt"): New.
9887 ("altivec_dstst"): New.
9888 ("altivec_dststt"): New.
9889 ("altivec_dst"): New.
9891 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9892 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9894 2002-01-09 Richard Henderson <rth@redhat.com>
9896 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9898 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
9900 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9902 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9904 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9906 2002-01-09 Kazu Hirata <kazu@hxi.com>
9908 * read-rtl.c: Fix formatting.
9910 * regclass.c: Likewise.
9911 * regrename.c: Likewise.
9912 * reg-stack.c: Likewise.
9913 * reload1.c: Likewise.
9914 * reload.c: Likewise.
9917 2002-01-09 Kazu Hirata <kazu@hxi.com>
9919 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9920 to extract items in the expr_list chain.
9922 2002-01-09 Richard Henderson <rth@redhat.com>
9924 * config/vax/vax.c (vax_rtx_cost): Never abort.
9926 * config/vax/vax.h (REAL_ARITHMETIC): Define.
9928 2002-01-09 Jan Hubicka <jh@suse.cz>
9930 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9932 2002-01-09 Richard Henderson <rth@redhat.com>
9934 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9935 Unify code from various alternatives.
9937 2002-01-09 Richard Henderson <rth@redhat.com>
9939 * regrename.c (copy_value): Ignore the copy if the source register
9940 is present in the value chain with a narrower mode.
9942 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9944 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9945 for the c4x target. Also improve layout.
9947 2002-01-09 Richard Henderson <rth@redhat.com>
9949 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9950 * config/m32r/m32r.md (and ior xor splitters): Swap operands
9951 to match insn patterns.
9953 2002-01-09 Richard Henderson <rth@redhat.com>
9955 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9956 (copyprop_hardreg_forward_1): Likewise.
9958 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
9960 * pa.md (decrement_and_branch_until_zero): Change predicate for
9961 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9963 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9965 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9966 gets undefined. For Darwin.
9968 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9970 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9972 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9974 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9976 2002-01-08 Richard Henderson <rth@redhat.com>
9978 * regrename.c (copy_value): Ignore overlapping copies.
9980 2002-01-08 Richard Henderson <rth@redhat.com>
9982 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9983 as needed to avoid shared structure.
9985 2002-01-08 Kazu Hirata <kazu@hxi.com>
9987 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9990 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9992 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9993 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9994 documentation of obsolete macros.
9995 * system.h: Poison these macros.
9996 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9997 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9998 config/c4x/c4x.h, config/clipper/clipper.h,
9999 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10000 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10001 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10002 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10003 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10004 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10005 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10006 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10007 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10008 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10009 config/sparc/sparc.h, config/stormy16/stormy16.h,
10010 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10011 definitions and commented out definitions of obsolete macros.
10012 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10013 of MAX_INT_TYPE_SIZE.
10015 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10017 * config/s390/s390.c (s390_preferred_reload_class): Never
10018 return ADDR_REGS if it isn't a subset of the given class.
10019 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10020 FP_REGS, but all superclasses as well.
10022 * config/s390/s390.c (s390_function_profiler): Fix thinko.
10024 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10025 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10026 must not be a const_int.
10028 2002-01-08 Richard Henderson <rth@redhat.com>
10030 * Makefile.in (toplev.o): Depend on options.h.
10031 (gcc.o): Depend on specs.h.
10033 2002-01-08 Jakub Jelinek <jakub@redhat.com>
10035 * expr.c (store_expr): Convert VOIDmode constants back to target's
10038 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10040 * doc/invoke.texi: Markup gcc as @command. Refer to
10041 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10042 of http://gcc.gnu.org/thanks.html.
10044 2002-01-08 Dale Johannesen <dalej@apple.com>
10046 * config/rs6000/rs6000.md: Add missing int register
10047 target case to movdf_low.
10049 2002-01-08 Zack Weinberg <zack@codesourcery.com>
10051 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10052 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
10053 (cppinit.o): Depend on except.h.
10054 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10055 s-specs): New rules.
10057 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10058 Don't create specs.h/options.h/gencheck.h here. Remove
10059 unnecessary variable settings from last argument of AC_OUTPUT.
10060 * config.in, configure: Regenerate.
10061 * intl.c: Hardcode package name as "gcc".
10063 * cppinit.c: Include except.h.
10064 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10066 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10067 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10068 (!)USING_SJLJ_EXCEPTIONS.
10069 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10071 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10073 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10074 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10075 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10076 documentation of obsolete macros.
10077 * system.h: Poison these macros.
10078 * config/d30v/d30v.h, config/ns32k/encore.h,
10079 config/stormy16/stormy16.h: Remove definitions and commented out
10080 definitions of obsolete macros.
10082 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
10084 * objc/objc-act.c (handle_class_ref): Mark the declaration of
10085 %sobjc_class_ref_%s as used - to prevent unwanted compiler
10088 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10090 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10091 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10092 to insn adjusting stack/frame pointer.
10093 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10094 accept operands that cause the insn to be non-splittable.
10096 2002-01-08 Graham Stott <grahams@redhat.com>
10098 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10099 (C_TYPE_FIELDS_VOLATILE): Likewise.
10100 (C_TYPE_BEING_DEFINED): Likewise.
10101 (C_IS_RESERVED_WORD): Likewise.
10102 (C_TYPE_VARIABLE_SIZE): Likewise.
10103 (C_DECL_VARIABLE_SIZE): Likewise.
10104 (C_MISSING_PROTOTYPE_WARNED): Likewise.
10105 (C_SET_EXP_ORIGINAL_CODE): Likewise.
10106 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10108 (C_DECL_ANTICIPATED): Likewise.
10109 (c_build_type_variant): Add parenthesis.
10111 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
10113 * gcc.c (option_map): Remove --version.
10114 (process_command): Handle -fversion following the GNU Coding
10115 Standards. Partially addresses PR other/704.
10117 2002-01-08 Graham Stott <grahams@redhat.com>
10119 * combine.c (combine_instructions): Fix typo.
10121 2002-01-08 Graham Stott <grahams@redhat.com>
10123 * debug.h: Use "tree" and "rtx" throughout.
10125 * debug.c: Likewise.
10127 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
10129 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10130 constant pool, use the pool's version of the symbol instead.
10132 2002-01-07 Richard Henderson <rth@redhat.com>
10134 * regrename.c (find_oldest_value_reg): Ignore the value chain if
10135 the original register was copied in a mode with a fewer number of
10136 hard registers than the desired mode.
10137 (copyprop_hardreg_forward_1): Likewise.
10138 (debug_value_data): Fix loop test.
10139 * toplev.c (parse_options_and_default_flags): Reenable
10140 -fcprop-registers at -O1.
10142 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10144 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10145 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10147 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10150 * config/rs6000/rs6000.md: Add altivec predicate patterns.
10152 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
10154 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10155 (pa_output_function_prologue): Output local label at the beginning of
10156 the prologue when profiling.
10157 (hppa_profile_hook): Use the local label rather than the function label.
10158 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10160 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10162 * config/rs6000/rs6000.c (print_operand): Remove extra space.
10163 (altivec_expand_unop_builtin): Fix thinko.
10164 (altivec_expand_binop_builtin): Same.
10165 (altivec_expand_ternop_builtin): Same.
10166 (altivec_expand_builtin): Same.
10168 2002-01-07 Richard Henderson <rth@redhat.com>
10170 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10172 2002-01-07 Jason Merrill <jason@redhat.com>
10174 * unwind-dw2.c (execute_cfa_program): Use < again.
10176 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10178 * predict.c (combine_predictions_for_insn): Avoid division by zero.
10180 2002-01-07 Jakub Jelinek <jakub@redhat.com>
10182 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10183 Don't allow -1 - x -> ~x simplifications in the first pass.
10185 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
10187 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10189 (altivec_expand_binop_builtin): Same.
10190 (altivec_expand_unop_builtin): Same.
10191 (print_operand): Fix typo.
10192 (bdesc_1arg): Add vupk* variants.
10194 * rs6000.h (rs6000_builtins): Add vupk* enums.
10196 * rs6000.md: Add altivec_vupk* variants.
10198 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
10200 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10201 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10202 and last update dates.
10204 2002-01-07 Janis Johnson <janis187@us.ibm.com>
10206 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10208 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
10210 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10211 * config/avr/avr.h (CPP_SPEC): Likewise.
10212 (LINK_SPEC): Likewise.
10213 (CRT_BINUTILS_SPECS): Likewise.
10214 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10215 * doc/invoke.texi (AVR Options): Document them.
10217 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
10219 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10222 2002-01-07 Graham Stott <grahams@redhat.com>
10224 * config/i386/i386.h: Update copyright date.
10225 (HALF_PIC_PTR): Add parenthesis.
10226 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10227 (CONSTANT_ALIGNMENT): Add parenthesis.
10228 (DATA_ALIGNMENT): Likewise.
10229 (LOCAL_ALIGNMENT): Likewise.
10230 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10231 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10232 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10233 (HARD_REGNO_NREGS): Add paranethesis.
10234 (VALID_SSE_REG_MODE): Whitespace.
10235 (VALID_MMX_REG_MODE): Whitespace.
10236 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10237 (ix86_hard_regno_mode_ok): Add parenthesis.
10238 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10239 (RETURN_IN_MEMORY): Whitespace.
10240 (N_REG_CLASSES): Add parenthesis.
10241 (INTEGER_CLASS_P): Add parenthesis and wrap.
10242 (FLOAT_CLASS_P): Likewise.
10243 (SSE_CLASS_P): Likewise.
10244 (MMX_CLASS_P): Likewise.
10245 (MAYBE_INTEGER_CLASS_P): Likewise.
10246 (MAYBE_FLOAT_CLASS_P): Likewise.
10247 (MAYBE_SSE_CLASS_P): Likewise.
10248 (MAYBE_MMX_CLASS_P): Likewise.
10249 (Q_CLASS_P): Likewise.
10250 (GENERAL_REGNO_P): Uppercase macro parameter.
10251 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10252 (FP_REGNO_P): Likewise.
10253 (ANY_FP_REGNO_P): Uppercase macro parameter.
10254 (SSE_REGNO_P): Likewise.
10255 (SSE_REGNO): Likewise.
10256 (SSE_REG_P): Likewise.
10257 (SSE_FLOAT_MODE_P): Likewise.
10258 (MMX_REGNO_P): Likewise.
10259 (MMX_REG_P):Likewise.
10260 (STACK_REG_P): Likewise.
10261 (NON_STACK_REG_P): Likewise.
10262 (STACK_TOP_P): Likewise.
10263 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10264 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10265 (SECONDARY_MEMORY_NEEDED): Likewise.
10266 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10267 (MD_ASM_CLOBBERS): Whitespace and wrap.
10268 (MUST_PASS_IN_STACK): Whitespace and wrap.
10269 (RETURN_POPS_ARGS): Add parenthesis.
10270 (INIT_CUMULATIVE_ARGS): Likewise.
10271 (FUNCTION_ARG): Likewise.
10272 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10273 (SETUP_INCOMING_VARARGS): Likewise.
10274 (BUILD_VA_LIST_TYPE): Add parenthesis.
10275 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10277 (EXPAND_BUILTIN_VA_ARG): Likewise.
10278 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10279 (INITIALIZE_TRAMPOLINE): Add parenthesis.
10280 (INITIAL_ELIMINATION_OFFSET): Likewise.
10281 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10282 (REGNO_OK_FOR_BASE_P): Likewise.
10283 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10284 (REGNO_OK_FOR_DIREG_P): Likewise.
10285 (REG_OK_FOR_INDEX_P): Whitespace.
10286 (REG_OK_FOR_BASE_P): Whitespace.
10287 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10289 (FIND_BASE_TERM): Fix typo.
10290 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
10291 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10292 (SYMBOLIC_CONST; Whitespace.
10293 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
10294 (ENCODE_SECTION_INFO): Whitespace.
10295 (FINALIZE_PIC): Remove do { ... } while (0).
10296 (PROMOTE_MODE): Wrap in do { ... } while (0).
10297 (CONST_COSTS): Whitespace.
10298 (RTX_COSTS): Add paramethesis, whitespace and wrap.
10299 (REGISTER_MOVE_COST): Add parenthesis.
10300 (MEMORY_MOVE_COST): Likewise.
10301 (EXTRA_CC_MODES): Whitespace.
10302 (SELECT_CC_MODE): Add parenthesis and whitespace.
10303 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10304 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10305 (ASM_OUTPUT_LABEL): Add paramethesis.
10306 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10307 (ASM_OUTPUT_REG_POP): Likewise.
10308 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10309 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10311 * config/i386/i386.c: Update copyright.
10312 (CHECK_STACK_LIMIT): Add parenthesis.
10313 (AT_BP): Uppercase macro parameter.
10314 (x86_64_int_parameter_registers): Constify.
10315 (x86_64_int_return_registers): Likewise.
10316 (ix86_compare_op0): Use rtx.
10317 (construct_container): Constify INTREG parameter.
10318 (function_arg): Use rtx.
10320 * diagnostic.h: Update copyright date.
10321 (output_buffer_state): Add parenthesis.
10322 (output_buffer_format_args): Likewise.
10324 * combine.c (combine_instructions): Replace XEXP (links, 0)
10327 2002-01-06 H.J. Lu <hjl@gnu.org>
10329 * cfgcleanup.c (thread_jump): Fix 2 typos.
10331 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
10333 * config.gcc: Add support for --enable-altivec.
10335 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10337 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10339 2002-01-06 Jakub Jelinek <jakub@redhat.com>
10341 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10342 __objc_class_name_*.
10344 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10346 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10348 2002-01-06 Richard Henderson <rth@redhat.com>
10350 * reorg.c (emit_delay_sequence): Remove death notes, not merely
10351 nop them out. Increment label reference count for REG_LABEL.
10352 (fill_slots_from_thread): Frob label reference count around
10353 delete_related_insns.
10355 2002-01-05 Richard Henderson <rth@redhat.com>
10357 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10360 2002-01-05 Richard Henderson <rth@redhat.com>
10362 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10363 * integrate.c (output_inline_function): Likewise.
10364 * toplev.c (rest_of_compilation): Do it here instead. Move call
10365 to remove_unnecessary_notes after emitting abstract instance.
10366 Force an emitted nested function to have its parent emited as well.
10367 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10369 (rtl_for_decl_location): Do not look at reload data structures
10370 before reload has run.
10372 2002-01-05 Kazu Hirata <kazu@hxi.com>
10374 * cse.c: Fix formatting.
10375 * dwarf2asm.c: Likewise.
10376 * dwarf2out.c: Likewise.
10377 * explow.c: Likewise.
10378 * expmed.c: Likewise.
10379 * function.c: Likewise.
10380 * gcov.c: Likewise.
10381 * gencheck.c: Likewise.
10382 * genrecog.c: Likewise.
10383 * ggc-common.c: Likewise.
10384 * ggc-page.c: Likewise.
10385 * global.c: Likewise.
10387 2002-01-05 Kazu Hirata <kazu@hxi.com>
10389 * combine.c: Fix formatting.
10391 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
10394 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10396 2002-01-05 David Edelsohn <edelsohn@gnu.org>
10398 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10399 as 1 for __powerpc64__ as well.
10401 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10403 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10406 2002-01-05 Daniel Berlin <dan@dberlin.org>
10408 * lcm.c: Revert change, due to performance regression it causes on
10409 SPEC because it's slightly more conservative (sigh, I hate
10412 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
10414 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10416 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
10418 * doc/cppinternals.texi: Update.
10420 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
10422 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10423 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10425 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
10426 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10427 kludge for pre-october-14th mmix versions to handle new-found bug
10428 with PUSHJ/PUSHGO and the register stack.
10429 * config/mmix/mmix.h (struct machine_function): Rename member
10430 has_call_value_without_parameters to has_call_without_parameters.
10431 All referers changed.
10432 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10433 TARGET_MASK_BRANCH_PREDICT): New macros.
10434 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10435 -mno-reg-stack-fill-bug-workaround.
10436 * config/mmix/mmix.md ("call"): Set struct machine member
10437 has_call_without_parameters.
10439 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
10441 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10443 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
10445 * cfgcleanup.c: Include tm_p.h
10446 (mark_effect): Fix handling of hard register; fix handling of SET
10448 2002-01-04 Kazu Hirata <kazu@hxi.com>
10450 * config/h8300/h8300.md (anonymous patterns): Check that
10451 operands are registers before using REGNO on them.
10453 2002-01-03 Roland McGrath <roland@frob.com>
10455 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10457 2002-01-04 Jakub Jelinek <jakub@redhat.com>
10459 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10460 * c-common.h (genrtl_expr_stmt_value): Likewise.
10461 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10462 (expand_expr_stmt_value): Add maybe_last argument.
10463 Don't warn about statement with no effect if it is the last statement
10464 in expression statement.
10465 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10466 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10467 expand_expr_stmt_value.
10468 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10469 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10470 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10471 as maybe_last to expand_expr_stmt_value.
10473 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
10475 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10476 be passed in, do not build it.
10477 (c_begin_if_stmt): New function.
10478 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10479 * c-common.h (c_expand_start_cond): Update prototype.
10480 (c_begin_if_stmt): Prototype new function.
10481 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10482 * c-parse.in (if_prefix): Use c_begin_if_stmt,
10483 c_begin_while_stmt and c_finish_while_stmt_cond.
10485 2002-01-04 William Cohen <wcohen@redhat.com>
10487 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10488 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10489 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10490 * config/pa/som.h (ASM_FILE_START): Likewise.
10492 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
10494 * lcm.c: Include df.h.
10495 Add available_transfer_function prototype.
10496 (compute_available): Rework to use iterative dataflow framework.
10497 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10498 with bb_info in df.h
10499 (available_transfer_function): New function.
10501 * Makefile.in (lcm.o): add df.h to dependencies.
10503 2002-01-04 Richard Henderson <rth@redhat.com>
10505 * config/alpha/alpha.c (some_operand): Accept HIGH.
10506 (input_operand): Likewise; accept simple references to globals.
10507 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10508 (alpha_const_double_ok_for_letter_p): Likewise.
10509 (alpha_extra_constraint): Likewise.
10510 (alpha_preferred_reload_class): Likewise. Do not force
10511 symbolic constants to memory.
10512 (alpha_legitimate_address_p): Accept simple references
10513 to small_symbolic_operand.
10514 (alpha_legitimize_address): New arg scratch. Be prepared to be
10515 called when no_new_pseudos. Emit simple symbolic references.
10516 Split integers into low, high, and rest.
10517 (alpha_expand_mov): Use alpha_legitimize_address.
10518 (some_small_symbolic_mem_operand): New.
10519 (split_small_symbolic_mem_operand): New.
10520 * config/alpha/alpha-protos.h: Update.
10521 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10522 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10523 (EXTRA_CONSTRAINT): Likewise.
10524 (PREFERRED_RELOAD_CLASS): Likewise.
10525 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10526 (PREDICATE_CODES): Update.
10527 * config/alpha/alpha.md: New post-reload splitters to convert
10528 simplfied symbolic operands to the form that references $29.
10529 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10530 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10532 2002-01-03 Richard Henderson <rth@redhat.com>
10534 * local-alloc.c (function_invariant_p): Update commentary.
10536 2002-01-04 H.J. Lu <hjl@gnu.org>
10538 * toplev.c (rest_of_compilation): Fix a typo when calling
10541 2002-01-03 Kazu Hirata <kazu@hxi.com>
10543 * c-common.c: Fix formatting.
10544 * diagnostic.c: Likewise.
10545 * doloop.c: Likewise.
10546 * dwarf2out.c: Likewise.
10548 2002-01-03 Kazu Hirata <kazu@hxi.com>
10550 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10551 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10553 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10555 * cpperror.c: Update comments and copyright.
10556 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10557 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10559 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10561 * collect2.c (main): Use strcmp when testing for "-shared".
10563 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10565 * cppmacro.c: Don't include intl.h. Update comments.
10566 (new_number_token): Allocate enough buffer for 64-bit unsigned
10567 integers; update prototype.
10568 * cppmain.c: Update comments.
10570 2002-01-03 William Cohen <wcohen@redhat.com>
10572 * function.h (struct function): Add profile.
10573 (current_function_profile): New.
10574 doc/extend.texi: Update documentation.
10575 * final.c (final_start_function): Use current_function_profile
10576 instead of profile_flag.
10577 (profile_after_prologue): Likewise.
10578 * function.c (expand_function_start): Likewise.
10579 (expand_function_start): Likewise.
10580 * config/alpha/alpha.c (direct_call_operand):
10581 (alpha_does_function_need_gp): Likewise.
10582 (alpha_expand_prologue): Likewise.
10583 * config/arm/arm.c (arm_expand_prologue): Likewise.
10584 thumb_expand_prologue: Likewise.
10585 * config/d30v/d30v.c (d30v_stack_info): Likewise.
10586 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10587 (fr30_expand_prologue): Likewise.
10588 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10589 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10590 * config/i386/i386.h (FINALIZE_PIC): Likewise.
10591 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10592 * config/i960/i960.c (i960_output_function_prologue): Likewise.
10593 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10594 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10595 (m32r_expand_prologue): Likewise.
10596 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10597 (m88k_expand_prologue): Likewise.
10598 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10599 * config/mips/mips.c (compute_frame_size): Likewise.
10600 (mips_expand_prologue): Likewise.
10601 (mips_can_use_return_insn): Likewise.
10602 * config/pa/elf.h (ASM_FILE_START): Likewise.
10603 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10604 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10605 * config/pa/som.h (ASM_FILE_START): Likewise.
10606 * config/romp/romp.c (romp_using_r14): Likewise.
10607 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10608 (rs6000_stack_info): Likewise.
10609 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10610 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10611 * config/v850/v850.c (compute_register_save_size): Likewise.
10613 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10615 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10616 gen_lowpart_common fails, use gen_lowpart_SUBREG.
10618 2002-01-03 Turly O'Connor <turly@apple.com>
10620 * darwin.c (machopic_output_possible_stub_label): Don't generate
10621 stub routines for pseudo-stubs which we've just defined.
10623 2002-01-03 Kazu Hirata <kazu@hxi.com>
10625 * builtins.c: Fix formatting.
10626 * c-typeck.c: Likewise.
10627 * combine.c: Likewise.
10628 * expr.c: Likewise.
10629 * loop.c: Likewise.
10631 2002-01-03 Andreas Schwab <schwab@suse.de>
10633 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10634 and return true if _cpp_push_next_buffer pushed a new include
10636 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10637 _cpp_pop_file_buffer did not push a new file.
10638 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10640 2002-01-02 Eric Christopher <echristo@redhat.com>
10642 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10643 FIND_REG_INC_NOTE call. Update copyright.
10644 * loop.c (canonicalize_condition): Ditto.
10645 * reorg.c (delete_scheduled_jump): Ditto.
10647 2002-01-03 Kazu Hirata <kazu@hxi.com>
10649 * gcse.c: Fix formatting.
10651 2002-01-03 Graham Stott <grahams@redhat.com>
10653 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10654 forward defs for struct tags rtx_def, union_tree, rtvec_def
10655 also output corresponding typedefs for rtx, tree, and rtvec.
10657 * system.h: Move forward defs for struct tags rtx_def, union_tree,
10658 rtvec_def along with corresponding typedefs for rtx, tree, and
10659 rtvec to config.h, hconfig.h, tconfig.h.
10661 2002-01-03 Graham Stott <grahams@redhat.com>
10663 * tree.h: Update copyright date.
10664 (IS_EXPR_CODE_CLASS): Add parenthesis.
10665 (TREE_SET_CODE): Add whitespace.
10666 (TREE_CHECK): Add parenthesis.
10667 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10668 (CST_OR_CONSTRUCTOR_CHECK):
10669 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10670 (TREE_SYMBOL_REFERENCED): Whitespace.
10671 (INT_CST_LT): Likewise.
10672 (INT_CST_LT_UNSIGNED): Likewise.
10673 (tree_real_cst): Unwrap comment.
10674 (tree_string): Likewise.
10675 (tree_complex): Likewise.
10676 (IDENTIFIER_POINTER): correct cast.
10677 (SAVE_EXPR_CONTEXT): Whitespace.
10678 (EXPR_WFL_FILENAME_NODE): Likewise.
10679 (EXPR_WFL_FILENAME): Remove parenthesis.
10680 (DECL_ORIGIN): Add parenthesis.
10681 (DECL_FROM_INLINE): Use NULL_TREE.
10682 (build_int_2): Whitespace.
10683 (build_type_variant): Add parenthesis.
10685 * gcc/jcf-parse.c: Update copyright date.
10686 (yyparse): Constify resource_filename.
10688 2002-01-03 Graham Stott <grahams@redhat.com>
10690 * rtl.h: Update copyright date.
10691 (RTL_CHECK1): Wrap long line.
10692 (RTL_CHECK2): Likewise.
10693 (RTL_CHECKC1): Wrap long line and whitespace.
10694 (RTL_CHECKC2): Likewise.
10695 (XWINT): Whitespace.
10701 (XBITMAP): Likewise.
10703 (XBBDEF): Likewise.
10705 (X0WINT): Likewise.
10707 (X0UINT): Likewise.
10711 (X0MODE): Likewise.
10712 (X0BITMAP): Likewise.
10713 (X0TREE): Likewise.
10714 (X0BBDEF): Likewise.
10715 (X0ADVFLAGS): Likewise.
10716 (X0CSELIB): Likewise.
10717 (X0MEMATTR): Likewise.
10718 (XCWINT): Likewise.
10720 (XCUINT): Likewise.
10724 (XCMODE): Likewise.
10725 (XCBITMAP): Likewise.
10726 (XCTREE): Likewise.
10727 (XCBBDEF): Likewise.
10728 (XCADVFLAGS): Likewise.
10729 (XCCSELIB): Likewise.
10730 (XC2EXP): Likewise.
10731 (INSN_UID): Likewise.
10732 (PREV_INSN): Likewise.
10733 (PATTERN): Likewise.
10734 (INSN_CODE): Likewise.
10735 (PUT_REG_NOTE_KIND): Likewise.
10736 (CODE_LABEL_NUMBER): Likewise.
10737 (NOTE_SOURCE_FILE): Likewise.
10738 (NOTE_BLOCK): Likewise.
10739 (NOTE_EH_HANDLER): Likewise.
10740 (NOTE_RANGE_INFO): Likewise.
10741 (NOTE_LIVE_INFO): Likewise.
10742 (NOTE_BASIC_BLOCK): Likewise.
10743 (NOTE_EXPECTED_VALUE): Likewise.
10744 (NOTE_LINE_NUMBER): Likewise.
10745 (LABEL_NAME): Likewise.
10746 (LABEL_NUSES): Likewise.
10747 (LABEL_ALTERNATE_NAME): Likewise.
10748 (ADDRESSOF_DECL): Likewise.
10749 (JUMP_LABEL): Likewise.
10750 (LABEL_NEXTREF): Likewise.
10752 (ORIGINAL_REGNO: Likewise.
10753 (HARD_REGISTER_NUM_P): Add parenthesis.
10754 (SUBREG_REG): Whitespace.
10755 (SUBREG_BYTE): Likewise.
10756 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10757 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10758 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10759 (ASM_OPERANDS_INPUT_VEC): Likewise.
10760 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10761 (ASM_OPERANDS_INPUT): Likewise.
10762 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10763 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10764 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10765 (ASM_OPERANDS_INPUT_MODE): Likewise.
10766 (ASM_OPERANDS_SOURCE_FILE): Likewise.
10767 (ASM_OPERANDS_SOURCE_LINE): Likewise.
10768 (MEM_SET_IN_STRUCT_P): Minor reformat.
10769 (TRAP_CONDITION): Whitespace.
10770 (TRAP_CODE): Likewise.
10771 (COND_EXEC_TEST): Likewise.
10772 (COND_EXEC_CODE): Likewise.
10773 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10774 (PHI_NODE_P): Add parenthesis.
10775 (plus_constant): Whitespace and add parenthesis.
10777 2002-01-03 Kazu Hirata <kazu@hxi.com>
10779 * config/avr/avr.c: Fix comment typos.
10780 * config/c4x/c4x.md: Likewise.
10781 * config/dsp16xx/dsp16xx.h: Likewise.
10782 * config/dsp16xx/dsp16xx.md: Likewise.
10783 * config/i386/i386.md: Likewise.
10784 * config/ia64/ia64.c: Likewise.
10785 * config/m32r/m32r.h: Likewise.
10786 * config/m68hc11/m68hc11.md: Likewise.
10787 * config/mmix/mmix.c: Likewise.
10788 * config/mn10200/mn10200.c: Likewise.
10789 * config/romp/romp.c: Likewise.
10790 * config/sh/sh.c: Likewise.
10791 * config/stormy16/stormy16.c: Likewise.
10792 * config/stormy16/stormy16.h: Likewise.
10793 * config/stormy16/stormy16.md: Likewise.
10795 2002-01-03 Graham Stott <grahams@redhat.com>
10797 * loop.h: Update copyright date.
10798 (LOOP_MOVABLES): Fix typo.
10799 (LOOP_REGS): Likewise.
10800 (LOOP_IVS): Likewise.
10802 2002-01-03 Graham Stott <grahams@redhat.com>
10804 * cppinit.c: Update copyright date.
10805 Don't include output.h
10806 * Makefile.in: Update copyright date.
10809 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
10812 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10813 (-pthread) Add to RS/6000 options.
10815 2002-01-02 Kazu Hirata <kazu@hxi.com>
10817 * except.c: Fix comment typos.
10818 * loop.c: Likewise.
10819 * varasm.c: Likewise.
10820 * doc/tm.texi: Fix a typo.
10822 2002-01-02 Jakub Jelinek <jakub@redhat.com>
10824 * c-typeck.c (output_init_element): Allow initializing static storage
10825 duration objects with compound literals.
10827 2002-01-02 Richard Henderson <rth@redhat.com>
10829 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10832 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10834 * gcc.c (default_compilers): Const-ify.
10835 * mips-tdump.c (stab_names): Likewise.
10836 * mips-tfile.c (map_coff_types, map_coff_storage,
10837 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10838 pseudo_ops_t, pseudo_ops): Likewise.
10839 * protoize.c (default_include): Likewise
10841 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10842 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10843 Add array size in declaration.
10844 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10845 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10846 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10847 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10848 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10849 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10850 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10851 emtens, make_nan): Const-ify.
10852 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10853 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10855 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
10857 * config.gcc (ia64-*-*): Set extra_headers.
10858 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
10859 * config/alpha/t-osf: Remove.
10860 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10862 2002-01-02 David Edelsohn <edelsohn@gnu.org>
10864 * config/rs6000/t-aix43: Revert previous change.
10866 2002-01-02 Jason Merrill <jason@redhat.com>
10868 * c-decl.c (c_expand_body): Call outlining_inline_function when
10869 emitting an inline function out of line.
10871 2002-01-02 Richard Henderson <rth@redhat.com>
10873 * dwarf2out.c (limbo_die_node): Add created_for member.
10874 (new_die): New argument created_for. Update all callers.
10875 (mark_limbo_die_list): New.
10876 (dwarf2out_init): Register limbo_die_list as a root.
10877 (dwarf2out_finish): Force insert limbo dies into their function
10880 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
10883 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10885 2002-01-02 Kazu Hirata <kazu@hxi.com>
10887 * config/h8300/fixunssfsi.c: Update copyright.
10890 * config/h8300/h8300.c: Update copyright.
10891 Eliminate warnings.
10893 2002-01-02 Kazu Hirata <kazu@hxi.com>
10895 * config/romp/romp.c: Fix comment formatting.
10896 * config/romp/romp.h: Likewise.
10897 * config/romp/romp.md: Likewise.
10898 * config/s390/s390.c: Likewise.
10899 * config/stormy16/stormy16.c: Likewise.
10900 * config/stormy16/stormy16.h: Likewise.
10902 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
10904 * c-common.h (genrtl_expr_stmt_value): Declare.
10905 * c-semantics.c (genrtl_goto_stmt): Redirect to...
10906 (genrtl_goto_stmt_value): ... this new function. Pass new
10907 argument down to expand_expr_stmt_value, taking
10908 TREE_ADDRESSABLE into account.
10909 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10910 STMT_EXPR as addressable, i.e., one whose result we want.
10911 * expr.c (expand_expr): Don't save expression statement value
10912 of labeled_blocks or loop_exprs.
10913 * stmt.c (expand_expr_stmt): Redirect to...
10914 (expand_expr_stmt_value): ... this new function. Use new
10915 argument to tell whether to save expression value.
10916 (expand_end_stmt_expr): Reset last_expr_type and
10917 last_expr_value if we don't have either.
10918 * tree-inline.c (declare_return_variable): Mark its use
10919 statement as addressable.
10920 * tree.h: Document new use of TREE_ADDRESSABLE.
10921 (expand_expr_stmt_value): Declare.
10923 2002-01-01 Tom Rix <trix@redhat.com>
10925 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10926 rs6000_emit_allocate_stack.
10928 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
10930 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10931 ${srcdir}/ginclude/ to every entry in extra_headers.
10932 * configure: Regenerate.
10933 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10934 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10935 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10936 * ginclude/proto.h: Rename to config/convex/proto.h.
10938 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10940 * attribs.c (handle_vector_size_attribute): Use host_integerp
10941 and tree_int_cst; remove warnings.
10942 * caller-save.c (insert_restore): Add cast to get rid of warning.
10943 (insert_save): Likewise.
10944 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10945 * regmove.c (find_matches): Add temporary var to kill a warning.
10947 2002-01-01 Douglas B Rupp <rupp@gnat.com>
10949 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10950 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10951 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10952 (vms-dwarf2eh.o): Add Makefile rule.
10953 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10954 * config/alpha/vms-dwarf2eh.asm: New file.
10956 * gcc.c (delete_if_ordinary): Delete all versions.
10958 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
10960 * config/mmix/mmix.md: Update FIXME to not mention
10962 (MMIX_rJ_REGNUM): New define_constants constant.
10963 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10964 "*movdicc_real"): Adjust contraints formatting.
10965 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10966 for branch prediction.
10967 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10969 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10970 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10971 number. Delete related FIXMEs.
10972 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10973 from number to MMIX_rJ_REGNUM.
10974 (TARGET_MASK_BRANCH_PREDICT): New.
10975 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10976 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
10977 value. Add -mbranch-predict and -mno-branch-predict.
10978 (TARGET_VERSION): Drop date.
10979 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10980 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10981 for finding out global symbols.
10982 (mmix_asm_output_labelref): Revert condition for global symbol.
10983 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10984 (mmix_print_operand_punct_valid_p): A '+' is valid.
10986 See ChangeLog.6 for earlier changes.