1 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
3 * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
4 * c-tree.h (c_incomplete_type_error): New.
5 * c-typeck.c (require_complete_type, build_component_ref): Update.
6 (incomplete_type_error): Rename.
7 * langhooks-def.h (lhd_incomplete_type_error): New.
8 (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
9 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
10 * langhooks.c (lhd_incomplete_type_error): New.
11 * langhooks.h (struct lang_hooks_for_types): New hook.
12 * tree.c (size_in_bytes): Use new hook.
13 * tree.h (incomplete_type_error): Remove.
15 * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17 2002-04-18 Zack Weinberg <zack@codesourcery.com>
19 * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
20 TARGET_FLOAT_FORMAT blocks.
22 2002-04-18 Hans-Peter Nilsson <hp@axis.com>
24 * config/cris/cris.h (TARGET_VERSION): Remove local version number.
26 Thu Apr 18 17:14:08 CEST 2002 Jan Hubicka <jh@suse.cz>
28 * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
31 2002-04-18 Jakub Jelinek <jakub@redhat.com>
33 * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
34 instead of unsigned_type.
36 Thu Apr 18 15:49:12 CEST 2002 Jan Hubicka <jh@suse.cz>
38 * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
39 * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
42 2002-04-18 Bernd Schmidt <bernds@redhat.com>
44 * attribs.c (vector_type_node_list): New static variable.
45 (handle_vector_size_attribute): Use it to avoid generating a
46 new type node each time we are called.
48 * combine.c (subst): Avoid trying to make a vector mode subreg of
50 (gen_lowpart_for_combine): Likewise.
52 2002-04-18 Roger Sayle <roger@eyesopen.com>
53 Jakub Jelinek <jakub@redhat.com>
55 * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
56 for integer constant c (if x has unsigned type or sign bit is not
57 set in c). This folds the zero/sign extension into the bit-wise and
60 2002-04-18 Jakub Jelinek <jakub@redhat.com>
63 * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
66 2002-04-17 NIIBE Yutaka <gniibe@m17n.org>
68 * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
70 2002-04-17 Nick Clifton <nickc@cambridge.redhat.com>
72 * gcc.c (read_specs): Detect and fail if an attempt is made to
73 rename a spec string to an already existing string.
75 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
77 * config/s390/s390.c (legitimize_pic_address): Do not generate
78 illegal address constant without CONST.
80 2002-04-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
82 * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
83 * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
85 2002-04-17 Ulrich Weigand <uweigand@de.ibm.com>
88 * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
89 to make sure previous reloads are taken into account. Generate
90 better code if one operand is an in-range immediate constant.
92 2002-04-16 Andrew Haley <aph@cambridge.redhat.com>
94 * doc/install.texi (Building): libgcj requires GNU make.
96 2002-04-17 Jakub Jelinek <jakub@redhat.com>
99 * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
100 even if hard quad and register is not floating.
101 (movtf reg<-mem split): Disallow splitting if hard quad and
102 register is floating.
103 (movtf mem<-reg split): Likewise.
104 * config/sparc/sparc.c (fp_register_operand): New predicate.
105 * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
107 2002-04-17 Zack Weinberg <zack@codesourcery.com>
109 * Makefile.in (PROTO_OBJS): Add cppdefault.o.
110 (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
111 (unprotoize.o): Ditto. Build from protoize.c. Define
112 UNPROTOIZE on command line.
113 * protoize.c: Include cppdefault.h. Delete include_defaults.
114 (in_system_include_dir): Use cpp_include_defaults (defined in
116 * unprotoize.c: Delete file.
118 2002-04-17 Aldy Hernandez <aldyh@redhat.com>
120 * config/rs6000/altivec.h (vec_ld): Add array variants.
124 2002-04-17 Alan Matsuoka <alanm@redhat.com>
125 Aldy Hernandez <aldyh@redhat.com>
127 * config/rs6000/altivec.h: Define __ALTIVEC__.
134 Add parentheses to all macro arguments.
136 2002-04-16 Richard Henderson <rth@redhat.com>
139 * except.c (remove_eh_handler): Insert inner regions at beginning
140 of sibling chain. Refactor expressions.
142 2002-04-16 Richard Henderson <rth@redhat.com>
144 * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
145 * config/sparc/sol2-gas-bi.h: New file.
146 * config.gcc (sparc*-solaris): Add it as needed.
147 * configure.in (AS_SPARC64_FLAG): Remove check.
148 * config.in, configure: Regenerate.
150 * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
152 2002-04-16 Richard Henderson <rth@redhat.com>
154 * config/mips/mips.c (override_options): Don't override N32 for
158 * config/mips/mips.md (can_delay): Split out of existing define_delays.
159 (HILO_delay): Set can_delay false.
161 2002-04-16 Dale Johannesen <dalej@apple.com>
163 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
164 instruction addresses.
165 (rs6000_output_function_epilogue): Likewise.
167 2002-04-16 Paolo Carlini <pcarlini@unitus.it>
169 * c-parse.in (poplevel, compstmt_start,
170 compstmt_primary_start): Add ending ';', in accordance
173 2002-04-16 Richard Henderson <rth@redhat.com>
175 * config.gcc (sparcv9-solaris): Configure for 64-bit default.
176 Adjust tm_file order to get TARGET_DEFAULT set properly.
177 (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
178 * doc/install.texi (sparc-solaris): Update.
180 2002-04-16 Dale Johannesen <dalej@apple.com>
182 * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
183 comparison operands do not match each other or if modes of
184 conditions do not match result.
186 2002-04-16 Hartmut Penner <hpenner@de.ibm.com>
189 * config/s390/s390.md (mulsidi3): Set both subregs of the
192 2002-04-16 Aldy Hernandez <aldyh@redhat.com>
194 * config/rs6000/altivec.h (vec_addc): Type check.
196 2002-04-16 Jakub Jelinek <jakub@redhat.com>
199 * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
201 * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
203 2002-04-15 Richard Henderson <rth@redhat.com>
205 * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
206 call_really_used_regs too.
208 2002-04-15 Richard Henderson <rth@redhat.com>
210 * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
212 2002-04-15 David S. Miller <davem@redhat.com>
214 * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
217 2002-04-16 Jakub Jelinek <jakub@redhat.com>
220 * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
221 CONST_VECTOR is { 0, ... 0 }.
223 2002-04-15 Loren J. Rittle <ljrittle@acm.org>
225 * doc/install.texi (Installing GCC: Configuration): Clarify
226 the only supported ways to configure gcc.
228 2002-04-15 Roland McGrath <roland@frob.com>
230 * config.gcc (alpha*-*-gnu*): New target configuration.
231 * config/alpha/gnu.h: New file for it.
232 * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
234 2002-04-16 Mark Mitchell <mark@codesourcery.com>
236 * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
237 * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
238 * tree.h (expand_start_stmt_expr): Update prototype.
239 * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
240 * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
241 on the STMT_EXPR created for the inline function.
243 2002-04-15 Richard Henderson <rth@redhat.com>
245 * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
246 config/i386/linux-aout.h, config/i386/linux-oldld.h,
247 config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
248 config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
249 config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
250 config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
251 config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
252 Define __gnu_linux__, not gnu_linux.
253 * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
255 2002-04-15 Mark Mitchell <mark@codesourcery.com>
257 Remove Chill front end.
258 * gcc.c (default_compilers): Remove Chill entries.
259 * ch: Remove directory.
260 * doc/frontends.texi: Remove information about Chill.
261 * doc/sourcebuild.texi: Likewise.
262 * doc/standards.texi: Likewise.
264 2002-04-15 Douglas B Rupp <rupp@gnat.com>
266 * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
267 (LONGLONG_STANDALONE): Define.
269 2002-04-15 David S. Miller <davem@redhat.com>
271 * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
272 Call emit_library_call with LCT_NORMAL.
273 (sparc_initialize_trampoline): Use LCT_foo instead of
274 magic constant in emit_library_call invocations.
275 (sparc64_initialize_trampoline): Likewise.
276 (sparc_profile_hook): Likewise.
277 * config/sparc/sparc.md: Likewise.
279 * config/sparc/sparc.c (sparc_extra_constraint_check):
280 Fix type of argument 'c'.
281 * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
284 2002-04-15 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
286 * diagnostic.h (output_buffer_state): Redefine.
287 (output_format_decoder): New macro.
288 (output_prefixing_rule): Likewise.
289 (output_line_cutoff): Likewise.
290 (diagnostic_format_decoder): Adjust.
291 (diagnostic_prefixing_rule): Likewise.
292 (diagnostic_line_cutoff): Likewise.
293 (diagnostic_state): Likewise.
294 (diagnostic_kind_count): Likewise.
295 (diagnostic_buffer): Now a macro.
297 * diagnostic.c (diagnostic_buffer): Remove definition.
298 (output_is_line_wrapping): Adjust.
299 (set_real_maximum_length): Likewise.
300 (output_set_maximum_length): Likewise.
301 (init_output_buffer): Likewise.
302 (lhd_print_error_function): Likewise.
303 (output_do_verbatim): Likewise.
305 2002-04-14 Neil Booth <neil@daikokuya.demon.co.uk>
307 * cpperror.c (print_location): Don't print include chain
309 (cpp_begin_message): Update to use DL_ macros.
310 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
311 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
312 cpp_notice, cpp_notice_from_errno): Remove.
313 (cpp_error, cpp_error_with_line): Update to take a diagnostic
316 * cppexp.c (CPP_ICE): Remove.
317 (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
318 lex, integer_overflow, _cpp_parse_expr): Update.
319 * cppfiles.c (read_include_file, find_include_file,
320 handle_missing_header, _cpp_read_file, remap_filename): Update.
321 * cpphash.h (enum error_type): Remove.
322 (_cpp_begin_message): Update.
323 * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
324 cpp_handle_option, cpp_post_options): Update.
325 * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
326 skip_whitespace, parse_identifier, parse_slow, parse_string,
327 _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
328 cpp_interpret_charconst): Update.
329 * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
330 lex_macro_node, do_undef, glue_header_name, parse_include,
331 do_include_common, read_flag, do_line, do_linemarker, do_ident,
332 cpp_register_pragma, do_pragma_once, do_pragma_system_header,
333 do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
334 do_elif, do_endif, parse_answer, parse_assertion, do_assert,
335 _cpp_pop_buffer, do_diagnostic): Update.
336 * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
337 DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
338 (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
339 cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
340 cpp_notice, cpp_notice_from_errno): Remove.
341 (cpp_error, cpp_error_with_line): Update to take a diagnostic
344 * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
345 collect_args, enter_macro_context, save_parameter, parse_params,
346 _cpp_create_definition, check_trad_stringification,
347 cpp_macro_definition): Update.
348 * cppmain.c (cpp_preprocess_file): Update.
349 * fix-header.c (read_scan_file): Update.
351 2002-04-14 Andreas Schwab <schwab@suse.de>
353 * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
355 2002-04-14 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
357 * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
359 2002-04-13 Mark Mitchell <mark@codesourcery.com>
361 * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
364 2002-04-13 Hans-Peter Nilsson <hp@axis.com>
366 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
368 2002-04-13 Joel Sherrill <joel@OARcorp.com>
370 * config/sparc/t-elf: Enable v8 multilibs. Impacts
371 sparc-elf and sparc-rtems targets.
373 2002-04-13 Mark Mitchell <mark@codesourcery.com>
375 * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
376 defined, and __gnu_hurd__ wherever __GNU__ is defined.
377 * arm/linux-elf.h: Likewise.
378 * cris/aout.h: Likewise.
379 * cris/linux.h: Likewise.
380 * i370/linux.h: Likewise.
381 * i386/gnu.h: Likewise.
382 * i386/linux-aout.h: Likewise.
383 * i386/linux-oldld.h: Likewise.
384 * i386/linux.h: Likewise.
385 * i386/linux64.h: Likewise.
386 * ia64/linux.h: Likewise.
387 * m68k/linux-aout.h: Likewise.
388 * m68k/linux.h: Likewise.
389 * mips/linux.h: Likewise.
390 * pa/pa-linux.h: Likewise.
391 * pj/linux.h: Likewise.
392 * rs6000/sysv4.h: Likewise.
393 * s390/linux.h: Likewise.
394 * sh/linux.h: Likewise.
395 * sparc/linux-aout.h: Likewise.
396 * sparc/linux.h: Likewise.
397 * sparc/linux64.h: Likewise.
398 * xtensa/linux.h: Likewise.
400 2002-04-13 Richard Sandiford <rsandifo@redhat.com>
402 * stmt.c (check_unique_operand_names): Expect operand names to
403 be strings rather than identifiers. Use simple_cst_equal to
405 (resolve_operand_name_1): Make same identifier to string change here.
406 * c-parse.in (asm_operand): Convert a named operand into a string.
407 * cp/parse.y (asm_operand): Likewise.
409 2002-04-13 Andreas Schwab <schwab@suse.de>
411 * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
413 2002-04-12 Mark Mitchell <mark@codesourcery.com>
415 Revert these changes:
417 2002-04-06 Mark Mitchell <mark@codesourcery.com>
420 * stor-layout.c (layout_decl): Reset the RTL for the decl.
422 2002-04-12 Richard Henderson <rth@redhat.com>
424 * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
425 (sparc*-*-solaris): Clean up header files.
426 * configure.in (AS_SPARC64_FLAG): Error out if can't find it
427 and plan on generating 64-bit code.
428 * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
429 * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
430 * config/sparc/sol2-sld-64.h: Rename ...
431 * config/sparc/sol2-bi.h: ... here. Remove the bits that checked
432 for AS_SPARC64_FLAG not defined.
433 * config/sparc/sol2-gld-bi.h: New.
434 * config/sparc/sol2-sld.h: Remove.
435 * config/sparc/sol26-sld.h: New.
436 * config/sparc/sol2.h: Tidy comments.
437 * doc/install.texi: Document sparc-solaris configury changes.
439 2002-04-12 Richard Henderson <rth@redhat.com>
441 * recog.c (offsettable_address_p): Match the logic in adjust_address.
443 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
444 in 64-bit mode only. Use only for 32-bit or MEDLOW.
446 2002-04-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
448 * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
450 Fri Apr 12 15:42:59 2002 Jeffrey A Law (law@redhat.com)
452 * pa.c (pa_can_combine_p): Call extract_insn before calling
455 2002-04-12 Douglas B Rupp <rupp@gnat.com>
457 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
458 (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
459 (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
460 (CPP_PREDEFINES): Handle __declspec.
461 * config/i386/t-interix (USER_H): Remove.
463 2002-04-12 DJ Delorie <dj@redhat.com>
465 * integrate.c (compare_blocks): Make comparisons safe for when
466 sizeof(int) < sizeof(char *).
467 (find_block): Likewise.
469 2002-04-12 Jan Hubicka <jh@suse.cz>
470 David Edelsohn <edelsohn@gnu.org>
472 * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
474 (symbol_ref_operand): New.
475 * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
476 * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
478 2002-04-12 Andreas Schwab <schwab@suse.de>
480 * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
481 * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
482 overrides the definition in config/svr4.h.
484 2002-04-12 Eric Norum <eric.norum@usask.ca>
486 * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
487 config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
488 config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
489 config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
490 config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
491 config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
492 config/v850/rtems.h (*-rtems*): Cleanup pass to move common
493 definitions to config/rtems.h and make the targets more similar.
495 Fri Apr 12 08:06:54 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
497 * expr.c (expand_assigment): Remove duplicate conversions #ifdef
498 POINTERS_EXTEND_UNSIGNED.
499 (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
500 (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
502 * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
505 Fri Apr 12 12:11:26 2002 J"orn Rennecke <joern.rennecke@superh.com>
507 * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
508 depends on TARGET_SHMEDIA, not TARGET_SH5.
510 2002-04-12 Hans-Peter Nilsson <hp@bitrange.com>
512 * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
513 For paradoxical (subreg VAR), replace VAR, don't try the subreg.
515 Fri Apr 12 10:51:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
517 * sh.c (broken_move): Constant 0. / 1. load is OK if there is
520 2002-04-12 Andreas Schwab <schwab@suse.de>
522 * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
524 2002-04-12 Richard Henderson <rth@redhat.com>
527 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
529 * flow.c (mark_used_reg): Manage reg_cond_dead properly for
530 modes spanning multiple hard regs.
532 * recog.c (peephole2_optimize): Rebuild jump labels as needed.
534 2002-04-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
536 * pa.c (pa_output_function_prologue): Don't accumulate the total
537 number of code bytes when using TARGET_64BIT, or gas, SOM and not
538 the portable runtime.
539 (output_deferred_plabels): Handle 64bit plabels.
540 (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
541 generating pic code using the GAS assembler for object formats that
542 are not SOM (ie., ELF32 and ELF64).
543 (output_millicode_call): Check attribute type if attribute length is 28.
544 Likewise use $PIC_pcrel$0. Only call get_attr_length and
545 dbr_sequence_length once.
546 (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
547 dbr_sequence_length once.
548 * pa.h (TARGET_SOM): Define if not defined.
549 * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
550 with GAS and not SOM.
551 (jump, call_internal_reg, call_value_internal_reg): Likewise.
552 * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining.
554 2002-04-11 David O'Brien <obrien@FreeBSD.org>
556 * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
557 (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
558 (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
559 DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
560 elfos.h and dbxelf.h values are fine now.
561 * config/i386/freebsd.h, config/alpha/freebsd.h
562 (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
564 2002-04-11 David O'Brien <obrien@FreeBSD.org>
566 * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
567 or set Acpu or Amachine. Reformat.
568 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
570 (LINK_SPEC): Do not need to undef.
571 * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
572 * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
573 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
575 * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
576 (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
577 (LINK_SPEC): Do not need to undef.
578 (DONT_USE_BUILTIN_SETJMP): Do not define.
579 * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
580 (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64.
581 (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
582 Remove trailing spaces.
583 * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
584 __ELF__, or set Acpu or Amachine. Reformat.
585 (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
588 2002-04-11 David O'Brien <obrien@FreeBSD.org>
590 * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
591 all other *-*-freebsd* targets.
593 2002-04-11 Richard Henderson <rth@redhat.com>
595 * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
597 2002-04-11 David O'Brien <obrien@FreeBSD.org>
599 * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
600 Include {cpu}/{cpu}.h thru tm_file.
601 (alpha*-*-linux*ecoff): Remove target.
602 * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
603 (LINK_SPEC): Remove, is not OS independent.
604 * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
605 (LINK_SPEC): Do not need to #undef any longer.
606 * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
608 * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
610 (LINK_SPEC): Moved here from alpha/elf.h.
611 * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
613 * config/alpha/linux-ecoff.h: Remove.
614 * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
615 (CPP_SPEC): Define _POSIX_SOURCE as needed.
616 (CPP_SUBTARGET_SPEC): Do not define.
617 (LINK_SPEC): Do not need to #undef any longer.
618 * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
619 * config/alpha/vms.h: Likewise.
621 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
623 * doc/extend.texi: Remove old claim that typedefs cannot have
624 an alignment attribute.
626 2002-04-11 Jakub Jelinek <jakub@redhat.com>
629 * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
630 bitpos is 0 and bitsize CONCAT size.
632 2002-04-11 Jakub Jelinek <jakub@redhat.com>
635 * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
637 2002-04-10 David O'Brien <obrien@FreeBSD.org>
639 * config/alpha/freebsd.h: Minor reformatting.
640 (CPP_SPEC): Define ELF and add cpp_subtarget.
641 (ASM_SPEC): No longer needed.
643 2002-04-11 Richard Henderson <rth@redhat.com>
645 * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
646 (movdi_insn_sp32_v9): Likewise. Only allow stx with aligned memory.
647 (dimode mem/zero splitter): New.
649 2002-04-11 Hans-Peter Nilsson <hp@axis.com>
651 * config/cris/cris.c (cris_override_options): Tweak error message
652 for PIC not implemented.
654 * config/cris/cris.h: Tweak comments related to parameter-passing.
656 * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
658 2002-04-10 Richard Henderson <rth@redhat.com>
660 * except.c (add_ehl_entry): Allow duplicates after landing pad
663 2002-04-10 David Edelsohn <edelsohn@gnu.org>
665 * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
667 2002-04-10 Toon Moene <toon@moene.indiv.nluug.nl>
669 * c-decl.c (c_init_decl_processing): Move generation of
670 decls for g77_integer_type_node and friends from here ...
671 * c-common.c (c_common_nodes_and_builtins): ... to here.
673 2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
675 * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
676 is only used as frame pointer when frame_pointer_needed is true.
678 2002-04-10 Richard Earnshaw <rearnsha@arm.com>
681 * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
682 for the fact that the pool entry uses two words.
683 (movdf_hard_insn): Similarly. Also, ADR instruction can span
685 (movdf_soft_insn): Similarly.
686 (movxf_hard_insn): Adjust neg_pool_range attribute to allow
687 for the fact that the pool entry uses three words.
689 2002-04-10 Richard Sandiford <rsandifo@redhat.com>
691 * config/mips/mips.c (mips_va_arg): When using the struct version
692 of the EABI va_list, allow arguments in the register save area to
693 take up less room than a stack argument.
695 2002-04-10 Richard Henderson <rth@redhat.com>
697 * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
698 if EXPAND_INITIALIZER.
700 2002-04-09 Richard Henderson <rth@redhat.com>
702 * config/alpha/alpha.md (movdi_er_maybe_g): New.
703 * config/alpha/alpha.c (alpha_expand_mov): Use it.
705 2002-04-10 Alan Modra <amodra@bigpond.net.au>
708 * rtlanal.c (pure_call_p): New function.
709 * rtl.h (pure_call_p): Declare.
710 * loop.c (prescan_loop): Use it to set has_nonconst_call.
711 * gcse.c (store_killed_in_insn): Use pure_call_p here too.
713 2002-04-09 Eric Christopher <echristo@redhat.com>
715 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
716 information to .comm directive.
718 2002-04-09 Richard Henderson <rth@redhat.com>
721 * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
723 2002-04-09 Richard Henderson <rth@redhat.com>
725 * basic-block.h (flow_delete_block_noexpunge): Declare.
726 (expunge_block_nocompact): Declare.
727 * cfg.c (expunge_block_nocompact): Split out from ...
728 (expunge_block): ... here.
729 * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
730 (flow_delete_block_noexpunge): Split out from ...
731 (flow_delete_block): ... here.
732 * cfgcleanup.c (delete_unreachable_blocks): Compact while
733 removing dead blocks.
734 * except.c (exception_handler_labels): Remove.
735 (exception_handler_label_map): New.
736 (struct eh_region): Add aka member.
737 (mark_ehl_map_entry, mark_ehl_map, free_region): New.
738 (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
739 (for_each_eh_label, for_each_eh_label_1): New.
740 (init_eh): Register exception_handler_label_map.
741 (free_eh_status): Use free_region.
742 (find_exception_handler_labels): Use the map, not the list.
743 (remove_exception_handler_label): Likewise.
744 (maybe_remove_eh_handler): Likewise.
745 (remove_eh_handler): Use the region aka bitmap.
746 * except.h (exception_handler_labels): Remove.
747 (for_each_eh_label): Declare.
748 * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
749 * loop.c (invalidate_loops_containing_label): New.
750 (find_and_verify_loops): Use it. Use for_each_eh_label.
751 * sched-rgn.c (is_cfg_nonregular): Use
752 current_function_has_exception_handlers.
754 2002-04-09 Richard Henderson <rth@redhat.com>
756 * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
757 sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
758 Do not return changed status.
759 (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
760 sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
761 New functions that do return changed status.
762 * sbitmap.h: Update decls.
763 * gcse.c, lcm.c: Use _cg functions as needed.
765 Tue Apr 9 19:15:57 2002 J"orn Rennecke <joern.rennecke@superh.com>
767 * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
768 (sh64-*-elf*, sh-*-rtemself*): Likewise.
769 * config/sh/embed_bb.c: New file.
770 * config/sh/embed-elf.h: New file.
771 * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
772 if -m[12345]* option is given. Don't use subtarget_cpp_ptr_spec.
773 (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
775 (SUBTARGET_CPP_PTR_SPEC): Don't define.
776 (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
777 Add subtarget_asm_endian_spec.
778 (ASM_SPEC): Use subtarget_asm_endian_spec.
779 (SUBTARGET_ASM_ENDIAN_SPEC): Define.
780 (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
781 (WCHAR_UNSIGNED): Define.
782 (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
783 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
784 (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
786 * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
787 (sh_adjust_cost): Likewise.
788 sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
790 (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
791 (WCHAR_TYPE_SIZE): Likewise.
792 (ASM_SPEC): Use subtarget_asm_endian_spec.
793 (SH_ELF_WCHAR_TYPE): #undef/ #define.
794 (MAX_WCHAR_TYPE_SIZE): Don't #undef.
795 * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
796 (MAX_WCHAR_TYPE_SIZE): Don't #define .
797 (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
798 (USER_LABEL_PREFIX): Don't #undef /#define .
799 (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
800 * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
801 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
802 (ASM_SPEC): Likewise.
803 (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
804 (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
805 * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
806 (LIB2FUNCS_EXTRA): Define.
807 * t-sh64 (LIB2FUNCS_EXTRA): Define.
808 * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
809 (LIB1ASMFUNCS_CACHE): Define.
810 (LIB2FUNCS_EXTRA): Redefine empty.
812 2002-04-08 Richard Henderson <rth@redhat.com>
814 * reorg.c (get_branch_condition): Use reversed_comparison_code.
816 2002-04-09 Stephane Carrez <Stephane.Carrez@worldnet.fr>
818 * config/m68hc11/larith.asm (__map_data_section): Fix condition
819 and optimize for size.
820 (__do_global_ctors): Fix pointer comparison.
821 (__do_global_dtors): Likewise.
823 2002-04-09 David S. Miller <davem@redhat.com>
825 * config/sparc/sparc.c (sparc_extra_constraint_check): New
826 function, implementing EXTRA_CONSTRAINTS. For memory constraints,
827 allow reloading pseudos.
828 * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
829 * config/sparc/sparc-protos.h: Declare it.
831 * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
832 unsigned comparison warning.
833 (output_restore_regs): Mark leaf_function as unused.
835 Tue Apr 9 09:35:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
837 * expr.c (is_aligning_offset): New function.
838 (expand_expr, case COMPONENT_EXPR): Call it.
840 2002-04-08 David S. Miller <davem@redhat.com>
843 * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
845 Make init_priority work on Sparc when using GNU ld.
846 * config/sparc/linux.h, config/sparc/linux64.h,
847 config/sparc/netbsd-elf.h, config/sparc/freebsd.h
848 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
849 * config/sparc/sol2-gld.h: New file to do the same.
850 * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
851 sparc/sol2-gld.h to tm_file.
854 * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
855 * doc/md.texi: Document it.
856 * config/sparc/sparc.md (movdi_insn_sp64_novis,
857 movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
858 movdf_insn_v9only_vis, movdf_insn_sp64_novis,
859 movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
860 * config/sparc/sparc.c (mem_min_alignment): Fix comment.
862 2002-04-08 Andreas Jaeger <aj@suse.de>
864 * stmt.c (expand_asm_operands): Revert last patch from Richard
867 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
869 * doc/contrib.texi (Contributors): Add John David Anglin and Loren
870 J. Rittle (the latter also to Testers). Update David O'Brien's entry.
872 2002-04-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
874 * doc/contrib.texi (Contributors): Add David O'Brien.
876 2002-04-08 Alan Modra <amodra@bigpond.net.au>
878 * configure.in (auto-build.h): Use target_alias and build_alias
879 when running configure.
880 (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
881 (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
882 * configure: Regenerate.
884 2002-04-07 David S. Miller <davem@redhat.com>
886 * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
888 2002-04-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
891 * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
892 generating 32-bit pic code.
894 2002-04-06 Jason Thorpe <thorpej@wasabisystems.com>
896 * cppinit.c (cpp_create_reader): Initialize
897 discard_comments_in_macro_exp.
898 (COMMAND_LINE_OPTIONS): Add "-CC" option.
899 (cpp_handle_option): Handle "-CC" option.
900 * cpplex.c (save_comment): If saving a C++ comment in
901 a directive, convert it to a C comment.
902 (_cpp_lex_direct): Pass second comment start character to
903 save_comment to indicate comment type.
904 * cpplib.c (_cpp_handle_directive): If processing
905 a "#define" directive and discard_comments_in_macro_exp
906 is false, re-enable saving of comments.
907 (lex_macro_node): If discard_comments_in_macro_exp is false,
908 discard any comments before the macro identifier.
909 * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
911 * cppmacro.c (cpp_get_token): If expanding a macro while
912 processing a directive, discard any comments we might encounter.
913 (parse_params): If discard_comments_in_macro_exp is false,
914 ignore comments in the macro parameter list.
915 * gcc.c (cpp_unique_options): Add "-CC" option.
916 (option_map): Map "--comments-in-macros" to "-CC".
917 * doc/cppopts.texi: Document "-CC" option.
918 * f/lang-specs.h: Add "-CC" option.
919 * testsuite/gcc.dg/cpp/maccom1.c: New test.
920 * testsuite/gcc.dg/cpp/maccom2.c: New test.
921 * testsuite/gcc.dg/cpp/maccom3.c: New test.
922 * testsuite/gcc.dg/cpp/maccom4.c: New test.
923 * testsuite/gcc.dg/cpp/maccom5.c: New test.
924 * testsuite/gcc.dg/cpp/maccom6.c: New test.
926 2002-04-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
929 * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
931 2002-04-06 Mark Mitchell <mark@codesourcery.com>
934 * stor-layout.c (layout_decl): Reset the RTL for the decl.
937 * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
938 RTX_UNCHANGING_P for the functions arguments when a tail call
941 2002-04-06 Jason Merrill <jason@redhat.com>
943 * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
944 (parse_options_and_default_flags): Set them appropriately.
945 * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
947 2002-04-06 Hans-Peter Nilsson <hp@bitrange.com>
949 * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
952 * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
955 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
956 types come in by-reference. Fix typo in comment.
958 2002-04-05 David S. Miller <davem@redhat.com>
960 * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
961 * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
962 sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
963 {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
965 2002-04-05 David S. Miller <davem@redhat.com>
967 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
968 are not going to emit return instructions, emit at least a nop
969 for the sake of sane backtraces.
971 2002-04-05 Richard Henderson <rth@redhat.com>
973 * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
975 2002-04-05 Jakub Jeilnek <jakub@redhat.com>
977 * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
979 2002-04-05 Alexandre Oliva <aoliva@redhat.com>
981 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
982 ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
983 ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
985 2002-04-05 Andreas Schwab <schwab@suse.de>
987 * c-convert.c: Include c-common.h.
988 * Makefile.in (c-convert.o): Updated.
990 2002-04-05 Jakub Jelinek <jakub@redhat.com>
992 * mklibgcc.in: Use separate libgcc.map for each multilib.
993 * Makefile.in (distclean): Don't remove libgcc.map here.
995 2002-04-05 Jakub Jelinek <jakub@redhat.com>
997 * Makefile.in (s-mlib): Handle --disable-multilib by separate
998 genmultilib invocation.
1000 2002-04-04 Richard Sandiford <rsandifo@redhat.com>
1002 * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
1003 to avoid clash with Irix header file sys/ucontext.h. Rename gp_regs
1004 to num_gprs for symmetry.
1005 * config/mips/mips.c: Adjust accordingly.
1007 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
1009 * c-common.c (truthvalue_conversion): Rename, update.
1010 * c-common.h (c_common_truthvalue_conversion): New.
1011 * c-convert.c (convert): Update.
1012 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1013 * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
1014 * c-typeck.c (build_binary_op, build_unary_op,
1015 build_conditional_expr): Update.
1016 * fold-const.c (constant_boolean_node, fold): Use langhook.
1017 * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
1018 * langhooks.h (struct lang_hooks): New hook.
1019 * stmt.c (expand_decl_cleanup): Use langhook.
1020 * tree.h (truthvalue_conversion): Remove.
1022 * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
1024 2002-04-05 Alan Modra <amodra@bigpond.net.au>
1026 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
1027 Add rules to make null object file.
1029 2002-04-04 Jim Blandy <jimb@redhat.com>
1031 * cppmacro.c (cpp_macro_definition): Do not emit spaces after
1032 macro formal parameter names.
1034 2002-04-04 David S. Miller <davem@redhat.com>
1036 * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
1038 2002-04-04 Richard Henderson <rth@redhat.com>
1041 * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
1042 Support copies into and out of memory. Don't accept allows_reg
1043 and allows_mem as gospel.
1045 2002-04-04 Richard Henderson <rth@redhat.com>
1048 * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
1049 (write_dependence_p): Likewise.
1051 2002-04-04 Richard Henderson <rth@redhat.com>
1053 * predict.c (estimate_bb_frequencies): Do frequency calculation
1054 with a volatile temporary.
1056 2002-04-04 Ulrich Weigand <uweigand@de.ibm.com>
1058 * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
1060 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1063 * final.c (final_start_function): Don't bump profile_label_no here...
1064 (final_end_function): ...but here.
1066 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1068 * config/sparc/sparc.md (pic): New attribute.
1069 (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
1071 (split after do_builtin_setjmp_setup): New.
1073 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1076 * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
1079 2002-04-04 Jakub Jelinek <jakub@redhat.com>
1081 * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
1082 UNITS_PER_WORD for zero sized aggregates.
1084 2002-04-03 David S. Miller <davem@redhat.com>
1086 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
1087 one-character spec for this, just use %(link_gcc_c_sequence).
1089 2002-04-03 David S. Miller <davem@redhat.com>
1091 * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
1094 2002-04-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
1096 * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
1097 (DWARF_FRAME_RETURN_COLUMN): Move.
1098 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1099 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
1100 * pa.c (except.h, predict.h): Include.
1102 (store_reg_modify, set_reg_plus_d): Revise prototypes.
1103 (output_ascii): Add cast.
1104 (store_reg_modify): Revise to add frame notes.
1105 (set_reg_plus_d): Likewise.
1106 (compute_frame_size): Include space for eh data registers in frame if
1107 the current function calls eh_return.
1108 (hppa_expand_prologue): Ensure register %r2 is saved if the current
1109 function calls eh_return. Save eh data registers if the current
1110 function calls eh_return. Fix code to add frame notes. Emit
1111 blockage to prevent insns with frame notes being scheduled in the
1112 delay slot of calls.
1113 (hppa_expand_epilogue): Restore eh data registers and do final stack
1114 adjustment if the current function calls eh_return. Don't add frame
1116 (output_call): Revise for change in length of call insn. Don't do
1117 return pointer adjustment for an unconditional jump in the delay slot
1118 of a call when using frame notes.
1119 * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
1120 (EH_RETURN_HANDLER_RTX): Use saved value on stack.
1121 (ARG_POINTER_CFA_OFFSET): Define.
1122 * pa.md (return_external_pic): New pattern.
1123 (prologue): Correct formatting. Use return_external_pic if current
1124 function calls eh_return.
1125 (call_internal_symref, call_value_internal_symref,
1126 sibcall_internal_symref, sibcall_value_internal_symref): Change default
1127 lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
1129 (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
1131 * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
1132 list of targets to check using "nop" insn.
1133 * configure: Rebuilt.
1135 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1137 * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
1139 2002-04-03 David S. Miller <davem@redhat.com>
1141 * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
1142 library sequence passed to the linker.
1143 (LINK_COMMAND_SPEC): Use it.
1144 * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
1145 a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
1146 * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1148 2002-04-03 Jason Merrill <jason@redhat.com>
1150 * except.c (struct eh_status): Remove protect_list.
1151 (begin_protect_partials, end_protect_partials): Remove.
1152 (add_partial_entry): Remove.
1153 * except.h: Remove prototypes.
1155 * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
1156 expand_decl_cleanup_eh.
1159 * tree.h (CLEANUP_EH_ONLY): New macro.
1160 * stmt.c (expand_decl_cleanup_eh): New fn.
1161 (expand_cleanups): Check CLEANUP_EH_ONLY.
1162 * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
1163 Use expand_decl_cleanup_eh.
1164 (expand_stmt): Adjust.
1165 * c-common.h: Adjust prototype.
1167 2002-04-04 Hans-Peter Nilsson <hp@axis.com>
1169 * config/cris/cris.c (cris_target_asm_function_prologue): Cast
1170 uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
1171 (cris_target_asm_function_epilogue): Ditto.
1172 (cris_initial_frame_pointer_offset): Ditto.
1173 (cris_simple_epilogue): Ditto.
1174 (cris_expand_builtin_va_arg): Variable-size types come in
1177 2002-04-03 David S. Miller <davem@redhat.com>
1179 * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
1181 (set_fast_math): Correct 'fsr' type.
1183 2002-04-03 Richard Henderson <rth@redhat.com>
1186 * langhooks.h (lang_hooks.decls.warn_unused_global): New.
1187 * toplev.c (check_global_declarations): Use it.
1188 * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
1189 (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1190 (LANG_HOOKS_DECLS): Add it.
1191 * langhooks.c (lhd_warn_unused_global_decl): New.
1192 * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1193 * c-objc-common.c (c_warn_unused_global_decl): New.
1194 * c-tree.h (c_warn_unused_global_decl): Declare.
1195 * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
1197 2002-04-03 Neil Booth <neil@daikokuya.demon.co.uk>
1199 * langhooks-def.h (lhd_set_decl_assembler_name,
1200 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
1201 (LANG_HOOKS_INITIALIZER): Update.
1202 * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
1203 * langhooks.h (struct lang_hooks): New hook.
1204 * tree.c (set_decl_assembler_name): Move to langhooks.c.
1205 (lang_set_decl_assembler_name): Remove.
1206 (init_obstacks): Don't set hook.
1207 (decl_assembler_name): New function.
1208 * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
1209 (decl_assembler_name): New.
1210 (lang_set_decl_assembler_name): Remove.
1212 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1214 * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
1215 works properly with .hidden symbols.
1216 * configure: Rebuilt.
1217 * config.in: Rebuilt.
1218 * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1219 DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
1220 properly with .hidden symbols.
1222 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1225 * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
1228 2002-04-03 Richard Henderson <rth@redhat.com>
1231 * sched-rgn.c (sets_likely_spilled): New.
1232 (sets_likely_spilled_1): New.
1233 (add_branch_dependences): Use it.
1235 2002-04-02 Richard Henderson <rth@redhat.com>
1238 * loop.h (LOOP_FIRST_PASS): New.
1239 * loop.c (strength_reduce): Mind it when deciding to unroll.
1240 * toplev.c (rest_of_compilation): Set it.
1242 2002-04-02 David S. Miller <davem@redhat.com>
1244 * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
1245 mems_ok_for_ldd_peep when the order of the loads being examined
1247 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
1248 existing comment to increase comprehension of this situation.
1250 2002-04-02 Zack Weinberg <zack@codesourcery.com>
1252 * config/sh/sh.md: Don't use union real_extract.
1254 2002-04-02 Richard Henderson <rth@redhat.com>
1256 * libgcc2.c (__bb_exit_func): Revert 03-31 change.
1258 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1260 * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
1261 i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
1262 i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
1263 i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
1264 i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
1265 i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
1266 i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
1267 i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
1268 i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
1269 i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
1270 i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
1271 i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
1272 i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
1273 i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
1274 Include as many configury headers via tm_file as possible. This
1275 includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
1276 * config/openbsd-oldgas.h: New file.
1277 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
1278 config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
1279 config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
1280 config/i386/i386-coff.h, config/i386/i386-interix.h,
1281 config/i386/iscdbx.h, config/i386/linux-aout.h,
1282 config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
1283 config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
1284 config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
1285 config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
1286 config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
1287 config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
1288 config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
1289 config/i386/vxi386.h: Do not directly include configury headers.
1290 * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
1291 Directly include configury headers that are no longer automatically
1292 included by the above headers.
1293 * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
1294 * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
1295 config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
1296 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
1297 config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
1298 config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
1299 config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
1300 (TARGET_VERSION): Define.
1301 * config/i386/beos-elf.h, config/i386/freebsd.h,
1302 config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
1303 config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
1304 config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
1305 config/i386/sco5.h, config/i386/sysv4.h
1306 (TARGET_VERSION): Do not need to protect.
1307 * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
1308 * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
1309 config/i386/freebsd-aout.h, config/i386/i386-aout.h,
1310 config/i386/i386-interix.h, config/i386/linux-aout.h,
1311 config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
1312 config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
1313 (YES_UNDERSCORES): Do not define - not needed.
1314 * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
1315 ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1316 USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
1317 * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
1318 (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
1319 USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
1320 * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
1321 * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
1323 2002-04-02 Eric Botcazou <ebotcazou@multimania.com>
1324 Richard Henderson <rth@redhat.com>
1327 * function.c (assign_temp): Accept either type or decl argument.
1328 Detect variables whose size is too large to fit into an integer.
1329 * stmt.c (expand_decl): Pass the decl, not the type.
1331 2002-04-02 David O'Brien <obrien@FreeBSD.org>
1333 * protoize.c: Match include directory usage with cppdefault.c.
1335 2002-04-03 Jeffrey A Law (law@redhat.com)
1336 Hans-Peter Nilsson <hp@bitrange.com>
1338 * combine.c (simplify_comparison): Avoid narrowing a comparison
1339 with a paradoxical subreg when doing so would drop signficant bits.
1341 2002-04-02 Steve Ellcey <sje@cup.hp.com>
1343 * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
1344 if POINTERS_EXTEND_UNSIGNED is defined.
1346 2002-04-02 Richard Henderson <rth@redhat.com>
1349 * local-alloc.c (contains_replace_regs): LO_SUM may contain
1352 2002-04-02 Richard Henderson <rth@redhat.com>
1354 * doc/standards.texi: Document required freestanding libc entry points.
1356 2002-04-02 Alan Modra <amodra@bigpond.net.au>
1358 * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
1359 associated splitter. Remove MQ constraint.
1360 (ctrdi_internal4): Correct CCmode clobber.
1362 2002-04-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
1364 * milli64.S ($$dyncall): New function.
1365 * t-linux (LIB1ASMFUNCS): Revise module list.
1366 (LIB1ASMSRC): Use pa/milli64.S.
1368 2002-04-02 Richard Henderson <rth@redhat.com>
1370 * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
1371 rename solaris_sys_varargs_h.
1373 Tue Apr 2 06:47:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1375 * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
1376 the same mode as its component.
1378 2002-04-02 Richard Henderson <rth@redhat.com>
1381 * final.c (this_is_asm_operands): Export.
1382 * output.h (this_is_asm_operands): Declare.
1383 * config/i386/i386.c (print_operand): Error odd asm operands.
1385 2002-04-02 Richard Henderson <rth@redhat.com>
1388 * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
1390 2002-04-01 Richard Henderson <rth@redhat.com>
1393 * fixinc/inclhack.def (solaris_sys_varargs_h): New.
1394 * fixinc/fixincl.x: Rebuild.
1396 2002-04-01 Richard Henderson <rth@redhat.com>
1398 * config/ia64/unwind-ia64.c: Include ia64intrin.h.
1399 (atomic_alloc, atomic_free): New.
1400 (SIZE, MASK_FOR, PTR_IN): New.
1401 (emergency_reg_state, emergency_reg_state_free): New.
1402 (emergency_labeled_state, emergency_labeled_state_free): New.
1403 (reg_state_alloced, labeled_state_alloced): New.
1404 (alloc_reg_state, free_reg_state): New.
1405 (alloc_label_state, free_label_state, free_label_states): New.
1406 (push, pop, dup_state_stack, free_state_stack): Use them.
1407 (desc_label_state): Likewise.
1408 (uw_frame_state_for): Free label states and state stack.
1409 (uw_update_reg_address): Eliminate warnings.
1411 2002-04-01 Vladimir Makarov <vmakarov@redhat.com>
1413 * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
1414 ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
1416 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1418 * c-decl.c (grokdeclarator): Update.
1419 * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1420 * c-tree.h (c_mark_addressable): New.
1421 * c-typeck.c (default_function_array_conversion, build_unary_op,
1422 build_array_ref, convert_for_assignment): Update.
1423 (mark_addressable): Rename.
1424 * calls.c (try_to_integrate, expand_call): Use langhook.
1425 * expr.c (expand_expr): Use langhook.
1426 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
1427 * langhooks.h (struct lang_hooks): New hook.
1428 * stmt.c (expand_asm_operands): Use langhook.
1429 * tree.h (mark_addressable): Remove.
1431 * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
1433 2002-04-01 Bob Wilson <bob.wilson@acm.org>
1435 * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
1438 2002-04-01 Bob Wilson <bob.wilson@acm.org>
1440 * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
1441 for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
1443 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1445 * c-common.c (unsigned_conversion_warning, convert_and_check,
1446 unsigned_type, signed_type, shorten_compare,
1447 c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
1448 (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
1449 * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
1451 * c-decl.c (grokdeclarator): Update.
1452 * c-format.c (check_format_types): Update.
1453 * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1454 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1455 * c-typeck.c (build_binary_op, convert_for_assignment): Update.
1456 * convert.c (convert_to_integer): Use new hooks.
1457 * expmed.c (make_tree): Use new hooks.
1458 * expr.c (store_expr): Use new hooks.
1459 * fold-const.c (operand_equal_for_comparison_p, build_range_check,
1460 all_ones_mask_p, unextend, fold): Use new hooks.
1461 * langhooks.h (struct lang_hooks_for_types): New hooks.
1462 * tree.h (signed_or_unsigned_type, signed_type,
1463 unsigned_type): Remove.
1465 * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
1466 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
1468 2002-03-31 Richard Henderson <rth@redhat.com>
1470 * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
1471 (desc_frgr_mem): Fix reference to f16-f31.
1473 2002-03-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1475 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1476 RTVEC_ELT): Const-ify.
1477 * varray.h (VARRAY_CHECK): Const-ify.
1478 * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
1479 ggc_mark_rtvec, ggc_mark): Const-ify.
1481 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
1483 * diagnostic.c: Include langhooks-def.h.
1484 * Makefile.in (diagnostic.o): Update.
1486 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1488 * c-common.c (c_unsafe_for_reeval): Rename.
1489 * c-common.h (c_unsafe_for_reeval): Rename.
1490 * c-decl.c (finish_incomplete_decl): Rename.
1491 (c_init_decl_processing): Don't set langhook.
1492 * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1493 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1494 * c-objc-common.c (c_objc_common_init): Don't set langhook.
1495 * c-tree.h (finish_incomplete_decl): Rename.
1496 * langhooks-def.h (lhd_unsafe_for_reeval): New.
1497 (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
1498 (LANG_HOOKS_INITIALIZER): Update.
1499 * langhooks.c (lhd_unsafe_For_reeval): New.
1500 * langhooks.h (struct langhooks): New hooks.
1501 * toplev.c (incomplete_decl_finalize_hook): Remove.
1502 (wrapup_global_declarations): Update.
1503 * tree.c (lang_unsafe_for_reeval): Remove.
1504 (unsafe_for_reeval): Update.
1505 * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
1508 * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
1509 LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
1511 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
1513 * diagnostic.c (print_error_function): Remove.
1514 (default_print_error_function): Rename.
1515 (report_error_function): Update.
1516 * diagnostic.h (print_error_function): Remove.
1517 (default_print_error_function): Remove.
1518 * langhooks-def.h (struct diagnostic_context): Predeclare.
1519 (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
1520 (LANG_HOOKS_INITIALIZER): Update.
1521 * langhooks.h (struct diagnostic context): Predeclare.
1522 (struct lang_hooks): New hook.
1524 2002-03-31 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1526 * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
1527 (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
1529 (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
1530 * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
1531 of PIC_OFFSET_TABLE_REGNUM thruout.
1532 * config/rs6000/rs6000.md: Likewise.
1533 * config/rs6000/darwin.h: Likewise.
1535 Sun Mar 31 14:43:24 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1537 * emit-rtl.c (adjust_address_1, offset_address): Cast value to
1538 unsigned HOST_WIDE_INT, not unsigned int.
1540 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1542 PR middle-end/6096, middle-end/6098, middle-end/6099
1543 * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
1545 (fill_slots_from_thread): Likewise.
1547 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1549 * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
1550 floating fields in float regs.
1551 (function_arg_record_value_2): Likewise.
1553 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1555 * config/mmix/mmix.md (define_constants): Remove misleading
1556 FIXME. Add MMIX_fp_rO_OFFSET.
1557 ("nonlocal_goto_receiver"): Don't have stack-frame address of
1558 saved rO as part of the pattern. Remove FIXME.
1559 ("*nonlocal_goto_receiver_expanded"): Similar. Generate address
1560 here, at output-time.
1562 2002-03-31 Jakub Jelinek <jakub@redhat.com>
1565 * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
1567 (output_v9branch): Likewise.
1569 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
1571 * gcc.c: Revert previous patch for now.
1572 * config/i386/djgpp.h: Likewise.
1574 2002-03-31 Hans-Peter Nilsson <hp@bitrange.com>
1576 * config/mmix/crti.asm (_init): Register _fini with atexit.
1577 * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
1579 2002-03-31 Richard Henderson <rth@redhat.com>
1582 * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
1583 (ASM_OUTPUT_DEF_FROM_DECLS): New.
1585 2002-03-31 Richard Henderson <rth@redhat.com>
1587 * libgcc2.c (__bb_exit_func): Make static.
1589 * config/alpha/alpha.md (trap): New.
1591 2002-03-31 Richard Henderson <rth@redhat.com>
1593 * builtins.c (expand_builtin_va_arg): Give warnings not errors for
1594 promoted argument types; build trap.
1595 (expand_builtin_trap): New.
1596 (expand_builtin): Use it.
1597 * stmt.c (expand_nl_goto_receivers): Likewise.
1598 * expr.h (expand_builtin_trap): Declare.
1599 * libfuncs.h (LTI_abort, abort_libfunc): New.
1600 * optabs.c (init_optabs): Init abort_libfunc.
1602 2002-03-31 Alexandre Oliva <aoliva@redhat.com>
1604 * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
1605 (LINK_COMMAND_SPEC): ... from here.
1606 (init_gcc_specs): Duplicate it here too, omitting
1607 shared_name in the second copy.
1608 (init_spec): Test for duplicate
1609 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
1611 2002-03-30 David S. Miller <davem@redhat.com>
1613 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
1614 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
1616 2002-03-30 Roger Sayle <roger@eyesopen.com>
1617 Richard Henderson <rth@redhat.com>
1619 * regmove.c (combine_stack_adjustments_for_block): Avoid
1620 emitting a stack adjustment of zero bytes. Let delete_insn
1623 2002-03-30 Richard Henderson <rth@redhat.com>
1625 * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
1626 (sparc_emitting_epilogue): New.
1627 (leaf_label, output_return, sparc_return_peephole_ok): Remove.
1628 * config/sparc/sparc-protos.h: Update.
1629 * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
1630 (TARGET_SWITCHES): Update.
1631 * config/sparc/sparc.md (return): Remove.
1632 (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
1633 * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
1634 config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
1635 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
1636 config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
1637 config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
1638 config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
1639 Remove MASK_EPILOGUE.
1640 * doc/invoke.texi: Update.
1642 2002-03-30 Daniel Berlin <dan@dberlin.org>
1644 * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
1645 CPP will start the file for us.
1647 2002-03-30 Richard Henderson <rth@redhat.com>
1650 * config/ia64/ia64.c (group_barrier_needed_p): Special case
1651 prologue_allocate_stack.
1652 (ia64_single_set): Use insn codes for recognition of special
1653 cases, not rtl matching.
1654 * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
1656 Sat Mar 30 23:48:41 CET 2002 Jan Hubicka <jh@suse.cz>
1658 * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
1660 2002-03-30 Richard Henderson <rth@redhat.com>
1663 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
1664 or -fomit-frame-pointer with profiling.
1665 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1666 (FUNCTION_PROFILER): Do nothing.
1667 (PROFILE_HOOK): New.
1668 * config/sparc/sparc.c (sparc_override_options): Don't check
1669 code models for profiling.
1670 (sparc_function_profiler): Remove.
1671 (sparc_profile_hook): New.
1672 * config/sparc/sparc-protos.h: Update.
1674 2002-03-30 Jakub Jelinek <jakub@redhat.com>
1676 PR optimization/6086
1677 * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1678 of SUBREG of volatile MEM or because the MEM was mode dependent,
1679 return CLOBBER instead of unmodified SUBREG.
1681 Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1683 * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1684 when not optimizing.
1686 * toplev.c (rest_of_compilation): Cann mark_constant_function
1687 only when optimizing.
1689 * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1692 * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1693 (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1694 (try_optimize_cfg): clear all AUX fields.
1696 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1697 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1698 (ix86_address_cost): Be prepared for SUBREGed registers.
1699 (legitimate_address_p): Accept SUBREGed registers.
1701 2002-03-29 Richard Henderson <rth@redhat.com>
1704 * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1706 2002-03-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1708 * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1709 for aggregate and TFmode types.
1711 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1713 * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1715 2002-03-29 Richard Henderson <rth@redhat.com>
1718 * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1719 * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1721 2002-03-29 Richard Henderson <rth@redhat.com>
1724 * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1725 (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1726 * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1727 * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1729 * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1731 2002-03-29 Dale Johannesen <dalej@apple.com>
1733 * loop.c (combine_movables): Do allow combination of pseudos.
1735 2002-03-29 Loren J. Rittle <ljrittle@acm.org>
1737 * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1738 * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1739 No functional change except ...
1740 * config/t-slibgcc-nolc-override (SHLIB_LC): Override it. New file.
1741 * doc/install.texi (*-*-freebsd*): Document port configuration.
1743 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1745 * Makefile.in (convert.o, calls.o, expmed.o): Update.
1746 * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1748 * builtin-types.def (BT_PTRMODE): Update.
1749 * c-common.c (type_for_size): Rename c_common_type_for_size.
1750 (type_for_mode): Similarly.
1751 (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1753 * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1754 * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1755 * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1757 * c-typeck.c (common_type, comptypes, default_conversion):
1759 * calls.c: Include langhooks.h.
1760 (emit_library_call_value_1): Use new hooks. Avoid redundant
1762 * convert.c: Include langhooks.h
1763 (convert_to_pointer, convert_to_integer): Use new hooks.
1764 * except.c (init_eh): Similarly.
1765 * expmed.c: Include langhooks.h.
1766 (expand_mult_add): Use new hooks.
1767 * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1768 try_casesi): Similarly.
1769 * fold-const.c (optimize_bit_field_compare, make_range,
1770 decode_field_reference, fold_truthop, fold): Similarly.
1771 * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1772 put_var_into_stack): Similarly.
1773 * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1774 LANG_HOOKS_TYPE_FOR_SIZE): New.
1775 (LANG_HOOKS_TYPES_INITIALIZER): Update.
1776 * langhooks.h (lang_hooks_for_types): New hooks.
1777 * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1778 * tree.c (get_unwidened, get_narrower): Similarly.
1779 * tree.h (type_for_mode, type_for_size): Remove.
1780 * varasm.c (force_const_mem): Use new hooks.
1781 * utils2.c (nonbinary_modular_operation): Update.
1783 * objc-act.c (handle_impent): Update.
1784 * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1787 2002-03-29 Steve Ellcey <sje@cup.hp.com>
1789 * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1790 * config/ia64/ia64.c (basereg_operand): New.
1791 * config/ia64/ia64-protos.h (basereg_operand): Declare.
1792 * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1794 2002-03-29 Hans-Peter Nilsson <hp@bitrange.com>
1796 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1797 unwind information when frame_pointer_needed.
1798 (mmix_assemble_integer): Tweak wording in comment.
1800 2002-03-29 Neil Booth <neil@daikokuya.demon.co.uk>
1802 * Makefile.in (except.o): Update.
1803 * except.c: Include langhooks.h.
1804 (init_eh): Use langhook.
1805 * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1806 LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1807 (LANG_HOOKS_INITIALIZER): Update.
1808 * langhooks.h (lang_hooks_for_types): New.
1809 (struct lang_hooks): Add it.
1810 * tree.c (make_lang_type_fn, make_lang_type): Remove.
1811 * tree.h (make_lang_type_fn, make_lang_type): Remove.
1813 * alpha/alpha.c: Include langhooks.h.
1814 (alpha_build_va_list): Use langhook.
1815 * d30v/d30v.c: Include langhooks.h.
1816 (d30v_build_va_list): Use langhook.
1817 * i386/i386.c: Include langhooks.h.
1818 (ix86_build_va_list): Use langhook.
1819 * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1820 * s390/s390.c: Include langhooks.h.
1821 (s390_build_va_list): Use langhook.
1822 * stormy16/stormy16.c: Include langhooks.h.
1823 (stormy16_build_va_list): Use langhook.
1825 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1828 * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1830 (length): Compute variable length for branches/calls/jumps here.
1831 (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1832 normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1833 define branch_type attribute.
1834 (divsi3_sp32): Maximum length is 6 not 7.
1835 (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1836 call_address_untyped_struct_value_sp32,
1837 call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1838 * config/sparc/sparc.c (empty_delay_slot): New function.
1839 * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1840 * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1842 2002-03-29 Jakub Jelinek <jakub@redhat.com>
1844 * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1845 nonzero_bits if not needed.
1846 (nonzero_bits) [XOR]: Likewise.
1847 (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1848 reg_last_set_mode and mode are both MODE_INT, but not equal.
1849 (record_value_for_reg): Compute reg_last_set_nonzero_bits
1850 in nonzero_bits_mode for MODE_INT modes.
1852 2002-03-28 Richard Henderson <rth@redhat.com>
1855 * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1856 to GAS. Correct drift between alternatives.
1858 2002-03-28 Richard Henderson <rth@redhat.com>
1861 * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1863 2002-03-28 Alexandre Oliva <aoliva@redhat.com>
1865 * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1866 emulation to the linker.
1868 2002-03-28 Loren J. Rittle <ljrittle@acm.org>
1870 * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1871 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1873 Thu Mar 28 16:35:31 2002 Jeffrey A Law (law@redhat.com)
1875 * combine.c (simplify_and_const_int): Make sure to apply mask
1876 when force_to_mode returns a constant integer. PR3311.
1878 2002-03-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
1880 * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1882 2002-03-28 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1884 * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1885 and Objective-C Dialect Options.
1887 2002-03-28 Richard Henderson <rth@redhat.com>
1889 * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1890 comparison should be done vs !=0 not >0 return code. Tidy cases.
1892 2002-03-28 Richard Henderson <rth@redhat.com>
1894 * c-decl.c (finish_function): New arg can_defer_p. Pass it
1895 on to c_expand_body.
1896 * c-tree.h (finish_function): Update decl.
1897 * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1899 Thu Mar 28 19:13:36 CET 2002 Jan Hubicka <jh@suse.cz>
1901 * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1903 Thu Mar 28 13:21:53 CET 2002 Jan Hubicka <jh@suse.cz>
1905 * rtlanal.c: Include flags.h
1906 (may_trap_p): Do not mark FP operations if trapping
1907 if !flag_trapping_math
1908 * Makefile.in (rtlanal.o): Add dependency on flag.h
1909 * ifcvt.c (noce_operand_ok): Avoid the lameness.
1911 2002-03-27 Zack Weinberg <zack@codesourcery.com>
1913 * mips.md: Use dconst1, not 1.0, as first argument of
1914 REAL_VALUE_LDEXP. Don't use union real_extract.
1916 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1918 * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1919 rather than $target. Heed program_prefix and
1920 program_transform_name. Search for gas in cross-compiler case too.
1921 "test -x" rather than "test -f".
1922 (gcc_cv_ld): Likewise.
1923 (gcc_cv_nm): Heed program_prefix and program_transform_name.
1924 (gcc_cv_objdump): Likewise.
1925 * configure: Regenerate.
1927 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1929 * Makefile.in (attribs.o): Update.
1930 * attribs.c: Include langhooks.h.
1931 (decl_attributes): Use langhook.
1932 * c-decl.c (insert_default_attributes): Rename.
1933 * c-tree.h (c_insert_default_attributes): New.
1934 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1935 (LANG_HOOKS_INITIALIZER): Update.
1936 * langhooks.h (struct lang_hooks): New hook.
1937 * tree.h (insert_default_attributes): Remove.
1939 * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1941 2002-03-27 Andreas Schwab <schwab@suse.de>
1943 * config/i386/i386.c (classify_argument): Also check for
1946 2002-03-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1948 * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1951 Wed Mar 27 23:19:30 CET 2002 Jan Hubicka <jh@suse.cz>
1953 * i960.md (ret): Set PC.
1954 (nonlocal_goto): Fix expander.
1955 * builtins.c (epxand_builin_longjmp): Check that we've emitted
1958 Wed Mar 27 23:11:35 CET 2002 Jan Hubicka <jh@suse.cz>
1960 * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1963 Wed Mar 27 22:54:14 CET 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1965 * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1966 assigning to BLOCK_FOR_INSN directly.
1968 Wed Mar 27 22:33:05 CET 2002 Jan Hubicka <jh@suse.cz>
1970 * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1972 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
1974 * c-common.c (c_expand_expr): Fix prototype.
1975 * c-common.h (c_expand_expr): Always declare, update.
1976 * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1977 * c-objc-common.c (c_objc_common_init): No global hook.
1978 * expr.c (expand_expr): Use langhook.
1979 * expr.h (enum expand_modifier): Conditionally declare.
1980 * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1981 (LANG_HOOKS_INITIALIZER): Update.
1982 * langhooks.c (lhd_expand_expr): New.
1983 * langhooks.h (struct lang_hooks): New hook.
1984 * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1985 (lang_independent_init): Don't default hook.
1987 * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1989 2002-03-27 Richard Henderson <rth@redhat.com>
1992 * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1993 TARGET_CONST_GP. Simplify conditions.
1995 2002-03-27 Richard Henderson <rth@redhat.com>
1997 * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1998 config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1999 config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
2001 2002-03-27 Danny Smith <dannysmith@users.sourceforge.net>
2003 * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
2004 TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
2005 (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
2006 Remove unnecessary masks.
2007 (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
2008 (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
2009 -mwindows, -mdll switches and their negations.
2011 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
2013 * gcc-common.c (lang_mark_false_label_stack): Remove.
2014 * ggc.h (lang_mark_false_label_stack): Similarly.
2016 2002-03-26 Vladimir Makarov <vmakarov@redhat.com>
2018 * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
2020 * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
2021 or __rtems_ is defined.
2023 2002-03-26 Richard Henderson <rth@redhat.com>
2025 * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
2026 if a non-trivial load was emitted.
2027 (alpha_emit_set_const_1): Remove obsolete extension. Fix thinko
2028 in high+extra+low case.
2030 2002-03-26 Richard Henderson <rth@redhat.com>
2032 * config.gcc (sparc*-solaris): Use float_format=sparc.
2034 2002-03-26 Richard Henderson <rth@redhat.com>
2036 * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
2037 * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
2038 * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
2039 * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
2040 (WINT_TYPE_SIZE): Fix at 32.
2042 2002-03-26 Richard Henderson <rth@redhat.com>
2044 * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
2045 until after eh landing pad generation.
2046 * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
2047 * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
2049 2002-03-26 Richard Henderson <rth@redhat.com>
2051 * expr.h (ADD_PARM_SIZE): One more convert for INC.
2053 2002-03-26 Phil Edwards <pme@gcc.gnu.org>
2055 * gcc.c (cpp_options): Preserve relative ordering of -pedantic
2056 and warning switches.
2057 (cc1_options): Likewise.
2059 2002-03-26 Hans Boehm <Hans_Boehm@hp.com>
2061 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
2062 Restore more of the signal context. Set no_reg_stack_frame.
2063 * config/ia64/unwind-ia64.c (unw_state_record):
2064 Add no_reg_stack_frame, comments.
2065 (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
2066 (uw_update_context): Adjust bsp when unwinding from leaf,
2067 but not signal frame.
2069 2002-03-26 David Edelsohn <edelsohn@gnu.org>
2071 * config/rs6000/aix51.h (WCHAR_TYPE): Define.
2073 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2075 * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
2077 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2080 * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
2081 "Add a pool_range attribute", which was lost during the ARM/Thumb
2084 2002-03-26 Bob Wilson <bob.wilson@acm.org>
2086 * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
2087 a register into the MAC16 accumulator.
2089 2002-03-26 Andrew Cagney <ac131313@redhat.com>
2091 * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
2092 (Warning Options): Document -Wswitch-enum.
2093 * toplev.c (W_options): Add -Wswitch-enum. Update comment on
2095 (warn_switch_enum): Define variables.
2096 * flags.h (warn_switch_enum): Declare variables.
2097 * stmt.c (expand_end_case_type): When warn_switch_enum /
2098 -Wswitch-enum, perform switch checks.
2101 2002-03-26 Richard Earnshaw <rearnsha@arm.com>
2103 * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
2104 (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
2105 (reload_muladdsi_compare0_scratch): Delete.
2107 2002-03-26 Loren J. Rittle <ljrittle@acm.org>
2109 * doc/install.texi (*-*-freebsd*): Update.
2111 2002-03-26 Richard Henderson <rth@redhat.com>
2113 * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
2114 (SUB_PARM_SIZE): Cast DEC to ssizetype.
2116 * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
2117 types from the normal argument frame.
2119 * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
2120 variable sized objects by reference.
2121 (sparc_va_arg): Receive them by reference too.
2123 2002-03-26 Hartmut Penner <hpenner@de.ibm.com>
2125 * config/s390/s390.c (s390_emit_epilogue): Change epilogue
2126 code to not restoring global registers.
2128 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
2130 * Makefile.in (ggc-common.o): Update.
2131 * c-decl.c (lang_mark_tree): Rename c_mark_tree.
2132 * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2133 * c-tree.h (c_mark_tree): New.
2134 * ggc-common.c: Include langhooks.h.
2135 (gcc_mark_trees): Use new langhook.
2136 * ggc-callbacks.c: Delete file.
2137 * ggc.h (lang_mark_tree): Remove.
2138 * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
2139 (LANG_HOOKS_INITIALIZER): Update.
2140 * langhooks.h (struct lang_hooks): New hook.
2142 * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
2144 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2146 * doc/cpp.texi: Exclude entire Top node from printed manual.
2147 Move option index after directive index. Insert page breaks
2148 before GFDL and concept index. Index environment variables
2149 with command line options.
2150 * doc/cppenv.texi: Use @vtable for environment variable list.
2151 Add paragraph explaining semantics of empty elements in path
2152 variables. Exclude a cross-reference to Fishkill from the
2153 manpage. Remove an unnecessary cross-reference of the entry
2154 right above the referer. Don't use @anchor in text that goes
2156 * doc/cppopts.texi: Cross-reference the environment variables
2157 section, not the specific environment variable, for consistency.
2159 2002-03-25 Richard Henderson <rth@redhat.com>
2161 * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
2162 anywhere in the block. Don't refer to insns that have been
2163 removed from the chain. Iterate backward through the new insns.
2164 Don't refer to edges that have been removed.
2166 2002-03-26 Alan Modra <amodra@bigpond.net.au>
2168 * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
2169 test for overflow of constant.
2171 2002-03-25 Richard Earnshaw <rearnsha@arm.com>
2174 * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
2175 (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
2176 these patterns on arm_archv4.
2178 2002-03-25 Danny Smith <dannysmith@sourceforge.users.net>
2180 * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
2183 2002-03-25 Zack Weinberg <zack@codesourcery.com>
2185 * toplev.c: Don't include setjmp.h. Kill float_handler_set,
2186 float_handled, float_handler, float_signal, set_float_handler,
2187 and do_float_handler. Set handler for SIGFPE to crash_signal.
2188 * toplev.h: Don't prototype do_float_handler.
2190 * c-lex.c: Fold parse_float into lex_number. Make warning
2191 about portability of hex float constants more informative, and
2192 don't issue it on top of a syntax error.
2193 * fold-const.c: Fold const_binop_1 and fold_convert_1 into
2195 * real.h: Define REAL_VALUE_ABS here...
2196 * simplify-rtx.c: ... not here. Fold check_fold_consts,
2197 simplify_unary_real, simplify_binary_real, and
2198 simplify_binary_is2orm1 into their callers.
2199 * tree.c: Fold build_real_from_int_cst_1 into caller.
2201 * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
2203 * tsystem.h: Include float.h here...
2204 * libgcc2.c: ... not here.
2206 2002-03-25 Nick Clifton <nickc@cambridge.redhat.com>
2208 Fixes for: PR bootstrap/3591, target/5676
2209 * config/mcore/mcore.h (CC1_SPEC): Define only if not already
2210 defined. Do not disable exceptions or rtti.
2211 * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
2212 mcore.h. Disable exceptions and rtti, since they are not
2215 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
2217 * c-decl.c (maybe_build_cleanup): Remove.
2218 * expr.c (expand_expr): Use langhook.
2219 * langhooks-def.h (lhd_return_null_tree,
2220 LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
2221 (LANGHOOKS_INITIALIZER): Update.
2222 * langhooks.c (lhd_return_null_tree): New.
2223 * langhooks.h (struct lang_hooks): New hook.
2224 * tree-inline.c (initialize_inlined_parameters): Use langhook.
2225 * tree.h (maybe_build_cleanup): Remove.
2227 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2229 * regrename.c (build_def_use): Move recog_memoized
2230 before extract_insn.
2232 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2235 * expr.c (emit_group_store): Handle storing into CONCAT.
2237 2002-03-25 Jakub Jelinek <jakub@redhat.com>
2239 * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
2240 corresponding MATCH_DUP.
2242 2002-03-24 Richard Henderson <rth@redhat.com>
2244 * unroll.c (unroll_loop): Zero label_map.
2246 * gcse.c: Include except.h.
2247 * Makefile.in (gcse.o): Update.
2249 2002-03-24 Richard Henderson <rth@redhat.com>
2251 * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
2252 Do resolve_unique_section before shared data clause.
2254 2002-03-24 Richard Henderson <rth@redhat.com>
2256 * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
2258 2002-03-24 Richard Henderson <rth@redhat.com>
2260 * recog.c (peephole2_optimize): Split blocks when EH insns are
2261 generated in the middle of a block. Do global life update if
2264 2002-03-24 Richard Henderson <rth@redhat.com>
2266 * mips.c (mips_function_value): Only promote_mode for non-libcalls.
2268 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2271 * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
2272 * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
2273 (init_dependency_output): Don't make no_output decision here.
2275 2002-03-24 Andrew Cagney <ac131313@redhat.com>
2277 * stmt.c (check_for_full_enumeration_handling): Remove tests of
2278 warn_switch. Update description.
2279 (expand_end_case_type): Call check_for_full_enumeration_handling
2282 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2284 * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
2285 (m68hc11_split_move): Call it to see if the source and destination
2286 operands use the same direction auto inc/dec mode, otherwise make the
2287 source an offsetable memory operand and generate an add.
2289 2002-03-24 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2291 * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
2292 register for operand 2.
2293 ("*subsi3_zero_extendqi"): Likewise.
2294 ("*iorhi3_gen"): Do the operation on the upper bits and then lower
2295 bits so that it is compatible with a pop.
2296 ("*andhi3_gen"): Likewise.
2297 ("xorhi3"): Likewise.
2299 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2301 * cppinit.c (cpp_handle_option): Set warn_endif_labels if
2303 (cpp_post_options): ... not here.
2305 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
2306 Aldy Hernandez <aldyh@redhat.com>
2308 Removal of separate preprocessor cpp0.
2310 * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
2311 cpp0, install-common): Update.
2312 * c-common.c (flag_preprocess_only): New.
2313 (c_common_init): Preprocess for -E.
2314 * c-common.h (flag_preprocess_only): New.
2315 * c-decl.c (c_decode_option): Handle -E and -std=c++98.
2316 * c-objc-common.c (c_init_decl_processing): Exit quickly
2317 for NULL return from c_common_init.
2318 * cpplib.h (cpp_preprocess_file): New.
2319 * cppmain.c (main, general_init, pfile, progname): Remove.
2320 (do_preprocessing): Rename cpp_preprocess_file, don't call
2321 cpp_finish. Don't close stdout here.
2322 (setup_callbacks): Update prototype.
2323 * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
2325 * tradcpp.c (main): Ignore -quiet.
2327 * lang-specs.h (default_compilers): Preprocess with cc1obj.
2329 2002-03-24 Richard Henderson <rth@redhat.com>
2331 PR optimization/5742
2332 * machmode.def: Add inner mode field to complex modes.
2333 * config/mips/mips.c (mips_function_value): Always define. Add
2334 new argument to handle libcalls.
2335 * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
2336 (FUNCTION_VALUE): Likewise.
2337 * config/mips/abi64.h (FUNCTION_VALUE): Remove.
2338 * config/mips/mips-protos.h: Update.
2340 2002-03-23 Richard Henderson <rth@redhat.com>
2342 * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
2343 * config/sparc/sparc-protos.h: Update.
2344 * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
2346 2002-03-23 Richard Henderson <rth@redhat.com>
2348 * config/sparc/gmon-sol2.c (internal_mcount): Assume either
2349 _start or _init begins the text segment.
2351 2002-03-23 David Edelsohn <edelsohn@gnu.org>
2353 * config/rs6000/rs6000.h (RETURN_IN_MEMORY): Cast to HOST_WIDE_INT
2354 not HOST_WIDEST_INT.
2355 (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
2357 2002-03-23 Richard Earnshaw <rearnsha@arm.com>
2360 * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
2361 operand argument to output_return_instruction.
2362 * arm.c (arm_print_operand, case 'd'): If the operand is
2363 const_true_rtx then just return.
2364 (arm_print_operand, case 'D'): If the operand is const_true_rtx
2367 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2369 * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
2370 (Warning Options): Document -Wswitch-default.
2371 * toplev.c (W_options): Add -Wswitch-default. Update comment on
2373 (warn_switch_default): Define variable.
2374 (warn_switch): Update comment.
2375 * flags.h (warn_switch_default): Declare variable.
2376 (warn_switch): Update comment.
2377 * stmt.c (expand_end_case): Check for and, when
2378 warn_switch_no_default, warn of a missing default case.
2380 2002-03-23 Alan Modra <amodra@bigpond.net.au>
2382 * real.h (N): Special case 128 bit doubles.
2384 * combine.c (simplify_comparison): When widening modes, ignore
2385 sign extension on CONST_INTs.
2387 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2389 * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
2390 passed to adjust_address. Fix comment formatting.
2393 2002-03-22 Zack Weinberg <zack@codesourcery.com>
2395 * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
2396 Always make REAL_VALUE_TYPE a struct containing an array of
2397 HOST_WIDE_INT, not a double. Tidy up the code deciding how
2398 big it is. Don't declare or use union real_extract.
2400 * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
2401 decode_rtx_const, output_constant_pool), config/a29k/a29k.c
2402 (print_operand), config/arm/arm.c (output_move_double),
2403 config/arm/arm.md (consttable_4, consttable_8),
2404 config/romp/romp.c (output_fpops), config/s390/s390.h
2405 (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
2406 (xtensa_output_literal): Don't use union real_extract.
2408 * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
2409 (sfmode_constant_to_ulong), config/ns32k/merlin.h
2410 (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
2411 config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
2412 (PRINT_OPERAND): Don't use local version of union
2415 * config/convex/convex.c (check_float_value), config/vax/vax.c
2416 (vax_float_literal), config/m88k/m88k.md (divdf3),
2417 config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
2418 config/pdp11/pdp11.c (output_move_quad): Don't do host
2419 arithmetic on target floating point quantities.
2421 * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
2422 (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
2424 * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
2425 Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
2427 * real.c (earith): Test INFINITY rather than REAL_INFINITY;
2428 NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
2430 * print-rtl.c (print_rtx): Disable code which needs
2431 floating-point emulator.
2432 * libgcc2.c: Include float.h and use DBL_MANT_DIG,
2433 FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
2434 depending on HOST_FLOAT_FORMAT to be defined properly.
2436 * config/1750a/1750a.c (get_double, float_label): Delete.
2437 (print_operand): Delete huge commented-out chunk. Use
2438 REAL_VALUE_TO_DECIMAL.
2439 * config/1750a/1750a-protos.h: Delete prototypes of deleted
2441 * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
2443 * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
2444 Use REAL_VALUE_TO_DECIMAL as ELF version does.
2445 * config/m88k/m88k.c (real_power_of_2_operand,
2446 legitimize_operand): Take the REAL_VALUE_TYPE and/or union
2447 real_extract out of the union; run the input through
2448 REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
2449 from that into the union.
2450 * config/pdp11/pdp11.c (output_move_double): Rearrange
2451 parentheses to make automatic indenter happy.
2453 * doc/tm.texi (Cross-compilation): Rename node to "Floating
2454 Point" and rewrite to describe current situation. Also adjust
2455 documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
2457 * doc/rtl.texi: Adjust cross reference.
2459 2002-03-22 Bob Wilson <bob.wilson@acm.org>
2461 * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
2462 (xtensa_valid_move, xtensa_preferred_reload_class): Define.
2463 * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
2464 (xtensa_valid_move, xtensa_preferred_reload_class): Define to
2465 prevent use of sp as a reload register.
2466 (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
2467 non_acc_reg_operand.
2468 * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
2469 (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
2470 * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
2471 movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
2473 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2475 * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
2476 * cpplex.c (unterminated): Delete.
2477 (parse_string): No string literal may extend over multiple
2478 lines. Suppress the error when preprocessing assembly.
2479 * cppmain.c (scan_translation_unit): Strings are single-line.
2481 * doc/cpp.texi: Update to match.
2483 2002-03-22 Jakub Jelinek <jakub@redhat.com>
2485 PR optimization/5854
2486 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
2488 (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
2489 (EXTRA_CONSTRAINT): Use S for non-push memory operand.
2490 * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
2491 const0 if scratch register was not allocated.
2492 (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
2493 m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
2495 (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
2496 * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
2497 with GEN_INT (...) everywhere. Remove constraints in define_split
2499 (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
2500 require scratch register for setting 0 into regs/non-pushable memory.
2502 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
2504 * config/mips/mips.h (MASK_RETURN_ADDR): Define.
2505 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
2507 2002-03-22 Phil Edwards <pme@gcc.gnu.org>
2509 * cpplib.h (struct cpp_options): New member, warn_endif_labels.
2510 * cppinit.c (cpp_create_reader): On by default.
2511 (cpp_handle_option): Handle -W[no-]endif-labels.
2512 (cpp_post_options): Also enable if -pedantic.
2513 * cpplib.c (do_else): Use it.
2514 (do_endif): Likewise.
2515 * doc/cppopts.texi: Document new option.
2516 * doc/invoke.texi: Document new option.
2518 2002-03-22 Lars Brinkhoff <lars@nocrew.org>
2520 * config/i386/i386.c, config/i386/i386.md: Change all occurences
2521 of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
2523 2002-03-22 Alexandre Oliva <aoliva@redhat.com>
2525 * flow.c (calculate_global_regs_live): Clear aux fields of
2528 2002-03-22 Jakub Jelinek <jakub@redhat.com>
2530 * config/v850/v850.c (v850_reorg): Only call alter_subreg on
2531 REG or MEM subregs, pass rtx * instead of rtx to it.
2532 * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
2533 rtx * instead of rtx to alter_subreg.
2534 * config/m32r/m32r.c (gen_split_move_double): Likewise.
2535 * config/pj/pj.c (pj_output_rval): Likewise.
2537 2002-03-22 Richard Henderson <rth@redhat.com>
2540 * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
2541 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
2542 * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
2543 (ia64_expand_prologue): Look at int_regs, not words, for number
2544 of incomming int regs.
2546 2002-03-22 Andrew MacLeod <amacleod@redhat.com>
2548 * expr.c (expand_expr): A RESULT_DECL is part of a call.
2550 Fri Mar 22 16:30:42 CET 2002 Jan Hubicka <jh@suse.cz>
2552 * toplev.c (flag_loop_optimize, flag_crossjumping):
2553 New static variables.
2554 (rest_of_compilation): Conditionalize crossjumping and
2556 (parse_options_and_default_flags): Default loop_optimize and
2558 (lang_independent_options): Add -fcrossjumping and -floop-optimize
2559 * invoke.texi (crossjumping, loop-optimize): Document.
2561 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2563 * real.c (eiisneg): Move outside #ifdef NANS.
2565 Fri Mar 22 12:08:36 CET 2002 Jan Hubicka <jh@suse.cz>
2567 * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
2568 frequencies match; avoid match on different loop depths.
2569 (try_crossjump_to_bb): Kill tests that no longer brings time
2571 * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
2573 (split_edge): Likewise.
2575 * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
2578 * Makefile.in (cfgrtl): Add insn-config.h depenendency.
2579 * cfgrtl.c: Include insn-config.h
2580 (split_block) Dirtify block in presence of conditional execution
2582 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2584 * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
2585 * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
2586 (function_arg): Constify CUMULATIVE_ARGS.
2587 (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
2588 * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
2589 (UNITS_PER_DOUBLE): New macro.
2590 (SETUP_INCOMING_VARARGS): Define. Use mips_setup_incoming_varargs.
2591 (CUMULATIVE_ARGS): Reformat. Remove num_adjusts workaround and
2592 last_arg_fp field. Replace arg_words and fp_arg_words with gp_regs,
2593 fp_regs and stack_words.
2594 (EABI_FLOAT_VARARGS_P): New macro.
2595 * config/mips/mips.c (struct mips_arg_info): New.
2596 (mips_arg_info): New function.
2597 (function_arg_advance): Use it. Add adjustment instructions here
2598 rather than in function_arg.
2599 (function_arg): Constify CUMULATIVE_ARGS. Use mips_arg_info. Check
2600 for VOIDmode at the beginning of the function.
2601 (function_partial_nregs): Constify CUMULATIVE_ARGS. Use mips_arg_info.
2602 (function_arg_pass_by_reference): Likewise.
2603 (mips_setup_incoming_varags): New, largely based on old abi64.h code.
2604 (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
2605 (mips_va_start): Likewise. Use the new stack_words field of
2606 CUMULATIVE_ARGS to set up overflow area. Reformat.
2607 (mips_va_arg): Test EABI_FLOAT_VARARGS_P. Unify EABI handling of
2608 doubles and other types, aligning the overflow pointer for non-doubles
2609 too. Remove some code duplication. Replace hard-coded constants.
2611 2002-03-22 Richard Sandiford <rsandifo@redhat.com>
2613 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
2614 (CLASS_UNITS): Undefine.
2615 (CLASS_MAX_NREGS): Use FP_INC.
2616 * config/mips/mips.c (compute_frame_size): Likewise.
2617 (override_options): Use FP_INC and UNITS_PER_FPVALUE.
2619 2002-03-22 Neil Booth <neil@daikokuya.demon.co.uk>
2621 * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
2622 prototype, and handle lexing numbers and identifiers.
2623 (parse_identifier): Update to new form of parse_slow.
2624 (parse_number): Fast path only, use parse_slow otherwise.
2625 (_cpp_lex_direct): Update calls to parse_number.
2627 2002-03-21 DJ Delorie <dj@redhat.com>
2629 * bb-reorder.c (make_reorder_chain_1): Protect against
2630 when redundant edges are omitted.
2631 * predict.c (dump_prediction): Likewise.
2633 2002-03-21 Richard Henderson <rth@redhat.com>
2636 * fixinc/inclhack.def (solaris_stdio_tag): New.
2637 * fixinc/fixincl.x: Regenerate.
2639 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2642 * c-typeck.c (process_init_element): Flag non-static
2643 initialization of a flexible array member as illegal.
2645 2002-03-22 Alan Modra <amodra@bigpond.net.au>
2647 * config/rs6000/t-linux64: New.
2648 * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
2649 t-ppccomm. Use t-rs6000 and t-linux64.
2650 (powerpc64-*-gnu* <tmake_file>): Likewise.
2651 * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
2652 * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
2653 * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
2655 2002-03-21 Aldy Hernandez <aldyh@redhat.com>
2657 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
2658 flag_really_no_inline instead of optimize == 0.
2660 * c-objc-common.c (c_cannot_inline_tree_fn): Same.
2662 * cp/tree.c (cp_cannot_inline_tree_fn): Same.
2664 * flags.h (flag_really_no_inline): New.
2666 * c-common.c (c_common_post_options): Initialize
2667 flag_really_no_inline.
2669 * toplev.c (flag_really_no_inline): New.
2671 2002-03-21 Jakub Jelinek <jakub@redhat.com>
2673 * config/avr/avr.md (length): Fix length computation for
2674 conditional branches.
2676 2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
2678 * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2679 sdbout.o, profile.o): Update.
2680 * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2682 * c-common.h (gettags): Move here from tree.h.
2683 * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2684 insert_block, getdecls, kept_level_p, global_bindings_p): New.
2685 * dbxout.c (dbxout_init): Use getdecls langhook.
2686 * expr.c (expand_expr): Use insert_block langhook.
2687 * fold-const.c: Include langhooks.h.
2688 (fold_range_test, fold_binary_op_with_conditional_arg,
2689 fold): Use global_bindings_p langhook.
2690 * integrate.c (expand_inline_function): Use insert_block langhook.
2691 * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2692 LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2693 LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2694 LANG_HOOKS_GETDECLS): New.
2695 (LANG_HOOKS_INITIALIZER): Update.
2696 * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2698 * langhooks.h (struct lang_hooks_for_decls): New.
2699 (struct lang_hooks): Update.
2700 * profile.c: Include langhooks.h.
2701 (output_func_start_profiler): Use new langhooks.
2702 * sdbout.c: Include langhooks.h.
2703 (sdbout_init, sdbout_finish): Use getdecls langhook.
2704 * stmt.c: Include langhooks.h.
2705 (expand_fixup, fixup_gotos): Use new langhooks.
2706 * stor-layout.c: Include langhooks.h.
2707 (variable_size): Use global_bindings_p langhook.
2708 * toplev.c (compile_file): Use getdecls langhook.
2709 * tree-inline.c (remap_block): Use insert_block langhook.
2710 * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2711 insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2713 2002-03-21 Richard Henderson <rth@redhat.com>
2715 * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2716 constants in .data when -fpic.
2718 2002-03-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2720 * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2723 2002-03-21 Tom Tromey <tromey@redhat.com>
2725 * config/i386/sol2.h (ASM_QUAD): Undef. Fixes PR bootstrap/5948.
2727 Thu Mar 21 09:50:48 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2729 * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2731 * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2733 2002-03-21 Eric Botcazou <ebotcazou@multimania.com>
2734 Richard Henderson <rth@redhat.com>
2737 * c-common.c (c_expand_expr): Preserve result of a statement
2738 expression if needed.
2740 2002-03-21 Jakub Jelinek <jakub@redhat.com>
2743 * genrecog.c (maybe_both_true_mode): Remove.
2744 (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2745 * machmode.def (Pmode): Likewise.
2747 Thu Mar 21 01:55:06 EST 2002 John Wehle (john@feith.com)
2749 * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2750 (nonlocal_mentioned_p_1): New function.
2751 (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2752 (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2753 (mark_constant_function): Recognize pure functions.
2754 * rtl.h (global_reg_mentioned_p): New prototype.
2755 * rtlanal.c (global_reg_mentioned_p,
2756 global_reg_mentioned_p_1): New function.
2758 2002-03-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2760 * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2762 * fixinc/fixincl.x: Regenerate.
2764 2002-03-20 Jason Merrill <jason@redhat.com>
2766 * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2768 2002-03-20 Michael Meissner <meissner@redhat.com>
2770 * doc/invoke.texi (Optimize Options): Document that -O2 sets
2773 2002-03-20 Bob Wilson <bob.wilson@acm.org>
2775 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2776 ".literal_position" directive before the constant pool.
2778 2002-03-20 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2780 * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2781 Add Craig Rodrigues.
2782 Add Brad Lucier to testers.
2784 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2787 * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2789 (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2790 * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2791 instead of insn_extract.
2793 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2796 * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2798 * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2799 stmt if some case has been output.
2801 2002-03-20 Jakub Jelinek <jakub@redhat.com>
2804 * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2805 movsfcc_1, movdfcc_1): Add %O2.
2806 * config/i386/i386.c (print_operand): Handle %ON.
2807 Print . before float condition codes in Sun as cmov syntax.
2808 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2809 * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2812 2002-03-20 Philip Blundell <pb@nexus.co.uk>
2814 * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2815 return instruction if PC was popped.
2817 2002-03-20 Bob Wilson <bob.wilson@acm.org>
2819 * config/xtensa/xtensa.md: Remove unused type attributes.
2820 (adddi_carry, subddi_carry): Change type attribute to "multi".
2822 2002-03-19 Dale Johannesen <dalej@apple.com>
2824 PR optimization/5999, middle-end/5731
2825 * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2826 multiplications by reciprocals.
2828 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
2830 * Makefile.in: Update.
2831 * c-common.c: Include langhooks.h.
2832 (inline_forbidden_p): Use new hook.
2833 * diagnostic.c: Include langhooks.h.
2834 (format_with_decl, announce_function,
2835 default_print_error_function): Use new hook.
2836 * dwarf2out.c (dwarf2_name): Use new hook.
2837 * function.c: Include langhooks.h.
2838 (init_function_start): Use new hook.
2839 * langhooks-def.h (lhd_decl_printable_name): New.
2840 (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2841 (LANGHOOKS_INITIALIZER): Update.
2842 * langhooks.c (lhd_decl_printable_name): New.
2843 * langhooks.h (struct lang_hooks): New hook.
2844 * toplev.c (decl_name, decl_printable_name): Remove.
2845 (open_dump_file): Use new hook.
2846 (process_options): Remove old hook.
2847 * tree.h (decl_printable_name): Remove.
2849 * objc-act.c (objc_init): Remove old hook.
2850 (objc_printable_name): Export.
2851 * objc-act.h (objc_printable_name): New.
2852 * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2854 2002-03-19 Jim Blandy <jimb@redhat.com>
2856 * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2857 the start_source_file debug hook, not the current line number.
2859 2002-03-19 Richard Henderson <rth@redhat.com>
2861 * flow.c (EH_USES): Provide default.
2862 (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2863 * doc/tm.texi (EH_USES): New.
2865 * config/ia64/ia64.c (ia64_eh_uses): New.
2866 * config/ia64/ia64-protos.h: Update.
2867 * config/ia64/ia64.h (EH_USES): New.
2869 2002-03-19 Richard Henderson <rth@redhat.com>
2871 * varasm.c (output_constant_def): Fix stupid typo.
2873 2002-03-19 Richard Henderson <rth@redhat.com>
2876 * except.c (current_function_has_exception_handlers): New.
2877 * except.h: Declare it.
2878 * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2879 Combine tests that disable all sibcalls for the function.
2881 2002-03-19 Olivier Hainque <hainque@act-europe.fr>
2883 * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2886 2002-03-19 Richard Henderson <rth@redhat.com>
2889 * config/ia64/ia64.c: Revert 2002-03-01 patch.
2890 * config/ia64/ia64.h (INIT_EXPANDERS): New.
2892 2002-03-19 Jim Blandy <jimb@redhat.com>
2894 * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2895 name, even if the replacement list contains no tokens, as required
2898 2002-03-19 Jason Merrill <jason@redhat.com>
2900 * varasm.c (globalize_decl): Get the name from the RTL, not
2901 DECL_ASSEMBLER_NAME.
2903 * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2905 2002-03-19 Bob Wilson <bob.wilson@acm.org>
2907 * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2908 subdi_carry): Define.
2910 2002-03-19 David Edelsohn <edelsohn@gnu.org>
2912 * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2913 about -fpic/-fPIC if extra_warnings set.
2915 2002-03-19 David Edelsohn <edelsohn@gnu.org>
2917 * expr.c (expand_expr): Sign-extend CONST_INT generated from
2918 TREE_STRING_POINTER.
2919 * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2921 Tue Mar 19 14:12:32 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2923 * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2924 in favor of SP if FRAME_POINTER_REQUIRED is false.
2926 2002-03-19 Lars Brinkhoff <lars@nocrew.org>
2928 * emit-rtl.c (gen_int_mode): New function.
2929 * rtl.h: Prototype for it.
2930 * combine.c (make_extraction, simplify_comparison), expmed.c
2931 (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2932 (convert_modes, store_field), optabs.c (expand_fix),
2933 simplify-rtx.c (neg_const_int, simplify_unary_real),
2935 * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2936 Use it instead of GEN_INT (trunc_int_for_mode (...)).
2938 2002-03-19 Jakub Jelinek <jakub@redhat.com>
2941 * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2942 convert_parm_for_inlining.
2943 * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2945 * langhooks-def.h: Likewise.
2946 * objc/objc-lang.c: Likewise.
2947 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2949 * tree-inline.c (initialize_inlined_parameters):
2950 Call convert_parm_for_inlining lang hook if needed.
2951 * c-typeck.c (c_convert_parm_for_inlining): New function.
2952 * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2954 2002-03-18 Mark Mitchell <mark@codesourcery.com>
2956 * calls.c (precompute_arguments): Do not assume that temporaries
2957 can be destroyed after expanding the argument.
2958 (expand_call): Likewise.
2960 2002-03-15 Eric Christopher <echristo@redhat.com>
2962 * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2963 Fix register preference on last change.
2964 * config/mips/mips.c (mips_return_in_memory): New function.
2965 * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2966 * config/mips/mips-protos.h: Declare.
2967 * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2968 * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2970 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
2972 * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2974 (anddi3, iorsi3): Likewise.
2976 * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2977 use %gprel for symbols that are going to be placed in linkonce
2980 * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2981 RETURN_ADDRESS_POINTER_REGNUM to $ra.
2982 (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2983 not needed. Disregard leaf_function_p().
2984 (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2985 mips16 frame pointer.
2986 * config/mips/mips.md (store ra): Only to small SP offsets.
2987 2001-08-22 Graham Stott <grahams@redhat.com>
2988 * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2989 return a REG rtx for the return address register.
2991 2002-03-18 Bob Wilson <bob.wilson@acm.org>
2993 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2994 constant-pool addresses as "mode-dependent".
2995 (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2997 2002-03-18 Jakub Jelinek <jakub@redhat.com>
3000 * expr.c (emit_group_load): Use extract_bit_field if
3001 needed for CONCAT arguments.
3003 2002-03-18 Richard Earnshaw <rearnsha@arm.com>
3006 * arm.md (tablejump): Make this a define_expand. For PIC add the
3007 offset to the base of the table.
3008 (thumb_tablejump): Matcher for Thumb tablejump insn.
3009 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
3010 as the difference of two labels.
3011 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3012 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
3014 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3015 * arm.c (get_jump_table_size): If the table is not in the text
3016 section, return zero.
3018 2002-03-18 Bernd Schmidt <bernds@redhat.com>
3020 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
3022 (arm_reload_out_hi): Use gen_lowpart instead of
3023 gen_rtx_SUBREG to access QImode components.
3024 * config/arm/arm.md: Disable zero_extend split for QImode
3025 subregs in BIG_ENDIAN mode.
3026 (storehi_bigend): Match use of least significant byte.
3027 (storeinthi): Remove extraneous SUBREG.
3028 Add missing construction of operands[2].
3029 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
3030 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
3031 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
3033 2002-03-18 Aldy Hernandez <aldyh@redhat.com>
3035 * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
3038 2002-03-17 Richard Henderson <rth@redhat.com>
3040 * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
3043 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3045 * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
3046 (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
3048 2002-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3050 * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
3052 * predict.c (estimate_bb_frequencies): Delete unused variables.
3054 2002-03-17 Richard Henderson <rth@redhat.com>
3056 * config/ia64/ia64.c (ia64_attribute_table): Move before
3057 targetm definition. Make static.
3059 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
3061 * c-common.h (yyparse, c_common_parse_file): New.
3062 * c-lang.c: Include c-common.h.
3063 (LANG_HOOKS_PARSE_FILE): Redefine.
3064 * c-lex.c: Include c-common.h.
3065 (yyparse): Rename c_common_parse_file. Call yyparse.
3066 * c-parse.in (yyparse): Remove macro.
3067 * c-tree.h (yyparse_1): Remove.
3068 * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
3069 (LANG_HOOKS_INITIALIZER): Update.
3070 * langhooks.h (struct lang_hoooks): New hook parse_file.
3071 * toplev.c (compile_file): Use parse_file hook.
3072 * tree.h (yyparse): Remove.
3073 * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
3075 2002-03-17 Hans-Peter Nilsson <hp@bitrange.com>
3077 * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
3078 float_truncate, not fix.
3079 ("*truncdfsf2_real"): Ditto.
3080 ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
3082 * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
3084 2002-03-16 Alexandre Oliva <aoliva@redhat.com>
3086 * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
3087 (s8), but rather HARD_FRAME_POINTER_REGNUM. Add parentheses
3088 where appropriate. Make the second reference to
3089 leaf_function_p a function call, as intended. Reindented.
3091 * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
3092 * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
3094 * config/mips/mips.md (addsi3, adddi3): Use scratch register to
3095 add register to non-constant into sp.
3097 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
3098 * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
3099 (mips16_gp_pseudo_rtx): Lose.
3100 (INIT_EXPANDERS): Deleted.
3101 * config/mips/mips.c (mips_init_machine_status): New.
3102 (mips_free_machine_status): New.
3103 (mips_mark_machine_status): New.
3104 (override_options): Set them.
3105 (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
3106 (struct machine_function): ... new. Replaced all references.
3107 (mips_add_gc_roots): Don't mark them.
3108 (embedded_pic_fnaddr_reg): New, extracted from...
3109 (embedded_pic_offset): ... here.
3110 * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
3113 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3115 * cppinit.c: Revert -MD removal.
3117 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3119 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
3120 soft registers by default for 68HC12.
3121 (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
3122 when compiling with -fomit-frame-pointer.
3123 (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
3124 (expand_epilogue): Likewise.
3125 (m68hc11_gen_rotate): Use exg when rotating by 8.
3127 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3129 * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
3130 * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
3131 (splits): Remove unused add splits.
3132 ("*addhi3_68hc12"): Tune constraints.
3133 ("addhi_sp"): Try to use X instead of Y in all cases and if the
3134 constant fits in 8-bits and D is dead use abx/aby instructions.
3135 ("*addhi3"): Remove extern declaration of ix_reg.
3136 ("*subsi3"): Optimize and provide new split.
3137 ("subhi3"): Cleanup.
3138 ("*subhi3_sp"): Avoid saving X if we know it is dead.
3139 (arith splits): For 68hc12 save the address register on the stack
3140 and do the arithmetic operation with a pop.
3142 2002-03-16 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3144 * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
3145 allocating QImode in address registers.
3146 ("*movqi_m68hc11"): Likewise.
3148 Sat Mar 16 12:57:28 CET 2002 Jan HUbicka <jh@suse.cz>
3150 * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
3152 2002-03-16 Neil Booth <neil@daikokuya.demon.co.uk>
3154 * cppinit.c (print_help): Display -MD and -MMD.
3155 Don't display usage string. Update assertion syntax and
3157 (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
3158 (cpp_handle_option): Update.
3160 2002-03-15 Chris Demetriou <cgd@broadcom.com>
3162 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
3163 MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
3164 and define it so that regardless of target CPU size,
3165 __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
3166 of "int" rather than "long."
3168 2002-03-15 Richard Henderson <rth@redhat.com>
3170 * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
3173 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3175 * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
3176 ("tstqi" split): Avoid using memory for tstqi on address register.
3177 (splits): Remove constraints.
3178 ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
3179 ("cmpdf", "cmpsf"): Remove since not used.
3180 ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
3181 (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
3183 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3185 * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
3186 ("neghi2"): Tighten constraints.
3187 ("one_cmplsi2"): Optimize and simplify split.
3188 * config/m68hc11/larith.asm (__negsi2): Likewise for library.
3190 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3192 * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
3193 and split of AND operation to clear the upper bits.
3194 ("*logicalsi3_zextqi"): Likewise.
3195 ("*logicallhi3_zexthi_ashift8"): Likewise.
3196 ("*logicalsi3_silshr16"): Likewise.
3197 ("logicalsi3_silshl16"): Likewise.
3198 ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
3200 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3202 * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
3203 (m68hc11_indirect_p): New function.
3204 (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
3205 (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
3207 (asm_print_register): Likewise.
3208 * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
3209 (m68hc11_indirect_p): Declare.
3210 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
3211 (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
3212 (TARGET_SWITCHES): New option -mrelax.
3213 * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
3215 ("iorsi3", "xorsi3"): Likewise.
3216 ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
3217 ("*andhi3_mem"): New to handle destination in memory with bclr
3218 and a scratch register.
3219 ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
3220 ("*andhi3_const"): New when operand2 is constant.
3221 ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
3222 ("*andhi3_gen"): Cleanup of the old "andhi3".
3223 ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
3224 ("xorqi3"): Update constraints.
3226 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3228 * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
3229 for reg_equiv_memory_loc when the operand is a register that does
3230 not get a hard register (stack location).
3231 (tst_operand): After reload, accept all memory operand.
3232 (symbolic_memory_operand): Fix detection of symbolic references.
3233 * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
3234 accept symbols and any constant.
3236 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3238 * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
3239 note on the insn that sets the soft frame register.
3240 (must_parenthesize): ix and iy are also reserved names.
3241 (print_operand_address): One more place where parenthesis are required
3242 to avoid confusion with register names.
3243 (m68hc11_gen_movhi): Allow push of stack pointer.
3244 (m68hc11_check_z_replacement): Fix handling of parallel with a
3246 (m68hc11_z_replacement): Must update the REG_INC notes to tell what
3247 the replacement register is.
3248 * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
3249 and D8_REGS classes.
3250 (MODES_TIEABLE_P): All modes are tieable except QImode.
3252 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3254 * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
3255 (___subdi3): Likewise.
3256 (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
3257 (__map_data_section): Optimize 68hc11 case.
3259 2002-03-15 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3261 * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
3262 than a shift to avoid adding a register with itself.
3263 (m68hc11_memory_move_cost): Take into account NO_REGS.
3264 (m68hc11_register_move_cost): Update and use memory move cost
3266 (m68hc11_address_cost): Make cost of valid offset not 0 so that
3267 it gives more opportunities to cse to optimize.
3268 * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
3269 * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
3271 2002-03-15 Mark Mitchell <mark@codesourcery.com>
3273 * c-common.c (statement_code_p): Handle CLEANUP_STMT.
3274 * c-common.def (CLEANUP_STMT): New tree node.
3275 * c-common.h (CLEANUP_DECL): New macro.
3276 (CLEANUP_EXPR): Likewise.
3277 * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
3278 * expr.c (expand_expr): Tidy.
3279 * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
3280 * tree-inline.c (initialize_inlined_parameters): Clean up
3281 new local variables.
3283 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3286 * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
3287 before movrXX only, use reg_overlap_mentioned_p.
3288 Only special case NE if just one insn can be generated.
3290 2002-03-15 Jason Merrill <jason@redhat.com>
3292 * varasm.c (assemble_variable): Call resolve_unique_section before
3293 checking DECL_SECTION_NAME. Use zeros for a decl with DECL_INITIAL
3296 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3299 * arm.md (split pattern for thumb shiftable immediates): Add comment
3300 explaining non-obvious test.
3302 2002-03-15 Richard Earnshaw <rearnsha@arm.com>
3305 * arm.md (movaddr, movaddr_insn): Delete.
3307 2002-03-15 Jason Merrill <jason@redhat.com>
3309 * toplev.c (wrapup_global_declarations): Clarify variable handling.
3310 -fkeep-static-consts doesn't apply to comdats.
3312 2002-03-14 Richard Henderson <rth@redhat.com>
3314 * c-decl.c: Include c-pragma.h.
3315 (start_decl, start_function): Invoke maybe_apply_pragma_weak.
3316 (finish_function): Tidy.
3317 * c-pragma.c: Include c-common.h.
3318 (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
3319 (handle_pragma_weak): Use them.
3320 (init_pragma): Register pending_weaks.
3321 * c-pragma.h (maybe_apply_pragma_weak): Declare.
3322 * print-tree.c (print_node): Print DECL_WEAK.
3323 * varasm.c (mark_weak_decls): Remove.
3324 (remove_from_pending_weak_list): Remove.
3326 (asm_emit_uninitialised): Call globalize_decl for weak commons.
3327 (weak_decls): Make a tree_list.
3328 (declare_weak): Cons weak_decls directly.
3329 (globalize_decl): Remove weak_decls elements directly.
3330 (weak_finish): Simplify weak_decls walk. Don't weaken unused
3331 symbols. Don't pretend to handle aliases.
3332 (init_varasm_once): Update weak_decls registry.
3333 * Makefile.in: Update dependencies.
3335 2002-03-14 Richard Henderson <rth@redhat.com>
3338 * config/ia64/ia64.c: Include tm_p.h last.
3339 (gen_nop_type): Remove duplicate definition.
3340 (cycle_end_fill_slots): Set sched_data for second L slot.
3341 (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
3342 (nop_cycles_until): Fix typos.
3344 2002-03-15 Jakub Jelinek <jakub@redhat.com>
3346 PR optimization/5891
3347 * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
3349 2002-03-14 David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
3351 * config/ia64/unwind-ia64.c: Handle copy_state and label_state
3352 descriptors correctly.
3354 2002-03-14 Michael Meissner <meissner@redhat.com>
3356 * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
3357 100, allowing MAX_UNROLLED_INSNS to be overridden.
3359 * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
3362 * unroll.c (params.h): Include.
3363 (MAX_UNROLLED_INSNS): Delete, now in params.h.
3365 * doc/invoke.texi (--param max-unroll-insns): Document.
3367 * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
3369 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3371 * arm.md: Fix warnings about constraints in peepholes and splits.
3373 2002-03-14 Zack Weinberg <zack@codesourcery.com>
3375 * cpphash.h (struct lexer_state): Remove line_extension member.
3376 * cpplib.c (dequote_string, do_linemarker): New functions.
3377 (linemarker_dir): New data object.
3378 (DIRECTIVE_TABLE): No longer need to interpret #line in
3379 preprocessed source. Delete obsolete comment about return
3381 (end_directive, directive_diagnostics, _cpp_handle_directive):
3382 Don't muck with line_extension.
3383 (directive_diagnostics): No need to issue warnings for
3385 (_cpp_handle_directive): Issue warnings for linemarkers here,
3386 when appropriate. Dispatch linemarkers to do_linemarker, not
3388 (do_line): Code to handle linemarkers split out to do_linemarker.
3389 Convert escape sequences in filename argument, both places.
3391 * cppmacro.c (quote_string): Rename cpp_quote_string and
3392 export. All callers changed.
3393 * cpplib.h (cpp_quote_string): Prototype.
3394 * cppmain.c (print_line): Call cpp_quote_string on to_file
3397 * doc/cpp.texi: Document that escapes are now interpreted in
3398 #line and in linemarkers, and that non-printing characters are
3399 converted to octal escapes when linemarkers are generated.
3401 Thu Mar 14 19:04:29 CET 2002 Jan Hubicka <jh@suse.cz>
3403 * emit-rtl.c (try_split): Use delete_insns.
3404 * recog.c (split_all_insns): Fix terminating condition.
3406 2002-03-14 Richard Earnshaw <rearnsha@arm.com>
3407 Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3410 * arm.c (arm_output_epilogue): Fix floating-point register save
3411 adjustment when using a frame pointer.
3413 2002-03-14 Richard Sandiford <rsandifo@redhat.com>
3415 * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
3416 * config/mips/mips.c (compute_frame_size): Retrofit them here.
3417 (save_restore_insns, mips_expand_epilogue): And here.
3418 (build_mips16_call_stub): And here.
3419 (mips_function_value): Use the new macros to decide whether a single
3420 or complex float can be returned in floating-point registers. Return
3421 a parallel rtx in the complex case.
3423 Thu Mar 14 11:03:12 CET 2002 Jan Hubicka <jh@suse.cz>
3425 * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
3426 call after liveness analysis.
3428 * recog.c (split_insn): Use delete_insn_and_edges.
3430 * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
3431 instructions to have branch prediction notes.
3432 * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
3434 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
3436 * configure.in: Don't pass -Wno-long-long to a ADA compiler
3437 that doesn't support it.
3438 * configure: Regenerate.
3440 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3443 * config/sparc/sparc.md (normal_branch, inverted_branch,
3444 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3445 inverted_fp_branch): Adjust calls to output_cbranch.
3446 Set length attribute.
3447 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
3448 output_v9branch. Set length attribute.
3449 * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
3451 (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
3452 (output_cbranch): Likewise. Handle far branches.
3453 (output_v9branch): Handle far branches.
3454 * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
3456 * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
3457 noov_compare64_op predicates.
3459 2002-03-13 Jason Merrill <jason@redhat.com>
3461 * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
3462 into the function and constify it.
3463 * gthr-dce.h, gthr-solaris.h: Likewise.
3465 2002-03-13 David Edelsohn <edelsohn@gnu.org>
3467 * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
3468 * config/rs6000/rs6000.c (rs6000_va_arg): Use
3469 std_expand_builtin_va_arg if not ABI_V4.
3471 2002-03-13 Jason Merrill <jason@redhat.com>
3473 * varasm.c (globalize_decl): New fn.
3474 (assemble_start_function): Use it.
3475 (asm_emit_uninitialized): Use it.
3476 (assemble_alias): Use it.
3477 (assemble_variable): Use it.
3479 2002-03-13 Hans-Peter Nilsson <hp@axis.com>
3481 * config/cris/cris.c (cris_target_asm_function_prologue): Revert
3482 2002-03-12 internal visibility change.
3483 (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
3484 visibility into SYMBOL_REF_FLAG.
3486 2002-03-13 Ulrich Weigand <uweigand@de.ibm.com>
3488 * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
3489 VOIDmode operand. Add compile-time optimization for constant results.
3491 2002-03-12 Jason Merrill <jason@redhat.com>
3493 * c-typeck.c (convert_for_assignment): Don't allow conversions
3494 between pointers and references. Only allow lvalues to convert to
3497 2002-03-13 Hartmut Penner <hpenner@de.ibm.com>
3499 * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
3500 before prologue, to avoid scheduling problems.
3502 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3504 * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3505 (ELIMINABLE_REGS): Add sfp->sp.
3506 (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
3508 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3510 PR optimization/5892
3511 * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
3513 2002-03-13 Jakub Jelinek <jakub@redhat.com>
3515 * loop.c (basic_induction_var): Don't call convert_modes if mode
3516 classes are different.
3518 2002-03-12 Richard Henderson <rth@redhat.com>
3520 PR optimization/5901
3521 * function.c (reposition_prologue_and_epilogue_notes): Position
3522 the markers after/before the last/first insn not deleted.
3524 2002-03-12 Richard Henderson <rth@redhat.com>
3526 PR optimization/5878
3527 * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
3528 config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
3529 (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3531 * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
3532 config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
3533 PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
3535 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
3536 * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
3537 (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
3538 also. Don't set it if not flag_pic.
3539 * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
3540 to be INVALID_REGNUM when not used.
3542 2002-03-13 Aldy Hernandez <aldyh@redhat.com>
3544 * expmed.c (store_bit_field): Reset alias set for memory.
3545 (extract_bit_field): Same.
3547 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3549 * c-common.c (c_tree_code_type, c_tree_code_length,
3550 c_tree_code_name, add_c_tree_codes): Delete.
3551 * c-common.h (add_c_tree_codes): Delete.
3552 * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
3554 * c-objc-common.c (c_objc_common_init): Don't call
3555 add_c_tree_codes, instead set lang_unsafe_for_reeval.
3556 * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
3557 objc_tree_code_name, add_objc_tree_codes): Delete.
3558 (objc_init): Don't call add_objc_tree_codes.
3559 * objc/objc-lang.c (tree_code_type, tree_code_length,
3560 tree_code_name): Define.
3561 * toplev.c (lang_independent_init): Don't set
3562 tree_code_length[IDENTIFIER_NODE].
3563 * tree.c (tree_code_type, tree_code_length, tree_code_name):
3564 Delete definitions, moved to language front-ends.
3565 * tree.def (IDENTIFIER_NODE): Hardwire the length.
3566 * tree.h (tree_code_type, tree_code_length, tree_code_name):
3568 (tree_code_length): Change type to unsigned char.
3570 2002-03-12 Richard Henderson <rth@redhat.com>
3572 * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
3573 internal visibility change.
3575 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3577 * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
3578 validize_mem() instead of change_address to avoid clobbering
3581 2002-03-12 Neil Booth <neil@daikokuya.demon.co.uk>
3583 * c-lex.h (position_after_whitespace): Remove.
3585 2002-03-12 Jakub Jelinek <jakub@redhat.com>
3587 * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
3588 (lex_string): Use unsigned char pointers.
3590 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3592 * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
3593 is not a valid memory_operand.
3595 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3597 * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
3598 * config/xtensa/lib1funcs.asm: Fix copyright to include
3599 special case for libgcc files.
3600 (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
3601 (__divsi3): Likewise.
3602 (__umodsi3): Likewise.
3603 (__modsi3): Likewise.
3604 * config/xtensa/lib2funcs.S: Fix copyright to include
3605 special case for libgcc files.
3607 2002-03-12 Tom Rix <trix@redhat.com>
3609 * collect2.c (resolve_lib_name): Move outside of
3610 OBJECT_FORMAT_COFF ifdef.
3611 (ignore_library): Same.
3613 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3615 * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
3617 2002-03-12 Bob Wilson <bob.wilson@acm.org>
3619 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
3620 to function_section before writing out the constant pool.
3622 2002-03-12 David Edelsohn <edelsohn@gnu.org>
3624 * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
3626 * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
3628 2002-03-12 Alan Modra <amodra@bigpond.net.au>
3630 * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
3634 (cmpsi splitter): Likewise.
3635 (modsi3): Fail if <= 0.
3636 * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
3637 redundant test when HOST_BITS_PER_WIDE_INT != 32.
3638 (reg_or_sub_cint64_operand): Likewise.
3639 (num_insns_constant_wide): Optimize sign extension.
3640 (rs6000_legitimize_address): Likewise.
3642 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
3644 * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3645 * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3647 2002-03-12 Andrew MacLeod <amacleod@redhat.com>
3649 * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
3650 address calculation.
3652 2002-03-12 Ulrich Weigand <uweigand@de.ibm.com>
3654 * config/s390/s390.md (reload_insi, reload_indi): Change mode of
3655 scratch register to DImode / TImode.
3656 config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
3657 register used does not overlap the target.
3659 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3661 * Makefile.in (debug.o): Depend on debug.h.
3662 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
3663 * debug.c (do_nothing_debug_hooks): Likewise.
3664 * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
3665 sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
3666 dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
3667 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3668 * dwarfout.c (dwarf_debug_hooks): Likewise.
3669 * integrate.c (output_inline_function): Likewise.
3670 * objc/objc-act.c (synth_module_prologue): Likewise.
3671 * sdbout.c (sdb_debug_hooks): Likewise.
3672 * toplev.c (debug_hooks): Likewise.
3673 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3675 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3677 * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3678 dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3679 m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3680 ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3681 v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3682 * defaults.h (POINTER_SIZE): Define.
3683 * doc/tm.texi (POINTER_SIZE): Document default.
3685 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3687 * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3689 2002-03-11 Richard Henderson <rth@redhat.com>
3691 * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3692 if rebuild_label_notes_after_reload.
3694 2002-03-12 Hans-Peter Nilsson <hp@axis.com>
3696 * config/cris/cris.c (cris_target_asm_function_prologue): Do not
3697 emit pic register load if "internal" visibility.
3698 (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3699 (cris_expand_builtin_va_arg): Do all computations on trees.
3701 2002-03-11 Richard Henderson <rth@redhat.com>
3703 * rtlanal.c: Include recog.h.
3704 (keep_with_call_p): Fix thinko.
3705 * Makefile.in (rtlanal.o): Update dependencies.
3707 2002-03-11 Chris Meyer <cmeyer@gatan.com>
3709 * genflags.c (gen_insn): Use IS_VSPACE.
3710 * genoutput.c (output_insn_data): Likewise.
3711 (process_template): Likewise.
3713 2002-03-11 Richard Henderson <rth@redhat.com>
3715 * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3717 2002-03-11 Neil Booth <neil@daikokuya.demon.co.uk>
3719 * Makefile.in: Update.
3720 * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3721 Update documentation.
3722 * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3723 * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3725 2002-03-11 Zack Weinberg <zack@codesourcery.com>
3727 * Makefile.in: Give texi2pod its input file as a command line
3728 argument, not on stdin.
3730 2002-03-11 Dan Nicolaescu <dann@ics.uci.edu>
3731 Daniel Berlin <dan@dberlin.org>
3733 C++ alias analysis improvement.
3734 * alias.c (record_component_aliases): Record aliases for base
3737 2002-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3739 * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3741 2002-03-11 Douglas B Rupp <rupp@gnat.com>
3743 * toplev.c (vms_fopen): Remove, not needed.
3745 * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3747 * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3749 * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3750 for FP, already done later.
3752 * toplev.c (debug_args): Add entry for VMS_DEBUG.
3753 * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3755 2002-03-11 Richard Sandiford <rsandifo@redhat.com>
3757 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3758 (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3759 LARGEST_EXPONENT_IS_NORMAL for the given mode.
3760 (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3761 * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3762 (ediv, emul, eldexp, esqrt): Likewise.
3763 (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3764 (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3765 (saturate): New function.
3766 (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3767 (make_nan): Use a saturation value instead of a NaN if
3768 LARGEST_EXPONENT_IS_NORMAL. Warn when this happens.
3769 * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3770 inputs if LARGEST_EXPONENT_IS_NORMAL. Represent subnormals as
3771 zero if NO_DENORMALS. Only round to nearest if !ROUND_TOWARDS_ZERO.
3772 (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3773 (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3774 !ROUND_TOWARDS_ZERO.
3775 * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3776 (ROUND_TOWARDS_ZERO): Document.
3778 2002-03-11 Andreas Jaeger <aj@suse.de>
3780 * cfg.c (dump_flow_info): Remove unused variable.
3782 2002-03-11 Hans-Peter Nilsson <hp@bitrange.com>
3784 * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3785 computations on trees.
3787 2002-03-10 Richard Henderson <rth@redhat.com>
3790 * reload.c (copy_replacements_1): New.
3791 (copy_replacements): Use it to recurse through the rtx.
3793 2002-03-10 Richard Henderson <rth@redhat.com>
3795 * loop.c (strength_reduce): Compute number of iterations as
3796 unsigned HOST_WIDE_INT.
3798 2002-03-10 Richard Henderson <rth@redhat.com>
3800 * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3801 to move away from the end of the block.
3803 2002-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3805 PR preprocessor/5899
3806 * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3808 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3810 * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3812 * attribs.c (decl_attributes): Fix signed/unsigned warning.
3814 2002-03-10 Hans-Peter Nilsson <hp@bitrange.com>
3816 * config/mmix/mmix.c: Improve comments.
3817 (mmix_target_asm_function_prologue): Drop variable
3818 empty_stack_frame. Don't allocate unused slot above fp.
3819 (mmix_target_asm_function_epilogue): Mirror prologue changes.
3820 * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3821 brace in first column.
3822 (enum reg_class): Ditto.
3823 (FIRST_PARM_OFFSET): Now 0.
3824 (USER_LABEL_PREFIX): Remove #if 0:d definition.
3826 2002-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3828 * combine.c (make_extraction): Fix error in last change.
3830 2002-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3832 * c4x.c (c4x_fp_reglist): Const-ify.
3833 * cris.c (cris_print_operand): Likewise.
3834 * i386.c (ix86_va_arg): Likewise.
3835 * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3836 * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3837 * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3838 * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3839 * mcore.h (regno_reg_class): Likewise.
3840 * mips.c (gen_int_relational): Likewise.
3841 * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3842 * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3843 * pdp11.c (move_costs): Likewise.
3844 * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3845 * s390.c (s390_branch_condition_mnemonic, regclass_map):
3847 * s390.h (regclass_map): Likewise.
3848 * sh.c (shift_amounts): Likewise.
3849 * sh.md (rotlsi3): Likewise.
3851 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
3853 * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3854 (ne0+5): Use new clobber to generate proper shift pattern.
3855 Patch by Michael Matz <matz@kde.org>.
3857 2002-03-09 Andreas Schwab <schwab@suse.de>
3859 * gcc.c (validate_all_switches): Also handle `%W{...}'.
3861 2002-03-09 Geoffrey Keating <geoffk@redhat.com>
3863 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3865 2002-03-09 Jakub Jelinek <jakub@redhat.com>
3868 * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3869 even for non-representable constants.
3871 Sat Mar 9 07:20:01 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3873 * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3874 * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3875 (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3876 (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3877 (pop_function_context): Compute MAY_SHARE parameter for
3879 (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3880 (gen_mem_addressof): Call fixup_var_refs with new parm.
3882 * combine.c (make_extraction): Don't make extension of CONST_INT.
3884 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
3886 * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3887 in o32 and o64 ABIs.
3888 * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3889 but getting fixed-size structs passed in registers regardless of
3890 padding in o32 and o64 ABIs.
3892 * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3893 offset before loading address of argument passed by transparent
3896 2002-03-08 John David Anglin <dave@hiauly1.hia.nrc.ca>
3898 * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3900 2002-03-09 Alexandre Oliva <aoliva@redhat.com>
3902 * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3903 marker such that registers after it are saved.
3905 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3907 * sparc.c (arith_4096_operand): Fix error in last change.
3909 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3911 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3914 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
3916 * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3919 2002-03-08 Aldy Hernandez <aldyh@redhat.com>
3921 * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3923 Fri Mar 8 21:27:49 CET 2002 Jan Hubicka <jh@suse.cz>
3925 * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3926 removed; fix return value.
3927 * combine.c (combine_instructions): Dirtify blocks where we failed to
3928 update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3929 * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3931 2002-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3933 * gcse.c (insert_insn_end_bb): Fix typo in last change.
3935 Fri Mar 8 21:08:52 CET 2002 Jan Hubicka <jh@suse.cz>
3937 * recog.c (peephole2_optimize): Re-distribute EH edges.
3939 2002-03-08 Neil Booth <neil@daikokuya.demon.co.uk>
3941 * expr.c (expand_expr): Use unsave lang hook.
3942 * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3943 (LANG_HOOKS_INITIALIZER): Update.
3944 * langhooks.h (struct lang_hooks): New hook unsave.
3945 * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3946 (unsave_expr_1): Remove unused lang_unsave_expr_now.
3947 (unsave_expr_now_r): Rename lhd_unsave. Update. Return input.
3948 (unsave_expr_now): Remove.
3949 * tree.h (unsave_expr_now, lang_unsave,
3950 lang_unsave_expr_now): Remove.
3953 2002-03-08 Andreas Jaeger <aj@suse.de>
3955 * flow.c (propagate_block_delete_insn): Remove unused variable.
3957 2002-03-08 Kazu Hirata <kazu@hxi.com>
3959 * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3960 insn length for memory load/store.
3962 2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
3964 * doc/install.texi (--with-libiconv-prefix): Document.
3966 2002-03-08 Michael Y. Brukman <myb2@cornell.edu>
3968 * doc/sourcebuild.texi: Fix typo.
3970 2002-03-08 Jakub Jelinek <jakub@redhat.com>
3973 * builtins.c (std_expand_builtin_va_arg): Do all computations on
3976 Fri Mar 8 06:48:45 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3978 * rtl.c (copy_most_rtx): Move from here ...
3979 * emit-rtl.c (copy_most_rtx): ... to here.
3981 2002-03-08 Alexandre Oliva <aoliva@redhat.com>
3983 * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3984 SUBTARGET_CPP_SIZE_SPEC.
3985 * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3987 * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3989 2002-03-07 Matt Hiller <hiller@redhat.com>
3991 * gensupport.c (first_dir_md_include): Renamed from include;
3992 change all references.
3993 (last_dir_md_include): Renamed from last_include; change all
3995 (init_md_reader): Unconditionally initialize base_dir whether or
3996 not filename is a relative path.
3998 2002-03-07 Alexandre Oliva <aoliva@redhat.com>
4000 * config/fp-bit.c (_unord_f2): Compile it in even if
4001 US_SOFTWARE_GOFAST is enabled.
4003 * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
4004 NULL_RTX. Set all HFmode operations as NULL_RTX.
4005 * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
4006 NULL_RTX, try reversing the comparison and the operands.
4008 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4010 * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
4011 genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
4014 Thu Mar 7 16:54:10 CET 2002 Jan Hubicka <jh@suse.cz>
4016 * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4018 Thu Mar 7 16:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4020 * basic-block.h (fixup_abnormal_edges): Declare.
4021 * reload1.c (fixup_abnormal_edges): New function.
4022 * reg-stack.c (convert_regs): Use it.
4024 * gcse.c (insert_insn_end_bb): Handle trapping insns.
4026 * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4028 2002-03-07 Richard Sandiford <rsandifo@redhat.com>
4030 * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
4031 (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
4032 * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
4033 (HONOR_SIGN_DEPENDENT_ROUNDING): New.
4034 * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
4035 * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
4036 unless x and y could be infinite.
4037 (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
4038 Check that the common type of both arguments is a real, even for
4039 targets without unordered comparisons. Allow an integer argument
4040 to be compared against a real.
4041 (expand_tree_builtin): Use expand_unordered_cmp.
4042 * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
4043 * cse.c (fold_rtx): Likewise. Fix indentation.
4044 * fold-const.c (fold_real_zero_addition_p): New.
4045 (fold): Use it, and the new HONOR_... macros.
4046 * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
4047 * jump.c (reversed_comparison_code_parts): After searching for
4048 the true comparison mode, use HONOR_NANS to decide whether it
4049 can be safely reversed.
4050 (reverse_condition_maybe_unordered): Remove IEEE check.
4051 * simplify-rtx.c (simplify_binary_operation): Use the new macros
4052 to decide which simplifications are valid. Allow the following
4053 simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
4054 and (a - -b) to (a + b).
4055 (simplify_relational_operation): Use HONOR_NANS.
4056 * doc/tm.texi: Document the MODE_HAS_... macros.
4058 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4060 * combine.c (simplify_comparison): If simplifying a logical shift
4061 right and compare with constant, force the comparison to unsigned.
4063 2002-03-07 Aldy Hernandez <aldyh@redhat.com>
4065 * doc/invoke.texi: Add documentation for -mabi=no-altivec.
4067 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
4069 (alt_reg_names): Remove % for vrsave.
4071 2002-03-06 Richard Henderson <rth@redhat.com>
4073 PR optimization/5844
4074 * genemit.c (gen_exp): New argument used. Invoke copy_rtx
4075 if used indicates we've already emitted one copy of an operand.
4076 (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
4077 (gen_split): Supply a non-null used.
4079 2002-03-06 Ulrich Weigand <uweigand@de.ibm.com>
4081 * reload1.c (reload): Unshare all rtl after reload is done.
4083 * simplify-rtx.c (simplify_plus_minus): Do not abort,
4084 but simply fail if the expression is too complex to simplify.
4085 (simplify_gen_binary): Handle simplify_plus_minus failures.
4087 Wed Mar 6 20:32:09 CET 2002 Jan Hubicka <jh@suse.cz>
4089 * toplev.c (rest_of_compilation): Do jump threading before SSA path;
4090 consistently call delete_trivially_dead_insns after CSE and GCSE;
4091 fix DFI_life dumping; do jump threading after liveness; do crossjumping
4092 after liveness2; update comment in last crossjumping.
4093 * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
4095 Wed Mar 6 12:27:10 2002 Jeffrey A Law (law@redhat.com)
4097 * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
4098 after completing fast dead code elimination.
4100 * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
4103 2002-03-06 Phil Edwards <pme@gcc.gnu.org>
4105 * version.c: Fix misplaced leading blanks on first line.
4107 Wed Mar 6 19:08:03 CET 2002 Jan Hubicka <jh@suse.cz>
4109 * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
4111 Wed Mar 6 18:14:43 CET 2002 Jan Hubicka <jh@suse.cz>
4113 * cfgcleanup.c (mentions_nonequal_regs): New function.
4114 (thread_jump): Use it.
4115 * toplev.c (rest_of_compilation): Run jump threading after
4118 2002-03-06 Jakub Jelinek <jakub@redhat.com>
4120 * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
4123 Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
4125 * predict.c (estimate_bb_frequencies): Do not reload the
4126 frequencies from notes.
4128 Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
4130 * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
4131 * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
4133 * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
4134 delete_noop_moves): Return indeger.
4135 * flow.c (ndead): New variable.
4136 (propagate_block_delete_insn): Use delete_insn_and_edges; remove
4137 BB argument; update callers.
4138 (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
4139 (life_analysis): Do not call purge_all_dead_edges.
4140 (update_life_info): Return number of deleted insns; print statistics.
4141 (update_life_info_in_dirty_blocks): likewise.
4142 (delete_noop_moves): Use delete_insn_and_edges; print statistics;
4143 return number of insns deleted.
4145 * cse.c: Include timevar.h
4146 (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
4147 iterate until stabilizes; print statistics; return number of killed
4149 * Makefile.in: (cse.o): Add timevar.h dependency
4150 * rtl.h (delete_trivially_dead_insns): New.
4151 * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
4152 * toplev.c (rest_of_compilation): Update callers.
4154 * cfgcleanup.c (try_optimize_cfg): Kill blocks.
4155 (try_optimize_cfg): Do not update liveness.
4156 (cleanup-cfg): Loop until try_optimize_cfg and dead code
4157 removal stabilizes; use delete_trivially_dead_insns.
4159 * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
4161 2002-03-05 Zack Weinberg <zack@codesourcery.com>
4163 * cppmain.c (setup_callbacks): Disable #pragma and #ident
4164 callbacks when processing assembly language.
4166 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4168 * pa.h (ASM_FILE_END): Define.
4169 * som.h (ASM_FILE_END): Delete.
4171 * pa.c (function_arg): Don't pass floats in general registers in
4172 indirect calls if TARGET_ELF32.
4174 2002-03-05 Richard Henderson <rth@redhat.com>
4176 * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
4178 2002-03-05 Danny Smith <dannysmith@users.sourceforge.net>
4180 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
4182 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4184 * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
4185 -r command line. Don't hide any symbols if not building
4188 Tue Mar 5 18:31:27 CET 2002 Jan Hubicka <jh@suse.cz>
4190 * cfg.c (dump_flow_info): Warn about profile mismatches.
4191 * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
4192 (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
4194 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4196 * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
4197 wide volatile memory by parts.
4199 2002-03-05 Jakub Jelinek <jakub@redhat.com>
4201 * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
4204 2002-03-05 Richard Henderson <rth@redhat.com>
4206 * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
4208 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4210 * toplev.c (documented_lang_options): Document more
4211 language-specific options.
4212 * doc/invoke.texi (Warning Options): Correct documentation for
4213 -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
4214 * c-decl.c (c_decode_option): Use a table to handle warning options.
4216 2002-03-05 Hans-Peter Nilsson <hp@bitrange.com>
4218 * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
4219 parameter to mmix_encode_section_info.
4220 (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4221 relocatably. Always produce ELF, not mmo if linking relocatably.
4222 * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
4223 first is non-zero, don't add symbol prefix.
4224 * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
4225 prototype accordingly.
4227 2002-03-04 Krister Walfridsson <cato@df.lth.se>
4229 * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
4231 2002-03-05 Joseph S. Myers <jsm28@cam.ac.uk>
4233 * configure.in: Increase required makeinfo version to 4.1.
4234 * configure: Regenerate.
4236 2002-03-04 Geoffrey Keating <geoffk@redhat.com>
4238 * .cvsignore: Remove *.info* and genrtl*; these files are generated
4241 2002-03-04 Joseph S. Myers <jsm28@cam.ac.uk>
4243 * doc/include/texinfo.tex: Update to version 2002-03-01.06.
4244 * doc/invoke.texi: Fix @math uses.
4246 Mon Mar 4 15:33:54 CET 2002 Jan Hubicka <jh@suse.cz>
4248 * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
4251 2002-03-03 Aldy Hernandez <aldyh@redhat.com>
4253 * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
4254 (powerpc-*-eabisimaltivec*): Same.
4256 * config/rs6000/t-ppcendian: New.
4258 2002-03-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4260 * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
4261 nonimmediate_src_operand and nonimmediate_lsrc_operand to
4262 disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
4264 2002-03-03 Richard Henderson <rth@redhat.com>
4266 * toplev.c (rest_of_decl_compilation): Revert last two changes.
4268 2002-03-03 Zack Weinberg <zack@codesourcery.com>
4270 * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
4271 print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
4272 tree.c, config/m68k/m68k.c:
4273 Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
4274 REAL_ARITHMETIC blocks unconditional. Delete some further
4275 #ifdef blocks predicated on REAL_ARITHMETIC.
4276 * flags.h, toplev.c: Delete remaining references to
4279 * doc/invoke.texi: Remove documentation of -fpretend-float.
4280 * doc/tm.texi: Describe the various REAL_* macros as provided by
4281 real.h, not by the target configuration files.
4283 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
4284 config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
4285 config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4286 config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
4287 config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
4288 config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
4289 config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
4290 config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
4291 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
4292 config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
4293 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
4294 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4295 config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
4296 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
4297 config/xtensa/xtensa.h:
4298 Do not define, undefine, or mention in comments any of
4299 REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
4300 REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
4301 REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
4302 REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
4303 REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
4304 REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
4305 REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
4306 REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
4307 REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
4309 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4311 * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
4312 convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
4313 i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
4314 m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
4315 pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
4316 stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
4318 * defaults.h (BITS_PER_WORD): Define.
4319 * doc/tm.texi (BITS_PER_WORD): Document default value.
4321 * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
4322 m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
4323 stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
4325 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4327 * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
4328 lieu of explicit sizeof/sizeof.
4329 * i386.c (override_options, ix86_init_mmx_sse_builtins,
4330 ix86_expand_builtin): Likewise.
4331 * mips.c (mips_add_gc_roots): Likewise.
4332 * mmix.c (mmix_output_condition): Likewise.
4333 * rs6000.c (rs6000_override_options, altivec_expand_builtin,
4334 altivec_init_builtins): Likewise.
4335 * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
4336 * cppexp.c (Nsuff, parse_number): Likewise.
4337 * cppinit.c (builtin_array_end): Likewise.
4338 * gcc.c (n_default_compilers, process_command): Likewise.
4339 * genpreds.c (output_predicate_decls): Likewise.
4340 * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
4341 * lcm.c (N_ENTITIES): Likewise.
4342 * stor-layout.c (set_sizetype): Likewise.
4344 2002-03-03 Richard Henderson <rth@redhat.com>
4346 * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
4347 for types or labels.
4349 2002-03-03 Richard Henderson <rth@redhat.com>
4351 * c-decl.c (start_decl): Initialized variables are not common.
4353 2002-03-02 Per Bothner <per@bothner.com>
4355 * gcc.c (option_map): Suport new --bootclasspath option.
4356 --CLASSPATH is now just an alias for --classpath.
4358 2002-03-02 Richard Henderson <rth@redhat.com>
4360 * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
4361 load if "internal" visibility.
4362 * doc/extend.texi: Document visibility meanings.
4364 2002-03-02 Richard Henderson <rth@redhat.com>
4366 * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
4367 to functions as well.
4369 2002-03-02 Richard Henderson <rth@redhat.com>
4371 * attribs.c (handle_alias_attribute): Don't call assemble_alias.
4372 (handle_visibility_attribute): Don't call assemble_visibility.
4373 * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
4374 without asmspec. Invoke assemble_alias when needed.
4375 * varasm.c (maybe_assemble_visibility): New.
4376 (assemble_start_function, assemble_variable, assemble_alias): Use it.
4378 2002-03-02 Richard Henderson <rth@redhat.com>
4380 * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
4381 invoke ENCODE_SECTION_INFO with first call flag.
4383 * config/darwin-protos.h, config/darwin.c, config/darwin.h,
4384 config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
4385 config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
4386 config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
4387 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4388 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4389 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
4390 config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
4391 config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
4392 config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
4393 config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
4394 config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
4395 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4396 config/m68hc11/m68hc11.h, config/m88k/m88k.h,
4397 config/mcore/mcore-protos.h, config/mcore/mcore.c,
4398 config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
4399 config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
4400 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
4401 config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
4402 config/sh/sh.h, config/sparc/sparc.h,
4403 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
4404 config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
4405 config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
4406 FIRST argument. As needed, examine it and do nothing.
4408 * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
4409 config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
4410 config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
4412 * config/arm/t-pe (pe.o): Add dependencies.
4414 2002-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4416 * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
4417 cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
4418 i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
4419 mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
4420 pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
4421 vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
4422 * defaults.h (BITS_PER_UNIT): Define.
4423 * doc/tm.texi (BITS_PER_UNIT): Document default value.
4425 2002-03-02 Kazu Hirata <kazu@hxi.com>
4427 * config/h8300/h8300-protos.h: Add a prototype for
4428 compute_a_shift_length.
4429 * config/h8300/h8300.c (h8300_asm_insn_count): New.
4430 (compute_a_shift_length): Likewise.
4431 (h8300_adjust_insn_length): Do not adjust insn length of shift
4433 * config/h8300/h8300.md (anonymous shift patterns): Use
4434 compute_a_shift_length.
4436 Sat Mar 2 06:30:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4438 * config/sparc/sparc.c (sparc_initialize_trampoline): Use
4441 * emit-rtl.c (offset_address): Call update_temp_slot_address.
4443 2002-03-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4445 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
4446 * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
4447 * flags.h (flag_zero_initialized_in_bss): Declare.
4448 * toplev.c (flag_zero_initialized_in_bss): New flag.
4449 (lang_independent_options): Add flag_zero_initialized_in_bss.
4450 * tree.c (initializer_zerop): New function.
4451 * tree.h (initializer_zerop): Declare.
4452 * varasm.c (assemble_variable): If we can emit bss, put zero
4453 initializers in the bss section.
4455 2002-03-02 Alan Modra <amodra@bigpond.net.au>
4457 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
4458 like more than one symbol per .weak directive.
4460 2002-03-01 Richard Henderson <rth@redhat.com>
4462 * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
4463 adjust argument_pointer by pretend_args_size.
4464 (ia64_va_start): Adjust va_start address by -pretend_args_size.
4466 2002-03-01 Kazu Hirata <kazu@hxi.com>
4468 * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
4470 Fri Mar 1 20:59:14 CET 2002 Jan Hubicka <jh@suse.cz>
4472 * toplev.c (rest_of_compilation): Delete dead jumptables before
4474 * flow.c (delete_dead_jumptables): Make global.
4475 * rtl.h (delete_dead_jumptables): Declare.
4477 2002-03-01 David Edelsohn <edelsohn@gnu.org>
4479 * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
4480 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4481 * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
4483 2002-03-01 Kazu Hirata <kazu@hxi.com>
4485 * config/h8300/h8300-protos.h: Fix formatting.
4486 * config/h8300/h8300.c: Likewise.
4487 * config/h8300/h8300.h: Likewise.
4489 2002-03-01 Kazu Hirata <kazu@hxi.com>
4491 * config/h8300/h8300.c (print_operand): Support 16-bit
4493 * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
4495 2002-02-28 Richard Henderson <rth@redhat.com>
4497 * expmed.c (store_bit_field): Prevent generation of CONCATs;
4498 pun complex values as integers; use gen_lowpart instead of
4500 (extract_bit_field): Likewise.
4502 2002-03-01 Alan Modra <amodra@bigpond.net.au>
4503 David Edelsohn <edelsohn@gnu.org>
4505 * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4506 (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4507 (SUPPORTS_WEAK): Likewise.
4508 * output.h (add_weak): Add tree param.
4509 * varasm.c (add_weak): Likewise. Save decl.
4510 (struct weak_syms): Add decl field.
4511 (mark_weak_decls): New function.
4512 (init_varasm_once): ggc_add_root mark_weak_decls.
4513 (assemble_start_function): Use ASM_WEAKEN_DECL.
4514 (assemble_variable): Likewise.
4515 (assemble_alias): Likewise.
4516 (declare_weak): Pass decl to add_weak.
4517 (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
4518 (remove_from_pending_weak_list): Declare and define for
4520 * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
4521 * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4522 * defaults.h (SUPPORTS_WEAK): Likewise.
4523 * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4524 .weak for code sym. Do emit .size for descriptor sym.
4525 (ASM_DECLARE_FUNCTION_SIZE): Define.
4526 * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4527 (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here. Don't output
4528 .lglobl unless TARGET_XCOFF. Formatting fixes.
4529 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4531 (HANDLE_PRAGMA_WEAK): Remove.
4532 (ASM_WEAKEN_LABEL): Remove.
4533 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4535 2002-03-01 Jason Merrill <jason@redhat.com>
4537 * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
4538 (TARGET_EXPR_CLEANUP): New macro.
4540 2002-02-28 Steve Ellcey <sje@cup.hp.com>
4542 * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
4543 to take ptr_extend into account as third type of extension.
4544 (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
4545 fields used by SUBREG_PROMOTED_UNSIGNED_P.
4546 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
4547 (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
4548 * calls.c (precompute_arguments): Use new macro.
4549 (expand_call): Ditto.
4550 * combine.c (nonzero_bits): Ditto.
4551 (record_promoted_value): Ditto.
4552 * expr.c (store_expr): Ditto.
4553 (expand_expr): Ditto.
4554 * function.c (assign_parms): Ditto.
4556 2002-02-28 Alexandre Oliva <aoliva@redhat.com>
4558 * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
4559 override -shared and -shared-libgcc.
4561 2002-02-28 David O'Brien <obrien@FreeBSD.org>
4563 * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
4565 * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS. It appears
4568 2002-02-28 Richard Henderson <rth@redhat.com>
4570 * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
4571 4 cycle latency from MM producers.
4572 (ia64_internal_sched_reorder): Likewise with pipeline flush.
4574 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4576 * mklibgcc.in: Don't use GNU make extension.
4578 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4580 * c-parse.in (STATIC): New terminal.
4581 (scspec): New non-terminal. Update productions accordingly.
4582 (program): Remove bogus ifc / end ifc.
4583 (array_declarator): Simplify production using STATIC.
4585 2002-02-28 Jim Meyering <meyering@lucent.com>
4587 * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
4588 \a still means TARGET_BELL.
4590 2002-02-28 Richard Henderson <rth@redhat.com>
4592 * haifa-sched.c (sched_emit_insn): New.
4593 (schedule_block): Use last_scheduled_insn to track last insn.
4594 * sched-int.h (sched_emit_insn): Prototype.
4595 * config/ia64/ia64.c (last_issued): Remove.
4596 (ia64_variable_issue): Don't set it.
4597 (nop_cycles_until): Use sched_emit_insn.
4599 2002-02-28 Andrew MacLeod <amacleod@redhat.com>
4601 * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
4604 2002-02-28 Kazu Hirata <kazu@hxi.com>
4606 * config/h8300/h8300.c: Fix formatting.
4607 * config/h8300/h8300.h: Likewise.
4609 2002-02-28 Marek Michalkiewicz <marekm@amelek.gda.pl>
4611 * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
4612 which may overwrite the high byte of the frame pointer.
4614 2002-02-28 Bo Thorsen <bo@suse.de>
4616 * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
4617 (STARTFILE_SPEC): Add 64 bit files.
4618 (ENDFILE_SPEC): Likewise.
4620 2002-02-28 Jason Merrill <jason@redhat.com>
4622 * c-decl.c (finish_function): Only warn about missing return
4623 statement with -Wreturn-type.
4625 Don Feb 28 11:24:30 CET 2002 Jan Hubicka <jh@suse.cz>
4627 * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
4629 * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
4630 PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
4632 Don Feb 28 11:07:36 CET 2002 Jan Hubicka <jh@suse.cz>
4634 * basic-block.h (BB_REACHABLE): Renumber.
4635 (BB_DIRTY, BB_NEW): New flags.
4636 (clear_bb_flags): Declare.
4637 (update_life_info_in_dirty_blocks): Declare.
4638 * cfg.c (clear_bb_flags): New function.
4639 * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
4640 * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
4641 reorder_insns, emit_insn_after): Mark block as dirty.
4642 * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
4643 (update_life_info_in_dirty_blocks): New function.
4644 * recog.c (apply_change_group): Dirtify block.
4646 * cse.c (cse_insn): Reorder emitting of jump insn to keep
4648 * gcse.c (delete_null_pointer_checks): Likewise.
4650 * toplev.c (dump_file_index): Move cse2 after bp,
4652 (dump_file_info): Similary.
4653 (rest_of_compilation): Avoid most of CFG rebuilds;
4654 do first if converision after null pointer checks, do cse2
4655 after branch prediction; avoid full liveness rebuild after
4656 initializing subregs.
4657 * invoke.texi (-d options): Document -du, renumber.
4659 * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
4660 (notice_new_block): Do not set BB_UPDATE_LIFE.
4661 (try_forward_edges, merge_blocks_move_predecessor_nojumps,
4662 merge_blocks_move_successor_nojumps, merge_blocks,
4663 try_crossjump_to_edge): Likewise.
4664 (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
4665 * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
4666 * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
4667 (merge_of_block): Do not use life_data_ok.
4668 (find_if_case_1): Do not use SET_UPDATE_LIFE.
4669 (if_convert): Use BB_DIRTY mechanizm to update life.
4670 * lcm.c (optimize_mode_switching): Update
4671 update_life_info_in_dirty_blocks
4673 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
4675 * Makefile.in (integrate.o): Update.
4676 * c-decl.c (copy_lang_decl): Rename.
4677 * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4678 * integrate.c: Include langhooks.h.
4679 (copy_decl_for_inlining): Update to use langhook.
4680 * langhooks-def.h (lhd_do_nothing_t,
4681 LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4682 (LANG_HOOKS_INITIALIZER): Update.
4683 * langhooks.c (lhd_do_nothing_t): New.
4684 * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4685 * tree.h (copy_lang_decl): Remove.
4687 * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4689 2002-02-27 Andrew MacLeod <amacleod@redhat.com>
4691 * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4692 POST_DEC, and POST_MODIFY.
4694 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4696 * c-typeck.c (digest_init): Remove unused parameter; all
4699 2002-02-27 Geoffrey Keating <geoffk@redhat.com>
4701 * expmed.c (expand_shift): Correctly test for low part of a
4704 2002-02-27 Ulrich Weigand <uweigand@de.ibm.com>
4706 * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4707 insn UIDs with insn addresses.
4709 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4711 * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4712 c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4713 cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4714 builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4715 gcc.c, toplev.c: Delete code implementing -traditional mode.
4717 * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4718 doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4719 Document removal of -traditional mode for compilation, and
4720 remove documentation only relevant to that mode.
4722 * config/nextstep.h, config/ptx4.h, config/svr4.h,
4723 config/convex/convex.h, config/d30v/d30v.h,
4724 config/i386/dgux.h, config/i386/osf1elf.h,
4725 config/i386/osfelf.h, config/i386/osfrose.h,
4726 config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4727 config/m68k/hp310.h, config/m88k/dgux.h,
4728 config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4729 config/m88k/m88k.h, config/m88k/openbsd.h,
4730 config/mips/abi64.h, config/mips/osfrose.h,
4731 config/mips/svr4-5.h, config/mips/svr4-t.h,
4732 config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4733 config/stormy16/stormy16.h: Remove all references to
4734 -traditional from target specs. Delete all mention of the
4735 no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also
4736 delete a couple of commented-out definitions of
4737 DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4740 * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4741 * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4743 2002-02-27 Zack Weinberg <zack@codesourcery.com>
4745 * mklibgcc.in: Don't use \n in a line subject to
4746 interpretation by echo.
4748 2002-02-27 Graham Stott <grahams@redhat.com>
4750 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4753 * loop.c (prescan_loop): Handle PARALLEL.
4755 * unroll.c (loop_iterations): Return 0 if the add_val for
4758 * final.c (output_operand_lossage): Constify PFX_STR.
4760 * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4762 Wed Feb 27 10:45:19 CET 2002 Jan Hubicka <jh@suse.cz>
4764 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4765 * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4767 Wed Feb 27 10:39:20 CET 2002 Jan Hubicka <jh@suse.cz>
4769 * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4771 2002-02-27 Neil Booth <neil@daikokuya.demon.co.uk>
4773 * cpplex.c (_cpp_lex_token): Handle directives in macro
4775 * cpplib.c (_cpp_handle_directive): Save and restore state
4776 if parsing macro args when entering a directive.
4777 * cppmacro.c (collect_args): No need to handle directives
4779 (enter_macro_context, replace_args): Use the original macro
4780 definition in case it was redefined whilst collecting arguments.
4784 2002-02-26 David Edelsohn <edelsohn@gnu.org>
4786 * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4787 * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4788 * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4790 * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4791 (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4792 (load_toc_v4_PIC_2): Same.
4794 2002-02-26 Alan Modra <amodra@bigpond.net.au>
4796 * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4798 2002-02-26 Richard Henderson <rth@redhat.com>
4800 * config/alpha/alpha.md (ashldi_se): Re-enable.
4802 2002-02-26 Richard Henderson <rth@redhat.com>
4804 * config/alpha/alpha.c (alpha_encode_section_info): Examine
4805 MODULE_LOCAL_P; improve commentary.
4807 2002-02-26 Zack Weinberg <zack@codesourcery.com>
4809 * doc/cpp.texi: Clarify documentation of relationship between
4812 2002-02-26 Kazu Hirata <kazu@hxi.com>
4814 * config/h8300/h8300-protos.h: Update the prototype for
4815 compute_logical_op_length. Add the prototype for
4816 compute_logical_op_cc.
4817 * config/h8300/h8300.c (compute_logical_op_length): Figure out
4819 (compute_logical_op_cc): New.
4820 * config/h8300/h8300.md: Combine all the logical op patterns
4821 in HImode and SImode. Use compute_logical_op_cc.
4823 2002-02-26 Kelley Cook <kelleycook@comcast.net>
4825 * config/i386/i386.c (print_operand): Don't append ATT-style
4826 length suffixs to x87 opcodes when in Intel mode.
4828 2002-02-26 Ryan T. Sammartino <ryants@shaw.ca>
4830 * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4831 (init_emit_once): Update calls.
4832 * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4833 (init_syntax_once): Prototype.
4835 2002-02-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
4837 * pa-linux.h (LIB_SPEC): Update definition.
4838 * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4840 2002-02-26 Richard Henderson <rth@redhat.com>
4842 * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4843 if we emitted a stop bit.
4845 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4847 * configure.in (libgcc_visibility): Substitute.
4848 * configure: Rebuilt.
4849 * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4850 defined symbols .hidden.
4852 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4854 * attribs.c (c_common_attribute_table): Add visibility.
4855 (handle_visibility_attribute): New function.
4856 * varasm.c (assemble_visibility): New function.
4857 * output.h (assemble_visibility): Add prototype.
4858 * tree.h (MODULE_LOCAL_P): Define.
4859 * crtstuff.c (__dso_handle): Use visibility attribute.
4860 * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4861 for MODULE_LOCAL_P symbols too.
4862 * config/ia64/ia64.c (ia64_encode_section_info): Handle
4863 MODULE_LOCAL_P symbols the same way as local symbols.
4864 Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4865 into .sdata/.sbss by the user.
4866 * doc/extend.texi (Function Attributes): Document visibility
4869 2002-02-26 Jakub Jelinek <jakub@redhat.com>
4872 * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4873 STRING_CST initializer spanning the whole variable without
4875 If expand_expr returned MEM, don't use it.
4877 2002-02-26 Alexandre Oliva <aoliva@redhat.com>
4879 * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4880 generate a die for the lexical block.
4882 2002-02-26 Kazu Hirata <kazu@hxi.com>
4884 * config/h8300/h8300-protos.h: Add a prototype for
4885 compute_logical_op_length.
4886 * config/h8300/h8300.c (compute_logical_op_length): New.
4887 * config/h8300/h8300.md (anonymous logical patterns): Use
4888 compute_logical_op_length for length.
4890 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4892 * dwarf2out.c (modified_type_die): Do not call type_main_variant
4894 (gen_type_die): Same.
4896 * attribs.c (handle_vector_size_attribute): Set debug information.
4898 2002-02-26 Daniel Egger <degger@fhm.edu>
4900 * config/rs6000/rs6000.md: Swap define_insn attributes to
4901 fix incorrect generation of merge high instructions instead
4904 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4906 * c-typeck.c (really_start_incremental_init): Use
4907 bitsize_zero_node for vectors.
4909 2002-02-26 Aldy Hernandez <aldyh@redhat.com>
4911 * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4912 ("*set_vrsave_internal"): Same.
4914 2002-02-25 Richard Henderson <rth@redhat.com>
4916 * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4917 in EXPAND_SUM case. Use host_integerp/tree_low_cst.
4919 2002-02-25 Jakub Jelinek <jakub@redhat.com>
4922 * config/i386/i386.c (ix86_return_pops_args): Only pop
4923 fake structure return argument if it was passed on the stack.
4925 2002-02-25 Jason Merrill <jason@redhat.com>
4927 * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4930 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
4932 * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4933 link with shared_name only.
4934 * doc/invoke.texi (Link Options): Document new behavior.
4936 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
4938 * c-typeck.c (push_init_level): Handle vectors.
4940 2002-02-25 Alexandre Oliva <aoliva@redhat.com>
4942 * config/sparc/sparc.c (const64_high_operand): Zero-extend
4943 operands of SPARC_SETHI_P.
4944 (input_operand): Likewise.
4945 (sparc_emit_set_const32): Likewise.
4946 * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4947 (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4948 (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'. Add `N' as SETHI.
4949 * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4950 (movdi_insn_sp64_vis): Likewise.
4951 (movdi split, movdf split): Use SETHI32.
4952 * doc/md.texi: Document SPARC constraints L, M and N.
4954 2002-02-25 Aldy Hernandez <aldyh@redhat.com>
4956 * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4957 ("*set_vrsave_internal"): use mfspr for Darwin.
4959 * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4960 gen_get_vrsave_internal.
4962 Sun Feb 24 16:38:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4964 * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4966 2002-02-24 Neil Booth <neil@daikokuya.demon.co.uk>
4968 * cpplex.c (cpp_interpret_charconst): Get signedness or
4969 otherwise of wide character constants correct.
4970 * cppexp.c (lex): Get signedness of wide charconsts correct.
4972 Sun Feb 24 07:41:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4974 * optabs.c (widen_operand): Only call convert_modes for
4975 promoted SUBREG if signedness matches.
4976 * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4978 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4980 * cpplib.c (glue_header_name): Use local buffer to build up
4983 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
4985 * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4987 2002-02-23 Kazu Hirata <kazu@hxi.com>
4989 * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4990 H8/300[HS] separately.
4991 * config/h8300/h8300.md: Remove the early clobber constraint
4992 from bit field patterns.
4994 2002-02-23 Kazu Hirata <kazu@hxi.com>
4996 * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4998 (mulhisi3): Likewise.
4999 (umulqisi3): Likewise.
5000 (umulhisi3): Likewise.
5002 2002-02-23 Neil Booth <neil@daikokuya.demon.co.uk>
5004 * cppinit.c (output_deps): Correct test for stdout output.
5005 (init_dependency_output): Cure warning.
5007 Sat Feb 23 08:42:47 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5009 * expr.c (store_expr): When converting expression to promoted
5010 equivalent type, allow using SUBREG_REG of TARGET as the target
5011 of the expansion of EXP.
5012 * loop.c (basic_induction_var, case SUBREG): Always look inside.
5013 * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5014 (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5015 (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5016 * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5018 2002-02-23 Joseph S. Myers <jsm28@cam.ac.uk>
5020 * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5021 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5022 doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5024 2002-02-23 Jakub Jelinek <jakub@redhat.com>
5026 PR optimization/5747
5027 * loop.c (scan_loop): Update reg info if move_movables created new
5030 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5032 * gcc.c (init_gcc_spec): Revert last change.
5034 2002-02-23 David Edelsohn <edelsohn@gnu.org>
5036 * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5037 gpc_reg_operand constraint.
5039 2002-02-23 Alan Modra <amodra@bigpond.net.au>
5041 * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5042 Simplify comparison of `low'.
5043 (add_operand): Fix formatting.
5044 (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5045 (mask_operand): Disallow mask to wrap in 64-bit mode.
5046 (rs6000_stack_info): Remove redundant test setting push_p.
5047 (output_toc): Fix formatting.
5048 * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5049 cc_reg_not_cr0_operand constraint.
5050 (booldi3, boolcdi3 splitters): Same.
5052 2002-02-23 Aldy Hernandez <aldyh@redhat.com>
5054 * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5056 2002-02-22 David Edelsohn <edelsohn@gnu.org>
5058 * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5059 gcc invoked with -shared-libgcc.
5061 2002-02-22 Jakub Jelinek <jakub@redhat.com>
5064 * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5065 decl if any of elements was TREE_USED.
5067 2002-02-22 Alexandre Oliva <aoliva@redhat.com>
5069 * config/sparc/sol2.h: Don't include sys/mman.h.
5070 * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5071 (arith_4096_operand): Don't throw high bits away.
5072 (const64_operand): Take sign extension of CONST_INTs into account.
5073 (const64_high_operand, sparc_emit_set_const32): Likewise.
5074 (GEN_HIGHINT64): Likewise.
5075 (sparc_emit_set_const64_quick1): Likewise.
5076 (const64_is_2insns): Likewise.
5077 (print_operand): Use trunc_int_for_mode for sign extension.
5078 * config/sparc/sparc.h (SMALL_INT32): Likewise.
5079 * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5080 chars. Assume CONST_INT is already properly sign-extended.
5081 (movdi split): Sign-extend each SImode part.
5082 (andsi3 split): Don't mask high bits off, so that result
5083 remains properly sign-extend.
5084 (iorsi3 split): Likewise.
5085 (xorsi3 split): Likewise.
5087 2002-02-22 Richard Sandiford <rsandifo@redhat.com>
5089 * fold-const.c (fold): Fix typo in comments.
5091 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5093 * Makefile.in (langhooks.o): Update dependencies.
5095 2002-02-21 Diego Novillo <dnovillo@redhat.com>
5097 * langhooks.c: Include flags.h.
5099 2002-02-21 Aldy Hernandez <aldyh@redhat.com>
5101 * testsuite/gcc.dg/attr-alwaysinline.c: New.
5103 * c-common.c (c_common_post_options): Set inline trees by
5106 * doc/extend.texi (Function Attributes): Document always_inline
5108 Update documentation about inlining when not optimizing.
5110 * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5112 * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5113 unless DECL_ALWAYS_INLINE.
5115 * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5116 unless DECL_ALWAYS_INLINE.
5117 (c_disregard_inline_limits): Disregard if always_inline set.
5119 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5120 Disregard if always_inline set.
5121 (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5122 unless DECL_ALWAYS_INLINE.
5124 * attribs.c (handle_always_inline_attribute): New.
5125 (c_common_attribute_table): Add always_inline.
5127 * config/rs6000/altivec.h: Add prototypes for builtins
5128 requiring the always_inline attribute.
5130 2002-02-21 Eric Christopher <echristo@redhat.com>
5132 * expmed.c (store_bit_field): Try to simplify the subreg
5133 before generating a new one when when the mode size of
5134 value is less than maxmode.
5136 2002-02-21 Richard Henderson <rth@redhat.com>
5138 * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5139 than gen_rtx_PLUS to form the sum.
5140 * explow.c (force_reg): Rearrange to not allocate new pseudo
5141 when force_operand returns a register.
5142 * expr.c (expand_assignment): Allow offset_rtx expansion to
5143 return a sum. Do not force addresses into registers.
5144 (expand_expr): Likewise.
5145 * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5146 to canonicalize arithmetic that didn't simpify.
5147 (simplify_plus_minus): New argument force; update
5148 all callers. Don't split CONST unless we can do something with it,
5149 and wouldn't lose the constness of the operands.
5151 * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5152 that we generated earlier.
5154 2002-02-21 Tom Tromey <tromey@redhat.com>
5156 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5157 (output_line_info): Use constant `1', with a long explanatory
5159 * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5161 Thu Feb 21 22:43:44 2002 J"orn Rennecke <joern.rennecke@superh.com>
5163 * jump.c (redirect_jump): If old label has no UID, don't try to
5166 Thu Feb 21 21:17:21 2002 J"orn Rennecke <joern.rennecke@superh.com>
5168 * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5169 If input is constant, do shifts at compile time.
5171 2002-02-21 Joseph S. Myers <jsm28@cam.ac.uk>
5173 * doc/extend.texi: Fix some more overfull hboxes.
5175 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5177 PR optimization/4994
5178 * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5181 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5184 * expr.h (expand_and): Add mode argument.
5185 * expmed.c (expand_and): Add mode argument.
5186 (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5187 * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5188 * except.c (expand_builtin_extract_return_addr): Likewise.
5189 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5190 * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5191 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5192 Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5193 * config/c4x/c4x.md: Use GEN_INT (x) instead of
5194 gen_rtx (CONST_INT, VOIDmode, x).
5196 2002-02-21 Jakub Jelinek <jakub@redhat.com>
5199 * stmt.c (warn_if_unused_value): Move side effects test once more.
5201 2002-02-20 Torbjorn Granlund <tege@swox.com>
5203 * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5204 (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5206 Thu Feb 21 16:20:46 2002 Alexandre Oliva <aoliva@redhat.com>
5208 * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5209 SUBREG or ZERO_EXTEND.
5211 Thu Feb 21 15:35:46 2002 J"orn Rennecke <joern.rennecke@superh.com>
5213 * sh.h (current_function_anonymous_args): Remove.
5214 (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5215 of current_function_varargs and current_function_stdarg is set.
5216 * sh.c (sh_expand_prologue): Check current_function_varargs /
5217 current_function_stdarg / TARGET_SH5 instead of
5218 current_function_anonymous_args.
5220 * sh64.h (TARGET_VERSION): Define.
5222 2002-02-20 David Edelsohn <edelsohn@gnu.org>
5224 * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5225 VRSAVE_REGNO on TARGET_ALTIVEC.
5227 2002-02-20 Alan Modra <amodra@bigpond.net.au>
5229 * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5230 bits of SImode const_int.
5231 (includes_rshift_p): Likewise.
5232 (print_operand): Call mask_operand and mask64_operand with correct
5234 (rs6000_output_function_epilogue): Pad traceback table to word.
5235 * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5236 (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5237 mask64_operand with correct mode.
5238 (FUNCTION_ARG_REGNO_P): Correct parentheses.
5240 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5243 * varasm.c (get_pool_constant_mark): New.
5244 * rtl.h (get_pool_constant_mark): Add prototype.
5245 * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5246 be represented if it has not been output.
5248 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5250 * combine.c (do_SUBST): Sanity check substitutions of
5251 CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5252 (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5253 CONST_INT into its operand.
5254 (known_cond): Likewise, for ZERO_EXTEND.
5255 * simplify-rtx.c (simplify_unary_operation): Fix condition to
5256 allow for simplification of wide modes. Reject CONST_INTs in
5257 ZERO_EXTEND when their actual mode is not given.
5259 2002-02-20 Alexandre Oliva <aoliva@redhat.com>
5261 * c-decl.c (pushdecl): If no global declaration is found for an
5262 extern declaration in block scope, try a limbo one.
5264 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5267 * c-common.c (pointer_int_sum): Moved from...
5268 * c-typeck.c (pointer_int_sum): ...here.
5269 * c-common.h (pointer_int_sum): Add prototype.
5271 2002-02-20 Jakub Jelinek <jakub@redhat.com>
5274 * c-decl.c (duplicate_decls): Return 0 if issued error about
5277 2002-02-20 Roger Sayle <roger@eyesopen.com>
5278 Jakub Jelinek <jakub@redhat.com>
5281 * tree.c (host_integerp): Ensure that the constant integer is
5282 representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5283 when pos is zero or non-zero respectively. Clarify comment.
5284 * c-format.c (check_format_info_recurse): Fix host_integerp
5285 usage; the pos argument should be zero when assigning to a
5286 signed HOST_WIDE_INT.
5288 2002-02-20 Richard Henderson <rth@redhat.com>
5290 * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5291 of the operand, rather than assuming TImode.
5292 (ix86_expand_binop_builtin): Cope with commutative patterns
5293 using nonimmediate_operand for both operands.
5294 (ix86_expand_timode_binop_builtin): Likewise.
5295 (ix86_expand_store_builtin): Validate operand 1.
5296 (ix86_expand_unop1_builtin): Likewise.
5298 2002-02-20 Philip Blundell <philb@gnu.org>
5301 * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5303 2002-02-20 Richard Henderson <rth@redhat.com>
5306 * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5308 2002-02-20 Tom Tromey <tromey@redhat.com>
5310 * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5311 * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5312 * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5313 * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5314 * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5317 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5319 * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5320 for (const_int 0) in X not just INTVAL.
5322 2002-02-20 Joseph S. Myers <jsm28@cam.ac.uk>
5324 * doc/extend.texi: Avoid or reduce overfull hboxes.
5326 2002-02-20 Diego Novillo <dnovillo@redhat.com>
5328 * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5329 operations if the field does not start at a mode boundary.
5331 2001-02-20 Joel Sherrill <joel@OARcorp.com>
5333 * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5334 config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5335 Also done for -Acpu and -Amachine.
5337 2002-02-20 Neil Booth <neil@daikokuya.demon.co.uk>
5339 * cppinit.c (init_dependency_output): Take deps output file
5340 from -o if none given with -MF. Suppress normal output.
5341 * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5342 * doc/cpp.texi, doc/invoke.texi: Update.
5344 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5346 * toplev.c (output_quoted_string): Write unprintable
5347 characters with octal escapes.
5349 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5351 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5352 really_call_used[VRSAVE_REGNO] if not Altivec.
5354 2002-02-19 Alan Modra <amodra@bigpond.net.au>
5356 * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5358 (constant_pool_expr_1): Fix formatting.
5359 (rs6000_legitimize_reload_address): Likewise.
5361 Tue Feb 19 20:13:57 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5363 * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5364 now that we have one.
5366 2002-02-19 Zack Weinberg <zack@codesourcery.com>
5368 * tree.h (struct tree_common): Remove aux. Add unused_0 at
5369 end of first block of bitfields (which was only seven bits);
5370 rename dummy to unused_1; remove comment which is no longer true.
5372 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5374 * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5376 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5379 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5383 * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5384 arm_is_longcall_p rather than inspecting call-type cookie
5386 (call_value_insn) [TARGET_THUMB]: Likewise.
5388 2002-02-19 Graham Stott <grahams@redhat.com>
5390 * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5392 2002-02-19 David Edelsohn <edelsohn@gnu.org>
5394 * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5395 ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5396 (FP_SAVE_INLINE): Delete.
5398 * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5399 * config/rs6000/eabi.asm: Remove ABI save restore routines.
5400 * config/rs6000/t-ppccomm: Build crtsavres.o.
5401 * config/rs6000/crtsavres.asm: New file.
5403 2002-02-19 Philip Blundell <philb@gnu.org>
5405 * config/arm/arm.c (use_return_insn): Don't reject interrupt
5407 (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5408 (output_return_instruction): Allow interrupt functions to return with
5409 ldmfd sp!, {... pc}^. Use LDR to restore any single register.
5410 (arm_expand_prologue): Subtract 4 before stacking LR in an
5413 2002-02-19 Philip Blundell <pb@nexus.co.uk>
5415 * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5416 decl, not just FUNCTION_DECL.
5417 (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5418 (arm_assemble_integer): Likewise.
5419 * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5422 2002-02-19 matthew green <mrg@eterna.com.au>
5424 * config.gcc (sparc-*-netbsdelf*): Enable target.
5425 (sparc64-*-netbsd*): New target.
5426 * config/sparc/netbsd-elf.h: New file.
5427 * config/sparc/t-netbsd64: New file.
5429 2002-02-19 Gaute B Strokkenes <gs234@cam.ac.uk>
5431 * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5433 2002-02-19 Ryan T. Sammartino <ryants@shaw.ca>
5435 * doc/invoke.texi: explicitly list the style guidelines that
5436 -Weffc++ checks for.
5438 Tue Feb 19 12:37:23 CET 2002 Jan Hubicka <jh@suse.cz>
5440 * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5442 2002-02-19 Neil Booth <neil@daikokuya.demon.co.uk>
5445 * gcc.c (cpp_unique_options): Treat -o as indicating object file
5446 only if not -E. If -E, pass -o through to the preprocessor.
5448 2002-02-19 Kazu Hirata <kazu@hxi.com>
5450 * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
5451 register number with an appropriate macro.
5453 2002-02-19 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5455 * doc/rtl.texi (Constants): Close @code tag.
5457 2002-02-19 Aldy Hernandez <aldyh@redhat.com>
5459 * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
5460 ("mmx_uavgv4hi3"): Same.
5461 ("pmulhrwv4hi3"): Same.
5463 * tree-inline.c (walk_tree): Handle vectors.
5465 * c-common.c (constant_expression_warning): Handle vectors.
5466 (overflow_warning): Same.
5468 * sched-deps.c (sched_analyze_2): Handle vectors.
5470 * rtlanal.c (rtx_unstable_p): Handle vectors.
5471 (rtx_varies_p): Same.
5472 (count_occurrences): Same.
5473 (regs_set_between_p): Same.
5474 (modified_between_p): Same.
5475 (modified_in_p): Same.
5476 (volatile_insn_p): Same.
5477 (volatile_refs_p): Same.
5478 (side_effects_p): Same.
5480 (inequality_comparisons_p): Same.
5481 (replace_regs): Same.
5482 (computed_jump_p_1): Same.
5484 * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
5486 (inner_mode_array): New.
5487 (copy_rtx): Handle vectors.
5488 (copy_most_rtx): Same.
5489 (rtx_equal_p): Same.
5490 (get_mode_alignment): Adjust for vectors.
5492 * resource.c (mark_referenced_resources): Handle vectors.
5493 (mark_set_resources): Same.
5495 * reload1.c (eliminate_regs): Handle vectors.
5496 (elimination_effects): Same.
5497 (scan_paradoxical_subregs): Same.
5499 * reload.c (subst_reg_equivs): Handle vectors.
5501 * regrename.c (scan_rtx): Handle vectors.
5503 * regclass.c (reg_scan_mark_refs): Handle vectors.
5505 * recog.c (find_single_use_1): Handle vectors.
5507 * local-alloc.c (equiv_init_varies_p): Handle vectors.
5508 (contains_replace_regs): Same.
5509 (memref_referenced_p): Same.
5511 * integrate.c (copy_rtx_and_substitute): Handle vectors.
5512 (subst_constants): Same.
5514 * genattrtab.c (attr_copy_rtx): Handle vectors.
5515 (encode_units_mask): Same.
5516 (clear_struct_flag): Same.
5517 (count_sub_rtxs): Same.
5519 * gcse.c (want_to_gcse_p): Handle vectors.
5520 (oprs_unchanged_p): Same.
5521 (hash_expr_1): Same.
5522 (oprs_not_set_p): Same.
5523 (expr_killed_p): Same.
5524 (compute_transp): Same.
5525 (store_ops_ok): Same.
5527 * function.c (purge_addressof_1): Do not allow paradoxical subregs
5529 (fixup_var_refs_1): Same.
5530 (instantiate_virtual_regs_1): Same.
5532 * fold-const.c (operand_equal_p): Handle vectors.
5534 (rtl_expr_nonnegative_p): Same.
5536 * flow.c (mark_used_regs): Handle vectors.
5538 * df.c (df_uses_record): Handle vectors.
5540 * cselib.c (cselib_subst_to_values): Handle vectors.
5541 (cselib_mem_conflict_p): Same.
5544 * cse.c (canon_reg): Handle vectors.
5546 (cse_process_notes): Same.
5547 (count_reg_usage): Same.
5550 * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
5552 * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
5554 * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
5555 (gen_rtx): Handle CONST_VECTOR.
5556 (gen_const_vector_0): New.
5557 (copy_rtx_if_shared): CONST_VECTORs can be shared.
5558 (reset_used_flags): Same.
5559 (copy_insn_1): Same.
5560 (initializer_constant_valid_p): Handle VECTOR_CST.
5562 * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
5564 * doc/rtl.texi (Constants): Document const_vector.
5565 (CONST0_RTX): Update for vectors.
5566 (RTL sharing): Same.
5568 * print-tree.c (print_node): Add case for VECTOR_CST.
5570 * tree.h (TREE_VECTOR_CST_ELTS): New.
5571 (struct tree_vector): New.
5572 (union tree_node): Add vector node.
5573 (build_vector): Add prototype.
5575 * tree.def (VECTOR_CST): New.
5577 * tree.c (build_vector): New.
5579 * expmed.c (make_tree): Handle CONST_VECTOR.
5581 * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
5582 (CONST_VECTOR_ELT): New.
5583 (CONST_VECTOR_NUNITS): New.
5585 * machmode.h (GET_MODE_INNER): New.
5586 (DEF_MACHMODE): Accept 8th arg.
5588 * machmode.def: Add 8th argument for vector inner mode.
5589 Add inner vector modes for vectors.
5591 * rtl.def (VEC_CONST): Remove.
5592 (CONST_VECTOR): New.
5594 * expr.c (clear_storage): Allow vectors.
5595 (is_zeros_p): Handle VECTOR_CST.
5597 * varasm.c (output_constant_pool): Handle vectors.
5598 (rtx_const): Add veclo and vechi fields.
5599 (kind): Add RTX_VECTOR.
5600 (decode_rtx_const): Add case for vector.
5602 * config/rs6000/rs6000-protos.h: Add zero_constant.
5604 * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
5605 constants. Force easy vector constants into memory.
5606 (easy_vector_constant): New.
5607 (emit_easy_vector_constant): New.
5608 (rs6000_legitimize_reload_address): Do not generate bad reloads on
5611 * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
5613 ("altivec_lvxl"): Same.
5614 (altivec_lvebx): Same.
5615 (altivec_lvehx): Same.
5616 (altivec_lvewx): Same.
5617 ("*movv4si_const0"): New.
5618 ("*movv4sf_const0"): New.
5619 ("*movv8hi_const0"): New.
5620 ("*movv16qi_const0"): New.
5622 2002-02-18 Kazu Hirata <kazu@hxi.com>
5624 * config/h8300/h8300.c (notice_update_cc): Use
5627 2002-02-18 Kazu Hirata <kazu@hxi.com>
5629 * config/h8300/h8300.md (divmod patterns): Change the
5630 constraints for operands[1] to register_operand.
5632 2002-02-18 Kazu Hirata <kazu@hxi.com>
5634 * config/h8300/h8300-protos.h: Remove the prototype for
5636 * config/h8300/h8300.c (p_operand): Remove.
5637 * config/h8300/h8300.md: Replace p_operand with
5640 2002-02-18 Philip Blundell <pb@nexus.co.uk>
5642 * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
5644 (output_return_instruction): Allow use of LDR to unstack
5645 return addresss even for interrupt handlers or when
5646 interworking. If compiling for ARMv5, use interworking-safe
5647 return instructions by default. Remove duplicated code and
5648 lengthy "strcat" sequences.
5650 2002-02-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5652 * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
5653 (LINK_EH_SPEC): Define.
5654 * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
5656 2002-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5658 * config/s390/s390.c (s390_emit_prologue): Do not set the
5659 frame_related flag for call-clobbered registers.
5661 Mon Feb 18 15:07:35 CET 2002 Jan Hubicka <jh@suse.cz>
5663 * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
5664 (construct_container): Fix handling of SSE operands.
5665 (ix86_expand_builtin): Fix handling of 64bit pointers.
5666 (mmx_maskmovq_rex): New pattern.
5668 Mon Feb 18 11:55:55 CET 2002 Jan Hubicka <jh@suse.cz>
5670 * regrename.c (kill_set_value): Handle subregs properly.
5672 2002-02-18 David Billinghurst <David.Billinghurst@riotinto.com>
5674 * objc/objc-act.c (handle_impent): Remove leading '*'
5675 from objc_class_name.
5677 2002-02-17 Richard Henderson <rth@redhat.com>
5679 * config/alpha/alpha.c (some_small_symbolic_operand,
5680 some_small_symbolic_operand_1, split_small_symbolic_operand,
5681 split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5682 Handle small SYMBOL_REFs anywhere, not just inside memories.
5683 * config/alpha/alpha-protos.h: Update.
5684 * config/alpha/alpha.h (PREDICATE_CODES): Update.
5685 * config/alpha/alpha.md (small symbolic operand splitter): Update.
5687 2002-02-17 Roland McGrath <roland@frob.com>
5689 * config.gcc (powerpc-*-gnu-gnualtivec*,
5690 powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5691 * config/rs6000/gnu.h: New file.
5692 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5693 Grok "gnu" in rs6000_abi_name.
5694 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5695 CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5696 Grok -mcall-gnu analogous to -mcall-linux et al.
5697 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5698 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5699 (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5701 2002-02-17 Jakub Jelinek <jakub@redhat.com>
5704 * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5707 2002-02-17 Philipp Thomas <pthomas@suse.de>
5709 * config/cris/cris.h: Undefine STARTFILE_SPEC and
5710 ENDFILE_SPEC before (re)defining them.
5712 2002-02-17 Kazu Hirata <kazu@hxi.com>
5714 * config/h8300/h8300.c: Fix formatting.
5715 * config/h8300/h8300.h: Likewise.
5717 2002-02-17 Philipp Thomas <pthomas@suse.de>
5719 * doc/tm.texi: Explain why empty strings should not be
5720 marked for translation.
5722 2002-02-17 Philipp Thomas <pthomas@suse.de>
5724 * final.c (output_operand_lossage): Changed to accept
5725 printf style arguments. Change calls where necessary.
5726 * output.h (output_operand_lossage): Change declaration
5727 accordingly. Update copyright.
5728 * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5729 config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5730 Update copyright date where necessary.
5732 * config/i386/i386.c (print_operand): Likewise. Remove use of
5735 * config/cris/cris.c (cris_operand_lossage): Likewise.
5736 Rename parameter so that exgettext recognizes it as
5737 translatable message.
5738 (LOSE_AND_RETURN): Rename parameter to msgid.
5740 2002-02-17 Kazu Hirata <kazu@hxi.com>
5742 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5743 hard coded register number with an appropriate macro.
5744 (HARD_REGNO_MODE_OK): Likewise.
5745 (ARG_POINTER_REGNUM): Likewise.
5746 (STATIC_CHAIN_REGNUM): Likewise.
5747 (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5748 * config/h8300/h8300.md (define_constants): Define more
5751 2002-02-17 Philipp Thomas <pthomas@suse.de>
5753 * config/i386/i386.h: Don't mark empty strings for translation.
5755 2002-02-16 H.J. Lu <hjl@gnu.org>
5757 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5759 2002-02-16 Zack Weinberg <zack@codesourcery.com>
5761 * cppinit.c (merge_include_chains): Check for brack being
5762 NULL before attempting to merge it with qtail.
5764 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5766 * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5769 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5771 * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5773 2002-02-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
5775 * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5776 * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5777 * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5779 Sat Feb 16 13:48:50 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5781 * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5782 now only if !TARGET_FIX.
5783 (*movsi_nt_vms_fix): New pattern.
5785 2002-02-16 Douglas B Rupp <rupp@gnat.com>
5787 * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5788 (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5789 (alpha_sa_mask, alpha_sa_size): Reflect above change.
5790 (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5791 (alpha_start_function, alpha_expand_epilogue): Likewise.
5792 (unicosmk_gen_dsib): Likewise.
5794 Sat Feb 16 13:39:09 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5796 * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5798 2002-02-16 Ulrich Weigand <uweigand@de.ibm.com>
5800 * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5801 check_and_change_labels, s390_final_chunkify): Delete.
5802 (s390_split_branches, s390_chunkify_pool): New functions.
5803 (s390_function_prologue): Call them.
5805 * config/s390/s390.h (S390_REL_MAX): Delete.
5806 (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5808 * config/s390/s390.md (cjump, icjump, jump): Fix length
5809 attribute calculation.
5812 2002-02-15 David Edelsohn <edelsohn@gnu.org>
5814 * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5815 * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5817 2002-02-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
5819 * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5820 * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5821 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5823 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
5825 * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5827 2002-02-15 Richard Sandiford <rsandifo@redhat.com>
5829 * reload.c (find_dummy_reload): Check that an output register
5830 is valid for its mode.
5832 2002-02-14 Alexandre Oliva <aoliva@redhat.com>
5834 * combine.c (known_cond): After replacing the REG of a SUBREG, try
5837 * function.c (assign_parms): Demote promoted argument passed by
5838 transparent reference.
5840 2001-02-14 Joel Sherrill <joel@OARcorp.com>
5842 * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5843 -Acpu() and -Amachine() to eliminate warnings.
5845 2002-02-14 Ulrich Weigand <uweigand@de.ibm.com>
5847 * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5849 2002-02-14 Kazu Hirata <kazu@hxi.com>
5851 * config/h8300/h8300-protos.h: Update the prototype for
5853 * config/h8300/h8300.c (const_costs): Treat SET as a little
5854 more expensive operation.
5855 * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5856 reference to const_costs.
5858 2002-02-14 Hans-Peter Nilsson <hp@axis.com>
5860 * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5862 2002-02-14 Jakub Jelinek <jakub@redhat.com>
5865 * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5866 use arguments from newtype.
5868 2002-02-13 Eric Christopher <echristo@redhat.com>
5870 * config/mips/mips.c (override_options): Add check for march/mipsX
5871 on the same command line. Fix error message in cpu processing.
5872 Remove architecture and ISA checks.
5874 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
5876 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5878 * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5880 2002-02-14 Aldy Hernandez <aldyh@redhat.com>
5882 * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5884 ("*movv8hi_internal1"): Same.
5885 ("*movv16qi_internal1"): Same.
5886 ("*movv4sf_internal1"): Same.
5888 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5889 not push_reload for altivec modes.
5891 2002-02-13 Joel Sherrill <joel@OARcorp.com>
5893 * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5894 all RTEMS targets including removal of #includes from config/*/rtems*.h
5895 file and adding them to tm_file setting. Added xm_defines=POSIX to
5897 * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5898 * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5899 * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5900 * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5901 * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5902 config/m68k/rtemself.h: Ditto.
5903 * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5904 config/mips/rtems64.h: Ditto.
5905 * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5906 * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5908 * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5909 config/sparc/rtemself.h: Ditto.
5910 * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5911 * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5912 arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5914 * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5915 config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5916 target made more similar to i386-elf.
5917 * config/i386/t-rtems-i386: Added soft float support and multilibs.
5918 * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5919 be similar to config/m68k/t-m68kelf.
5920 * gthr-rtems.h: Encapsulate with extern "C" for C++.
5922 Wed Feb 13 23:41:15 CET 2002 Jan Hubicka <jh@suse.cz>
5924 * regmove.c (kill_value): Handle subregs.
5926 Wed Feb 13 23:34:30 CET 2002 Jan Hubicka <jh@suse.cz>
5928 * i386.md (mul patterns): Allow memory operand to be first;
5929 add expanders where needed; fix constraints.
5930 (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5931 Allow memory operand to be the first.
5933 * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5936 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5939 * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5942 2002-02-13 Jakub Jelinek <jakub@redhat.com>
5944 PR optimization/5547:
5945 * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5946 all valid IA-32 address modes involving non-scaled %ebx and
5947 GOT/GOTOFF as displacement.
5949 2002-02-13 Ulrich Weigand <uweigand@de.ibm.com>
5951 * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5952 after emitting ltorg insns.
5954 * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5955 *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5956 *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5957 *abssf2): Fix "op_type" attribute.
5959 2002-02-13 Douglas B Rupp <rupp@gnat.com>
5961 * mkconfig.sh: Avoid using a subshell redirect.
5962 ($output.T): Change to $(output)T.
5963 (ENABLE_NLS): Remove unneeded undef.
5965 * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5966 * config/alpha/x-vms (libsubdir): Define.
5968 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5969 register frame procedures. Optimize retrieving context.
5971 * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5972 (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5973 * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5975 Wed Feb 13 09:45:08 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5977 * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5978 Make same change as for find_base_value.
5980 2002-02-13 Kazu Hirata <kazu@hxi.com>
5982 * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5983 of QImode and SImode.
5985 2002-02-13 Kazu Hirata <kazu@hxi.com>
5987 * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5988 length computation of movsi.
5989 * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5991 2002-02-13 Kazu Hirata <kazu@hxi.com>
5993 * config/h8300/h8300.md (subqi3): Tighten the predicate for
5994 operands[2] to register_operand.
5996 Wed Feb 13 10:35:56 CET 2002 Jan Hubicka <jh@suse.cz>
5998 * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6000 2002-02-12 Aldy Hernandez <aldyh@redhat.com>
6002 * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6003 for altivec_lvx* and altivec_stvx*.
6004 ("*movv4si_internal"): Add constraint for loading from GPRs.
6005 ("*movv8hi_internal1"): Same.
6006 ("*movv16qi_internal1"): Same.
6007 ("*movv4sf_internal1"): Same.
6009 * config/rs6000/rs6000.c (altivec_register_operand): New.
6011 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6012 altivec_register_operand.
6014 2002-02-13 Hans-Peter Nilsson <hp@bitrange.com>
6016 * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6019 2002-02-13 Stan Shebs <shebs@apple.com>
6021 * c-typeck.c (digest_init): Handle vectors.
6022 (really_start_incremental_init): Same.
6023 (pop_init_level): Same.
6024 (process_init_element): Same.
6026 * varasm.c (output_constant): Same.
6028 * expr.c (clear_storage): Same.
6029 (store_constructor): Same.
6031 2002-02-12 Eric Christopher <echristo@redhat.com>
6033 * explow.c (hard_function_value): Add comment explaining
6034 signed/unsigned comparison.
6036 2002-02-12 Jakub Jelinek <jakub@redhat.com>
6038 * jump.c (never_reached_warning): Add finish argument.
6039 If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6040 real insn after end.
6041 * rtl.h (never_reached_warning): Adjust prototype.
6042 * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6043 * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6044 never_reached_warning.
6046 2002-02-12 Graham Stott <grahams@redhat.com>
6048 * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6050 2002-02-12 Kazu Hirata <kazu@hxi.com>
6052 * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6053 logical shifts on H8/300.
6054 (shift_alg_si): Improve several shifts on H8/300.
6055 (get_shift_alg): Likewise.
6057 2002-02-12 Graham Stott <grahams@redhat.com>
6059 * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6061 Tue Feb 12 10:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6063 * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6064 Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6066 2002-02-11 Hans-Peter Nilsson <hp@bitrange.com>
6068 * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6069 non-CONST_INT through default_assemble_integer.
6070 <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6071 <case 8>: Abort for CONST_DOUBLE.
6073 2002-02-11 John David Anglin <dave@hiauly1.hia.nrc.ca>
6075 * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6077 * config/pa/pa-linux.h (LIB_SPEC): Delete.
6078 * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6080 2002-02-11 Andrew Haley <aph@cambridge.redhat.com>
6082 * config/stormy16/stormy16.md (zero_extendqihi2): New.
6084 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6086 * regrename.c (regrename_optimize): Don't accept a
6087 part-clobbered register if the replaced register is not part
6090 * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6091 take padding into account when computing the argument value.
6093 * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6095 * combine.c (try_combine): Apply substitutions in
6096 CALL_INSN_FUNCTION_USAGE too.
6098 2002-02-11 Aldy Hernandez <aldyh@redhat.com>
6100 * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6101 __builtin_altivec_abs*.
6104 * config/rs6000/rs6000.h (rs6000_builtins): Add
6105 ALTIVEC_BUILTIN_ABS*.
6107 * config/rs6000/altivec.h: Use const char for builtins expecting
6109 (vec_abs): New versions for C and C++.
6112 2002-02-10 Kazu Hirata <kazu@hxi.com>
6114 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6117 2002-02-10 Kazu Hirata <kazu@hxi.com>
6119 * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6120 constant definition from h8300.md.
6121 (FRAME_POINTER_REGNUM): Likewise.
6122 * config/h8300/h8300.md (define_constants): Add FP_REG.
6124 2002-02-10 Kazu Hirata <kazu@hxi.com>
6126 * config/h8300/h8300.c (print_operand): Remove redundant code.
6128 2002-02-10 Kazu Hirata <kazu@hxi.com>
6130 * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6131 * config/h8300/h8300.c (byte_reg): Make it static.
6133 2002-02-10 Richard Henderson <rth@redhat.com>
6136 * c-typeck.c (incomplete_type_error): Handle flexible array members.
6138 2002-02-10 Richard Henderson <rth@redhat.com>
6141 * tree.c (append_random_chars): Don't abort if main_input_filename
6144 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
6146 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6148 2002-02-10 Kazu Hirata <kazu@hxi.com>
6150 * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6151 (pushhi1): Likewise.
6153 2002-02-10 John David Anglin <dave@hiauly1.hia.nrc.ca>
6155 * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6156 * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6158 2002-02-09 David O'Brien <obrien@FreeBSD.org>
6160 * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6162 (ASM_CPU_DEFAULT_SPEC): Remove. Default setting is fine.
6164 2002-02-09 Kazu Hirata <kazu@hxi.com>
6166 * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6167 a half of an SImode register on H8/300.
6169 Sat Feb 9 18:28:02 CET 2002 Jan Hubicka <jh@suse.cz>
6171 * i386.md (movdi_2): Add missing '!'.
6173 2002-02-09 Kazu Hirata <kazu@hxi.com>
6175 * config/h8300/h8300.h: Fix formatting. Remove commented-out
6178 2002-02-09 Kazu Hirata <kazu@hxi.com>
6180 * config/h8300/h8300.md (length): Correct the distance valid
6181 for the short branch.
6183 2002-02-09 Kazu Hirata <kazu@hxi.com>
6185 * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6187 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6189 * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6190 registers in SImode.
6191 (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6194 * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6197 Contribute sh64-elf.
6198 2002-02-09 Alexandre Oliva <aoliva@redhat.com>
6199 * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6200 (sh_cannot_modify_jumps_p): New function.
6201 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
6202 * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6203 (sh_ms_bitfield_layout_p): New function.
6204 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6205 Zack Weinberg <zack@codesourcery.com>
6206 * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6207 expand_simple_binop instead of expand_binop.
6208 2002-02-03 Alexandre Oliva <aoliva@redhat.com>
6209 * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6210 use of .quad and .uaquad.
6211 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6212 TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6213 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6214 * config/sh/sh.md (movdi_const, movdi_const_32bit,
6215 movdi_const_16bit): Make sure all CONSTs have modes.
6216 (sym2PIC): Ditto, but by adjusting all callers.
6217 * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6218 if the prologue calls the SHmedia argument decoder or register
6220 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6221 * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6222 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6223 (sh_expand_epilogue): Don't emit USE of return target register.
6224 (prepare_move_operands): Legitimize DImode PIC addresses.
6225 (sh_media_register_for_return): Skip tr0, used to initialize the
6227 (sh_expand_prologue): Remove explicit USE of return register.
6228 (nonpic_symbol_mentioned_p): PC is non-PIC. Don't recurse in
6229 CONST_DOUBLEs. UNSPEC_GOTPLT is PIC.
6230 * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6231 (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6232 (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6234 (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6235 (MOVI_SHORI_BASE_OPERAND_P): New.
6236 (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6237 (EXTRA_CONSTRAINT_T): Define in terms of them.
6238 (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6239 * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6240 movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6241 alternatives supporting TARGET_REGS.
6242 (UNSPEC_GOTPLT): New constant.
6243 (movdi split): Move incrementing of LABEL_NUSES...
6244 (movdi_const, movdi_const_32bit): Here. Use
6245 MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6246 (movdi_const_16bit): New.
6247 (call, call_value) [flag_pic]: Use GOTPLT.
6248 (call_pop, call_value_pop): New expands.
6249 (call_pop_compact, call_pop_rettramp): New insns.
6250 (call_value_pop_compact, call_value_pop_rettramp): New insns.
6251 (sibcall) [flag_pic]: Use GOT.
6252 (builtint_setjmp_receiver): Remove bogus, unused expand.
6253 (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6254 (*pt, *ptb, ptrel): New insns.
6255 (sym2GOT): Handle DImode GOT.
6256 (sym2GOTPLT, symGOTPLT2reg): New expands.
6257 (sym2PIC): New expand.
6258 (shcompact_return_tramp): Use GOTPLT to return trampoline.
6259 (shcompact_return_tramp_i): Use return register explicitly.
6260 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6261 disable flag_reorder_blocks.
6262 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
6263 * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6264 clobbers, for clarity.
6265 (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6266 restoring of r0 in macl as MAYBE_DEAD.
6267 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6268 * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6269 * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6270 alter_subreg all over.
6271 (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6272 reload, instead of emitting instructions that would require
6274 (casesi_load_media): Add missing modes.
6275 2001-11-09 Alexandre Oliva <aoliva@redhat.com>
6276 * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6277 as used if the argument decoder is called.
6278 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6279 * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6280 Pmode, then extend it to DImode if necessary.
6281 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6282 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6283 constants in FPU-enabled SHmedia, let them be loaded from memory.
6284 2001-08-28 Alexandre Oliva <aoliva@redhat.com>
6285 * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6286 Adjust whitespace in assembly output templates.
6287 2001-08-28 Stephen Clarke <Stephen.Clarke@st.com>
6288 * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6289 mode of if_then_else.
6290 2001-08-04 Alexandre Oliva <aoliva@redhat.com>
6291 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6293 2001-07-26 Andrew Haley <aph@cambridge.redhat.com>
6294 Joern Rennecke <amylaar@redhat.com>
6295 * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6296 (SUBTARGET_CPP_PTR_SPEC): New.
6297 (SUBTARGET_CPP_SPEC): Remove.
6298 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6299 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6300 Fix typo in previous checkin.
6301 2001-07-11 Chandrakala Chavva <cchavva@redhat.com>
6302 * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6303 2001-07-10 Chandrakala Chavva <cchavva@cygnus.com>
6304 Alexandre Oliva <aoliva@redhat.com>
6305 * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6306 what single FP register can hold for SHmedia target.
6307 2001-07-06 Chandrakala Chavva <cchavva@redhat.com>
6308 Alexandre Oliva <aoliva@redhat.com>
6309 * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6310 Do not split into SUBREG.
6311 2001-06-14 Alexandre Oliva <aoliva@redhat.com>
6312 * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6313 and added new functions as specified in SH5 ABI r9.
6314 2001-06-04 Alexandre Oliva <aoliva@redhat.com>
6315 * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6317 2001-06-03 Alexandre Oliva <aoliva@redhat.com>
6318 * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6319 gen_consttable_4 and gen_consttable_8. Emit multiple labels
6320 and consttable_window_ends.
6321 2001-06-03 Graham Stott <grahams@redhat,com>
6322 * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6323 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
6324 * config/sh/sh.c (print_operand): Handle floating-point pair,
6325 vector and matrix registers.
6326 * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6327 vector modes into account.
6328 * config/sh/sh.md (movv2sf): Split move between registers into
6330 (movv4sf, movv16sf): Introduce insns that get split only after
6332 * config/sh/shmedia.h: Fix Copyright dates.
6333 * config/sh/ushmedia.h: Likewise. Move loop counter
6334 declarations into conditionals that uses them.
6335 (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6337 * config/sh/sshmedia.h: Fix Copyright dates.
6338 (sh_media_PUTCFG): Fix constraints.
6339 2001-05-12 Alexandre Oliva <aoliva@redhat.com>
6340 * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6341 ptrmemfunc_vbit_in_delta for SH5.
6342 2001-05-08 Alexandre Oliva <aoliva@redhat.com>
6343 * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6344 * invoke.texi: Likewise.
6345 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6346 * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6347 GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6348 GCC_pop_shmedia_regs_nofpu): New global symbols.
6349 * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6350 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6351 * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6352 compact function with nonlocal labels.
6353 (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6354 (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6355 (initial_elimination_offset): Account for their stack space.
6356 * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6357 * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6358 movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6359 movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6360 least one of the operands to be a register.
6361 (movv2sf): Likewise. Renamed to movv2sf_i.
6362 (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6363 prepare_move_operands() before emitting SHmedia insns.
6364 2001-04-03 Alexandre Oliva <aoliva@redhat.com>
6365 * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6366 Don't save nor initialize r12. Don't mis-align the stack.
6367 Pad the code with a nop.
6368 * config/sh/crti.asm: Don't restore r12. Don't mis-align the
6370 2001-03-13 Alexandre Oliva <aoliva@redhat.com>
6371 * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6372 [__SHMEDIA__]: Implement.
6373 2001-03-11 Alexandre Oliva <aoliva@redhat.com>
6374 * config/sh/sh.md: Set latency of `pt' closer to reality.
6375 (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6376 movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6377 Set move, load and store type attributes.
6378 * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6379 * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6381 * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6382 * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6383 * config/sh/sh.c (sh_media_register_for_return): New function.
6384 (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6385 branch-target register.
6386 (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6387 * config/sh/sh.md (return_media_i): Use any call-clobbered
6388 branch-target register.
6389 (return_media): If r18 wasn't copied in the prologue, copy it
6391 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6392 Clear class FP0_REGS.
6393 * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6395 2001-03-08 DJ Delorie <dj@redhat.com>
6396 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6397 2001-02-09 Alexandre Oliva <aoliva@redhat.com>
6398 * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6399 2001-02-07 Alexandre Oliva <aoliva@redhat.com>
6400 * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6401 2001-02-03 Alexandre Oliva <aoliva@redhat.com>
6402 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6403 return value correctly for call_cookie.
6404 2001-02-01 Alexandre Oliva <aoliva@redhat.com>
6405 * config/sh/crt1.asm (start): Modified so as to call
6406 ___setup_argv_and_call_main.
6407 2001-01-26 Alexandre Oliva <aoliva@redhat.com>
6408 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6410 2001-01-20 Alexandre Oliva <aoliva@redhat.com>
6411 * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6412 (STRIP_NAME_ENCODING): Use it.
6413 (ASM_OUTPUT_LABELREF): Likewise. Don't call assemble_name().
6414 2001-01-19 Alexandre Oliva <aoliva@redhat.com>
6415 * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6416 prepare_scc_operands().
6417 * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6418 (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6419 2001-01-17 Alexandre Oliva <aoliva@redhat.com>
6420 * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6421 2001-01-13 Alexandre Oliva <aoliva@redhat.com>
6422 * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6423 * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6424 used in shcompact_incoming_args.
6425 * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6427 * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6429 * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6431 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6432 Simplify. Adjust. Add sanity check.
6433 * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6435 * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6437 (udivsi3, divsi3): Use them.
6438 (force_mode_for_call): New insn.
6439 (call, call_value, sibcall_value): Emit it before SHcompact
6441 2001-01-11 Alexandre Oliva <aoliva@redhat.com>
6442 * config/sh/sh.md (call, call_value, sibcall): Make sure the
6443 call cookie is non-NULL before taking its value.
6444 2001-01-10 Alexandre Oliva <aoliva@redhat.com>
6445 * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
6446 2001-01-09 Alexandre Oliva <aoliva@redhat.com>
6447 * config/sh/sh.md (shcompact_incoming_args): Set argument memory
6449 * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
6450 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
6451 temporary for stack adjusts. Use MACL and MACH to pass
6452 arguments to shcompact_incoming_args.
6453 * config/sh/sh.md (shcompact_incoming_args): Adjust. Don't
6455 * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
6456 (nested_trampoline): Load static chain address into r1.
6457 * config/sh/sh.md (movdi_media splits): Fix sign-extension.
6458 2001-01-07 Alexandre Oliva <aoliva@redhat.com
6459 * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
6460 fp_arith_reg_operand().
6461 2001-01-06 Alexandre Oliva <aoliva@redhat.com>
6462 * config/sh/sh.md (casesi): Sign-extend the first two operands,
6463 and use signed compares for them.
6464 * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
6465 4-byte ones. Instead, inter-leave them, maintaining the 8-byte
6466 ones properly aligned.
6467 (find_barrier): Account for extra alignment needed for 8-byte wide
6469 (machine_dependent_reorg): Require a label for the second 4-byte
6470 constant after an 8-byte one.
6471 * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
6473 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6474 * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
6475 last_float when switching float modes.
6476 * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
6477 auto-increment for general-purpose registers.
6478 * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
6480 * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
6482 * config/sh/sh.c (sh_builtin_saveregs): Support using all
6483 registers for varargs.
6484 2001-01-01 Alexandre Oliva <aoliva@redhat.com>
6485 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
6486 * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
6487 CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
6488 (CALL_COOKIE_INT_REG_SHIFT): Adjust.
6489 (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK. Adjust
6490 call_cookie accordingly.
6491 (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
6492 (SHCOMPACT_BYREF): Likewise.
6493 (SHCOMPACT_FORCE_ON_STACK): New macro.
6494 * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
6495 (sh_builtin_saveregs): Likewise.
6496 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6497 shcompact_incoming_args): Use new shift values. Support
6498 sequences of consecutive and non-consecutive pushes/pops.
6499 * config/sh/sh.md (return): Don't explicitly use PR_REG.
6500 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6501 * config/sh/sh.h (TEXT_SECTION): Define.
6502 * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
6503 2001-01-05 Alexandre Oliva <aoliva@redhat.com>
6504 * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
6505 * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
6506 return values on FPU-enabled SHmedia.
6507 (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
6508 FPU-enabled SHmedia.
6509 (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
6510 value is returned in a non-FP reg and is not returned by
6512 * config/sh/sh.md (shcompact_return_tramp_i): Change type to
6514 2000-01-04 Alexandre Oliva <aoliva@redhat.com>
6515 * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
6516 (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
6517 quad-aligned to be passed by callee-copy reference.
6518 2001-01-03 Alexandre Oliva <aoliva@redhat.com>
6519 * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
6520 * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
6521 2001-01-02 Alexandre Oliva <aoliva@redhat.com>
6522 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
6523 copying low-numbered FP regs to r7 and r8.
6524 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
6525 FP regs to general-purpose regs only if the copy was passed on the
6527 * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
6528 copying FP reg to r9.
6529 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
6530 copy FP regs to general-purpose regs only in outgoing calls.
6531 * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
6532 change from 2000-10-30. Adjust for 64-bit (or 32-bit)
6534 * config/sh/sh.h (struct sh_args): Document all fields.
6535 (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
6536 passed partially on the stack should not consider making
6538 * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
6539 stack_regs only for incoming calls. When passing FP args,
6540 make sure there are FP regs available before modifying
6542 (SHCOMPACT_BYREF): Pass double args in general-purpose
6543 registers by reference.
6544 2000-12-30 Alexandre Oliva <aoliva@redhat.com>
6545 * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
6546 attempt to generate sibcalls if the caller got any arguments
6548 * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
6549 * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
6550 to 8-byte boundaries.
6551 * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
6552 * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
6553 * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
6554 stored in the stack.
6555 * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
6556 for the offsets to have the ISA bit set.
6557 (shcompact_call_trampoline): Document. Swap r0 and r1, to match
6558 invocation. Use beq instead of bgt to mark end of sequence of
6560 (shcompact_incoming_args): Fix store of r2. Use beq instead of
6561 bgt to mark end of sequence of stores.
6562 * config/sh/sh.c (arith_operand): Don't check whether
6563 CONST_OK_FOR_J for now.
6564 * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
6565 instead of long for conversion.
6566 2000-12-29 Alexandre Oliva <aoliva@redhat.com>
6567 * config/sh/sh.c (print_operand_address): Convert INTVAL to int
6568 before passing it to fprintf.
6569 2000-12-28 Alexandre Oliva <aoliva@redhat.com>
6570 * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
6571 Call set_fpscr before reading/writing SR.
6572 * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
6574 * config/sh/lib1funcs.asm: Add `.align 2' directives before
6576 (FMOVD_WORKS): Define on SH5 with FPU.
6577 (set_fpscr): Define on SH5. Remove separate _fpscr_values
6579 * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
6581 2000-12-28 Hans-Peter Nilsson <hpn@cygnus.com>
6582 * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
6584 (ia_main_table): Ditto.
6585 2000-12-27 Alexandre Oliva <aoliva@redhat.com>
6586 * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6587 * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
6588 the definitions from sh.h.
6589 * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
6591 (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
6592 * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
6593 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6594 2000-12-26 Alexandre Oliva <aoliva@redhat.com>
6595 * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
6596 Increment LABEL_NUSES.
6598 * config/sh/sh.h (SIZE_TYPE): Define as conditional on
6600 (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
6602 * config/sh/elf.h (SIZE_TYPE): Likewise.
6603 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
6604 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6605 shcompact_incoming_args): Load switch table addresses using
6607 * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6608 (NO_BUILTIN_SIZE_TYPE): Define.
6609 (SIZE_TYPE): Don't define.
6610 * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
6611 * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
6612 definition of __SH5__=32 for -m5-compact-nofpu.
6613 * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
6615 2000-12-24 Alexandre Oliva <aoliva@redhat.com>
6616 * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
6617 2000-12-23 Alexandre Oliva <aoliva@redhat.com>
6618 * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
6619 (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
6620 (INSN_LENGTH_ALIGNMENT): Likewise.
6621 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6622 * config/sh/sh.md (call, call_value, sibcall): Simplify
6623 copying of non-branch-target register.
6624 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6625 * glimits.h (__LONG_MAX__): Revert 2000-12-13's patch.
6626 * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
6627 2000-12-22 Alexandre Oliva <aoliva@redhat.com>
6628 * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
6629 floating-point values as structs.
6630 (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
6631 (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
6632 general-purpose register.
6633 (SH5_PROTOTYPED_FLOAT_ARG): New macro.
6634 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6635 * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
6636 * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
6637 * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
6638 (ENCODE_SECTION_INFO): Enclose variables and constants in
6640 (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
6641 (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
6642 (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
6643 * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
6644 only for LABEL_REFs. For SYMBOL_REFs, prepend
6645 SH_DATALABEL_ENCODING to the symbol name.
6646 * config/sh/sh.md (indirect_jump): Use SUBREG instead of
6648 2000-12-20 Alexandre Oliva <aoliva@redhat.com>
6649 * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
6651 * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
6652 * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
6653 (DATALABEL_REF_P): Don't require CONST.
6654 (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
6656 2000-12-19 Alexandre Oliva <aoliva@redhat.com>
6657 * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
6659 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6660 * config/sh/sh.md (movsi_media, call, call_value, sibcall):
6661 Use shallow_copy_rtx and PUT_MODE to change the mode of
6662 SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
6663 * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
6664 on SHmedia using GENERAL_REGs.
6665 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6666 bltu_media_i): Fix reversion of conditions.
6667 2000-12-18 Alexandre Oliva <aoliva@redhat.com>
6668 * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
6669 * config/sh/sh.c (output_far_jump): Save r13 in macl.
6670 2000-12-17 Alexandre Oliva <aoliva@redhat.com>
6671 * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6672 2000-12-16 Alexandre Oliva <aoliva@redhat.com>
6673 * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6674 (GCC_nested_trampoline): Likewise.
6675 * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6676 * config/sh/sh.c (gen_datalabel_ref): Define.
6677 * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6678 (INITIALIZE_TRAMPOLINE): Likewise.
6679 (TRAMPOLINE_ADJUST_ADDRESS): Define.
6680 (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6681 (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6682 (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6683 * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6684 (ic_invalidate): Adjust for SH5.
6685 (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6686 * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6688 2000-12-15 Alexandre Oliva <aoliva@redhat.com>
6689 * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6690 (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6691 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6692 * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6693 * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6694 2000-12-14 Alexandre Oliva <aoliva@redhat.com>
6695 * config/sh/sh.c (target_reg_operand): Match only target-branch
6696 registers and pseudos that aren't virtual registers.
6697 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6698 Copy operands that don't match target_reg_operand to pseudos.
6699 (call_media, call_value_media, sibcall_media): Use
6700 target_reg_operand instead of target_operand.
6701 2000-12-13 Alexandre Oliva <aoliva@redhat.com>
6702 * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6703 * config/sh/sh.c (target_reg_operand): Match hardware registers
6704 other than branch-target registers.
6705 * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6706 * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6707 (fpscr_values) [SH5 == 32]: Define.
6708 * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6709 * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6710 Handle function addresses coming in SUBREGs.
6711 2000-12-12 Alexandre Oliva <aoliva@redhat.com>
6712 * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6713 shcompact_return_trampoline): Use datalabel where appropriate.
6714 2000-12-09 Alexandre Oliva <aoliva@redhat.com>
6715 * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6716 general-purpose register to copy one branch-target register to
6718 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6719 * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6720 SYMBOL_REFs with VOIDmode.
6721 * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6722 bltu_media_i): New insns.
6723 2000-12-06 Alexandre Oliva <aoliva@redhat.com>
6724 * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6725 (INIT_CUMULATIVE_ARGS): Likewise.
6726 2000-12-01 Alexandre Oliva <aoliva@redhat.com>
6727 * machmode.def (V16SFmode): New mode.
6728 * c-common.c (type_for_mode): Support V2SF and V16SF.
6729 * tree.c (build_common_tree_nodes_2): Likewise.
6730 * tree.h (tree_index): Likewise.
6731 * calls.c (emit_call_1): Take args_so_far. Adjust all
6732 callers. Introduce CALL_POPS_ARGS.
6733 * tm.texi (CALL_POPS_ARGS): Document.
6734 * config/sh/crt1.asm: Implement in SHmedia mode.
6735 * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6736 * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6737 (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6738 * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6739 Implement divsi and udivsi in SHmedia mode. Introduce
6740 SHcompact trampolines.
6741 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6743 (regno_reg_class): Rewrite.
6744 (fp_reg_names): Remove.
6745 (sh_register_names, sh_additional_register_names): New.
6746 (print_operand): Added `u'. Support SUBREGs in addresses.
6747 Add parentheses around shifted CONSTs.
6748 (output_file_start): Output .mode and .abi directives.
6749 (shiftcosts, addsubcosts, multcosts): Adjust.
6750 (output_stack_adjust): Compute alignment. Sanity-check SIZE.
6751 (push_regs): Take array of HOST_WIDE_INTs. Adjust callers.
6752 (calc_live_regs): Output to array of HOST_WIDE_INTs. Count
6753 bytes, not registers. Take into account the need for the
6754 SHcompact incoming args trampoline. Adjust all callers.
6755 (sh_expand_prologue): Take stack_regs into account. Call
6756 incoming args trampoline. Keep stack aligned as per SH5 ABI.
6757 (sh_expand_epilogue): Take stack_regs into accoutn. Keep
6758 stack aligned as per SH5 ABI.
6759 (sh_builtin_saveregs): Support SH5 ABI.
6760 (sh_build_va_list, sh_va_start): Likewise.
6761 (initial_elimination_offset): Take alignment into account.
6762 Compute location of PR according to the SH5 stack frame.
6763 (arith_reg_operand): Reject branch-target registers.
6764 (shmedia_6bit_operand): New.
6765 (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6766 (target_reg_operand): Match DImode only. Accept SUBREGs.
6767 (target_operand): New.
6768 * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6769 (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI. Initialize
6770 SIBCALL_REGS for SHmedia.
6771 (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6772 (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6773 (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6774 (TARGET_SWITCHES): New SH5 flags.
6775 (OVERRIDE_OPTIONS): Set SH5-specific options. Use
6776 VALID_REGISTER_P to disable unsupported registers.
6777 (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6778 (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6779 (FUNCTION_ARG_PADDING): Define.
6780 (FASTEST_ALIGNMENT): Adjust.
6781 (SH_REGISTER_NAMES_INITIALIZER): New.
6782 (sh_register_names): Declare.
6783 (DEBUG_REGISTER_NAMES): Define.
6784 (REGISTER_NAMES): Define based on sh_register_names.
6785 (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6786 (sh_additional_register_names): Declare.
6787 (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6788 (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6789 (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6790 (REGISTER_NATURAL_MODE): Define.
6791 (FIRST_PSEUDO_REGISTER): Adjust.
6792 (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6793 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6794 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6795 (VECTOR_MODE_SUPPORTED_P): Define.
6796 (REG_CLASS_CONTENTS): Adjust.
6797 (SMALL_REGISTER_CLASSES): Adjust.
6798 (REG_ALLOC_ORDER): Adjust.
6799 (INDEX_REG_CLASS): Adjust.
6800 (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6801 (CONST_OK_FOR_LETTER_P): Adjust.
6802 (PREFERRED_RELOAD_CLASS): Adjust.
6803 (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6804 (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6805 (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6806 (FIRST_FP_PARM_REG): Adjust.
6807 (CALL_POPS_ARGS): Define.
6808 (FUNCTION_ARG_REGNO_P): Adjust.
6809 (struct sh_args): New fields.
6810 (GET_SH_ARG_CLASS): Adjust.
6811 (INIT_CUMULATIVE_ARGS): Adjust.
6812 (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6813 (FUNCTION_ARG_ADVANCE): Adjust.
6814 (FUNCTION_ARG): Adjust.
6815 (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6816 (FUNCTION_ARG_CALLEE_COPIES): Define.
6817 (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6818 (STRICT_ARGUMENT_NAMING): Define.
6819 (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6820 (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6821 (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6822 (SETUP_INCOMING_VARARGS): Adjust.
6823 (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6824 (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6825 (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6826 (SUBREG_OK_FOR_INDEX_P): Adjust.
6827 (EXTRA_CONSTRAINT_S): Update.
6828 (EXTRA_CONSTRAINT_T): New.
6829 (EXTRA_CONSTRAINT): Adjust.
6830 (GO_IF_LEGITIMATE_INDEX): Adjust.
6831 (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6832 (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6834 (MAX_MOVE_MAX): Define.
6836 (CONST_COSTS): Adjust.
6837 (REGISTER_MOVE_COST): Adjust.
6838 (BRANCH_COST): Adjust.
6839 (TEXT_SECTION_ASM_OP): Adjust.
6840 (DBX_REGISTER_NUMBER): Adjust.
6841 (ASM_OUTPUT_DOUBLE_INT): New.
6842 (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6843 (PREDICATE_CODES): Adjust.
6844 (PROMOTE_MODE): Adjust.
6845 (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6846 * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6847 (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6848 (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6849 (DR0_REG, DR2_REG, DR4_REG): Renumber.
6850 (TR0_REG, TR1_REG, TR2_REG): New.
6851 (XD0_REG): Renumber.
6852 (UNSPEC_COMPACT_ARGS): New.
6853 (type): Added pt and ptabs.
6854 (length): Default to 4 on SHmedia. Default pt length to 12
6855 and 20 on SHmedia32 and SHmedia64, respectively.
6856 (pt): New function unit.
6857 (movdi, movsi): Add types pt and ptabs. Don't increment LABEL_NUSES.
6858 Add whitespace between operands of SHmedia instructions.
6860 (adddi3_media, addsi3_media): Adjust constraints.
6861 (subsi3) [SHmedia]: Force operand 1 into a register.
6862 (udivsi3_i1_media, udivsi3_i4_media): New.
6863 (udivsi3): Support SHmedia.
6864 (divsi3_i1_media, divsi3_i4_media): New.
6865 (divsi3): Support SHmedia.
6866 (anddi3, iordi3, xordi3): Adjust constraints.
6867 (zero_extendhidi2, zero_extendqidi2): New.
6868 (extendsidi2, extendhidi2, extendqidi2): New.
6869 (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6870 (pop_e, pop_fpul, pop_4): Likewise.
6871 (movsi_media): Support FP and BT registers.
6872 (movsi_media_nofpu): New. Adjust splits to DImode.
6873 (lduw, ldub): Renamed to zero_extend* above.
6874 (movqi_media): Fix typo.
6875 (movdi_media): Support FP and BT registers.
6876 (movdi_media_nofpu): New. Adjust splits for SHmedia32.
6877 (movdi_const_32bit): New.
6878 (shori_media): Require immediate operand. Use `u' for output.
6879 (movdf_media, movsf_media): Simplified.
6880 (movdf_media_nofpu, movsf_media_nofpu): New.
6881 (movdf, movsf): Adjust
6882 (movv2sf, movv2sf, movv16sf): New.
6883 (beq_media, beq_media_i): Adjust constraints. Don't use
6884 scratch BT register.
6885 (bne_media, bne_media_i): Likewise.
6886 (bgt_media, bgt_media_i): Likewise.
6887 (bge_media, bge_media_i): Likewise.
6888 (bgtu_media, bgtu_media_i): Likewise.
6889 (bgeu_media, bgeu_media_i): Likewise.
6890 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6891 bunordered): Emit jump insn. Force operands to registers when
6893 (jump_media, jump): Simplify.
6894 (call_compact, call_compact_rettramp): New.
6895 (call_value_compact, call_value_compact_rettramp): New.
6896 (call_media, call_value_media): Simplify.
6897 (sibcall_compact, sibcall_media): New.
6898 (call, call_value): Adjust for SHmedia and SHcompact.
6899 (sibcall, sibcall_value, untyped_call): Likewise.
6900 (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6901 (indirect_jump): Adjust for SHmedia.
6902 (casesi_jump_media): New.
6903 (nop): Re-enable for SHmedia.
6904 (call_site): Restrict to SH1.
6905 (casesi): Adjust for SHmedia.
6906 (casesi_shift_media, casesi_load_media): New.
6907 (return): Explicitly use PR register. Call return trampoline
6909 (return_i): Explicitly use PR register.
6910 (shcompact_return_tramp, shcompact_return_tramp_i): New.
6911 (return_media): Adjust.
6912 (shcompact_incoming_args): New.
6914 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6915 (movstrsi): Disable on SH5.
6916 (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6917 (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6918 (subsf3, subsf3_media): Likewise.
6919 (mulsf3, mulsf3_media, mac_media): Likewise.
6920 (divsf3, divsf3_media): Likewise.
6921 (floatdisf2, floatsisf2_media): Likewise. Adjust constraints.
6922 (floatsisf2, fux_truncsfsi2): Likewise.
6923 (fix_truncsfdi2, fix_truncsfsi2_media): Likewise. Adjust
6925 (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6926 (cmpunsf_media, cmpsf): Likewise.
6927 (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6928 (abssf2, abssf2_media): Likewise.
6929 (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6930 (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6931 (floatdidf2, floatsidf2_media): Likewise. Adjust constraints.
6932 (floatsidf2, fix_truncdfsi2): Likewise.
6933 (fix_truncdfdi2, fix_truncdfsi2_media): Likewise. Adjust
6935 (cmpeqdf_media, cmpgtdf_media): Likewise.
6936 (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6937 (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6938 (absdf2, absdf2_media): Likewise.
6939 (extendsfdf2, extendsfdf2_media): Likewise.
6940 (truncsfdf2, truncsfdf2_media): Likewise.
6941 * config/sh/sh64.h: New file.
6942 * config/sh/t-sh64: New file.
6943 * config/sh/shmedia.h: New file.
6944 * config/sh/ushmedia.h: New file.
6945 * config/sh/sshmedia.h: New file.
6946 * configure.in: Added sh64-*-elf.
6947 * configure: Rebuilt.
6948 2000-10-10 Alexandre Oliva <aoliva@redhat.com>
6949 * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6950 (reg_class_from_letter): Use `b' for TARGET_REGS.
6951 (print_operand): Support `%M', `%m', `AND' and
6952 `ASHIFTRT'. Do not precede constants with `#' on SHmedia.
6953 (andcosts): Adjust for SHmedia.
6954 (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6956 (target_reg_operand): New function.
6957 * config/sh/sh-protos.h (target_reg_operand): Declare.
6958 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6959 FP registers on SH5.
6960 (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6962 (TARGET_REGISTER_P): New macro.
6963 (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6964 (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6965 (EXTRA_CONSTRAINT_S): New macro.
6966 (EXTRA_CONSTRAINT): Adjust.
6967 (FLOAT_TYPE_SIZE): Define to 32.
6968 (Pmode): DImode on SHmedia.
6969 (CONST_COSTS): Adjust for SHmedia literals.
6970 (PREDICATE_CODES): Added target_reg_operand.
6971 (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6972 * config/sh/sh.md: Remove all attrs from SHmedia insns.
6973 (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6974 (cmpdi): Accept SHmedia.
6975 (movdicc_false, movdicc_true): New insns.
6976 (movdicc): New expand.
6977 (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6979 (addsi3_media): Match `S' constraint.
6980 (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6981 (negdi2): Expand for SHmedia.
6982 (one_cmpldi2): New expand.
6983 (zero_extendsidi2): Change from expand to insn.
6984 (extendsidi2): Add constraints.
6985 (movdi_media, movsi_media): Change `%x' to `%M'. Use `%m' for
6986 LD/ST address. Fix SI immediate loading split.
6987 (movhi_media, movqi_media, lduw, ldub): New insns.
6988 (movhi, movqi): Accept SHmedia.
6989 (shori_media, movdi_media): Relax input constraints. Split
6991 (movdf_media, movsf_media): New insn. New split to movdi.
6992 (movdf, movsf): Match on SHmedia.
6993 (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6994 bgeu_media): New insns and splits. New insns with `_i' suffix.
6995 (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6996 (bunordered): New expand.
6997 (jump_compact): Renamed from `jump'.
6998 (jump_media): New insn.
7000 (call_media, call_value_media): New insns.
7001 (call, call_value): Adjust.
7002 (indirect_jump_compact): Renamed from `indirect_jump'.
7003 (indirect_jump_media): New insn.
7004 (indirect_jump): New expand.
7005 (untyped_call, return): Accept SHmedia.
7006 (return_media): New insn.
7007 (prologue, epilogue, blockage): Accept SHmedia.
7008 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7009 (sunordered): New expand.
7010 (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7011 cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7012 (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7013 divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7014 fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7015 cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7016 abssf2_media): New insns.
7017 (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7018 cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7019 (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7020 floatdidf2, floatsidf2_media, fix_truncdfdi2,
7021 fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7022 cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7023 absdf2_media): New insns.
7024 (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7025 (extendsfdf2_media, truncdfsf2_media): New insns.
7026 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
7027 * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7028 * config/sh/sh.h (CONST_OK_FOR_J): Document.
7029 (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7030 * config/sh/sh.md (adddi3): New expand.
7031 (adddi3_media, adddi3z_media): New insns.
7032 (adddi3_compact): Renamed from adddi3.
7033 (addsi3_media): Use add.l r63 to add constant zero.
7034 (subdi3): New expand.
7035 (subdi3_media): New insn.
7036 (subdi3_compact): Renamed from subdi3.
7037 (mulsidi3): New expand.
7038 (mulsidi3_media): New insn.
7039 (mulsidi3_compact): Renamed from mulsidi3.
7040 (umulsidi3): New expand.
7041 (umulsidi3_media): New insn.
7042 (umulsidi3_compact): Renamed from umulsidi3.
7043 (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7044 (ashlsi3, ashrsi3, lshrsi3): Use them.
7045 (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7046 (ashldi3, ashrdi3, lshrdi3): Use them.
7047 (zero_extendsidi2): New expand.
7048 (extendsidi2): New insn.
7049 (movsi_media): New insn. Split to movdi to load constants.
7050 (movsi): Enable for shmedia.
7051 (movdi_media): New insn. Use shori_media to load wide constants.
7052 (short_media): New insn.
7053 (movdi): Enable for shmedia.
7054 2000-09-08 Alexandre Oliva <aoliva@redhat.com>
7055 * config/sh/sh.h (CPP_SPEC): Added `m5'.
7056 (SUBTARGET_CPP_SPEC): Added `!m5'.
7057 (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7058 (TARGET_SWITCHES): Added `5' and `5-compact'. Added SH1_BIT
7059 to all other SH variants.
7060 (TARGET_DEFAULT): Set to SH1_BIT.
7061 (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7062 (BITS_PER_WORD): Raise to 64 on shmedia.
7063 (MAX_BITS_PER_WORD): Change to 64.
7064 (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7065 (INT_TYPE_SIZE): Keep as 32.
7066 (UNITS_PER_WORD): Raise to 8 on shmedia.
7067 (MIN_UNITS_PER_WORD): Keep as 4.
7068 (POINTER_SIZE): Raise to 64 on shmedia.
7069 (CONST_OK_FOR_J): New macro.
7070 (CONST_OK_FOR_LETTER_P): Use it.
7071 (processor_type): Add PROCESSOR_SH5.
7072 * config/sh/sh.md: Conditionalize all expands, insns and
7073 splits to TARGET_SH1.
7075 (addsi3_compact): Renamed from...
7076 (addsi3): Now an expand.
7077 (addsi3_media, subsi3_media): New insns.
7078 (subsi3): Don't negate constants with SHmedia.
7080 * hooks.c: New file.
7081 * hooks.h: New file.
7082 * Makefile.in (HOOKS_H): New.
7083 (TARGET_DEF_H): Added $(HOOKS_H).
7084 (OBJS): Added hooks.o.
7085 (cfgcleanup.o, bb-reorder.o): Added target.h.
7086 (hooks.o): Added dependencies.
7087 * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7088 (TARGET_INITIALIZER): this.
7089 * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7090 * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7091 * bb-reorder.c: Include target.h.
7092 (reorder_basic_blocks): Skip if cannot modify jumps.
7093 * cfgcleanup.c: Include target.h.
7094 (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7096 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7098 * config/mips/mips.md (casesi_internal, casesi_internal_di):
7099 Protect jump delay slot instructions with .set noreorder and
7102 2002-02-08 Chris Demetriou <cgd@broadcom.com>
7104 * config/mips/mips.md (casesi_internal_di): Calculate
7105 the index into the target offset table correctly.
7107 2002-02-08 Richard Henderson <rth@redhat.com>
7109 * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7110 * final.c (output_addr_const): Accept and discard SUBREG.
7111 * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7112 mark them unknown instead.
7113 (simplify_subtraction): Handle RTX_UNKNOWN.
7114 (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7116 2002-02-08 David Edelsohn <edelsohn@gnu.org>
7118 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7120 2002-02-08 Richard Henderson <rth@redhat.com>
7122 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7124 2002-02-08 Andreas Jaeger <aj@suse.de>
7126 * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7127 * config/i386/t-linux64: New file.
7129 2002-02-08 Jakub Jelinek <jakub@redhat.com>
7131 * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7132 * c-parse.in (compstmt): Clear last_expr_type.
7134 2002-02-07 Richard Henderson <rth@redhat.com>
7136 * loop.c (strength_reduce): Sink final_value when not
7139 2002-02-07 David O'Brien <obrien@FreeBSD.org>
7141 * config/sparc/freebsd.h: Fix mismatched spec {.
7143 2002-02-07 Richard Henderson <rth@redhat.com>
7145 * cfgrtl.c: Include recog.h and insn-config.h.
7146 (keep_with_call_p): Fix general_operand invocation.
7147 * Makefile.in (cfgrtl.o): Update dependencies.
7149 2002-02-07 Kazu Hirata <kazu@hxi.com>
7151 * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7152 comment. Accept HImode only if TARGET_H8300.
7154 2002-02-07 Eric Christopher <echristo@redhat.com>
7156 * config/mips/crtn.asm: Cleanup #ifdefs.
7158 2002-02-07 Eric Christopher <echristo@redhat.com>
7160 * config/mips/crti.asm: Add changes for mips16. mips16 uses
7161 register 7 as RA instead of $31.
7162 * config/mips/crtn.asm: Ditto.
7163 * config/mips/mips.c (mips_move_2words): Add case for
7164 TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7165 (compute_frame_size): Fix typo.
7166 (save_restore_insns): Ditto. Make documentation about using
7167 register $7 as return register more precise.
7168 (mips_expand_epilogue): Fix comment. Add code to work around not
7169 being able to add to the stack pointer directly.
7170 * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7171 to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7174 2002-02-07 Tom Rix <trix@redhat.com>
7176 * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7177 immediates in ldu and stdu DS opcode field.
7178 * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7179 * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7180 * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7182 2002-02-07 Jeff Sturm <jsturm@one-point.com>
7184 * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7185 offset for stack bias.
7187 2002-02-07 H.J. Lu <hjl@gnu.org>
7189 * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7191 2002-02-07 Ulrich Weigand <uweigand@de.ibm.com>
7193 * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7195 Thu Feb 7 12:14:17 CET 2002 Jan Hubicka <jh@suse.cz>
7197 * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7198 * i386.c (x86_order_regs_for_local_alloc): New global function.
7199 * i386.h (REG_ALLOC_ORDER): CLeanup.
7200 (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7202 2002-02-07 Richard Henderson <rth@redhat.com>
7204 PR optimization/2463
7205 * alias.c (find_base_value): Recall base values for fixed hard regs.
7206 * loop.c (loop_regs_update): Don't use single_set on non-insns.
7208 2002-02-07 Alexandre Oliva <aoliva@redhat.com>
7210 * config/mips/mips.md (define_delay) [mips16]: Adjust required
7213 2002-02-06 Richard Henderson <rth@redhat.com>
7216 * stmt.c (resolve_operand_name_1): Take more care with mixed
7217 named and unnamed operands.
7219 2002-02-06 Janis Johnson <janis187@us.ibm.com>
7220 Jan Hubicka <jh@suse.cz>
7222 * loop.c (remove_constant_addition): Avoid clobbering a shared
7225 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7227 * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7228 * config/s390/t-linux64: New file.
7229 * config/s390/libgcc-glibc.ver: New file.
7231 2002-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7233 * config/s390/linux64.h: Delete file.
7234 * config/s390/s390x.h: New file.
7235 * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7236 as target header file.
7237 * config/s390/linux.h (TARGET_VERSION): Define depending on
7238 DEFAULT_TARGET_64BIT.
7239 (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7240 (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7241 (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7242 (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7243 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7244 (EXTRA_SPEC): New define.
7245 * config/s390/s390.h (TARGET_VERSION): Define depending on
7246 DEFAULT_TARGET_64BIT.
7247 (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7249 2002-02-06 Jason Merrill <jason@redhat.com>
7251 * c-decl.c (finish_function): Warn about a non-void function with
7252 no return statement and no abnormal exit.
7253 (current_function_returns_abnormally): New variable.
7254 (start_function): Clear it.
7255 (struct c_language_function): Add returns_abnormally.
7256 (push_c_function_context): Save it.
7257 (pop_c_function_context): Restore it.
7258 (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7259 (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7260 an explicit return type.
7261 * c-tree.h: Declare current_function_returns_abnormally.
7262 (C_FUNCTION_IMPLICIT_INT): New macro.
7263 * c-typeck.c (build_function_call): Set it.
7264 (c_expand_return): Set current_function_returns_value even if the
7267 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7270 * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7271 unsafe for reevaluation.
7273 2002-02-06 Jakub Jelinek <jakub@redhat.com>
7276 * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7277 EXPR_STMT, but COMPOUND_STMT, recurse into it.
7279 2002-02-06 Richard Henderson <rth@redhat.com>
7281 * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7282 be a general_operand. Dest for function value must be a pseudo.
7284 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
7286 * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7287 as SYMBOL_REFs from the constant pool.
7289 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
7291 * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7292 passed by invisible reference.
7294 2002-02-05 Richard Henderson <rth@redhat.com>
7296 * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7298 2002-02-06 Hans-Peter Nilsson <hp@bitrange.com>
7300 Implement using "base addresses" in insn operands as default.
7301 * config/mmix/mmix.c (mmix_conditional_register_usage): if
7302 -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7303 (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7304 used to read the rtx value.
7305 (mmix_target_asm_function_epilogue): Fix spacing.
7306 (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7307 (mmix_legitimate_address): Ditto.
7308 (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7309 should be loaded with a GETA insn. Don't allocate needless extra
7310 char for nul termination and fix misleading comment.
7311 (mmix_print_operand_address): Handle constants if
7312 TARGET_BASE_ADDRESSES.
7313 (mmix_output_register_setting): Use base addressing if
7314 TARGET_BASE_ADDRESSES and the number of insns is 3.
7315 * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7316 * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7317 to use R as constraint, add LDA to match s.
7318 * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7319 (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7320 (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7321 (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7322 (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7323 order with other fixed registers.
7324 (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7325 other parameter/call-clobbered registers.
7326 * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7327 -mbase-addresses, -mno-base-addresses.
7328 (MMIX Options): Ditto.
7330 2002-02-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
7332 * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7334 2002-02-06 Aldy Hernandez <aldyh@redhat.com>
7336 * config/rs6000/altivec.h: Change elem to _S_elem.
7338 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7340 * config/netbsd.h (WCHAR_TYPE): Define.
7341 (WCHAR_TYPE_SIZE): Ditto.
7343 * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7344 (WCHAR_UNSIGNED): Ditto.
7345 (WCHAR_TYPE_SIZE): Ditto.
7347 * config/arm/netbsd.h: Likewise.
7348 * config/i386/netbsd-elf.h: Likewise.
7349 * config/i386/netbsd.h: Likewise.
7350 * config/m68k/netbsd-elf.h: Likewise.
7351 * config/m68k/netbsd.h: Likewise.
7352 * config/ns32k/netbsd.h: Likewise.
7353 * config/sparc/netbsd.h: Likewise.
7354 * config/vax/netbsd.: Likewise.
7356 2002-02-05 Alexandre Oliva <aoliva@redhat.com>
7358 * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7359 * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New. Added to...
7360 (TARGET_INITIALIZER): this.
7361 * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7362 (BITFIELD_NBYTES_LIMITED): Markup fix.
7363 * tree.h (default_ms_bitfield_layout_p): Declare.
7364 (record_layout_info): Added prev_field.
7365 * tree.c (default_ms_bitfield_layout_p): New fn.
7366 * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7367 PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7368 * stor-layout.c: Include target.h.
7369 (start_record_layout): Initialize prev_field.
7370 (place_field): Handle MS bit-field layout, and disregard
7371 EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7372 PCC_BITFIELD_TYPE_MATTERS in this case. Update prev_field.
7373 * Makefile.in (stor-layout.o): Adjust dependencies.
7375 2002-02-05 Jason Merrill <jason@redhat.com>
7377 * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7379 2002-02-05 Andreas Jaeger <aj@suse.de>
7381 * crtstuff.c: Fix comments.
7383 2002-02-05 Richard Henderson <rth@redhat.com>
7386 * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7387 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7390 * config/mips/mips.c (function_arg): Handle TImode.
7391 (function_arg_advance): Likewise.
7393 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7395 * config/rs6000/altivec.h (vec_step_help): Rename to
7398 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7400 * config/rs6000/altivec.h: Fix typos.
7402 2002-02-05 Jason Thorpe <thorpej@wasabisystems.com>
7404 * config/arm/netbsd.h: Correct a comment.
7406 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7408 * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7409 building void typed builtins.
7411 * config/rs6000/altivec.h (vec_ld*): Fix typos.
7412 (vec_step): Implement for C++.
7414 Mon Feb 4 19:23:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7416 * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7418 2002-02-04 Richard Henderson <rth@redhat.com>
7420 * combine.c (nonzero_bits): Re-introduce special case for
7421 sp/fp/ap wrt REGNO_POINTER_ALIGN.
7423 2002-02-05 Aldy Hernandez <aldyh@redhat.com>
7425 * doc/extend.texi: Warn about unsupported usage of altivec
7428 * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7429 (altivec_predicate_*): New.
7431 * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7432 Add C++ version of vec_*() functions.
7434 * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7435 (bdesc_2arg): Remove altivec predicates.
7436 (altivec_expand_builtin): Handle predicates.
7437 (altivec_init_builtins): Handle predicates.
7438 (altivec_expand_predicate_builtin): New.
7440 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7442 * pa.c (DO_FRAME_NOTES): Move forward.
7443 (store_reg): Revise handling of frame notes.
7444 (load_reg): Likewise.
7445 (set_reg_plus_d): Likewise.
7446 (hppa_expand_prologue): Likewise.
7447 (hppa_expand_epilogue): Likewise.
7449 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7451 * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
7453 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7455 PR c/4475, c++/3780:
7456 * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
7457 * c-common.h (SWITCH_TYPE): Define.
7458 * c-typeck.c (c_start_case): Set SWITCH_TYPE.
7459 * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
7460 Rename spareness variable to sparseness.
7461 (expand_end_case_type): Renamed from expand_end_case, use orig_type
7462 if non-NULL instead of TREE_TYPE (orig_index).
7463 * tree.h (expand_end_case_type): Renamed from expand_end_case.
7464 (expand_end_case): Define using expand_end_case_type.
7465 * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
7466 to expand_end_case_type.
7467 * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
7469 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7471 * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
7472 (BIGGEST_ALIGNMENT): Change to 128.
7474 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7476 * pa32-linux.h (LINK_COMMAND_SPEC): Define.
7478 2002-02-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7480 * pa.md (call_internal_reg_64bit): Remove unused variable.
7482 2002-02-04 Nick Clifton <nickc@cambridge.redhat.com>
7484 * config/arm/arm.h (machine_function): Add uses_anonymous_args
7486 (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
7487 * config/arm/arm.c (current_function_anonymous_args): Delete,
7488 replace uses with cfun->machine->uses_anonymous_args.
7489 (arm_reorg): Do not reset uses_anonymous_args.
7491 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
7492 any geenral register.
7494 2001-02-04 Bernd Schmidt <bernds@redhat.com>s
7496 * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
7499 2002-02-04 Richard Henderson <rth@redhat.com>
7501 * combine.c (force_to_mode): Remove STACK_BIAS code.
7502 (nonzero_bits): Likewise. Replace sp/fp special case with
7503 REGNO_POINTER_ALIGN.
7505 * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
7506 (HARD_FRAME_POINTER_REGNUM): New.
7507 (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
7508 (FIXED_REGS, CALL_USED_REGS): Update.
7509 (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
7510 (CONDITIONAL_REGISTER_USAGE): Update for HFP.
7511 (HARD_REGNO_NREGS): Update for SFP.
7512 (STACK_POINTER_OFFSET): Include bias here ...
7513 (FIRST_PARM_OFFSET): ... not here.
7514 (STACK_BIAS): Remove.
7515 (INIT_EXPANDERS): New.
7516 (STARTING_FRAME_OFFSET): Do not include bias.
7517 (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
7518 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
7519 (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
7520 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
7521 * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
7522 * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
7523 (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
7524 (MUST_SAVE_REGISTER): Likewise.
7525 (sparc_flat_function_prologue): Likewise.
7526 (sparc_flat_function_epilogue): Likewise.
7527 (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
7528 (sparc_init_modes): SFP is GENERAL_REGS.
7529 (sparc_builtin_saveregs): SFP does not have bias applied.
7531 2002-02-04 Richard Henderson <rth@redhat.com>
7533 * config/alpha/alpha.c (current_function_is_thunk): Don't check
7534 current_function_is_thunk.
7535 (alpha_sa_mask): Distinguish between current_function_is_thunk
7536 called from ASM_OUTPUT_MI_THUNK and not.
7537 (alpha_does_function_need_gp): Thunks always need gp.
7538 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
7539 (alpha_output_mi_thunk_osf): New.
7540 * config/alpha/alpha-protos.h: Update.
7541 * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
7543 2002-02-04 Richard Sandiford <rsandifo@redhat.com>
7545 * c-typeck.c (build_c_cast): Warn when qualifiers are added to
7546 function types, not when they're taken away.
7548 Mon Feb 4 09:05:58 2002 Jeffrey A Law (law@redhat.com)
7550 * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
7551 CODE_LABEL and jump table when replacing a table jump with a
7554 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7556 * config/s390/s390-protos.h (legitimize_la_operand,
7557 s390_secondary_input_reload_class, s390_plus_operand,
7558 s390_expand_plus_operand): Add prototypes.
7560 config/s390/s390.c (s390_secondary_input_reload_class,
7561 s390_plus_operand, s390_expand_plus_operand): New functions.
7563 (struct s390_address): New member 'pointer'.
7564 (s390_decompose_address): Compute it.
7565 (legitimate_la_operand_p): Use it.
7566 (legitimize_la_operand): New function.
7567 (movti, movdi, movdf splitters): Call it.
7569 config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
7570 (PREDICATE_CODES): Add s390_plus_operand.
7572 config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
7573 (la_ccclobber): Allow GENERAL_REGS as output operand.
7575 (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
7576 *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
7577 (*la_64, *la_31, reload_indi, reload_insi): ... these.
7579 2002-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7581 * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
7582 register names for regular asm () construct.
7584 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7586 * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
7589 2002-02-04 Jakub Jelinek <jakub@redhat.com>
7591 * combine.c (recog_for_combine): Create a dummy insn with PATTERN
7594 2002-02-04 Hartmut Penner <hpenner@de.ibm.com>
7596 * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
7597 constant pool to be identical by string address and index.
7599 2002-02-04 Anthony Green <green@redhat.com>
7601 * output.h (SECTION_OVERRIDE): Define.
7602 * varasm.c (named_section): Obey SECTION_OVERRIDE.
7604 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7606 * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
7607 by existing arm*-*-netbsd* (a.out) target.
7608 (ns32k-*-netbsdelf*): Likewise.
7609 (sparc-*-netbsdelf*): Likewise.
7610 (vax-*-netbsdelf*): Likewise.
7612 2002-02-03 Danny Smith <dannysmith@users.sourceforge.net>
7614 * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
7615 headers and libobjc headers.
7617 2002-02-03 Mumit Khan <khan@nanotech.wisc.edu>
7619 * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
7620 (_mingw.h): Remove duplicate include.
7622 2002-02-03 Jason Thorpe <thorpej@wasabisystems.com>
7624 * config.gcc: Set cpu_type to m68k for 68010, as well.
7625 (m68010-*-netbsdelf*): New...
7626 (m68k*-*-netbsdelf*): ...targets.
7627 * config/m68k/netbsd-elf.h: New file.
7629 2002-02-02 Kazu Hirata <kazu@hxi.com>
7631 * config/h8300/h8300.c (hand_list): Move inside function_arg.
7633 2002-02-02 Kazu Hirata <kazu@hxi.com>
7635 * config/h8300/h8300.c (h8_push_ops): Move inside
7637 (h8_pop_ops): Likewise.
7638 (h8_move_ops): Likewise.
7640 2002-02-02 Kazu Hirata <kazu@hxi.com>
7642 * config/h8300/h8300.c (os_task): Make it static.
7643 (monitor): Likewise.
7644 (pragma_saveall): Likewise.
7646 2002-02-02 Alexandre Oliva <aoliva@redhat.com>
7648 * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
7649 constant is a valid sign-extension for Pmode.
7651 2002-02-02 Kazu Hirata <kazu@hxi.com>
7653 * config/h8300/h8300.c: Fix formatting.
7655 2002-02-02 Kazu Hirata <kazu@hxi.com>
7657 * config/h8300/h8300.md: Fix formatting.
7659 2002-02-02 Kazu Hirata <kazu@hxi.com>
7661 * config/h8300/h8300.md (one_cmpl patterns): Tighten the
7662 predicates of operands[1]. Split the patterns for each
7665 2002-02-02 Kazu Hirata <kazu@hxi.com>
7667 * config/h8300/h8300.md (xor patterns): Tighten the predicates
7668 of operands[1] to register_operand.
7670 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7672 * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7673 * cpphash.c (_cpp_init_hashtable): Similarly.
7674 * cppinit.c (cpp_create_reader): Default the signed_char flag.
7675 (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7676 (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7677 (cpp_handle_option): Handle the new options.
7678 * cpplex.c (cpp_interpret_charconst): Use new flag.
7679 * cpplib.h (struct cpp_options): New member signed_char.
7680 * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7681 (cpp_options): Handle -fsigned-char and -funsigned-char.
7682 (static_specs): Remove signed_char_spec.
7683 (do_spec1): Don't handle %c.
7684 * system.h: Poison SIGNED_CHAR_SPEC.
7685 * tradcif.y (yylex): Use flag_signed_char.
7686 * tradcpp.h (flag_signed_char): New.
7687 * tradcpp.c (flag_signed_char): New.
7688 (main): Handle new command-line options.
7689 (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7691 * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7692 * avr/avr.h: Remove old comments.
7693 * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7694 (CC1_SPEC): Pass -fsigned-char if -mic*.
7695 (SIGNED_CHAR_SPEC): Remove.
7697 * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7699 2002-02-01 Eric Christopher <echristo@redhat.com>
7701 From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7702 * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7703 * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7704 (ASM_OUTPUT_REG_POP): Ditto.
7706 2002-02-02 Neil Booth <neil@daikokuya.demon.co.uk>
7708 * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7711 2002-02-02 Jakub Jelinek <jakub@redhat.com>
7713 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7715 2002-02-02 Jakub Jelinek <jakub@redhat.com>
7718 * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7721 2002-02-01 Janis Johnson <janis187@us.ibm.com>
7723 * cfganal.c: Include tm_p.h.
7724 (keep_with_call_p): Fix the test that determines if a register holds
7725 the return value of a call.
7727 2002-02-01 DJ Delorie <dj@redhat.com>
7729 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7730 we are given conflicting registers, switch to the other one we
7731 had allocated for us.
7732 * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7733 as TImode so we know when the "other" register is available.
7735 2002-02-01 David O'Brien <obrien@FreeBSD.org>
7737 * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7740 2002-02-01 Janis Johnson <janis187@us.ibm.com>
7742 * cfganal.c (keep_with_call_p): New function.
7743 (flow_call_edges_add): Prevent splitting a block between a call and
7744 a single-set instruction that should be kept in the same block.
7746 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
7748 * doc/install.texi (avr): Update outdated URL.
7750 2002-01-30 Andrew Haley <aph@cambridge.redhat.com>
7752 * config/stormy16/stormy16.md (pushqi): New.
7756 (movhi): Remove stack operands.
7758 * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7759 nonimmediate_nonstack_operand.
7760 * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7762 * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7765 2002-01-31 Jason Merrill <jason@redhat.com>
7767 * Makefile.in (c-parse.c): Handle .output file.
7768 * objc/Make-lang.in (objc-parse.c): Likewise.
7770 2002-02-01 Alexandre Oliva <aoliva@redhat.com>
7772 * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7773 the -me[lb] option is given. Don't output the default flag
7776 2002-01-31 Zack Weinberg <zack@codesourcery.com>
7778 * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7779 the primary source file; this has not been done yet.
7780 * c-decl.c (c_expand_body): Reset input_filename from
7781 DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7783 2002-01-31 Kazu Hirata <kazu@hxi.com>
7785 * rtlanal.c (subreg_regno_offset): Do not use
7786 SUBREG_REGNO_OFFSET.
7787 * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7788 * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7790 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7792 * gccbug.in: Follow GNU Coding Standards for --version. Use GCC
7793 version rather than GNATS version in --version output.
7795 2002-01-31 Richard Sandiford <rsandifo@redhat.com>
7797 * ifcvt.c (noce_process_if_block): Make a copy of the destination
7798 when copying back from a temporary.
7800 2002-01-30 Richard Henderson <rth@redhat.com>
7802 * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7803 and new_dest are the same.
7805 2002-01-30 Richard Henderson <rth@redhat.com>
7808 * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7809 * rtl.c (note_insn_name): Update.
7810 * emit-rtl.c (remove_unnecessary_notes): Kill it.
7811 * stmt.c (expand_end_loop): Kill jump opt code. Use LOOP_END_TOP_COND
7812 to perform loop rotation.
7813 (expand_exit_loop_top_cond): New.
7814 * tree.h (expand_exit_loop_top_cond): Declare it.
7815 * c-semantics.c (genrtl_while_stmt): Use it.
7816 (genrtl_for_stmt): Likewise.
7818 2002-01-30 Alexandre Oliva <aoliva@redhat.com>
7820 * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7821 arguments to 64-bit boundaries on 64-bit ABIs.
7823 2002-01-30 Steve Ellcey <sje@cup.hp.com>
7825 * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7827 2002-01-31 Joseph S. Myers <jsm28@cam.ac.uk>
7829 * c-decl.c (grokdeclarator): Handle type being a typedef for an
7832 2002-01-30 David O'Brien <obrien@FreeBSD.org>
7834 * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7835 * config/sparc/sparc_bi.h: Remove file.
7836 * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7838 2002-01-30 Richard Henderson <rth@redhat.com>
7840 * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7842 2002-01-30 Zack Weinberg <zack@codesourcery.com>
7844 * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7846 2002-01-30 Jason Merrill <jason@redhat.com>
7848 * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7849 (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7850 (reg_save): Use DW_CFA_offset_extended_sf instead.
7852 * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7854 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7856 * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7859 2002-01-29 Aldy Hernandez <aldyh@redhat.com>
7861 * rs6000.md ("*call_value_local32"): Remove constraints.
7862 ("*call_value_local64"): Same.
7863 ("*call_value_indirect_nonlocal_aix32"): Same.
7864 ("*call_value_nonlocal_aix32"): Same.
7865 ("*call_value_indirect_nonlocal_aix64"): Same.
7866 ("*call_value_nonlocal_aix64"): Same.
7867 ("*call_value_nonlocal_sysv"): Same.
7869 2002-01-29 Richard Henderson <rth@redhat.com>
7871 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7873 2002-01-29 Richard Henderson <rth@redhat.com>
7875 * expr.c (force_operand): Ignore flag_pic for detecting pic
7877 * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7878 for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7879 * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7880 instead of open-coded loop.
7881 * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7882 be fixed when in use.
7884 2002-01-29 Richard Henderson <rth@redhat.com>
7886 * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7887 * sched-rgn.c (propagate_deps): Update them.
7888 * sched-deps.c (sched_analyze_insn): Update them. Flush the
7889 clobbers list when either gets too long.
7891 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7893 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7894 and INDEX_REGS the same as GENERAL_REGS.
7895 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7897 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7899 * tree.c (build_nonstandard_integer_type): Correct prototype.
7901 2002-01-29 Ulrich Weigand <uweigand@de.ibm.com>
7903 * config/s390/s390.md (movstrsico, movstrdix_64,
7904 movstrsix_31): Remove, replace by ...
7905 (movstrdi_short, movstrsi_short, movstrdi_long,
7906 movstrsi_long): ... these. New.
7907 (movstrdi, movstrsi): Adapt.
7909 (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7910 ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7911 Remove unnecessary CC clobber.
7912 (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7913 *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7915 (divmoddi4): Don't partially initialize TImode register.
7917 2002-01-29 Geoffrey Keating <geoffk@redhat.com>
7919 * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7921 2002-01-29 Richard Henderson <rth@redhat.com>
7923 * flow.c (print_rtl_and_abort): Remove.
7924 (print_rtl_and_abort_fcn): Remove.
7925 (verify_local_live_at_start): Use dump_bb instead.
7926 (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7927 (verify_wide_reg_1): Return 2 on mode test failure.
7929 2002-01-29 Neil Booth <neil@daikokuya.demon.co.uk>
7931 PR c/3325, c/3326, c/2511, c/3347
7932 * c-decl.c (enum_decl_context): Remove BITFIELD.
7933 (grokdeclarator): Take bitfield width as an input.
7934 Ensure bitfields are given the correct type. Perform
7935 bitfield width validation with build_bitfield_integer_type
7936 rather than waiting for finish_struct.
7937 (grok_typename, grok_typename_in_parm_context, start_decl,
7938 push_parmdecl, grokfield, start_function): Update calls to
7940 (build_bitfield_integer_type): New function.
7941 (finish_struct): Move bitfield validation to grokdeclarator
7942 and build_bitfield_integer_type.
7943 * tree.c (build_nonstandard_integer_type): New function.
7944 * tree.h (build_nonstandard_integer_type): New prototype.
7946 * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7948 2002-01-29 Jakub Jelinek <jakub@redhat.com>
7951 * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7952 don't ignore unrecognized -W* options.
7953 (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7954 * cpplib.h (cpp_handle_option): Adjust prototype.
7955 * c-decl.c (c_decode_options): Pass 0 as last argument to
7959 * gcc.c (cpp_unique_options): Split from cpp_options.
7960 (cpp_options): Source cpp_unique_options.
7961 (default_compilers): Use cpp_unique_options instead of cpp_options
7962 when used together with cc1_options.
7963 (static_specs): Add cpp_unique_options.
7964 * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7965 when used together with cc1_options.
7967 2002-01-29 Kazu Hirata <kazu@hxi.com>
7969 * config/h8300/h8300-protos.h: Update the prototype of
7971 * config/h8300/h8300.c (output_a_shift): Remove an unused
7972 argument 'insn'. Remove redundant code.
7973 * config/h8300/h8300.md: Adust to the new prototype of
7976 2002-01-29 Kazu Hirata <kazu@hxi.com>
7978 * config/h8300/h8300-protos.h: Update the prototypes of
7979 emit_a_rotate and expand_a_rotate.
7980 * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7981 first argument to 'enum rtx_code'.
7982 (expand_a_rotate): Likewise.
7984 2002-01-28 Kazu Hirata <kazu@hxi.com>
7986 * config/h8300/h8300-protos.h: Update the prototype of
7988 * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7990 * config/h8300/h8300.md: Adjust to the new prototype.
7992 2002-01-28 Kazu Hirata <kazu@hxi.com>
7994 * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7997 2002-01-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
7999 * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8000 is a fixed register before returning pic_offset_table_rtx.
8001 * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8002 when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8004 2002-01-28 Jason Merrill <jason@redhat.com>
8006 * dwarf2.h: Sync with src version.
8008 2002-01-28 Paul Koning <pkoning@equallogic.com>
8010 * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8012 * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8013 * doc/extend.texi (__builtin_prefetch): Update documentation:
8014 first argument is now const void ptr.
8016 2002-01-28 Kazu Hirata <kazu@hxi.com>
8018 * config/h8300/h8300-protos.h: Remove an unused prototype.
8020 2002-01-28 Roman Zippel <zippel@linux-m68k.org>
8022 * toplev.c (lang_independent_init): Round up identifier size.
8024 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8026 * config.gcc: Revert previous change.
8028 2002-01-28 Andris Pavenis <pavenis@latnet.lv>
8030 * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8032 2002-01-28 Richard Earnshaw <rearnsha@arm.com>
8034 * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8035 (*-*-netbsd*): Always use collect2. Remove collect2 settings from
8036 other non-elf netbsd config frags.
8037 * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8038 collect2 will does that.
8039 * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8040 shared-lib frobbing will work.
8042 2002-01-28 Kazu Hirata <kazu@hxi.com>
8044 * config/h8300/h8300.h: Fix formatting.
8045 * config/h8300/h8300.md: Likewise.
8047 2002-01-28 Loren J. Rittle <ljrittle@acm.org>
8049 * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8050 the old, removed AAA_standards fix.
8051 * fixinc/fixincl.x: Rebuilt.
8053 2002-01-28 Hans-Peter Nilsson <hp@axis.com>
8055 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8056 atexit call in crtbegin, hooked in after call to frame_dummy;
8057 register EH before registering __fini__start.
8059 2002-01-28 Aldy Hernandez <aldyh@redhat.com>
8061 * config/rs6000/altivec.h: Remove spurious semicolons.
8063 2002-01-27 Kazu Hirata <kazu@hxi.com>
8065 * config/h8300/h8300.md: Replace dead bit extraction patterns
8066 with ones that work.
8068 Sun Jan 27 13:23:40 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8070 * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8071 if not STRICT_ALIGNMENT.
8072 * rtl.h (MEM_ALIGN): Likewise.
8074 2002-01-27 Craig Rodrigues <rodrigc@gcc.gnu.org>
8076 * doc/invoke.texi (-fdump-translation-unit): Revert this
8077 patch: 2001-10-21 Craig Rodrigues <rodrigc@gcc.gnu.org>
8079 2002-01-27 Kazu Hirata <kazu@hxi.com>
8081 * config/h8300/h8300.md (define_constants): New.
8082 (anonymous patterns) Use defined constants appropriately.
8084 2002-01-27 Kazu Hirata <kazu@hxi.com>
8086 * config/h8300/h8300.c (function_arg): Remove redundant code.
8088 2002-01-26 Richard Henderson <rth@redhat.com>
8090 * sched-deps.c (reg_pending_uses_head): New.
8091 (reg_pending_barrier): Rename from reg_pending_sets_all.
8092 (find_insn_list): Don't mark inline.
8093 (find_insn_mem_list): Remove.
8094 (add_dependence_list, add_dependence_list_and_free): New.
8095 (flush_pending_lists): Replace only_write param with separate
8096 for_read and for_write parameters. Update all callers. Use
8097 add_dependence_list_and_free.
8098 (sched_analyze_1): Do not add reg dependencies here; just set
8099 the pending bits. Use add_dependence_list.
8100 (sched_analyze_2): Likewise.
8101 (sched_analyze_insn): Replace schedule_barrier_found with
8102 reg_pending_barrier. Add all dependencies for pending reg
8103 uses, sets, and clobbers.
8104 (sched_analyze): Don't add reg dependencies for calls, just
8105 set pending bits. Use regs_invalidated_by_call. Treat
8106 sched_before_next_call as a normal list, not a fake insn.
8107 (init_deps): No funny init for sched_before_next_call.
8108 (free_deps): Free pending mems lists. Don't zero reg_last.
8109 (init_deps_global): Init reg_pending_uses.
8110 (finish_deps_global): Free it.
8111 * sched-int.h (deps): Make in_post_call_group_p boolean. Update docs.
8112 (find_insn_mem_list): Remove.
8113 * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8114 (propagate_deps): Use them. Zero temp mem lists.
8116 2002-01-26 Richard Henderson <rth@redhat.com>
8118 * Makefile.in (CRTSTUFF_CFLAGS): New.
8119 (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8120 * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8121 crtstuff.c instead of alpha assembly version.
8122 * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8123 entire dummy function sequence. Use FORCE_CODE_SECTION_ALIGN
8124 not FORCE_{INIT,FINI}_SECTION_ALIGN.
8125 (__do_global_dtors_aux): Mark used.
8126 (frame_dummy, __do_global_ctors_aux): Mark used.
8127 (fini_dummy, init_dummy): Remove.
8129 * config/alpha/crtbegin.asm: Remove file.
8130 * config/alpha/crtend.asm: Remove file.
8131 * config/alpha/t-crtbe: Remove file.
8132 * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8133 (LINK_EH_SPEC): New.
8135 * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8136 FORCE_INIT_SECTION_ALIGN hack. Register __fini_start before
8137 calling constructors.
8138 * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8140 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8141 * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8142 CRT_END_INIT_DUMMY hack.
8143 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8144 FORCE_{INIT,FINI}_SECTION_ALIGN.
8146 * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8147 FORCE_{INIT,FINI}_SECTION_ALIGN.
8149 * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8150 invocation sequence.
8151 * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8153 * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8154 (FORCE_CODE_SECTION_ALIGN): New.
8156 2002-01-26 Richard Henderson <rth@redhat.com>
8158 * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8160 2002-01-26 Richard Henderson <rth@redhat.com>
8162 * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8163 (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8165 2002-01-26 Kazu Hirata <kazu@hxi.com>
8167 * config/h8300/h8300.md: Remove bit extraction patterns that
8168 cannot be triggered.
8169 Restrict each bit extraction pattern to a variant on which the
8172 2002-01-26 Joseph S. Myers <jsm28@cam.ac.uk>
8174 * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8176 2002-01-26 Kazu Hirata <kazu@hxi.com>
8178 * config/h8300/h8300.md: Remove bit test patterns that cannot
8180 Restrict each bit test pattern to a variant on which the
8183 2002-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8185 * builtins.c (expand_builtin_strncat): Remove redundant check for
8188 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8190 * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8192 * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8195 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8197 * dbxout.c (dbxout_init): Use assemble_name rather than just
8198 stripping off the first character.
8199 (dbxout_source_file): Likewise.
8201 2002-01-25 DJ Delorie <dj@redhat.com>
8203 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8204 using rtx_equal_p, not by comparing pointers.
8206 2002-01-25 Steve Ellcey <sje@cup.hp.com>
8208 * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8209 for PIC_OFFSET_TABLE_REGNUM.
8210 (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8212 2002-01-25 David O'Brien <obrien@FreeBSD.org>
8214 * config.gcc (x86_64-*-freebsd*): New target.
8215 (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8217 (i[34567]86-*-freebsd*): Don't include svr4.h.
8218 * config/i386/freebsd64.h: New file.
8220 2002-01-25 Douglas B Rupp <rupp@gnat.com>
8222 * config/alpha/x-vms (version): Make static.
8224 * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8225 in previous checkin.
8227 * Makefile.in (install-headers-cp): New target.
8228 * config.gcc (alpha-dec-*vms*): Install headers with
8231 Fri Jan 25 22:42:49 CET 2002 Jan Hubicka <jh@suse.cz>
8233 * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8236 Fri Jan 25 08:26:19 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8238 * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8239 of compare_tree_int.
8240 (expand_builtin_strncat): Likewise.
8241 * c-decl.c (finish_struct): Use tree_low_cst.
8242 * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8243 * tree.c (compare_tree_int): Likewise.
8245 2002-01-25 Ulrich Weigand <uweigand@de.ibm.com>
8247 * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8248 adjustments even if they are implemented by more than two insns.
8250 Fri Jan 25 20:43:56 CET 2002 Jan Hubicka <jh@suse.cz>
8252 * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8253 * df.h (struct ref): Kill B.
8254 (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8256 * basic-block.h (PROP_EQUAL_NOTES): New flag.
8257 * flow.c (propagate_one_insn): Use it.
8258 (mark_used_regs): Handle NIL.
8260 2002-01-25 Geoffrey Keating <geoffk@redhat.com>
8262 * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8265 2002-01-25 David Edelsohn <edelsohn@gnu.org>
8267 * rs6000.md (prefetch): Make address V4SI mode so that the address
8268 is restricted to legitimate form for instruction.
8270 2002-01-25 Bob Wilson <bob.wilson@acm.org>
8272 * doc/install.texi (xtensa-*-elf): New target.
8273 (xtensa-*-linux*): New target.
8274 * doc/contrib.texi: Add myself.
8276 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
8278 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8279 purpose register to hold an SImode (or smaller) value.
8281 2002-01-25 Jakub Jelinek <jakub@redhat.com>
8283 * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8285 * crtstuff.c: Likewise.
8287 2002-01-25 Kazu Hirata <kazu@hxi.com>
8289 * config/h8300/h8300.md (negation patterns): Tighten
8290 predicates to register_operand.
8292 2002-01-24 Aldy Hernandez <aldyh@redhat.com>
8294 * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8297 * builtins.c (expand_builtin_prefetch): Same.
8299 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8301 * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8304 2002-01-24 Kazu Hirata <kazu@hxi.com>
8306 * config/h8300/h8300.c (print_operand): Remove support for
8307 operand character 'A'.
8308 * config/h8300/h8300.md (three anonymous patterns): Replace
8309 operand character 'A' with either 'T' or 'S'.
8311 2002-01-24 Kazu Hirata <kazu@hxi.com>
8313 * config/h8300/h8300.c (print_operand): Remove support for
8314 operand character 'U'.
8316 2002-01-24 Andris Pavenis <pavenis@latnet.lv>
8318 * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8320 2002-01-24 Nick Clifton <nickc@cambridge.redhat.com>
8322 * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8323 values to be assigned to the stack pointer.
8325 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
8327 * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8328 to const_double needs to be done right for big-endian systems.
8330 2002-01-24 Jason Merrill <jason@redhat.com>
8333 * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8334 to can_throw_internal.
8336 2002-01-23 Richard Henderson <rth@redhat.com>
8338 * fold-const.c (fold): Change UINT_MAX test to check vs precision
8339 rather than TYPE_MAX_VALUE. Fix indentation and a bogus negation.
8341 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8343 * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8344 (symGOT2reg): Use them, then set as GOT value as unchanging.
8345 (symGOTOFF2reg): Set REG_EQUAL note. Use a different pseudo
8346 as a temporary, if possible.
8347 (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC. Emit
8348 sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8350 2002-01-23 Kazu Hirata <kazu@hxi.com>
8352 * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8353 accept to accept 0x80 as operands[2].
8355 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8357 * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8359 2002-01-23 Richard Henderson <rth@redhat.com>
8361 * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8363 2002-01-23 Aldy Hernandez <aldyh@redhat.com>
8365 * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8366 (parmlist_or_identifiers_1): Verify that only a parmlist follows
8369 2002-01-23 Richard Henderson <rth@redhat.com>
8371 * expr.c (move_by_pieces_1): Extend size before negation.
8373 * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8374 (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8375 (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8376 * config/m68k/t-m68kelf: Likewise.
8378 2002-01-23 Bob Wilson <bob.wilson@acm.org>
8380 * config/xtensa/elf.h: New file.
8381 * config/xtensa/lib1funcs.asm: New file.
8382 * config/xtensa/lib2funcs.S: New file.
8383 * config/xtensa/linux.h: New file.
8384 * config/xtensa/t-xtensa: New file.
8385 * config/xtensa/xtensa-config.h: New file.
8386 * config/xtensa/xtensa-protos.h: New file.
8387 * config/xtensa/xtensa.c: New file.
8388 * config/xtensa/xtensa.h: New file.
8389 * config/xtensa/xtensa.md: New file.
8390 * config.gcc (xtensa-*-elf*): New target.
8391 (xtensa-*-linux*): New target.
8392 * cse.c (canon_hash): Compare rtx pointers instead of register
8393 numbers. This is required for the Xtensa port.
8394 * integrate.c (copy_insn_list): Handle case where the static
8395 chain is in memory and the memory address has to be copied to
8397 * doc/invoke.texi (Option Summary): Add Xtensa options.
8398 (Xtensa Options): New node.
8399 * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8401 2002-01-23 Zack Weinberg <zack@codesourcery.com>
8403 * diagnostic.c (internal_error): Do ICE suppression only
8404 when ENABLE_CHECKING is not defined.
8406 * c-typeck.c (require_complete_type): Return error_mark_node
8407 if type is error_mark_node.
8409 2002-01-23 Janis Johnson <janis187@us.ibm.com>
8411 * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8412 -Os and issue a warning.
8414 2002-01-23 Zack Weinberg <zack@codesourcery.com>
8416 * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8417 current (lack of) need for host configuration by hand.
8419 * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8420 references. Documentation of some target macros moved from
8421 hostconfig.texi to tm.texi.
8423 2002-01-23 Will Cohen <wcohen@redhat.com>
8425 * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8428 2002-01-23 Kazu Hirata <kazu@hxi.com>
8430 * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8433 2002-01-23 Jason Merrill <jason@redhat.com>
8435 * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8437 * function.c (assign_parms): Don't put args of inline functions
8438 into registers when not optimizing.
8440 2002-01-23 Nick Clifton <nickc@cambridge.redhat.com>
8442 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
8443 (prologue_use): New pattern.
8444 * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
8445 preference to gen_rtx_USE.
8446 (thumb_expand_prologue): Use gen_prologue_use in preference to
8448 (thumb_expand_epilogue): Use gen_prologue_use in preference to
8451 2002-01-23 Hans-Peter Nilsson <hp@bitrange.com>
8453 * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
8455 2002-01-23 Neil Booth <neil@daikokuya.demon.co.uk>
8458 * doc/extend.texi: Correct documentation of __alignof__.
8460 2002-01-22 Zack Weinberg <zack@codesourcery.com>
8462 * params.h: Rename arguments of DEFPARAM so that it will be
8463 recognized as a translation keyword.
8465 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8467 * extend.texi: Document altivec functions.
8468 Fix N-bit adjectives in X86 builtin documentation.
8470 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
8472 * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
8473 auto_inc_dec values.
8475 2002-01-22 Richard Earnshaw <rearnsha@arm.com>
8477 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
8479 (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
8481 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
8483 * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
8485 2002-01-22 Richard Henderson <rth@redhat.com>
8487 * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
8488 copy_insn not copy_rtx.
8490 2002-01-23 Alan Modra <amodra@bigpond.net.au>
8492 * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
8493 "nonzero" as that might add "1" bits. Ensure "constop" is
8494 properly sign extened.
8495 (force_to_mode): Tweak for sign extended constop.
8497 2002-01-22 Richard Henderson <rth@redhat.com>
8499 * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
8500 for_each_rtx instead of assuming we're already looking at the MEM.
8501 (split_small_symbolic_mem_operand): Likewise.
8502 * config/alpha/alpha.h (PREDICATE_CODES): Update.
8503 * config/alpha/alpha.md (small symbolic memory splitters): Update.
8505 2002-01-22 Richard Henderson <rth@redhat.com>
8507 * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
8508 sequence number for the literal.
8509 (divmoddi_internal_er): Likewise.
8511 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8514 * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
8515 in LIBICONV variable.
8516 * configure: Regenerated.
8518 2002-01-22 Krister Walfridsson <cato@df.lth.se>
8520 * dependence.c (build_def_use): Remove array_idx.
8522 * dwarfout.c (last_filename): Remove.
8523 (output_compile_unit_die): Remove last_filename.
8525 2002-01-22 Roger Sayle <roger@eyesopen.com>
8526 Richard Henderson <rth@redhat.com>
8529 * fold-const.c (fold): Optimize unsigned comparisons against
8530 UINT_MAX (and similar unsigned constants).
8532 2002-01-22 Janis Johnson <janis187@us.ibm.com>
8534 * Makefile.in (loop.o): Depend on OPTABS_H.
8535 * loop.c (emit_prefetch_instructions): Check the prefetch operand
8536 against the predicate.
8539 * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
8540 for the address operand.
8542 2002-01-22 Richard Henderson <rth@redhat.com>
8544 * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
8546 2002-01-22 Craig Rodrigues <rodrigc@gcc.gnu.org>
8549 * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
8552 2002-01-22 Jason Thorpe <thorpej@wasabisystems.com>
8554 * config.gcc (x86_64-*-netbsd*): New target.
8555 * config/i386/netbsd64.h: New file.
8557 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8559 * regrename.c (kill_value): Fix typo.
8561 2002-01-22 Aldy Hernandez <aldyh@redhat.com>
8563 * doc/tm.texi: Remove STARTING_FRAME_PHASE.
8565 * config/rs6000/rs6000.h: Same.
8567 * function.c (instantiate_virtual_regs): Remove
8568 STARTING_FRAME_PHASE.
8569 (assign_stack_local_1): Same.
8570 Calculate frame phase.
8572 2002-01-22 Nick Clifton <nickc@redhat.com>
8574 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
8575 variable declaration to outer scope in order to simplify
8577 (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
8578 arm_hard_regno_mode_ok.
8579 * config/arm/arm-protos.h: Add a prototype for
8580 arm_hard_regno_mode_ok.
8581 * config/arm/arm.c (soft_df_operand): Remove now redundant
8582 check for DImode values using IP_REGNUM.
8583 (nonimmediate_soft_df_operand): Remove now redundant check for
8584 DImode values using IP_REGNUM.
8585 (arm_hard_regno_mode_ok): New function. New check: make sure
8586 that DImode values are not stored in IP_REGNUM.
8588 * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
8590 (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
8592 2002-01-22 Jason Merrill <jason@redhat.com>
8594 * c-semantics.c (genrtl_compound_stmt): Only check nesting
8595 consistency if this COMPOUND_STMT is scoped.
8597 2002-01-22 Kazu Hirata <kazu@hxi.com>
8599 * predict.c: Fix formatting.
8600 * print-tree.c: Likewise.
8601 * protoize.c: Likewise.
8604 * sbitmap.h: Likewise.
8606 * sched-deps.c: Likewise.
8607 * sched-vis.c: Likewise.
8608 * sdbout.c: Likewise.
8609 * sibcall.c: Likewise.
8611 * ssa-ccp.c: Likewise.
8612 * ssa-dce.c: Likewise.
8614 * stor-layout.c: Likewise.
8615 * system.h: Likewise.
8617 Tue Jan 22 06:26:33 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8619 * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
8620 if fits in bounds of base type.
8622 * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
8623 (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
8624 (add_bound_info, default): If can't find a context, make a
8626 (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
8628 2002-01-22 Hans-Peter Nilsson <hp@axis.com>
8630 * c-typeck.c (parser_build_binary_op): If result from
8631 build_binary_op is ERROR_MARK just return error_mark_node without
8634 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
8636 * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
8637 Split a.out-specific bits into...
8638 * config/netbsd-aout.h: ...this.
8639 * config/netbsd-elf.h: New file.
8640 * config/alpha/netbsd-elf.h: Remove.
8641 * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
8642 * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
8643 (STARTFILE_SPEC): Remove redundant definition.
8644 (ENDFILE_SPEC): Likewise.
8645 (LINK_SPEC): Likewise.
8646 (CPP_SPEC): Likewise.
8647 (ASM_SPEC): Likewise.
8648 (LIB_SPEC): Likewise.
8649 (SWITCH_TAKES_ARG): Likewise.
8650 (TARGET_MEM_FUNCTIONS): Likewise.
8651 (CPP_PREDEFINES): Redefine.
8652 (ASM_FINAL_SPEC): Remove redefinition.
8653 (ASM_COMMENT_START): Redefine.
8654 (FUNCTION_PROFILER): Define.
8655 (TARGET_VERSION): Redefine.
8656 Comment and formatting cleanup.
8657 * config/i386/netbsd.h: Include <netbsd-aout.h>.
8658 * config/m68k/netbsd.h: Include <netbsd-aout.h>.
8659 * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
8660 big- or little-endian.
8661 * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
8662 * config.gcc (*-*-netbsd*): Add definitions common to all
8664 (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
8665 gnu_ld definitions. Add netbsd-elf.h to and remove
8666 alpha/netbsd-elf.h from tm_file. Remove alpha/t-crtfm from
8667 tmake_file, and don't lose previous tmake_file contents.
8668 (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
8669 (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
8670 gnu_ld definitions. Add netbsd-elf.h to tm_file.
8671 (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8672 (mipsel-*-netbsd*): Rename this to...
8673 (mips*-*-netbsd*): ...this. Add elfos.h to tm_file. Add
8674 mips/little.h to tm_file for mips*el-*.
8675 (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8676 (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8677 (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8679 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8681 * pa-protos.h (reg_before_reload_operand): New function prototype.
8682 * pa.c (reg_before_reload_operand): New function implementation.
8683 * pa.md (decrement_and_branch_until_zero, movb): Use it. Change "!*m"
8686 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8688 * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8690 2002-01-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
8692 * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8693 (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8694 (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8695 (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8696 (ENDFILE_SPEC): Undefine.
8697 (STARTFILE_SPEC): Redefine for PA.
8699 2002-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8701 * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8703 2002-01-21 Daniel Jacobowitz <drow@mvista.com>
8705 * config.gcc: Add entries to supported PowerPC --with-cpu
8708 2002-01-21 Jakub Jelinek <jakub@redhat.com>
8710 * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8711 true for 64-bit mode only SSE registers in 32-bit mode.
8713 2002-01-21 Kazu Hirata <kazu@hxi.com>
8715 * unwind-dw2.c: Fix formatting.
8716 * unwind-dw2-fde.c: Likewise.
8717 * unwind-dw2-fde.h: Likewise.
8718 * unwind-pe.h: Likewise.
8719 * varasm.c: Likewise.
8720 * varray.h: Likewise.
8722 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
8724 Remove workaround for register stack overwrite bug in mmix.
8725 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8726 support for TARGET_REG_STACK_FILL_BUG.
8727 * config/mmix/mmix.h: Remove member has_call_without_parameters.
8728 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8730 (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8731 (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8732 -mno-reg-stack-fill-bug-workaround.
8733 * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8734 machine member has_call_without_parameters.
8735 * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8736 -mreg-stack-fill-bug-workaround and
8737 -mno-reg-stack-fill-bug-workaround.
8738 (MMIX Options): Ditto.
8740 2002-01-21 Kazu Hirata <kazu@hxi.com>
8742 * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8744 Remove redundant code.
8746 2002-01-21 Joseph S. Myers <jsm28@cam.ac.uk>
8748 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8749 config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8750 config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8751 config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8752 config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8753 out target macro definitions and non-target-specific comments
8754 mostly taken from old versions of the manual.
8756 2002-01-20 Kazu Hirata <kazu@hxi.com>
8758 * config/h8300/h8300.h: Fix comment formatting.
8759 * config/ia64/aix.h: Likewise.
8760 * config/ia64/ia64-protos.h: Likewise.
8761 * config/ia64/ia64.c: Likewise.
8762 * config/ia64/ia64.h: Likewise.
8763 * config/ia64/ia64intrin.h: Likewise.
8764 * config/ia64/linux.h: Likewise.
8765 * config/ia64/unwind-aix.c: Likewise.
8766 * config/ia64/unwind-ia64.c: Likewise.
8768 2002-01-20 Kazu Hirata <kazu@hxi.com>
8770 * config/h8300/h8300.c: Revise comments about shift code.
8772 2002-01-20 Kazu Hirata <kazu@hxi.com>
8774 * config/h8300/h8300.c (function_arg): Update a comment.
8776 2002-01-20 Kazu Hirata <kazu@hxi.com>
8778 * config/h8300/h8300.md: Update the comments at the beginning
8781 2002-01-20 Kazu Hirata <kazu@hxi.com>
8783 * config/i370/i370.c: Fix comment formatting.
8784 * config/i370/i370.h: Likewise.
8785 * config/i370/i370.md: Likewise.
8786 * config/i370/linux.h: Likewise.
8788 Sun Jan 20 18:40:14 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8790 * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8792 * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8793 (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8796 2002-01-20 Graham Stott <grahams@redhat.com>
8798 * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8800 2002-01-19 John David Anglin <dave@hiauly1.hia.nrc.ca>
8802 * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8804 2002-01-19 Tom Rix <trix@redhat.com>
8806 * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8808 2002-01-18 Aldy Hernandez <aldyh@redhat.com>
8810 * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8812 * function.c (assign_stack_local_1): Adjust x_frame_offset with
8813 STARTING_FRAME_PHASE.
8814 (STARTING_FRAME_PHASE): New.
8815 (instantiate_virtual_regs): Check saneness of
8816 STARTING_FRAME_PHASE.
8818 * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8820 2002-01-19 Alexandre Oliva <aoliva@redhat.com>
8822 * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8824 2002-01-18 Craig Rodrigues <rodrigc@gcc.gnu.org>
8826 * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8827 be used for bootstrapping GCC 3.0.
8829 2002-01-18 Kazu Hirata <kazu@hxi.com>
8831 * config/h8300/h8300.md: Fix an insn length.
8833 2002-01-18 Kazu Hirata <kazu@hxi.com>
8835 * bitmap.h: Fix comment formatting.
8836 * combine.c: Likewise.
8837 * cppfiles.c: Likewise.
8838 * c-pragma.h: Likewise.
8839 * c-typeck.c: Likewise.
8841 * dwarf2out.c: Likewise.
8842 * function.c: Likewise.
8844 * genattrtab.c: Likewise.
8845 * gthr-win32.h: Likewise.
8846 * haifa-sched.c: Likewise.
8847 * predict.c: Likewise.
8848 * rtlanal.c: Likewise.
8850 * unwind-dw2-fde.h: Likewise.
8851 * unwind-pe.h: Likewise.
8852 * vmsdbgout.c: Likewise.
8854 Thu Jan 17 15:28:26 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8856 * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8857 if type_required and passed decl.
8859 2002-01-17 Aldy Hernandez <aldyh@redhat.com>
8861 * config.gcc (cpu_type): Include altivec.h in powerpc
8865 * config/rs6000/altivec.h: New.
8867 2002-01-17 David Edelsohn <edelsohn@gnu.org>
8869 * doc/install.texi (*-ibm-aix*): Update assembler and exception
8870 handling information.
8871 * doc/trouble.texi (Interoperation): Add libstdc++ information
8873 (Misunderstandings): Add template instantiation and static template
8874 member information for AIX.
8876 2002-01-17 Jason Merrill <jason@redhat.com>
8878 * dbxout.c (dbxout_type): Support const and volatile.
8880 * except.c (add_partial_entry): Remove backwards compatibility code.
8881 (end_protect_partials): Likewise.
8883 2002-01-17 Jakub Jelinek <jakub@redhat.com>
8885 * config/ia64/ia64.md (prologue_use): New.
8886 * config/ia64/ia64.c (ia64_expand_prologue): Use
8887 gen_prologue_use instead of gen_rtx_USE.
8888 (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8889 as CODE_FOR_pred_rel_mutex.
8890 (ia64_sched_reorder2): Likewise.
8892 2002-01-16 Eric Christopher <echristo@redhat.com>
8894 * config/mips/r3900.h: Reformat.
8895 (SUBTARGET_CPP_SIZE_SPEC): Remove.
8896 * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8897 * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8898 (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8899 * config/mips/t-elf: Remove mips3 multilib.
8901 2002-01-16 H.J. Lu <hjl@gnu.org>
8903 * config/mips/linux.h: Include "mips/abi64.h".
8905 2002-01-16 H.J. Lu <hjl@gnu.org>
8907 * config/mips/t-linux: New.
8909 * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8911 * config/mips/linux.h: Don't include "gofast.h".
8912 (INIT_SUBTARGET_OPTABS): Removed.
8914 2002-01-16 Kazu Hirata <kazu@hxi.com>
8916 * config/h8300/h8300-protos.h: Replace emit_a_shift with
8918 * config/h8300/h8300.c: Likewise.
8919 * config/h8300/h8300.md: Likewise.
8921 2002-01-16 Kazu Hirata <kazu@hxi.com>
8923 * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8924 spaces after an opcode name.
8925 (pushqi1_h8300hs): Likewise.
8926 (pushhi1_h8300hs): Likewise.
8928 2002-01-16 Kazu Hirata <kazu@hxi.com>
8930 * doc/extend.texi: Replace "option" with "attribute"
8933 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8935 * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8936 (and:DI () (const_int -8)).
8937 (split_small_symbolic_mem_operand): Split
8938 (mem (and:DI () (const_int -8)).
8940 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8943 * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8944 same way as TYPE_IMUL.
8945 (ultrasparc_sched_reorder): Likewise.
8946 * config/sparc/sparc.md (type): Add comment to update
8947 ultrasparc_sched_reorder when making changes.
8949 2002-01-16 Kazu Hirata <kazu@hxi.com>
8951 * doc/invoke.texi: Change the dump file name of block
8952 reordering pass from 28.bbro to 29.bbro.
8955 Wed Jan 16 17:54:22 CET 2002 Jan Hubicka <jh@suse.cz>
8957 * i386.md (minsf splitter): Fix pasto.
8959 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8961 * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8962 to frame pointer initialisation instruction.
8963 (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8964 initialisation instruction.
8965 (soft_df_operand): Do not accept the IP register.
8966 (nonimmediate_soft_df_operand): Do not accept the IP register.
8968 2002-01-16 Jakub Jelinek <jakub@redhat.com>
8971 * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8972 MASK_V8 being both set.
8974 2002-01-16 Ulrich Weigand <uweigand@de.ibm.com>
8976 * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8977 insn for GOT register; add REG_MAYBE_DEAD notes instead.
8978 config/s390/s390.md (call, call_value): Add GOT register to
8979 CALL_INSN_FUNCTION_USAGE where needed.
8980 (call_exp, call_value_exp): New.
8982 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
8984 * config/arm/arm.c: General formatting tidy up.
8986 2002-01-16 Graham Stott <grahams@redhat.com>
8988 * calls.c (try_to_integrate): Use "(size_t)" intermediate
8989 cast and when casting an integer literal to "rtx" pointer.
8990 (expand_call): Likewise.
8991 * flow.c (try_pre_increment): Likewise.
8992 (find_use_as_address): Likewise.
8993 * integrate.c (expand_iline_function): Likewise.
8994 * regmove.c (try_auto_increment): Likewise.
8996 2002-01-16 Graham Stott <grahams@redhat.com>
8998 * sched-rgn.c (passed): Use sbitmap_free.
9001 (in_queue): Likewise.
9002 (in_stack): Likewise.
9004 2002-01-15 Eric Christopher <echristo@redhat.com>
9006 * flow.c (propagate_one_insn): Change to use fatal_insn.
9008 2002-01-15 Kazu Hirata <kazu@hxi.com>
9010 * expmed.c (extract_fixed_bit_field): Remove unused code.
9011 * system.h: Poison SLOW_ZERO_EXTEND.
9012 * doc/tm.texi: Remove.
9013 * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9014 * config/arm/arm.h: Likewise.
9015 * config/avr/avr.h: Likewise.
9016 * config/clipper/clipper.h: Likewise.
9017 * config/convex/convex.h: Likewise.
9018 * config/d30v/d30v.h: Likewise.
9019 * config/dsp16xx/dsp16xx.h: Likewise.
9020 * config/elxsi/elxsi.h: Likewise.
9021 * config/fr30/fr30.h: Likewise.
9022 * config/h8300/h8300.h: Likewise.
9023 * config/i370/i370.h: Likewise.
9024 * config/i386/i386.h: Likewise.
9025 * config/m68k/m68k.h: Likewise.
9026 * config/mips/mips.h: Likewise.
9027 * config/ns32k/ns32k.h: Likewise.
9028 * config/pdp11/pdp11.h: Likewise.
9029 * config/pj/pj.h: Likewise.
9030 * config/s390/s390.h: Likewise.
9031 * config/sh/sh.h: Likewise.
9032 * config/stormy16/stormy16.h: Likewise.
9033 * config/v850/v850.h: Likewise.
9034 * config/vax/vax.h: Likewise.
9035 * config/we32k/we32k.h: Likewise.
9037 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9039 * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9040 (altivec_lvsl): Change constraint to b.
9041 (altivec_lvsr): Same.
9042 (altivec_lvebx): Same.
9043 (altivec_lvehx): Same.
9044 (altivec_lvewx): Same.
9045 (altivec_lvxl): Same.
9046 (altivec_lvx): Same.
9047 (altivec_stvx): Add parallel.
9048 (altivec_stvxl): Same.
9049 (altivec_stvehx): Same.
9050 (altivec_stvebx): Same.
9051 (altivec_stvebx): Same.
9053 2002-01-15 Aldy Hernandez <aldyh@redhat.com>
9055 * config.gcc: Change altivec.h to altivec-defs.h.
9057 * config/rs6000/altivec.h: Delete.
9059 * config/rs6000/altivec-defs.h: Add.
9061 2002-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
9063 * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9066 * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9067 less than or equal to eight bytes.
9069 * vax.md (andsi3): Remove constraints and change SET destination
9070 operand type to nonimmediate_operand.
9071 (andhi3, andqi3): Likewise. Don't clear high order bits of operand 1
9072 when it is a CONST_INT.
9074 2002-01-15 Jason Merrill <jason@redhat.com>
9076 * c-common.def (FILE_STMT): New code.
9077 * c-common.c (statement_code_p): It's a statement.
9078 * c-common.h (stmt_tree_s): Add x_last_filename.
9079 (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9080 (last_expr_filename): New macro.
9081 * c-semantics.c (begin_stmt_tree): Initialize it.
9082 (add_stmt): If the filename changed, also insert a
9084 (expand_stmt): Handle seeing one.
9086 2002-01-15 Eric Christopher <echristo@redhat.com>
9088 * flow.c (propagate_one_insn): Add error message and print out
9091 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9093 * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9094 ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9095 * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9096 TRAMPOLINE_ALIGNMENT.
9097 * config/arm/arm.h, config/mcore/mcore.h: Likewise. Change value
9099 * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9100 PCC_BITFIELD_TYPE_MATTERS.
9101 * config/interix.h (STDC_VALUE): Remove. Use
9102 STDC_0_IN_SYSTEM_HEADERS.
9103 * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9104 (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9105 ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9107 2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
9109 * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9110 not work on this platform currently.
9112 2002-01-15 Joseph S. Myers <jsm28@cam.ac.uk>
9114 * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9115 readonly_warning in _().
9117 2002-01-15 Douglas B Rupp <rupp@gnat.com>
9119 * gcc.c (delete_if_ordinary): Backout previous change.
9121 2002-01-15 Kazu Hirata <kazu@hxi.com>
9123 * config/h8300/h8300.c (print_operand): Remove support for
9124 unused operand characters.
9126 * read-rtl.c: Fix formatting.
9128 * recog.c: Likewise.
9129 * regclass.c: Likewise.
9130 * regmove.c: Likewise.
9131 * reg-stack.c: Likewise.
9132 * reload1.c: Likewise.
9133 * rtlanal.c: Likewise.
9135 2002-01-15 Kazu Hirata <kazu@hxi.com>
9137 * config/i386/i386.c: Fix formatting.
9139 2002-01-15 Jakub Jelinek <jakub@redhat.com>
9141 * c-typeck.c (process_init_element): Don't save_expr
9142 COMPOUND_LITERAL_EXPR if just its initializer will be used.
9144 2002-01-15 David Edelsohn <edelsohn@gnu.org>
9146 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9147 emit optional traceback table if optimize_size or TARGET_ELF.
9148 * config/rs6000/rs6000.md (prefetch): New.
9150 2002-01-15 Andreas Jaeger <aj@suse.de>
9152 * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9154 2002-01-15 Kazu Hirata <kazu@hxi.com>
9156 * mips-tfile.c: Fix formatting.
9158 Tue Jan 15 00:56:11 CET 2002 Jan Hubicka <jh@suse.cz>
9160 * unroll.c (final_reg_note_copy): Fix previous commit.
9162 2002-01-14 Kazu Hirata <kazu@hxi.com>
9164 * config/h8300/h8300-protos.h: Remove the prototype for
9166 * config/h8300/h8300.c (eq_operator): Remove.
9168 2002-01-14 Richard Henderson <rth@redhat.com>
9170 * config/i386/i386.md (prefetch): Tidy.
9171 (prefetch_3dnow): Fix locality operand.
9173 2002-01-14 Richard Henderson <rth@redhat.com>
9175 * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9176 (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9178 2002-01-14 Hans-Peter Nilsson <hp@bitrange.com>
9180 * reload1.c (reload_combine): Pass reg_sum replacement through
9181 copy_rtx in loop performing multiple changes.
9183 2002-01-14 Jakub Jelinek <jakub@redhat.com>
9185 * except.c (remove_unreachable_regions): New.
9186 (free_eh_status): Clear exception_handler_labels.
9187 (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9188 (find_exception_handler_labels): Don't add the same label more than
9190 (remove_exception_handler_label): Don't die if
9191 find_exception_handler_labels hasn't been called for the current
9194 Mon Jan 14 21:26:13 CET 2002 Jan Hubicka <jh@suse.cz>
9196 * toplev.c (rest_of_compilation): Rebuild jump labels after
9199 2002-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
9201 * doc/extend.texi: Move documentation of X86 built-in functions
9203 * doc/invoke.texi: From here.
9204 * doc/sourcebuild.texi: Document location of documentation for
9205 machine built-in functions.
9207 2002-01-13 Christopher Faylor <cgf@redhat.com>
9209 * cppfiles.c (TEST_THRESHOLD): New macro.
9210 (SHOULD_MMAP): Ditto.
9211 (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9214 Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
9216 * unroll.c (final_reg_note_copy): Properly handle
9218 (unroll_loops): Fix LOOP_CONDITION heuristics.
9220 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
9222 * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9223 * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9225 Mon Jan 14 20:18:19 CET 2002 Jan Hubicka <jh@suse.cz>
9227 * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9230 2002-01-14 Tom Rix <trix@redhat.com>
9232 * config/rs6000/rs6000.md: Fix typo with sradi.
9234 2002-01-14 Ulrich Weigand <uweigand@de.ibm.com>
9236 * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9237 movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9238 (clrstrdi, clrstrsi): Adapt callers.
9240 (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9242 (movti splitter): Never use register 0 as base register.
9244 2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
9246 * combine.c (simplify_shift_const): Always generate new rtx
9247 for shift expression instead of reusing given expression.
9249 Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9251 * config/alpha/alpha.c (alpha_expand_mov): Don't call
9252 alpha_legitimize_address unless mode is Pmode.
9254 2002-01-13 Geoffrey Keating <geoffk@redhat.com>
9256 * doc/md.texi (Modifiers): Document the '*' constraint for the
9259 * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9260 * doc/extend.texi (Function Attributes): 'interrupt' is valid
9263 2002-01-13 Richard Henderson <rth@redhat.com>
9265 * reload.c (find_reloads): Use a hard reg destination as reload reg
9266 for an input reload of the source.
9268 2002-01-13 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9270 * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9273 Sun Jan 13 07:23:01 2002 Douglas B Rupp <rupp@gnat.com>
9275 * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9276 * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9278 * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9280 Sun Jan 13 06:55:31 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9282 * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9284 2002-01-12 Tom Rix <trix@redhat.com>
9286 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9289 2002-01-12 Richard Henderson <rth@redhat.com>
9291 * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9293 * doc/invoke.texi: Update Alpha options.
9295 * doc/invoke.texi: Update i386 built-in function lists.
9297 Sat Jan 12 17:38:11 CET 2002 Jan Hubicka <jh@suse.cz>
9299 * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9300 referencing outside.
9302 Sat Jan 12 08:54:51 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9304 * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9305 * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9306 offsets, and change line folding.
9307 * optabs.c (expand_binop): Remove warnings.
9308 * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9310 2002-01-12 Graham Stott <grahams@redhat.com>
9312 * attribs.c (handle_deprecated_attribute): constify WHAT.
9313 * diagnostic.c (warn_deprecated_use): Add braces, fixes
9314 dangling else warning and constify WHAT.
9315 * except.h (struct function, struct inline_remap): Move
9316 struct tag forward defs before all prototypes.
9317 (duplicate_eh_regions): Whitespace.
9319 2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
9321 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9322 MODE_BASE_REG_CLASS.
9323 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9325 2002-01-12 Richard Henderson <rth@redhat.com>
9327 * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9328 (ix86_expand_vector_move): New.
9329 (bdesc_2arg): Remove andps, andnps, orps, xorps.
9330 (ix86_init_mmx_sse_builtins): Make static. Remove composite builtins.
9331 Remove old prefetch builtins. Special case the logicals removed above.
9332 (ix86_expand_builtin): Likewise.
9333 (safe_vector_operand): Use V4SFmode, not TImode.
9334 (ix86_expand_store_builtin): Remove shuffle arg. Update callers.
9335 (ix86_expand_timode_binop_builtin): New.
9336 * config/i386/i386-protos.h: Update.
9337 * config/i386/i386.h (enum ix86_builtins): Update.
9338 * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9339 Use ix86_expand_vector_move in vector move expanders.
9340 (movti_internal, movti_rex64): Add xorps alternative.
9341 (sse_clrv4sf): Rename and adjust from sse_clrti.
9342 (prefetch): Don't work so hard.
9343 (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9344 * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9345 (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9347 2002-01-11 Richard Henderson <rth@redhat.com>
9349 * config/i386/mmintrin.h: New file.
9350 * config/i386/xmmintrin.h: New file.
9351 * config.gcc (i?86-*-*): Add extra_headers.
9352 * simplify-rtx.c (simplify_unary_operation): Handle saturating
9354 (simplify_binary_operation): Handle saturating arithmetic codes.
9355 * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9356 not the lowpart subreg.
9357 (ix86_expand_builtin): Return a TImode dummy register instead of 0
9359 * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9361 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9363 * conflict.c (conflict_graph_compute): Free regsets when finished.
9364 * ssa.c (compute_coalesced_reg_partition): Likewise.
9366 2002-01-12 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9368 * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9369 every where we allocate a register.
9371 2002-01-12 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9373 * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9374 * lcm.c (compute_earliest, compute_farthest): Likewise.
9376 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9378 * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9380 2002-01-11 Janis Johnson <janis187@us.ibm.com>
9382 * doc/rtl.texi (Insns): Fix 2 typos.
9384 2002-01-11 Joseph S. Myers <jsm28@cam.ac.uk>
9386 * doc/invoke.texi: Avoid overfull hboxes. Add summary of D30V
9387 options. Use @table @gcctabopt for MMIX options. Add index
9388 entries for MMIX options. Start new paragraph with first
9389 heading of the machine-dependent options.
9391 2002-01-11 Craig Rodrigues <rodrigc@gcc.gnu.org>
9394 * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9395 * combine.c (force_to_mode): Same.
9396 * reload1.c (clear_reload_reg_in_use): Same.
9398 2002-01-11 Nick Clifton <nickc@cambridge.redhat.com>
9400 * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9403 2002-01-11 Andreas Jaeger <aj@suse.de>,
9404 Brad Lucier <lucier@math.purdue.edu>
9406 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9409 Fri Jan 11 07:35:12 2002 Douglas B Rupp <rupp@gnat.com>
9411 * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9412 Protect with IN_LIBGCC.
9413 (LINK_EH_SPEC): Add required trailing space.
9415 Fri Jan 11 09:25:05 2002 Nicola Pero <n.pero@mi.flashnet.it>
9417 * c-tree.h: Move function declarations so that they are listed
9418 under the filename which contains them.
9419 (check_identifier, finish_decl_top_level,
9420 lookup_name_current_level_global, shadow_record_fields): Remove.
9422 2002-01-11 Andreas Jaeger <aj@suse.de>
9424 * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9427 2002-01-10 Richard Henderson <rth@redhat.com>
9429 * config/alpha/alpha.c (print_operand): Add 'J'.
9430 * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9431 new operand with the sequence number for the lituse. When splitting
9432 the insns, use gen_movdi_er_high_g and generate a sequence number.
9433 (gen_movdi_er_high_g): Print the sequence number if non-zero.
9435 2002-01-10 Aldy Hernandez <aldyh@redhat.com>
9437 * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9438 lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9440 (altivec_expand_builtin): Same.
9441 (altivec_expand_stv_builtin): New.
9443 * config/rs6000/rs6000.h (rs6000_builtins): Same.
9445 * config/rs6000/rs6000.md ("altivec_lvebx"): New.
9446 ("altivec_lvehx"): New.
9447 ("altivec_lvewx"): New.
9448 ("altivec_lvxl"): New.
9449 ("altivec_lvx"): New.
9450 ("altivec_stvx"): New.
9451 ("altivec_stvebx"): New.
9452 ("altivec_stvehx"): New.
9453 ("altivec_stvewx"): New.
9454 ("altivec_stvxl"): New.
9456 2002-01-10 Richard Henderson <rth@redhat.com>
9458 * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
9459 * reload1.c (delete_output_reload): Zap spill_reg_store. Take
9460 care not to delete instructions twice.
9462 2002-01-10 Zack Weinberg <zack@codesourcery.com>
9464 * toplev.c: Don't declare environ (it's not used anywhere).
9465 * configure.in: Don't check for declaration of environ.
9466 * config/i386/xm-mingw32.h: Don't #define environ.
9467 * config.in, configure: Regenerate.
9469 2002-01-10 Zack Weinberg <zack@codesourcery.com>
9471 * configure.in: Set stage1_cflags for powerpc-*-darwin*.
9472 * configure: Regenerate.
9474 * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
9475 DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
9476 * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
9478 * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
9479 LIMITS_H_TEST here, not in m68k/x-next.
9480 * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
9481 SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
9483 * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
9484 LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
9485 * config/alpha/x-vms: Don't set USE_COLLECT2. Add comments.
9487 * config/i386/x-djgpp: Renamed i386/t-djgpp.
9488 * config/m88k/x-dolph: Renamed m88k/t-dolph.
9489 * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
9490 * config/pa/x-pa-mpeix: Renamed pa/t-mpeix. Update for
9491 replacement of quadlib.asm with quadlib.c.
9493 * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
9494 config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
9495 config/rs6000/xm-beos.h: Delete file.
9497 * config.gcc: Update to match above changes.
9499 2002-01-10 Kazu Hirata <kazu@hxi.com>
9501 * config/h8300/h8300.h: Fix comment typos.
9502 * config/h8300/h8300.md: Likewise.
9503 * config/h8300/lib1funcs.asm: Likewise.
9505 2002-01-10 Dale Johannesen <dalej@apple.com>
9507 PR optimization/5269
9508 * unroll.c (precondition_loop_p): Make *increment be the correct
9509 sign when n_iterations known, to avoid confusing caller.
9511 2002-01-10 Kazu Hirata <kazu@hxi.com>
9513 * doc/extend.texi (deprecated): Fix a typo.
9515 Thu Jan 10 22:35:54 CET 2002 Jan Hubicka <jh@suse.cz>
9517 * basic-block.h (update_br_prob_note): Declare.
9518 * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
9519 (try_forward_edges): Care negative frequencies and update note.
9520 (outgoing_edges_match): Tweek conditional merging heuristics.
9521 (try_crossjump_to_edge): use update_br_prob_note.
9522 * cfglayout.c (fixup_reorder_chain): Likewise.
9523 * cfrtl.c (update_br_prob_note): New.
9524 * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
9526 * i386.c (ix86_decompose_address): Return -1 if address contains
9528 (legitimate_address_p): Require ix86_decompose_address to return 1.
9530 * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
9531 (cprop_insn): Likewise.
9533 2002-01-10 Kazu Hirata <kazu@hxi.com>
9535 * toplev.c: Fix formatting.
9537 * tree-dump.c: Likewise.
9538 * unroll.c: Likewise.
9539 * unwind-dw2.c: Likewise.
9540 * unwind-dw2-fde.c: Likewise.
9541 * unwind-dw2-fde-glibc.c: Likewise.
9542 * unwind-sjlj.c: Likewise.
9544 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9546 * doc/invoke.texi: Document PDP-11 options.
9548 2002-01-10 Kazu Hirata <kazu@hxi.com>
9550 * config/h8300/h8300.h: Fix formatting.
9552 2002-01-10 Ira Ruben <ira@apple.com>
9554 Add __attribute__ ((deprecated)).
9555 * extend.texi: Document __attribute__ ((deprecated)).
9556 * invoke.texi: Document -Wno-deprecated-declarations.
9557 * testsuite/g++.dg/other/deprecated.C: New C++ test.
9558 * testsuite/gcc.dg/deprecated.c: New C test.
9559 * attribs.c (enum attrs): Declare handle_deprecated_attribute().
9560 (c_common_attribute_table): Add "deprecated" entry.
9561 (handle_deprecated_attribute): New function.
9562 * c-decl.c (deprecated_states): New enum.
9563 deprecated_state: State of "deprecated" handling.
9564 (start_decl): Set deprecated_state based on attributes.
9565 (grokdeclarator): Test for deprecated uses, propagate attribute.
9566 * c-typeck.c (build_component_ref): Test for deprecated fields.
9567 (build_external_ref): Test for deprecated primaries.
9568 * diagnostic.c (warn_deprecated_use) New function to issue
9569 warnings about __attribute__ ((depricated)) references.
9570 * flags.h (warn_deprecated_decl): Extern declared for
9571 -W[no-]deprecated-declarations option.
9572 * print-tree.c (print_node): Show deprecated flag status.
9573 * toplev.c (warn_deprecated_decl): Defined.
9574 (W_options): Added "deprecated-declaration".
9575 * toplev.h (warn_deprecated_use): Extern declared.
9576 * tree.h (struct tree_common): Define deprecated_flag.
9577 (TREE_DEPRECATED): New macro to access flag.
9578 * cp/call.c (build_call): Test for deprecated calls.
9579 * cp/class.c (add_implicitly_declared_members): Set global
9580 flag to tell grokdeclarator to not issue deprecated warnings.
9581 * cp/cp-tree.h: Add extern for adding_implicit_members.
9582 * cp/decl.c (deprecated_states): New enum.
9583 (start_decl): Set deprecated_state based on attributes.
9584 (grokdeclarator): Test for deprecated uses, propagate attribute.
9585 * cp/lex.c (do_identifier): Test for deprecated primaries.
9586 * cp/typeck.c (build_component_ref): Test for deprecated fields.
9588 2002-01-10 Ira Ruben <ira@apple.com>
9590 Fix to assign attributes to inline member functions.
9591 * cp/decl.c (start_method): Handle attrlist.
9593 2002-01-10 Kazu Hirata <kazu@hxi.com>
9595 * combine.c (expand_field_assignment): Use subreg_lsb().
9597 2002-01-10 David Edelsohn <edelsohn@gnu.org>
9599 * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
9600 POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
9601 (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
9602 Recurse for any operand of AND as long as constant is non-zero.
9604 2002-01-10 Kazu Hirata <kazu@hxi.com>
9606 * config/h8300/h8300.md: Remove constraints from expanders.
9608 2002-01-10 Kazu Hirata <kazu@hxi.com>
9610 * varasm.c: Fix formatting.
9611 * varray.c: Likewise.
9612 * vmsdbgout.c: Likewise.
9613 * xcoffout.c: Likewise.
9615 Thu Jan 10 17:19:12 CET 2002 Jan Hubicka <jh@suse.cz>
9617 * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
9618 update edge probabilities to match.
9620 2002-01-10 Joseph S. Myers <jsm28@cam.ac.uk>
9622 * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
9624 * doc/languages.texi, doc/sourcebuild.texi: New files.
9625 * doc/configfiles.texi: Make a subsubsection. Update.
9626 * doc/configterms.texi: Add @node. Remove warning that this isn't
9627 instructions for building GCC.
9628 * doc/makefile.texi: Make a subsection.
9629 * doc/gccint.texi: Update.
9631 Thu Jan 10 16:39:58 CET 2002 Jan Hubicka <jh@suse.cz>
9633 * i386.md (sse_mov?fcc_const0_?): Fix constraints.
9635 Thu Jan 10 12:45:50 2002 Nicola Pero <n.pero@mi.flashnet.it>
9637 * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
9639 Thu Jan 10 11:19:18 CET 2002 Jan Hubicka <jh@suse.cz>
9641 * optabs.c (expand_fix): Look for wider integer modes first.
9643 * i386.md (mov?f): Avoid the fake const double trick for medium
9645 (min?f*/max?f*): Prohibit memory operands for i387 variant.
9646 (fop_df_4): Disable for SSE compilation.
9648 2002-01-10 Graham Stott <grahams@redhat.com>
9650 * dwarf2out.c (indirect_string_alloc, output_indirect_string):
9651 Move prototype into DWARF2_DEBUGGING_INFO conditional block.
9653 2002-01-10 Richard Henderson <rth@redhat.com>
9655 * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
9657 2002-01-10 Richard Henderson <rth@redhat.com>
9659 * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
9660 (copyprop_hardreg_forward_1): Likewise. Use mode_change_ok.
9662 2002-01-10 Kazu Hirata <kazu@hxi.com>
9664 * combine.c (can_combine_p): Fix a comment typo.
9666 2002-01-09 Zack Weinberg <zack@codesourcery.com>
9668 * Makefile.in (s-gencheck, s-options, s-specs): Handle an
9669 empty list correctly. Change loop index $t to $f for
9670 consistency with rest of Makefile.
9672 2002-01-08 Aldy Hernandez <aldyh@redhat.com>
9674 * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9675 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9677 * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9678 mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9679 (altivec_init_builtins): Same.
9680 (altivec_expand_unop_builtin): Return NULL_RTX on error.
9681 (altivec_expand_binop_builtin): Same.
9682 (altivec_expand_ternop_builtin): Same.
9685 * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9686 ("altivec_vctuxs"): Fix typo.
9687 ("altivec_vnmsubfp"): Same.
9688 ("altivec_dssall"): New.
9689 ("altivec_mfvscr"): New.
9690 ("altivec_dss"): New.
9691 ("altivec_lvsl"): New.
9692 ("altivec_lvsr"): New.
9693 ("altivec_dstt"): New.
9694 ("altivec_dstst"): New.
9695 ("altivec_dststt"): New.
9696 ("altivec_dst"): New.
9698 * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9699 mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9701 2002-01-09 Richard Henderson <rth@redhat.com>
9703 * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9705 2002-01-10 Hans-Peter Nilsson <hp@bitrange.com>
9707 * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9709 * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9711 * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9713 2002-01-09 Kazu Hirata <kazu@hxi.com>
9715 * read-rtl.c: Fix formatting.
9717 * regclass.c: Likewise.
9718 * regrename.c: Likewise.
9719 * reg-stack.c: Likewise.
9720 * reload1.c: Likewise.
9721 * reload.c: Likewise.
9724 2002-01-09 Kazu Hirata <kazu@hxi.com>
9726 * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9727 to extract items in the expr_list chain.
9729 2002-01-09 Richard Henderson <rth@redhat.com>
9731 * config/vax/vax.c (vax_rtx_cost): Never abort.
9733 * config/vax/vax.h (REAL_ARITHMETIC): Define.
9735 2002-01-09 Jan Hubicka <jh@suse.cz>
9737 * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9739 2002-01-09 Richard Henderson <rth@redhat.com>
9741 * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9742 Unify code from various alternatives.
9744 2002-01-09 Richard Henderson <rth@redhat.com>
9746 * regrename.c (copy_value): Ignore the copy if the source register
9747 is present in the value chain with a narrower mode.
9749 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9751 * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9752 for the c4x target. Also improve layout.
9754 2002-01-09 Richard Henderson <rth@redhat.com>
9756 * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9757 * config/m32r/m32r.md (and ior xor splitters): Swap operands
9758 to match insn patterns.
9760 2002-01-09 Richard Henderson <rth@redhat.com>
9762 * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9763 (copyprop_hardreg_forward_1): Likewise.
9765 2002-01-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
9767 * pa.md (decrement_and_branch_until_zero): Change predicate for
9768 operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9770 2002-01-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
9772 * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9773 gets undefined. For Darwin.
9775 2002-01-09 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9777 * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9779 2002-01-09 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9781 * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9783 2002-01-08 Richard Henderson <rth@redhat.com>
9785 * regrename.c (copy_value): Ignore overlapping copies.
9787 2002-01-08 Richard Henderson <rth@redhat.com>
9789 * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9790 as needed to avoid shared structure.
9792 2002-01-08 Kazu Hirata <kazu@hxi.com>
9794 * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9797 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9799 * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9800 LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9801 documentation of obsolete macros.
9802 * system.h: Poison these macros.
9803 * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9804 config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9805 config/c4x/c4x.h, config/clipper/clipper.h,
9806 config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9807 config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9808 config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9809 config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9810 config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9811 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9812 config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9813 config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9814 config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9815 config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9816 config/sparc/sparc.h, config/stormy16/stormy16.h,
9817 config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9818 definitions and commented out definitions of obsolete macros.
9819 * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9820 of MAX_INT_TYPE_SIZE.
9822 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9824 * config/s390/s390.c (s390_preferred_reload_class): Never
9825 return ADDR_REGS if it isn't a subset of the given class.
9826 * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9827 FP_REGS, but all superclasses as well.
9829 * config/s390/s390.c (s390_function_profiler): Fix thinko.
9831 * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9832 cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9833 must not be a const_int.
9835 2002-01-08 Richard Henderson <rth@redhat.com>
9837 * Makefile.in (toplev.o): Depend on options.h.
9838 (gcc.o): Depend on specs.h.
9840 2002-01-08 Jakub Jelinek <jakub@redhat.com>
9842 * expr.c (store_expr): Convert VOIDmode constants back to target's
9845 2002-01-08 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9847 * doc/invoke.texi: Markup gcc as @command. Refer to
9848 http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9849 of http://gcc.gnu.org/thanks.html.
9851 2002-01-08 Dale Johannesen <dalej@apple.com>
9853 * config/rs6000/rs6000.md: Add missing int register
9854 target case to movdf_low.
9856 2002-01-08 Zack Weinberg <zack@codesourcery.com>
9858 * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9859 except.h. Remove commands to define USING_SJLJ_EXCEPTIONS.
9860 (cppinit.o): Depend on except.h.
9861 (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9862 s-specs): New rules.
9864 * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9865 Don't create specs.h/options.h/gencheck.h here. Remove
9866 unnecessary variable settings from last argument of AC_OUTPUT.
9867 * config.in, configure: Regenerate.
9868 * intl.c: Hardcode package name as "gcc".
9870 * cppinit.c: Include except.h.
9871 (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9873 * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9874 Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9875 (!)USING_SJLJ_EXCEPTIONS.
9876 * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9878 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9880 * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9881 ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9882 OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9883 documentation of obsolete macros.
9884 * system.h: Poison these macros.
9885 * config/d30v/d30v.h, config/ns32k/encore.h,
9886 config/stormy16/stormy16.h: Remove definitions and commented out
9887 definitions of obsolete macros.
9889 Tue Jan 8 15:56:41 2002 Nicola Pero <nicola@brainstorm.co.uk>
9891 * objc/objc-act.c (handle_class_ref): Mark the declaration of
9892 %sobjc_class_ref_%s as used - to prevent unwanted compiler
9895 2002-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9897 * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9898 * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9899 to insn adjusting stack/frame pointer.
9900 * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9901 accept operands that cause the insn to be non-splittable.
9903 2002-01-08 Graham Stott <grahams@redhat.com>
9905 * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9906 (C_TYPE_FIELDS_VOLATILE): Likewise.
9907 (C_TYPE_BEING_DEFINED): Likewise.
9908 (C_IS_RESERVED_WORD): Likewise.
9909 (C_TYPE_VARIABLE_SIZE): Likewise.
9910 (C_DECL_VARIABLE_SIZE): Likewise.
9911 (C_MISSING_PROTOTYPE_WARNED): Likewise.
9912 (C_SET_EXP_ORIGINAL_CODE): Likewise.
9913 (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9915 (C_DECL_ANTICIPATED): Likewise.
9916 (c_build_type_variant): Add parenthesis.
9918 2002-01-08 Joseph S. Myers <jsm28@cam.ac.uk>
9920 * gcc.c (option_map): Remove --version.
9921 (process_command): Handle -fversion following the GNU Coding
9922 Standards. Partially addresses PR other/704.
9924 2002-01-08 Graham Stott <grahams@redhat.com>
9926 * combine.c (combine_instructions): Fix typo.
9928 2002-01-08 Graham Stott <grahams@redhat.com>
9930 * debug.h: Use "tree" and "rtx" throughout.
9932 * debug.c: Likewise.
9934 2002-01-08 Nick Clifton <nickc@cambridge.redhat.com>
9936 * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9937 constant pool, use the pool's version of the symbol instead.
9939 2002-01-07 Richard Henderson <rth@redhat.com>
9941 * regrename.c (find_oldest_value_reg): Ignore the value chain if
9942 the original register was copied in a mode with a fewer number of
9943 hard registers than the desired mode.
9944 (copyprop_hardreg_forward_1): Likewise.
9945 (debug_value_data): Fix loop test.
9946 * toplev.c (parse_options_and_default_flags): Reenable
9947 -fcprop-registers at -O1.
9949 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9951 * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9952 (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9954 * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9957 * config/rs6000/rs6000.md: Add altivec predicate patterns.
9959 2002-01-07 John David Anglin <dave@hiauly1.hia.nrc.ca>
9961 * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9962 (pa_output_function_prologue): Output local label at the beginning of
9963 the prologue when profiling.
9964 (hppa_profile_hook): Use the local label rather than the function label.
9965 * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9967 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9969 * config/rs6000/rs6000.c (print_operand): Remove extra space.
9970 (altivec_expand_unop_builtin): Fix thinko.
9971 (altivec_expand_binop_builtin): Same.
9972 (altivec_expand_ternop_builtin): Same.
9973 (altivec_expand_builtin): Same.
9975 2002-01-07 Richard Henderson <rth@redhat.com>
9977 * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9979 2002-01-07 Jason Merrill <jason@redhat.com>
9981 * unwind-dw2.c (execute_cfa_program): Use < again.
9983 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9985 * predict.c (combine_predictions_for_insn): Avoid division by zero.
9987 2002-01-07 Jakub Jelinek <jakub@redhat.com>
9989 * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9990 Don't allow -1 - x -> ~x simplifications in the first pass.
9992 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
9994 * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9996 (altivec_expand_binop_builtin): Same.
9997 (altivec_expand_unop_builtin): Same.
9998 (print_operand): Fix typo.
9999 (bdesc_1arg): Add vupk* variants.
10001 * rs6000.h (rs6000_builtins): Add vupk* enums.
10003 * rs6000.md: Add altivec_vupk* variants.
10005 2002-01-07 Joseph S. Myers <jsm28@cam.ac.uk>
10007 * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10008 doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10009 and last update dates.
10011 2002-01-07 Janis Johnson <janis187@us.ibm.com>
10013 * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10015 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
10017 * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10018 * config/avr/avr.h (CPP_SPEC): Likewise.
10019 (LINK_SPEC): Likewise.
10020 (CRT_BINUTILS_SPECS): Likewise.
10021 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10022 * doc/invoke.texi (AVR Options): Document them.
10024 Mon Jan 7 11:59:34 CET 2002 Jan Hubicka <jh@suse.cz>
10026 * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10029 2002-01-07 Graham Stott <grahams@redhat.com>
10031 * config/i386/i386.h: Update copyright date.
10032 (HALF_PIC_PTR): Add parenthesis.
10033 (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10034 (CONSTANT_ALIGNMENT): Add parenthesis.
10035 (DATA_ALIGNMENT): Likewise.
10036 (LOCAL_ALIGNMENT): Likewise.
10037 (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10038 (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10039 (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10040 (HARD_REGNO_NREGS): Add paranethesis.
10041 (VALID_SSE_REG_MODE): Whitespace.
10042 (VALID_MMX_REG_MODE): Whitespace.
10043 (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10044 (ix86_hard_regno_mode_ok): Add parenthesis.
10045 (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10046 (RETURN_IN_MEMORY): Whitespace.
10047 (N_REG_CLASSES): Add parenthesis.
10048 (INTEGER_CLASS_P): Add parenthesis and wrap.
10049 (FLOAT_CLASS_P): Likewise.
10050 (SSE_CLASS_P): Likewise.
10051 (MMX_CLASS_P): Likewise.
10052 (MAYBE_INTEGER_CLASS_P): Likewise.
10053 (MAYBE_FLOAT_CLASS_P): Likewise.
10054 (MAYBE_SSE_CLASS_P): Likewise.
10055 (MAYBE_MMX_CLASS_P): Likewise.
10056 (Q_CLASS_P): Likewise.
10057 (GENERAL_REGNO_P): Uppercase macro parameter.
10058 (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10059 (FP_REGNO_P): Likewise.
10060 (ANY_FP_REGNO_P): Uppercase macro parameter.
10061 (SSE_REGNO_P): Likewise.
10062 (SSE_REGNO): Likewise.
10063 (SSE_REG_P): Likewise.
10064 (SSE_FLOAT_MODE_P): Likewise.
10065 (MMX_REGNO_P): Likewise.
10066 (MMX_REG_P):Likewise.
10067 (STACK_REG_P): Likewise.
10068 (NON_STACK_REG_P): Likewise.
10069 (STACK_TOP_P): Likewise.
10070 (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10071 (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10072 (SECONDARY_MEMORY_NEEDED): Likewise.
10073 (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10074 (MD_ASM_CLOBBERS): Whitespace and wrap.
10075 (MUST_PASS_IN_STACK): Whitespace and wrap.
10076 (RETURN_POPS_ARGS): Add parenthesis.
10077 (INIT_CUMULATIVE_ARGS): Likewise.
10078 (FUNCTION_ARG): Likewise.
10079 (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10080 (SETUP_INCOMING_VARARGS): Likewise.
10081 (BUILD_VA_LIST_TYPE): Add parenthesis.
10082 (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10084 (EXPAND_BUILTIN_VA_ARG): Likewise.
10085 (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10086 (INITIALIZE_TRAMPOLINE): Add parenthesis.
10087 (INITIAL_ELIMINATION_OFFSET): Likewise.
10088 (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10089 (REGNO_OK_FOR_BASE_P): Likewise.
10090 (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10091 (REGNO_OK_FOR_DIREG_P): Likewise.
10092 (REG_OK_FOR_INDEX_P): Whitespace.
10093 (REG_OK_FOR_BASE_P): Whitespace.
10094 (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10096 (FIND_BASE_TERM): Fix typo.
10097 (LEGITIMIZE_ADDRESS): Wrap in { .. } while (0) and add parenthesis.
10098 (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10099 (SYMBOLIC_CONST; Whitespace.
10100 (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in { .. } while (0) and wrap.
10101 (ENCODE_SECTION_INFO): Whitespace.
10102 (FINALIZE_PIC): Remove do { ... } while (0).
10103 (PROMOTE_MODE): Wrap in do { ... } while (0).
10104 (CONST_COSTS): Whitespace.
10105 (RTX_COSTS): Add paramethesis, whitespace and wrap.
10106 (REGISTER_MOVE_COST): Add parenthesis.
10107 (MEMORY_MOVE_COST): Likewise.
10108 (EXTRA_CC_MODES): Whitespace.
10109 (SELECT_CC_MODE): Add parenthesis and whitespace.
10110 (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10111 (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10112 (ASM_OUTPUT_LABEL): Add paramethesis.
10113 (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10114 (ASM_OUTPUT_REG_POP): Likewise.
10115 (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10116 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10118 * config/i386/i386.c: Update copyright.
10119 (CHECK_STACK_LIMIT): Add parenthesis.
10120 (AT_BP): Uppercase macro parameter.
10121 (x86_64_int_parameter_registers): Constify.
10122 (x86_64_int_return_registers): Likewise.
10123 (ix86_compare_op0): Use rtx.
10124 (construct_container): Constify INTREG parameter.
10125 (function_arg): Use rtx.
10127 * diagnostic.h: Update copyright date.
10128 (output_buffer_state): Add parenthesis.
10129 (output_buffer_format_args): Likewise.
10131 * combine.c (combine_instructions): Replace XEXP (links, 0)
10134 2002-01-06 H.J. Lu <hjl@gnu.org>
10136 * cfgcleanup.c (thread_jump): Fix 2 typos.
10138 2002-01-06 Aldy Hernandez <aldyh@redhat.com>
10140 * config.gcc: Add support for --enable-altivec.
10142 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10144 * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10146 2002-01-06 Jakub Jelinek <jakub@redhat.com>
10148 * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10149 __objc_class_name_*.
10151 2002-01-06 Craig Rodrigues <rodrigc@gcc.gnu.org>
10153 * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10155 2002-01-06 Richard Henderson <rth@redhat.com>
10157 * reorg.c (emit_delay_sequence): Remove death notes, not merely
10158 nop them out. Increment label reference count for REG_LABEL.
10159 (fill_slots_from_thread): Frob label reference count around
10160 delete_related_insns.
10162 2002-01-05 Richard Henderson <rth@redhat.com>
10164 * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10167 2002-01-05 Richard Henderson <rth@redhat.com>
10169 * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10170 * integrate.c (output_inline_function): Likewise.
10171 * toplev.c (rest_of_compilation): Do it here instead. Move call
10172 to remove_unnecessary_notes after emitting abstract instance.
10173 Force an emitted nested function to have its parent emited as well.
10174 * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10176 (rtl_for_decl_location): Do not look at reload data structures
10177 before reload has run.
10179 2002-01-05 Kazu Hirata <kazu@hxi.com>
10181 * cse.c: Fix formatting.
10182 * dwarf2asm.c: Likewise.
10183 * dwarf2out.c: Likewise.
10184 * explow.c: Likewise.
10185 * expmed.c: Likewise.
10186 * function.c: Likewise.
10187 * gcov.c: Likewise.
10188 * gencheck.c: Likewise.
10189 * genrecog.c: Likewise.
10190 * ggc-common.c: Likewise.
10191 * ggc-page.c: Likewise.
10192 * global.c: Likewise.
10194 2002-01-05 Kazu Hirata <kazu@hxi.com>
10196 * combine.c: Fix formatting.
10198 2002-01-05 Craig Rodrigues <crodrigu@bbn.com>
10201 * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10203 2002-01-05 David Edelsohn <edelsohn@gnu.org>
10205 * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10206 as 1 for __powerpc64__ as well.
10208 * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10210 * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10213 2002-01-05 Daniel Berlin <dan@dberlin.org>
10215 * lcm.c: Revert change, due to performance regression it causes on
10216 SPEC because it's slightly more conservative (sigh, I hate
10219 Sat Jan 5 11:52:05 CET 2002 Jan Hubicka <jh@suse.cz>
10221 * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10223 2002-01-05 Neil Booth <neil@daikokuya.demon.co.uk>
10225 * doc/cppinternals.texi: Update.
10227 2002-01-05 Hans-Peter Nilsson <hp@bitrange.com>
10229 * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10230 -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10232 (MMIX Options): Ditto. Fix item/itemx typo for -mno-zero-extend.
10233 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10234 kludge for pre-october-14th mmix versions to handle new-found bug
10235 with PUSHJ/PUSHGO and the register stack.
10236 * config/mmix/mmix.h (struct machine_function): Rename member
10237 has_call_value_without_parameters to has_call_without_parameters.
10238 All referers changed.
10239 (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10240 TARGET_MASK_BRANCH_PREDICT): New macros.
10241 (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10242 -mno-reg-stack-fill-bug-workaround.
10243 * config/mmix/mmix.md ("call"): Set struct machine member
10244 has_call_without_parameters.
10246 Sat Jan 5 02:20:22 CET 2002 Jan Hubicka <jh@suse.cz>
10248 * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10250 Sat Jan 5 01:35:29 CET 2002 Jan Hubicka <jh@suse.cz>
10252 * cfgcleanup.c: Include tm_p.h
10253 (mark_effect): Fix handling of hard register; fix handling of SET
10255 2002-01-04 Kazu Hirata <kazu@hxi.com>
10257 * config/h8300/h8300.md (anonymous patterns): Check that
10258 operands are registers before using REGNO on them.
10260 2002-01-03 Roland McGrath <roland@frob.com>
10262 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10264 2002-01-04 Jakub Jelinek <jakub@redhat.com>
10266 * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10267 * c-common.h (genrtl_expr_stmt_value): Likewise.
10268 * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10269 (expand_expr_stmt_value): Add maybe_last argument.
10270 Don't warn about statement with no effect if it is the last statement
10271 in expression statement.
10272 * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10273 (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10274 expand_expr_stmt_value.
10275 (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10276 genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10277 * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10278 as maybe_last to expand_expr_stmt_value.
10280 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
10282 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10283 be passed in, do not build it.
10284 (c_begin_if_stmt): New function.
10285 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10286 * c-common.h (c_expand_start_cond): Update prototype.
10287 (c_begin_if_stmt): Prototype new function.
10288 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10289 * c-parse.in (if_prefix): Use c_begin_if_stmt,
10290 c_begin_while_stmt and c_finish_while_stmt_cond.
10292 2002-01-04 William Cohen <wcohen@redhat.com>
10294 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10295 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10296 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10297 * config/pa/som.h (ASM_FILE_START): Likewise.
10299 2002-01-04 Daniel Berlin <dan@cgsoftware.com>
10301 * lcm.c: Include df.h.
10302 Add available_transfer_function prototype.
10303 (compute_available): Rework to use iterative dataflow framework.
10304 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10305 with bb_info in df.h
10306 (available_transfer_function): New function.
10308 * Makefile.in (lcm.o): add df.h to dependencies.
10310 2002-01-04 Richard Henderson <rth@redhat.com>
10312 * config/alpha/alpha.c (some_operand): Accept HIGH.
10313 (input_operand): Likewise; accept simple references to globals.
10314 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10315 (alpha_const_double_ok_for_letter_p): Likewise.
10316 (alpha_extra_constraint): Likewise.
10317 (alpha_preferred_reload_class): Likewise. Do not force
10318 symbolic constants to memory.
10319 (alpha_legitimate_address_p): Accept simple references
10320 to small_symbolic_operand.
10321 (alpha_legitimize_address): New arg scratch. Be prepared to be
10322 called when no_new_pseudos. Emit simple symbolic references.
10323 Split integers into low, high, and rest.
10324 (alpha_expand_mov): Use alpha_legitimize_address.
10325 (some_small_symbolic_mem_operand): New.
10326 (split_small_symbolic_mem_operand): New.
10327 * config/alpha/alpha-protos.h: Update.
10328 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10329 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10330 (EXTRA_CONSTRAINT): Likewise.
10331 (PREFERRED_RELOAD_CLASS): Likewise.
10332 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10333 (PREDICATE_CODES): Update.
10334 * config/alpha/alpha.md: New post-reload splitters to convert
10335 simplfied symbolic operands to the form that references $29.
10336 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10337 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10339 2002-01-03 Richard Henderson <rth@redhat.com>
10341 * local-alloc.c (function_invariant_p): Update commentary.
10343 2002-01-04 H.J. Lu <hjl@gnu.org>
10345 * toplev.c (rest_of_compilation): Fix a typo when calling
10348 2002-01-03 Kazu Hirata <kazu@hxi.com>
10350 * c-common.c: Fix formatting.
10351 * diagnostic.c: Likewise.
10352 * doloop.c: Likewise.
10353 * dwarf2out.c: Likewise.
10355 2002-01-03 Kazu Hirata <kazu@hxi.com>
10357 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10358 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10360 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10362 * cpperror.c: Update comments and copyright.
10363 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10364 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10366 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
10368 * collect2.c (main): Use strcmp when testing for "-shared".
10370 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
10372 * cppmacro.c: Don't include intl.h. Update comments.
10373 (new_number_token): Allocate enough buffer for 64-bit unsigned
10374 integers; update prototype.
10375 * cppmain.c: Update comments.
10377 2002-01-03 William Cohen <wcohen@redhat.com>
10379 * function.h (struct function): Add profile.
10380 (current_function_profile): New.
10381 doc/extend.texi: Update documentation.
10382 * final.c (final_start_function): Use current_function_profile
10383 instead of profile_flag.
10384 (profile_after_prologue): Likewise.
10385 * function.c (expand_function_start): Likewise.
10386 (expand_function_start): Likewise.
10387 * config/alpha/alpha.c (direct_call_operand):
10388 (alpha_does_function_need_gp): Likewise.
10389 (alpha_expand_prologue): Likewise.
10390 * config/arm/arm.c (arm_expand_prologue): Likewise.
10391 thumb_expand_prologue: Likewise.
10392 * config/d30v/d30v.c (d30v_stack_info): Likewise.
10393 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10394 (fr30_expand_prologue): Likewise.
10395 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10396 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10397 * config/i386/i386.h (FINALIZE_PIC): Likewise.
10398 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10399 * config/i960/i960.c (i960_output_function_prologue): Likewise.
10400 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10401 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10402 (m32r_expand_prologue): Likewise.
10403 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10404 (m88k_expand_prologue): Likewise.
10405 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10406 * config/mips/mips.c (compute_frame_size): Likewise.
10407 (mips_expand_prologue): Likewise.
10408 (mips_can_use_return_insn): Likewise.
10409 * config/pa/elf.h (ASM_FILE_START): Likewise.
10410 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10411 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10412 * config/pa/som.h (ASM_FILE_START): Likewise.
10413 * config/romp/romp.c (romp_using_r14): Likewise.
10414 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10415 (rs6000_stack_info): Likewise.
10416 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10417 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10418 * config/v850/v850.c (compute_register_save_size): Likewise.
10420 2002-01-03 Jakub Jelinek <jakub@redhat.com>
10422 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10423 gen_lowpart_common fails, use gen_lowpart_SUBREG.
10425 2002-01-03 Turly O'Connor <turly@apple.com>
10427 * darwin.c (machopic_output_possible_stub_label): Don't generate
10428 stub routines for pseudo-stubs which we've just defined.
10430 2002-01-03 Kazu Hirata <kazu@hxi.com>
10432 * builtins.c: Fix formatting.
10433 * c-typeck.c: Likewise.
10434 * combine.c: Likewise.
10435 * expr.c: Likewise.
10436 * loop.c: Likewise.
10438 2002-01-03 Andreas Schwab <schwab@suse.de>
10440 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10441 and return true if _cpp_push_next_buffer pushed a new include
10443 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
10444 _cpp_pop_file_buffer did not push a new file.
10445 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
10447 2002-01-02 Eric Christopher <echristo@redhat.com>
10449 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
10450 FIND_REG_INC_NOTE call. Update copyright.
10451 * loop.c (canonicalize_condition): Ditto.
10452 * reorg.c (delete_scheduled_jump): Ditto.
10454 2002-01-03 Kazu Hirata <kazu@hxi.com>
10456 * gcse.c: Fix formatting.
10458 2002-01-03 Graham Stott <grahams@redhat.com>
10460 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
10461 forward defs for struct tags rtx_def, union_tree, rtvec_def
10462 also output corresponding typedefs for rtx, tree, and rtvec.
10464 * system.h: Move forward defs for struct tags rtx_def, union_tree,
10465 rtvec_def along with corresponding typedefs for rtx, tree, and
10466 rtvec to config.h, hconfig.h, tconfig.h.
10468 2002-01-03 Graham Stott <grahams@redhat.com>
10470 * tree.h: Update copyright date.
10471 (IS_EXPR_CODE_CLASS): Add parenthesis.
10472 (TREE_SET_CODE): Add whitespace.
10473 (TREE_CHECK): Add parenthesis.
10474 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
10475 (CST_OR_CONSTRUCTOR_CHECK):
10476 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
10477 (TREE_SYMBOL_REFERENCED): Whitespace.
10478 (INT_CST_LT): Likewise.
10479 (INT_CST_LT_UNSIGNED): Likewise.
10480 (tree_real_cst): Unwrap comment.
10481 (tree_string): Likewise.
10482 (tree_complex): Likewise.
10483 (IDENTIFIER_POINTER): correct cast.
10484 (SAVE_EXPR_CONTEXT): Whitespace.
10485 (EXPR_WFL_FILENAME_NODE): Likewise.
10486 (EXPR_WFL_FILENAME): Remove parenthesis.
10487 (DECL_ORIGIN): Add parenthesis.
10488 (DECL_FROM_INLINE): Use NULL_TREE.
10489 (build_int_2): Whitespace.
10490 (build_type_variant): Add parenthesis.
10492 * gcc/jcf-parse.c: Update copyright date.
10493 (yyparse): Constify resource_filename.
10495 2002-01-03 Graham Stott <grahams@redhat.com>
10497 * rtl.h: Update copyright date.
10498 (RTL_CHECK1): Wrap long line.
10499 (RTL_CHECK2): Likewise.
10500 (RTL_CHECKC1): Wrap long line and whitespace.
10501 (RTL_CHECKC2): Likewise.
10502 (XWINT): Whitespace.
10508 (XBITMAP): Likewise.
10510 (XBBDEF): Likewise.
10512 (X0WINT): Likewise.
10514 (X0UINT): Likewise.
10518 (X0MODE): Likewise.
10519 (X0BITMAP): Likewise.
10520 (X0TREE): Likewise.
10521 (X0BBDEF): Likewise.
10522 (X0ADVFLAGS): Likewise.
10523 (X0CSELIB): Likewise.
10524 (X0MEMATTR): Likewise.
10525 (XCWINT): Likewise.
10527 (XCUINT): Likewise.
10531 (XCMODE): Likewise.
10532 (XCBITMAP): Likewise.
10533 (XCTREE): Likewise.
10534 (XCBBDEF): Likewise.
10535 (XCADVFLAGS): Likewise.
10536 (XCCSELIB): Likewise.
10537 (XC2EXP): Likewise.
10538 (INSN_UID): Likewise.
10539 (PREV_INSN): Likewise.
10540 (PATTERN): Likewise.
10541 (INSN_CODE): Likewise.
10542 (PUT_REG_NOTE_KIND): Likewise.
10543 (CODE_LABEL_NUMBER): Likewise.
10544 (NOTE_SOURCE_FILE): Likewise.
10545 (NOTE_BLOCK): Likewise.
10546 (NOTE_EH_HANDLER): Likewise.
10547 (NOTE_RANGE_INFO): Likewise.
10548 (NOTE_LIVE_INFO): Likewise.
10549 (NOTE_BASIC_BLOCK): Likewise.
10550 (NOTE_EXPECTED_VALUE): Likewise.
10551 (NOTE_LINE_NUMBER): Likewise.
10552 (LABEL_NAME): Likewise.
10553 (LABEL_NUSES): Likewise.
10554 (LABEL_ALTERNATE_NAME): Likewise.
10555 (ADDRESSOF_DECL): Likewise.
10556 (JUMP_LABEL): Likewise.
10557 (LABEL_NEXTREF): Likewise.
10559 (ORIGINAL_REGNO: Likewise.
10560 (HARD_REGISTER_NUM_P): Add parenthesis.
10561 (SUBREG_REG): Whitespace.
10562 (SUBREG_BYTE): Likewise.
10563 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
10564 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
10565 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
10566 (ASM_OPERANDS_INPUT_VEC): Likewise.
10567 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
10568 (ASM_OPERANDS_INPUT): Likewise.
10569 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
10570 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
10571 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
10572 (ASM_OPERANDS_INPUT_MODE): Likewise.
10573 (ASM_OPERANDS_SOURCE_FILE): Likewise.
10574 (ASM_OPERANDS_SOURCE_LINE): Likewise.
10575 (MEM_SET_IN_STRUCT_P): Minor reformat.
10576 (TRAP_CONDITION): Whitespace.
10577 (TRAP_CODE): Likewise.
10578 (COND_EXEC_TEST): Likewise.
10579 (COND_EXEC_CODE): Likewise.
10580 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
10581 (PHI_NODE_P): Add parenthesis.
10582 (plus_constant): Whitespace and add parenthesis.
10584 2002-01-03 Kazu Hirata <kazu@hxi.com>
10586 * config/avr/avr.c: Fix comment typos.
10587 * config/c4x/c4x.md: Likewise.
10588 * config/dsp16xx/dsp16xx.h: Likewise.
10589 * config/dsp16xx/dsp16xx.md: Likewise.
10590 * config/i386/i386.md: Likewise.
10591 * config/ia64/ia64.c: Likewise.
10592 * config/m32r/m32r.h: Likewise.
10593 * config/m68hc11/m68hc11.md: Likewise.
10594 * config/mmix/mmix.c: Likewise.
10595 * config/mn10200/mn10200.c: Likewise.
10596 * config/romp/romp.c: Likewise.
10597 * config/sh/sh.c: Likewise.
10598 * config/stormy16/stormy16.c: Likewise.
10599 * config/stormy16/stormy16.h: Likewise.
10600 * config/stormy16/stormy16.md: Likewise.
10602 2002-01-03 Graham Stott <grahams@redhat.com>
10604 * loop.h: Update copyright date.
10605 (LOOP_MOVABLES): Fix typo.
10606 (LOOP_REGS): Likewise.
10607 (LOOP_IVS): Likewise.
10609 2002-01-03 Graham Stott <grahams@redhat.com>
10611 * cppinit.c: Update copyright date.
10612 Don't include output.h
10613 * Makefile.in: Update copyright date.
10616 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
10619 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
10620 (-pthread) Add to RS/6000 options.
10622 2002-01-02 Kazu Hirata <kazu@hxi.com>
10624 * except.c: Fix comment typos.
10625 * loop.c: Likewise.
10626 * varasm.c: Likewise.
10627 * doc/tm.texi: Fix a typo.
10629 2002-01-02 Jakub Jelinek <jakub@redhat.com>
10631 * c-typeck.c (output_init_element): Allow initializing static storage
10632 duration objects with compound literals.
10634 2002-01-02 Richard Henderson <rth@redhat.com>
10636 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
10639 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10641 * gcc.c (default_compilers): Const-ify.
10642 * mips-tdump.c (stab_names): Likewise.
10643 * mips-tfile.c (map_coff_types, map_coff_storage,
10644 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
10645 pseudo_ops_t, pseudo_ops): Likewise.
10646 * protoize.c (default_include): Likewise
10648 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
10649 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
10650 Add array size in declaration.
10651 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
10652 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
10653 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
10654 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
10655 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
10656 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
10657 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
10658 emtens, make_nan): Const-ify.
10659 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
10660 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
10662 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
10664 * config.gcc (ia64-*-*): Set extra_headers.
10665 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
10666 * config/alpha/t-osf: Remove.
10667 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
10669 2002-01-02 David Edelsohn <edelsohn@gnu.org>
10671 * config/rs6000/t-aix43: Revert previous change.
10673 2002-01-02 Jason Merrill <jason@redhat.com>
10675 * c-decl.c (c_expand_body): Call outlining_inline_function when
10676 emitting an inline function out of line.
10678 2002-01-02 Richard Henderson <rth@redhat.com>
10680 * dwarf2out.c (limbo_die_node): Add created_for member.
10681 (new_die): New argument created_for. Update all callers.
10682 (mark_limbo_die_list): New.
10683 (dwarf2out_init): Register limbo_die_list as a root.
10684 (dwarf2out_finish): Force insert limbo dies into their function
10687 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
10690 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10692 2002-01-02 Kazu Hirata <kazu@hxi.com>
10694 * config/h8300/fixunssfsi.c: Update copyright.
10697 * config/h8300/h8300.c: Update copyright.
10698 Eliminate warnings.
10700 2002-01-02 Kazu Hirata <kazu@hxi.com>
10702 * config/romp/romp.c: Fix comment formatting.
10703 * config/romp/romp.h: Likewise.
10704 * config/romp/romp.md: Likewise.
10705 * config/s390/s390.c: Likewise.
10706 * config/stormy16/stormy16.c: Likewise.
10707 * config/stormy16/stormy16.h: Likewise.
10709 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
10711 * c-common.h (genrtl_expr_stmt_value): Declare.
10712 * c-semantics.c (genrtl_goto_stmt): Redirect to...
10713 (genrtl_goto_stmt_value): ... this new function. Pass new
10714 argument down to expand_expr_stmt_value, taking
10715 TREE_ADDRESSABLE into account.
10716 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10717 STMT_EXPR as addressable, i.e., one whose result we want.
10718 * expr.c (expand_expr): Don't save expression statement value
10719 of labeled_blocks or loop_exprs.
10720 * stmt.c (expand_expr_stmt): Redirect to...
10721 (expand_expr_stmt_value): ... this new function. Use new
10722 argument to tell whether to save expression value.
10723 (expand_end_stmt_expr): Reset last_expr_type and
10724 last_expr_value if we don't have either.
10725 * tree-inline.c (declare_return_variable): Mark its use
10726 statement as addressable.
10727 * tree.h: Document new use of TREE_ADDRESSABLE.
10728 (expand_expr_stmt_value): Declare.
10730 2002-01-01 Tom Rix <trix@redhat.com>
10732 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10733 rs6000_emit_allocate_stack.
10735 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
10737 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10738 ${srcdir}/ginclude/ to every entry in extra_headers.
10739 * configure: Regenerate.
10740 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10741 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10742 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10743 * ginclude/proto.h: Rename to config/convex/proto.h.
10745 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10747 * attribs.c (handle_vector_size_attribute): Use host_integerp
10748 and tree_int_cst; remove warnings.
10749 * caller-save.c (insert_restore): Add cast to get rid of warning.
10750 (insert_save): Likewise.
10751 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10752 * regmove.c (find_matches): Add temporary var to kill a warning.
10754 2002-01-01 Douglas B Rupp <rupp@gnat.com>
10756 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10757 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10758 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10759 (vms-dwarf2eh.o): Add Makefile rule.
10760 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10761 * config/alpha/vms-dwarf2eh.asm: New file.
10763 * gcc.c (delete_if_ordinary): Delete all versions.
10765 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
10767 * config/mmix/mmix.md: Update FIXME to not mention
10769 (MMIX_rJ_REGNUM): New define_constants constant.
10770 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10771 "*movdicc_real"): Adjust contraints formatting.
10772 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10773 for branch prediction.
10774 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10776 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10777 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10778 number. Delete related FIXMEs.
10779 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10780 from number to MMIX_rJ_REGNUM.
10781 (TARGET_MASK_BRANCH_PREDICT): New.
10782 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10783 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
10784 value. Add -mbranch-predict and -mno-branch-predict.
10785 (TARGET_VERSION): Drop date.
10786 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10787 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10788 for finding out global symbols.
10789 (mmix_asm_output_labelref): Revert condition for global symbol.
10790 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10791 (mmix_print_operand_punct_valid_p): A '+' is valid.
10793 See ChangeLog.6 for earlier changes.