PR c++/8333
[official-gcc.git] / gcc / ChangeLog
blob2df251ba6926cdcf1140ab43703320f1d74e42f2
1 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
3         * varasm.c (asm_output_aligned_bss): Do not call
4         ASM_GLOBALIZE_LABEL.
6 2002-10-29  Janis Johnson  <janis187@us.ibm.com>
8         * doc/invoke.texi (-profile-arcs): Remove references to -a and -ax.
10 2002-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
12         * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
13         check for zero operands explicitly.
15 2002-10-21  Dale Johannesen  <dalej@apple.com>
17         PR target/7133
18         * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
19         unsafe math reversals correctly for RTL generation.
20         (output_cbranch):  Replace rs6000_reverse_condition call
21         by its former definition.
23 Sun Oct 27 10:12:27 CET 2002  Jan Hubicka  <jh@suse.cz>
25         * linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.
27         PR target/6890
28         * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
30 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
32         PR middle-end/6994
33         * c-objc-common.c (inline_forbidden_p): Can not inline
34         functions containing structures or unions containing VLAs.
35         * tree-inline.c (walk_tree): For all class 't' nodes, walk
36         TYPE_SIZE and TYPE_SIZE_UNIT. #undef WALK_SUBTREE_TAIL at end.
37         (copy_tree_r): Copy types if they are variably modified.
39         * hooks.c (hook_tree_bool_false): New.
40         * hooks.h: Prototype it.
41         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
42         var_mod_type_p.
43         * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
44         hook_tree_bool_false.
46         * tree.c (variably_modified_type_p): Moved here from
47         cp/tree.c.  Use lang_hooks.tree_inlining.var_mod_type_p for
48         language-specific cases.  Due to this, must weaken some 'if
49         and only if' checks to merely 'if'.
50         * tree.h: Prototype variably_modified_type_p.
52 2002-10-22  Jim Wilson  <wilson@redhat.com>
54         * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
56 2002-10-15  Jim Wilson  <wilson@redhat.com>
58         PR target/6981
59         * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
61 2002-10-24  Richard Henderson  <rth@redhat.com>
63         PR opt/7944
64         * reload.c (find_reloads_toplev): Use simplify_gen_subreg; mode
65         of X is not important when simplifying subregs of constants.
67 2002-10-23  Robert Lipe  <robertlipe@usa.net>
69         * config.gcc (i[34567]86-*-sco3.2v5*): Fix tm_file.
71 2002-10-23  Roger Sayle  <roger@eyesopen.com>
73         PR c/761
74         * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
75         Document --version, -fno-sched-interblock, -fno-sched-spec,
76         -fsched-spec-load, -fsched-spec-load-dangerous,
77         -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
79 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
81         * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
82         ("*movdf_64"): Likewise.
83         ("*lshrdi3_64"): Likewise.
85 2002-10-21  Matthias Klose  <doko@debian.org>
87         * Backport, without whitespace change:
88         2002-06-19 Akim Demaille  <akim@epita.fr>
89         * c-parse.in (initelt: identifier ':' initval): Add an empty
90         action to fix a type clash.
91         (aliasdecl, classdef): Add the missing closing `;'.
93 Sat Oct 19 15:49:14 CEST 2002  Jan Hubicka  <jh@suse.cz>
95         * mmintrin.h (__m64): typedef it to v2si.
96         (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
97         _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
98         _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
99         _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
100         _mm_or_si64, _mm_xor_si64): Add neccesary casts.
101         * xmmintrin.h (_mm_setzero_si64): Likewise.
103         PR target/7693
104         Patch by Shawn Wagner
105         * mmintrin.h: Replace pi64 by si64.
107 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
109         * decl.c (start_decl): Point users of the old initialized-
110         typedef extension at __typeof__.
112 Thu Oct 17 17:14:07 CEST 2002  Jan Hubicka  <jh@suse.cz>
114         PR opt/7630
115         * reload.c (reload_inner_reg_of_subreg): New argument output;
116         (push_reload): Update call.
118         PR c++/6419
119         * expr.c (expand_expr): Use DECL_RTL_SET_P.
121 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
123         * calls.c (expand_call): Take current_function_pretend_args_size
124         into account when setting argblock for sibcalls.
126 Wed Oct 16 19:43:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
128         PR target/7396
129         * i386.c (builtin_description):Drop cmpg[te]s[sd].
130         * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
131         swapped alternative.
133 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
135         * fold-const.c (fold): Fix a typo.
137 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
139         PR target/7370
140         * config/s390/s390.md ("*addsi3_inv"): New pattern.
142         PR target/8232
143         * config/s390/s390.md ("cmpstrsi"): Convert length operand
144         from SImode to Pmode.
146 2002-10-15  Janis Johnson  <janis187@us.ibm.com>
148         * doc/install.texi: Formatting changes for conformance to HTML 4.01.
150 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
152         PR opt/7409
153         * loop.c (loop_regs_scan): Mark registers used for function
154         argument passing as MAY_NOT_OPTIMIZE.
156 2002-10-14  Neil Booth  <neil@daikokuya.co.uk>
158         PR preprocessor/7862
159         PR preprocessor/8190
160         * gcc.c (cpp_unique_options): Don't delete .d files.
161         Remove stray whitespace.
163 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
165         * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
166         Handle TARGET_64BIT.
168 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
170         PR optimization/6631
171         * Makefile.in (function.o): Depend on langhooks.h.
172         * alias.c (objects_must_conflict_p): Check honor_readonly when
173         examining TYPE_READONLY.
174         * function.c (assign_stack_temp_for_type): Likewise.
176 2002-10-12  John David Anglin  <dave@hiauly1.hia.nrc.ca>
178         * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH and
179         TREE_VEC_LENGTH to ensure values are promoted before doing subtraction.
181 2002-10-11  Janis Johnson  <janis187@us.ibm.com>
183         * doc/compat.texi: Add info about C++ libraries.
185 Thu Oct 10 19:47:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
187         PR target/5610
188         * invoke.texi (-msse-math): Kill
189         (-msse): Add note to mfpmath=sse.
191 Thu Oct 10 17:38:29 CEST 2002  Jan Hubicka  <jh@suse.cz>
193         PR ice/7951
194         * reload1.c (emit_input_reload_insns): Use constrain_operands
195         instead of constraint_accepts_reg_p to verify optimization.
196         (constraint_accepts_reg_p): Kill
198 Thu Oct 10 17:05:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
200         PR target/7723
201         * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
203 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
205         PR c/7353
206         * c-decl.c (start_decl): Unconditionally issue error for
207         'typedef foo = bar'.
208         (finish_decl): Remove special case for TYPE_DECL with initializer.
210         * doc/extend.texi: Delete "Naming Types" section.  Change all
211         cross-references to that section to refer to "Typeof" instead.
212         Add the useful safe-max()-macro example from "Naming Types" to
213         "Typeof", rewritten using that extension.  Add some compatibility
214         notes to "Typeof."
216 2002-10-02  Richard Henderson  <rth@redhat.com>
218         PR opt/7124
219         * config/i386/i386.c (ix86_register_move_cost): Increase cost
220         for secondary_memory_needed pairs.
222 Wed Oct  9 19:09:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
224         PR opt/7912
225         PR opt/7390
226         * i386.c (athlon_cost): Fix the move costs.
228 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
230         * libgcc2.c (__floatdisf): Properly cure double rounding.
232 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
234         PR doc/7484
235         * doc/invoke.texi (Option Summary): List
236         -Wmissing-declarations as a C only option.
238 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
240         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
241         mno-app-regs|mcmodel=medany.
242         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
243         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
244         (CRTSTUFF_T_CFLAGS): Define.
246 2002-09-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
247             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
249         PR c/7411
250         * expr.c (expand_expr) [PLUS]: Simplify after the operands
251         have been expanded in EXPAND_NORMAL mode.
253 2002-10-06  Richard Henderson  <rth@redhat.com>
255         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
257 2002-10-06  Roger Sayle  <roger@eyesopen.com>
259         PR optimization/6627
260         * toplev.c (force_align_functions_log): New global variable.
261         * flags.h (force_align_functions_log): Add extern prototype.
262         * varasm.c (assemble_start_function): Use it to force minimum
263         function alignment.
264         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
265         minimum function alignment to one byte.
266         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
267         the least significant bit of vtable member function pointers.
268         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
269         here from cp/cp-tree.h.
271 2002-10-06  Neil Booth  <neil@daikokuya.co.uk>
273         Debian BTS Bug #157416
274         * cpplib.c (destringize_and_run): Kludge around getting
275         tokens from in-progress macros.
276         (_cpp_do__Pragma): Simplify.
278 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
280         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
282 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
284         * gcc.c (set_multilib_dir): Don't access *end.
285         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
286         (print_multilib_info): Don't show paths starting with ".:".
287         * genmultilib: Add new option, "yes" if multilibs are enabled.
288         Update comments.  If multilibs not enabled, print .:${osdirout}
289         for each directory.  If multilibs are enabled, always print
290         ${dirout}:${osdirout}, even if the two are the same.
291         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
292         Pass all MULTILIB_* variables to genmultilib even if
293         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
295         * gcc.c (print_multi_os_directory): New variable.
296         (option_map): Support --print-multi-os-directory.
297         (struct prefix_list): Add os_multilib field.
298         (multilib_os_dir): New variable.
299         (static_specs): Add multilib_options.
300         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
301         subdirs if non-zero.
302         (read_specs, execute): Update callers.
303         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
304         pass 1 as multilib option.
305         (display_help): Include --print-multi-os-directory.
306         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
307         (process_command): Update callers.  Handle --print-multi-os-directory.
308         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
309         set.
310         (main): Update find_a_file and add_prefix callers.
311         Handle print_multi_os_directory.
312         (struct mdswitchstr): New.
313         (mdswitches, n_mdswitches): New variables.
314         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
315         present on the command line nor their mutually incompatible
316         switches.
317         (default_arg): Optimize.
318         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
319         array.
320         (print_multilib_info): Only print GCC multilib dir name, not OS
321         multilib dirname.
322         * genmultilib: Add osdirnames parameter.  Output multilib_options
323         variable.  If osdirnames is specified, output dirnames as
324         dirname:osdirname.
325         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
326         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
327         to compute libgcc_s soname and install path.
328         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
329         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
330         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
331         argument.
333         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
334         (SHLIB_SLIBDIR_SUFFIXES): Remove.
335         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
336         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
337         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
338         and -m64.
339         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
340         (SHLIB_SLIBDIR_SUFFIXES): Remove.
341         * config/sparc/sol2-bi.h (STARTFILE_SPEC32, STARTFILE_SPEC64): Remove.
342         (STARTFILE_ARCH_SPEC): Remove.
343         (STARTFILE_SPEC): Add values-X*.o here.
344         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
345         (SHLIB_SLIBDIR_SUFFIXES): Remove.
346         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
347         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between m32 and
348         !m32.
349         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
350         (SHLIB_SLIBDIR_SUFFIXES): Remove.
352 2002-10-05  Neil Booth  <neil@daikokuya.co.uk>
354         PR preprocessor/8120
355         * doc/cpp.texi: Update documentation of bad use of ##.
357 Thu Oct  3 23:15:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
359         * i386.h (CPP_SPECS): fix defines for -msse, -msse2, -mpentium2,3.
361 Thu Oct  3 21:35:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
363         * toplev.c (rest_of_compilation): Dump loops before clobbering
364         the structure.
366         * expr.c (force_operand): Use expand_simple_* to handle more
367         cases.
369         * i386.c (q_regs_operand): Use ANY_QI_REG_P.
371         * i386.c (override_options): Fix stack alignment.
372         (classify_argument): Handle variable sized types.
373         (ix86_expand_int_movcc): Avoid RTL sharing problem.
375         * i386.md (prefetch_sse_rex, prefetch_3dnow_rex): New.
376         (prefetch): Properly handle 64bit case.
378         * i386.c (classify_argument): Properly compute word size of the analyzed object.
380         * jump.c (reg_or_subregno): New function.
381         * rtl.h (reg_or_subregno): Declare
382         * unroll.c (find_splittable_givs): Handle subregs.
384         Richard Sandiford  <rsandifo@redhat.com>:
386         * expr.c (force_operand): Fix reversed move.
388         Andreas Jaeger  <aj@suse.de>:
390         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): New.
392         Janis Johnson  <janis187@us.ibm.com>:
394         * loop.c (emit_prefetch_instructions): Several small fixes.
396 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
398         * loop.c (scan_loop): Don't mark separate insns out of a libcall
399         for moving.
400         (move_movables): Abort if we see the first insn of a libcall.
402 2002-10-01  David S. Miller  <davem@redhat.com>
404         PR middle-end/7151
405         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
406         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
408 2002-10-01  David S. Miller  <davem@redhat.com>
409             Jan Hubicka <jh@suse.cz>
411         * reload1.c (gen_reload:SECONDARY_MEMORY_NEEDED): Handle SUBREG.
412         * reload.c (push_reload:SECONDARY_MEMORY_NEEDED): Likewise.
414 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
416         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
417         Add new RL_REGS register class.
418         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
419         Call xtensa_preferred_reload_class for both input and output reloads.
420         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
421         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
422         instead of either AR_REGS or GR_REGS classes.
423         (xtensa_secondary_reload_class): Use new RL_REGS class.
424         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
426 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
428         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
430 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
432         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
433         at head.
434         (remove_dup_nonsys_dirs): New function.
435         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
436         (merge_include_chains): Remove non-system include directories from
437         quote and bracket include chains when they duplicate equivalent system
438         directories.
439         * doc/cpp.texi (-I): Update.
440         * doc/cppopts.texi (-I): Update.
441         * doc/install.texi (--with-local-prefix): Further document usage of
442         this option.
443         * doc/invoke.texi (-I): Update.
445 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
447         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
448         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
449         that we have a SImode access, and only then if reload hasn't completed;
450         for all other cases, use LO_REGS.
452 2002-09-29  David S. Miller  <davem@redhat.com>
454         * config/sparc/linux64.h (STARTFILE_SPEC32, ENDFILE_SPEC32): Kill
455         hardcoded paths.
457 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
459         PR preprocessor/8055
460         * cppmacro.c (stringify_arg): Do not overflow the buffer
461         with the terminating NUL when the argument to be stringified
462         has no tokens.
464 2002-09-26  David S. Miller  <davem@redhat.com>
466         PR optimization/7335
467         * calls.c (emit_library_call_value_1): Passing args by reference
468         converts a CONST function into a PURE one.
470 2002-09-26  Richard Henderson  <rth@redhat.com>
472         PR c/7160
473         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
474         on call insns.
476 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
478         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
479         by absolute loop increment, not loop increment.
481 2002-09-25  David S. Miller  <davem@redhat.com>
483         PR target/7842
484         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
485         extend.
487 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
489         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
490         Add clobber of the condition code register.
492 2002-09-18  Richard Earnshaw (rearnsha@arm.com)
494         PR optimization/7967
495         * arm.md (ne_zeroextractsi): Add clobber of the condition code
496         register.
498 2002-09-17  Richard Henderson  <rth@redhat.com>
500         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
501         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
503 2002-09-16  Richard Henderson  <rth@redhat.com>
505         PR opt/7515
506         * c-objc-common.c (c_cannot_inline_tree_fn): Don't auto-inline
507         functions that don't bind locally.
509 2002-09-17  Alan Modra  <amodra@bigpond.net.au>
511         Merge from mainline.
512         2002-07-20  Alan Modra  <amodra@bigpond.net.au>
513         PR optimization/7130
514         * loop.h (struct loop_info): Add "preconditioned".
515         * unroll.c (unroll_loop): Set it.
516         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
518         2002-06-24  Alan Modra  <amodra@bigpond.net.au>
519         PR optimization/6984
520         * doloop.c (doloop_valid_p): Correct comment.
521         (doloop_modify_runtime <abs_inc != 1>): Simplify.
522         (doloop_modify_runtime <do-while>): Don't emit code when NE.
524 2002-09-16  Jeff Law <law@redhat.com>
526         * libgcc2.c: Do not include machmode.h.
528 2002-09-16  Jason Merrill  <jason@redhat.com>
529             Danny Smith  <dannysmith@users.sourceforge.net>
531         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
532         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
533         (i386_pe_mark_dllimport): Not here.
535 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
537         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
538         memory operand when source is 0 (K constraint).
539         ("movsi_internal"): Likewise.
540         ("movdf_internal"): Likewise.
541         ("movsf_internal"): Likewise.
543 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
545         Merge from mainline.
546         2002-09-14  Alan Modra  <amodra@bigpond.net.au>
547         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
548         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
549         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
551         2002-08-27  David Edelsohn  <edelsohn@gnu.org>
552         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
554         2002-08-02  Alan Modra  <amodra@bigpond.net.au>
555         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
556         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
557         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
558         HOST_BITS_PER_WIDE_INT == 64.
560         2002-07-27  Alan Modra  <amodra@bigpond.net.au>
561         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
562         label reference when NO_PROFILE_COUNTERS.
564         2002-07-11  Alan Modra  <amodra@bigpond.net.au>
565         * config/rs6000/linux64.h (ASM_SPEC): Define.
567 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
569         Merge from mainline.
570         2002-07-24  Alan Modra  <amodra@bigpond.net.au>
571         PR c/7150, target/7380
572         * config/rs6000/rs6000.md: Remove scratch reg on insns using
573         addze and similar (plus (comparison r1 r2) r3) insns.  Add
574         missing scratch reg in one case.  Formatting fixes.
576         2002-07-18  Alan Modra  <amodra@bigpond.net.au>
577         PR other/7114, target/5967
578         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
579         adjustments to first_reg for profiling case.
580         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
581         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
582         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
583         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
584         (ASM_OUTPUT_REG_POP): Define.
585         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
586         (ASM_OUTPUT_REG_POP): Undef.
588         2002-06-30  Alan Modra  <amodra@bigpond.net.au>
589         PR optimization/7120
590         * unroll.c (loop_iterations): Handle EQ loops.
592 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
594         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
595         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
596         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
598 2002-09-12  Janis Johnson  <janis187@us.ibm.com>
600         * doc/compat.texi: New file with new chapter, Binary Compatibility.
602 2002-09-12  Jason Merrill  <jason@redhat.com>
604         * calls.c (store_one_arg): Use size_in_bytes to determine the
605         amount of space to push.
607 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
609         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
611 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
613         * emit-rtl.c (set_mem_size): New function.
614         * expr.h (set_mem_size): Declare.
615         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
616         (expand_block_move): Instead, use adjust_address and
617         replace_equiv_address to generate proper aliasing info.
618         Move common code out of conditionals.  Localize vars.
620 2002-09-11  Alexander Kabaev  <kan@FreeBSD.ORG>
622         Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
623         * loop.c (canonicalize_condition): Use gen_int_mode.
625 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
627         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
628         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
629         include its file, compat.texi.
630         * doc/trouble.texi (Interoperation): Update information about C++ ABI
631         issues.
632         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
633         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
634         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
635         Warn that these options can break ABI compatibility.
636         (Many places): Fix overfull hboxes.
638         * doc/extend.texi: Fix a broken link; fix overfull hboxes.
639         * doc/install.texi: Fix a typo, some formatting directives, and
640         overfull hboxes.
641         * doc/c-tree.texi: Fix overfull hboxes.
642         * doc/cppopts.texi: Ditto.
643         * doc/makefile.texi: Ditto.
644         * doc/rtl.texi: Ditto.
645         * doc/standards.texi: Ditto.
646         * doc/tm.texi: Ditto.
648 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
650         * reload.c (find_reloads <p constraint>): Pass operand_mode to
651         find_reloads_address.
653 2002-09-07  Scott Snyder  <snyder@fnal.gov>
655         PR target/7374
656         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
658 2002-09-07  Glen Nakamura  <glen@imodulo.com>
660         PR opt/7814
661         * sched-deps.c (sched_analyze_insn): Make sure to add insn
662         to reg_last->sets after flushing the dependency lists to guarantee
663         that subsequent clobbers will be dependent on it.
665 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
667         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
669 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
671         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
672         unconditionally when gcc_cv_as_flags64 checks are gone.
673         * configure: Rebuilt.
675 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
677         PR c/7102
678         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
680 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
682         * config/sparc/t-netbsd64: Disable multilib for now.
684 2002-09-01  Alexandre Oliva  <aoliva@redhat.com>
686         * c-tree.h (skip_evaluation): Move declaration...
687         * c-common.h: ... here.
688         * c-typeck.c (build_external_ref): Don't assemble_external nor
689         mark a tree as used if skip_evaluation is set.
690         * c-parse.in (typeof): New non-terminal to set skip_evaluation
691         around TYPEOF.
692         (typespec_nonreserved_nonattr): Use it.
694 2002-09-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
696         2002-08-13  Denis Chertykov  <denisc@overta.ru>
697         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
698         which can change CC0.
700 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
702         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
703         memory exhausted" workarounds.
705 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
707         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
709 2002-08-28  Jason Merrill  <jason@redhat.com>
711         * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
712         a VAR_DECL with RTL that matches the target, just return that RTL.
714 2002-08-28  Daniel Berlin  <dberlin@dberlin.org>
716         * tree-inline.c (expand_call_inline): Make the statement
717         expression we generate have a COMPOUND_STMT.
719 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
721         * doc/invoke.texi: Document -Wabi.
723 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
725         * config/rs6000/rs6000.c (rs6000_select_section): Treat
726         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
727         default.
728         (rs6000_unique_section): Likewise.
730 2002-08-22  Jason Merrill  <jason@redhat.com>
732         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
733         * langhooks.c (lhd_expr_size): Define default.
734         * langhooks.h (struct lang_hooks): Add expr_size.
735         * explow.c (expr_size): Call it.
736         (int_expr_size): New fn.
737         * expr.h: Declare it.
738         * expr.c (expand_expr) [CONSTRUCTOR]: Use it to calculate how
739         much to store.
741 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
743         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
744         for loading delta with num_insns_constant_wide.  Calculate
745         delta_low, delta_high without using a conditional.
747 2002-08-20  Andreas Jaeger  <aj@suse.de>
749         Merge from trunk:
750         Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
752         * i386.md (prefetch): Fix for 64bit mode.
753         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
755         2002-08-11  Andreas Jaeger  <aj@suse.de>
756         PR target/7531:
757         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
759 2002-06-24  Jeff Law <law@redhat.com>
761         * flow.c (propagate_one_insn): When removing an insn
762         with a REG_LIBCALL note but not the entire libcall sequence,
763         delete the associated REG_RETVAL note.
765 2002-06-04  Jeff Law <law@redhat.com.
766             David Edelsohn <edelsohn@gnu.org>
767             Michael Matz <matz@kde.org>
769         * sched-int.h (struct deps): New field libcall_block_tail_insn.
770         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
771         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
772         is set, then mark the current insn as being part of a libcall
773         scheduling group.
774         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
776         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
777         insns against the issue rate.
779 2002-05-30  Jeff Law <law@redhat.com>
781         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
782         a dead insn with a REG_RETVAL note when the entire libcall is not
783         dead and remove the associated REG_LIBCALL note at the same time.
785 2002-05-29  Jeff Law <law@redhat.com>
787         * flow.c (propagate_one_insn): Do not remove a dead insn if it
788         contains a REG_RETVAL note.
790         * haifa-sched (sched_analyze): Remove another useless clearing
791         of SCHED_GROUP_P I missed yesterday.
793 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
794             Jeff Law <law@redhat.com>
796         * optabs.c (expand_binop): Fix nwords sign warnings.
797         generate pseudo for add_optab.
799         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
800         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
802 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
804         PR preprocessor/7602
805         * cppinit.c (path_include): Treat the system environment
806         variables as being cxx_aware.
808 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
810         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
812         * config/rs6000/rs6000.c (output_mi_thunk): Return to function
813         section on TARGET_ELF.
815         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
816         (Binaries): Update Bull Freeware URL.
818 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
820         PR preprocessor/7358
821         PR preprocessor/7357
822         PR preprocessor/7526
823         * cppfiles.c (stack_include_file): Ignore main file if
824         appropriate.  Correct test of whether a dependency should
825         be output.
826         * cppinit.c (init_dependency_output): Ignore main file
827         for SUNPRO_DEPENDENCIES.
828         (struct lang_flags): Rename trigraphs std.
829         (set_lang): Update.
830         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
831         * cpplib.h (struct cpp_options): New members.
832         * cppmacro.c (collect_args): Flag whether to swallow a possible
833         future comma pasted with varargs.
834         (replace_args): Use this flag.
835         * doc/cpp.texi: Update varargs extension documentation.
836         * doc/cppenv.texi: Update.
838 2002-08-14  Release Manager
840         * GCC 3.2 Released.
842 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
844         * config/rs6000/rs6000.h, config/rs6000/aix.h,
845         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
846         two patches.
847         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
849 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
851         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
852         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
853         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
854         macro.
856 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
858         * stor-layout.c (place_union_field): For bitfields if
859         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
860         TYPE_USER_ALIGN.
862 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
863             Richard Henderson  <rth@redhat.com>
865         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
866         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
867         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
868         (place_field): Likewise.
869         * config/i386/i386.c (x86_field_alignment): Don't check
870         TARGET_ALIGN_DOUBLE for the second time.
871         Apply min for all MODE_INT and MODE_CLASS_INT modes.
872         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
873         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
874         prototype.
875         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
876         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
877         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
878         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
879         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
880         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
882 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
884         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
886 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
888         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
889         --{enable,disable}-threads is given to configure.
890         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
891         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
892         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
893         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
894         Remove thread_file setting here.
896 2002-08-04  Mark Mitchell  <mark@codesourcery.com>
898         * doc/install.texi (Installing GCC): Refer to buildstat.html,
899         rather than listing version-specific build status files.
901 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
903         * doc/include/gcc-common.texi (version-GCC): Increase to 3.2.
905 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
907         * gcc.c: Set __GXX_ABI_VERSION to 102.
909 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
911         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
913 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
915         PR optimization/7291
916         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
917         problem on x86_64.
919 2002-05-16  Jason Merrill  <jason@redhat.com>
921         * config/mips/mips.c (mips_output_external): Don't do sdata
922         optimization for a variable with DECL_COMDAT set.
924 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
926         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
928         * c-decl.c (build_compound_literal): Defer compound literal decls
929         until until file end to emit them only if they are actually used.
931 2002-07-25  Release Manager
933         * GCC 3.1.1 Released.
935 2002-07-21  Nick Clifton  <nickc@redhat.com>
937         * Import following patch from mainline:
939         2002-03-18  Bernd Schmidt  <bernds@redhat.com>
941                 * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart
942                 instead of gen_rtx_SUBREG.
943                 (arm_reload_out_hi): Use gen_lowpart instead of
944                 gen_rtx_SUBREG to access QImode components.
945                 * config/arm/arm.md: Disable zero_extend split for QImode
946                 subregs in BIG_ENDIAN mode.
947                 (storehi_bigend): Match use of least significant byte.
948                 (storeinthi): Remove extraneous SUBREG.
949                 Add missing construction of operands[2].
950                 (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
951                 (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
952                 Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
954 2002-07-18  Richard Henderson  <rth@redhat.com>
956         PR optimization/7147
957         * ifcvt.c (noce_get_condition): Make certain that the condition
958         is valid at JUMP.
960 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
962         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
963         --gc-sections if -r.
965 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
967         PR optimization/7153
968         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
969         dies in more than one insn.
971 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
973         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
975 2002-07-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
977         * bb-reorder.c (make_reorder_chain_1): Search harder for the vax
978         casesi fallthru edge.
979         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
980         block after ADDR_VEC.
981         * vax.md (casesi): Use emit_jump_insn.  Remove unused constraints.
983 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
985         PR middle-end/7245
986         * config/i386/i386.c (const_int_1_31_operand): New.
987         * config/i386/i386.h (PREDICATE_CODES): Add it.
988         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
989         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
990         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
992 2002-06-11  Andreas Schwab  <schwab@suse.de>
994         * config/m68k/m68k.h (PREDICATE_CODES): Define.
996 2002-07-15  Alan Modra  <amodra@bigpond.net.au>
998         PR target/7282
999         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
1000         (floatunssidf2): Likewise.
1001         (floatsidf_ppc64): New insn_and_split.
1002         (floatunssidf_ppc64): Likewise.
1004 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
1006         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
1007         the scratch register.
1008         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
1009         of it, forbid reload to use it.
1011 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1013         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
1014         usage on 64-bit hosts, return value was truncated to 32 bits.
1016 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1018         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand.
1019         Remove comment.  Change predicate of 32-bit adddi3 insn pattern to
1020         arith11_operand.
1021         * pa-protos.h (adddi3_operand): Add prototype.
1022         * pa.c (cint_ok_for_move): Fix comment.
1023         (adddi3_operand): New function.
1024         (emit_move_sequence):  Don't directly split DImode constants on
1025         32-bit targets.
1027 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1029         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
1030         QI mode registers in soft registers.
1031         ("zero_extendqihi2"): Do not take into account soft registers
1032         for register allocation (use '*' constraint).
1034 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1036         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
1037         it is dead.
1038         ("*ashrsi3"): Likewise.
1039         ("*lshrsi3"): Likewise.
1041 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
1043         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1044         address computation and memory moves.
1046 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
1048         PR c++/6706
1049         * dwarfout.c (output_reg_number): Fix warning message.
1050         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
1051         before using it.
1053 2002-07-03  Richard Henderson  <rth@redhat.com>
1055         * config/i386/i386.md (prologue_get_pc): Issue pop here ...
1056         * config/i386/i386.c (load_pic_register): ... not here.
1058 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
1060         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
1061         in FPR as preference.
1062         (fctiwz): Same.
1063         (floatdidf2, fix_truncdfdi2): Same.
1064         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
1065         (floatditf2): Same.
1066         (floatsitf2, fix_trunctfsi2): SImode in GPR.
1067         (ctrdi): Remove FPR alternative and splitter.
1069 2002-07-02  Hans-Peter Nilsson  <hp@axis.com>
1071         PR target/7177
1072         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
1073         of indirections for register inside sign-extended mem part.
1075 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1077         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
1079 2002-06-30  David Edelsohn  <edelsohn@gnu.org>
1081         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
1082         constraint in define_expand, not splitter.
1084 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
1086         * configure.in (gcc_gxx_include_dir):  Change to match versioned
1087         C++ headers if --enable-version-specific-runtime-libs is used.
1088         * configure:  Regenerate.
1090 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1092         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
1093         avoid the auto increment addressing modes.
1094         ("*subsi3"): Likewise.
1095         (split for add/sub on address): For 68HC12 push the value on
1096         the stack and do the operation with a pop.
1098 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1100         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
1101         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
1102         Declare.
1103         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
1104         do not reorder basic blocks at the end when optimizing for size.
1106 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
1108         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
1109         (m68hc11_make_autoinc_notes): New function.
1110         (m68hc11_split_move): Be very cautious when spliting a move with
1111         auto increment/decrement modes because this may result in incompatible
1112         directions; add REG_INC notes to the resulting insn for CSE reg.
1114 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
1116         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
1117         can be a valid address.
1119 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
1121         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
1122         config/xtensa/xtensa.c (xtensa_return_addr): New function.
1123         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
1124         config/xtensa/xtensa.md (fix_return_addr): New pattern.
1126 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
1128         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
1129         when generating the call to _mcount.
1130         (NO_PROFILE_COUNTERS): Define.
1132 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
1134         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
1135         subregs.
1136         * recog.c (general_operand, register_operand): Disallow them.
1138 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
1140         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Pass
1141         flag_function_sections as new 3rd arg to resolve_unique_section.
1143 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
1145         PR preprocessor/7070
1146         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
1148 2002-06-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1150         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
1151         Hitachi entry.  Make punctuation more consistent.
1153 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
1155         * doc/install.texi: Change ` bit' to `-bit'.
1156         * doc/md.texi: Change `-bits' to `-bit'.
1157         * doc/tm.texi: Change `-bits' to ` bits'.
1159 2002-06-24  David S. Miller  <davem@redhat.com>
1161         * config/sparc/sparc.h (INIT_TARGET_OPTABS): If ARCH64, set the
1162         32-bit ABI libfuncs to NULL.
1164         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
1165         optabs if op1 is const0_rtx.
1167 2002-06-23  Jan Hubicka  <jh@suse.cz>
1169         * reg-stack.c (convert_regs_exit): Push the registers to stack in
1170         proper order.
1172 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1174         PR middle-end/6963
1175         * function.c (assign_stack_temp_for_type): Do not return
1176         the same MEM rtx for multiple uses of a stack slot.
1178 2002-06-22  David S. Miller  <davem@redhat.com>
1180         PR target/6841 target/6770 target/6719
1181         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
1182         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
1183         GENERAL_OR_EXTRA_FP_REGS.
1185 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1187         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
1188         multilibs.
1189         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
1190         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Likewise.
1191         Fixes PR other/6836.
1193 2002-06-21  Bo Thorsen  <bo@suse.de>
1195         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1196         support so multilib works again. And don't define this at all
1197         when -Dinhibit_libc is used.
1199 Thu Jun 20 16:41:40 CEST 2002  Jan Hubicka  <jh@suse.cz>
1201         * combine.c (gen_lowpart_for_combine): Avoid calling of
1202         simplify_gen_subreg on VOIDmode.
1204         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
1206 2002-06-20  Richard Henderson  <rth@redhat.com>
1208         * c-common.c (c_common_get_alias_set): Correctly handle characters.
1209         Rearrange order of expressions; don't handle vectors here.
1210         * alias.c (get_alias_set): Let vectors match their components.
1212 2002-06-17  Hans-Peter Nilsson  <hp@axis.com>
1214         PR target/7042
1215         * config/cris/cris.c (cris_simple_epilogue): Kludge around reorg.c
1216         bug by saing that the epilogue isn't simple if there's a
1217         non-empty current_function_epilogue_delay_list.
1218         * config/cris/cris.md ("return"): Add sanity check asserting that
1219         current_function_epilogue_delay_list is empty.
1221 2002-06-17  Richard Henderson  <rth@redhat.com>
1223         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1224         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
1226 2002-06-17  Richard Henderson  <rth@redhat.com>
1228         PR target/6922
1229         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
1231 Mon Jun 17 00:31:46 CEST 2002  Jan Hubicka  <jH@suse.cz>
1233         * i386-protos.h (x86_field_alignment): Declare.
1234         * i386.c (x86_field_alignment): Define.
1235         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
1236         (BIGGEST_FIELD_ALIGNMENT): Kill.
1238 2002-06-16  Richard Henderson  <rth@redhat.com>
1240         PR opt/6722
1241         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
1243 2002-06-16  Richard Henderson  <rth@redhat.com>
1245         PR c/7030
1246         * dwarf2out.c (modified_type_die): Don't assign the qualified die
1247         to the unqualified type.
1249 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
1251         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add
1252         SPARC_STACK_BIAS.
1254 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1256         * loop.c (check_final_value): Use v->always_executed
1257         instead of v->always_computable.
1258         * unroll.c (final_giv_value): Don't calculate the final
1259         value as a function of the biv if the giv is not computed
1260         for every loop iteration.
1262 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
1264         PR c/6677
1265         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
1266         the truncation down when the target type is signed.
1267         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
1268         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
1269         the conversion if the target type is a smaller type.
1271 Thu Jun 13 18:27:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
1273         * i386.c (ix86_expand_movstr):  Fix pasto.
1275 Thu Jun 13 18:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1277         * reload.c (find_valid_class):  Fix thinko in my previous patch.
1279 2002-06-13  Hans-Peter Nilsson  <hp@axis.com>
1281         PR target/6997
1282         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
1284 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
1286         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
1287         * config/mips/mips.c (mips_output_filename): Don't print a
1288         ".file" directive if we are using DWARF-2.
1289         (mips_output_function_prologue): Do not emit source file
1290         name for TARGET_GAS.
1292 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1294         * config/s390/s390.md (movsi): Only use floating point
1295         register alternatives when operands are already fprs.
1296         (movdi_31, movdi_64): Likewise.
1298 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
1300         * config/s390/s390.md (reload_base, ltorg): Remove.
1301         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
1302         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
1303         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
1304         s390_asm_output_pool_prologue): Likewise.
1305         * s390.h (s390_pool_start_insn): Likewise.
1307         * s390.c (s390_output_symbolic_const): Remove support for
1308         old-style pool chunks.
1309         (s390_function_epilogue): Likewise.
1310         (s390_output_constant_pool): Likewise.  Also, fix incorrect
1311         alignment for 64-bit literal pools.
1312         (print_operand_address): Remove 'y' and 'Y' format flags.
1313         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
1314         old-style pool chunks.
1315         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
1316         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
1317         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
1319         * s390.c (consttable_operand): New function.
1320         * s390-protos.h (consttable_operand): Declare it.
1321         * s390.h (PREDICATE_CODES): Add consttable_operand.
1322         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
1323         consttable_sf, consttable_df, pool_start_31, pool_end_31,
1324         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
1325         * s390.c (struct constant, struct constant_pool): New data types.
1326         (constant_modes, gen_consttable): New variables.
1327         (s390_start_pool, s390_end_pool, s390_add_pool,
1328         s390_dump_pool, s390_free_pool): New functions.
1329         (s390_chunkify_pool): Completely reimplement literal pool
1330         overflow handling.
1332         * s390.c (s390_pool_overflow): New variable.
1333         * s390.h (s390_pool_overflow): Declare it.
1334         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
1335         jumps in literal pool overflow situations.
1337         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
1338         (s390_frame_info): Account for possible use of RETURN_REGNUM
1339         by new literal pool overflow code.
1340         (s390_emit_prologue): Likewise.
1342 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1344         PR optimization/6759
1345         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
1346         the REQ_EQUAL note.
1348 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1350         PR c/6660
1351         * c-decl.c (grokfield): Allow user defined types if they declare
1352         structs or unions for unnamed fields.
1354 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1356         PR c/6809
1357         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
1359 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1361         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
1362         (compare_constant): Likewise.
1363         (output_addressed_constants): Likewise.
1365 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
1367         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
1368         merge bb with itself.
1370 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1372         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
1373         * config/mips/t-netbsd: New file.
1375 2002-06-07  H.J. Lu  (hjl@gnu.org)
1377         * configure.in: Add --enable-__cxa_atexit.
1378         * configure: Regenerated.
1379         * config.in: Likewise.
1381         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
1382         not defined.
1384 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
1386         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
1388 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1390         PR objc/6834
1391         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
1392         c_common_get_alias_set.
1393         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
1395 2002-06-05  Jeff Law  <law@redhat.com>
1397         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
1398         rejects (mem (lo_sum (reg) (unspec))), but will allow
1399         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
1401 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
1403         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
1405 Tue Jun  4 18:16:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1407         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Do not initialize
1408         fields past the register table.
1410         * i386.c (classify_argument): Properly handle base classes.
1412 Tue Jun  4 13:09:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
1414         * loop.c (emit_prefetch_instructions): Properly place the address
1415         computation.
1417         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
1418         when flag_asynchronous_unwind_tables is set.
1420         * i386-protos.h (x86_output_mi_thunk): Declare.
1421         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
1422         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
1424         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
1425         mode.
1427         * i386.md (movabsdi): Kill broken alternative.
1429         * i386.c (dbx64_register_map): Fix typo
1431 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
1433         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
1435 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1437         * pa-linux.h (WCHAR_UNSIGNED): Define to 0.
1438         * pa.h (WCHAR_UNSIGNED): Define to 1.
1440 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1442         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
1443         (output_call): Likewise.
1445 2002-05-30  Richard Henderson  <rth@redhat.com>
1446             Eric Botcazou  <ebotcazou@multimania.com>
1448         PR optimization/6822
1449         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
1450         to unsigned int for op1 comparisons.  Use gen_int_mode.
1452 2002-05-30      Marc Espie <espie@openbsd.org>
1454         * config.gcc (sparc64-*-openbsd*):  New.
1455         * config/sparc/openbsd1-64.h:  New.
1456         * config/sparc/openbsd64.h:  New.
1458 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1460         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to
1461         96 if not __mc68010__.
1463 2002-05-30  Andreas Schwab  <schwab@suse.de>
1465         * config/ia64/sysv4.h (DO_SELECT_SECTION): Also handle
1466         FUNCTION_DECLs.
1468 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
1470         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1471         (CPP_SUBTARGET_SPEC): Define.
1472         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1473         cpp_subtarget specs.
1474         (CPP_SPEC): Redefine to include %(cpp_subtarget).
1476 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
1478         * doc/md.texi (Patterns): Note pattern condition pitfall
1479         for unnamed insn.
1481 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
1483         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
1484         -D__arch64__.  Add -D_LP64.
1485         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
1486         from sparc.h.
1487         (CPP_ARCH64_SPEC): Likewise.
1488         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
1489         (NO_BUILTIN_SIZE_TYPE): Undef.
1491 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
1493         * config.gcc (alpha-*-netbsd*): Don't use crtstuff.
1495 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
1497         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
1499 2002-05-29  Richard Henderson  <rth@redhat.com>
1501         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
1502         alignment for alloca.
1504 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1506         PR preprocessor/6844
1507         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
1508         NUL.
1510 2002-05-29  Joel Sherrill <joel@OARcorp.com>
1512         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
1514 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
1516         PR target/6838
1517         * config/cris/cris.md: Fix typos and thinkos in comments.
1518         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
1519         Remove spurious mode specifier on operand 2.
1521 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
1523         * config/s390/s390.c (legitimate_pic_operand_p): Do not
1524         accept symbolic LARL operands.
1525         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
1526         epilogue insns.
1528 2002-05-28      Marc Espie <espie@openbsd.org>
1529         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
1530         inherited from gas.h.
1531         (ASM_QUAD):  Undef.  OpenBSD does not support it.
1533 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
1535         * doc/install.texi (binaries): Change mingw binaries
1536         link to www.mingw.org.
1538 2002-05-28  Richard Henderson  <rth@redhat.com>
1540         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
1541         bottom alignment for leaf functions.
1543 Mon May 27 10:37:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
1545         * reload.c (find_valid_class): Accept new argument DEST,
1546         choose class accordingly.
1547         (push_reload): Update callers.
1549 2002-05-26  Richard Henderson  <rth@redhat.com>
1551         2002-05-25  Richard Henderson  <rth@redhat.com>
1552         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1553         string for decl_attributes.
1554         (handle_pragma_weak): Call assemble_alias if we're modifying
1555         an existing decl.
1557         2002-05-15  Richard Henderson  <rth@redhat.com>
1558         * varasm.c (merge_weak): Remove special case for extern and common.
1560         2002-05-15  Richard Henderson  <rth@redhat.com>
1561         * varasm.c (merge_weak): Error for any weakening after definition.
1562         Adjust weakening after use warning to catch more cases.
1563         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
1564         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
1566         2002-03-02  Richard Henderson  <rth@redhat.com>
1567         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
1568         * toplev.c (rest_of_decl_compilation): Invoke assemble_alias when
1569         needed.
1571 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1573         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1575 2002-05-25  Richard Henderson  <rth@redhat.com>
1577         PR target/6788
1578         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1579         using rtl instead of fprintf.
1580         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1581         * config/sparc/sparc-protos.h: Update.
1583 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1585         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1587         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1588         CONST_INT operand to the correct mode after adding 1 to it.
1590 2002-05-24  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
1592         * config/alpha/unicosmk.h (REAL_VALUE_TO_TARGET_SINGLE,
1593         REAL_VALUE_TO_TARGET_DOUBLE): Define for native builds.
1595 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1597         PR other/6782
1598         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1600 2002-05-24  David Edelsohn  <edelsohn@gnu.org>
1602         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1603         (STARTFILE_SPEC): Delete PE crt0.o.
1604         * config/rs6000/aix51.h: Same.
1605         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1606         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1607         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1608         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1610 2002-05-24  Richard Henderson  <rth@redhat.com>
1612         * varasm.c (asm_output_bss): Always output one byte.
1613         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1615 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1617         PR preprocessor/6780
1618         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1620 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1622         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1623         element cached.
1625 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1627         * cppinit.c (mark_named_operators): Split out from init_builtins.
1628         (struct builtin): Remove operator.
1629         (CPLUS, OPERATOR, O): Kill
1630         (struct named_op): New.
1631         (cpp_finish_options): Call it from here instead.
1632         (init_builtins): Don't do named operators.
1634 2002-05-20  David S. Miller  <davem@redhat.com>
1636         * cselib.c (max_value_regs): New.
1637         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1638         adding new entries to the REG_VALUES table and we are dealing with
1639         a hard register.
1640         (clear_table): Initialize it.
1641         (cselib_invalidate_regno): Use it to determine which hard
1642         registers to scan when mode is not VOIDmode.
1644 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1646         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1648 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1649         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K
1650         pages.
1652 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1654         PR preprocessor/6517
1655         * Makefile.in: Update.
1656         * c-common.c (c_common_post_options): Add preprocessor
1657         errors to the error count.
1658         * c-lang.c (c_post_options): Kill.
1659         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1660         * hooks.h: Add header guards.
1661         * langhooks-def.h: Include hooks.h.
1662         (LANG_HOOKS_POST_OPTIONS): Update.
1663         * langhooks.h (struct lang_hooks): Update post_options.
1664         * toplev.c (parse_options_and_default_flags): Update.
1665 objc:
1666         * objc-lang.c (objc_post_options): Kill.
1667         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1669 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1671         PR target/6753
1672         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1673         of x in constraints for clarity.
1674         (sse_mov?fcc split): abort if op2 == op3.
1675         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1676         sse_movsfcc_const0_4): Add earlyclobber.
1677         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1678         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1679         Use Y instead of x in constraints.
1681 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1683         PR c/6643
1684         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1685         if DECL_SIZE_UNIT is INTEGER_CST.
1687 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1689         * combine.c (force_to_mode): Use gen_int_mode.
1690         Don't clear CONST_INT bits outside of mode.
1692 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1694         * configure.in: Fix as version test for binutils 2.12.1 releases
1695         (without dates).
1696         * configure: Rebuilt.
1698 Wed May 22 14:16:07 CEST 2002  Jan Hubicka  <jh@suse.cz>
1700         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
1701         sequence.
1702         (ix86_expand_clrstr): Fix typo.
1704 2002-05-22  Duraid Madina  <duraid@fl.net.au>
1706         * tradcpp.c (fixup_newlines): Use old-style function header.
1708 2002-05-21  Richard Henderson  <rth@redhat.com>
1710         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1711         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1712         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1714         * toplev.c (display_help): Kill -a -ax help.
1716         * config/1750a/1750a.h, config/alpha/alpha.h,
1717         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1718         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1719         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1720         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1722         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1723         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1725         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1726         (ix86_output_function_block_profiler): Kill.
1727         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1728         (m68hc11_function_block_profiler): Kill.
1729         * config/m68hc11/m68hc11-protos.h: Update.
1730         * config/m88k/m88k.c (output_block_profiler): Kill.
1731         (output_function_block_profiler): Kill.
1732         * config/m88k/m88k-protos.h: Update.
1734 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1736         * reload1.c (do_output_reload): Run delete_output_reload
1737         only if optimizing.
1739 2002-05-20  Richard Henderson  <rth@redhat.com>
1741         * cse.c (canon_hash): Reorder do_not_record test.  Always
1742         allow pic_offset_table_rtx.
1744 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1746         * doc/contrib.texi: Update my entry.
1748 2002-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1750         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
1752 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1754         2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1755         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
1756         which may overwrite the high byte of the frame pointer.
1758 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
1760         * emit-rtl.c (gen_int_mode): New function.
1761         * rtl.h: Prototype for it.
1763 Sat May 18 23:09:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
1765         * i386.md (pushqi2, ashrqi_*): Fix constraint.
1767 2002-05-18  Aldy Hernandez  <aldyh@redhat.com>
1769         * config/rs6000/altivec.h: Cleanups.
1771 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1773         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
1774         bootstrap with -mips3.
1776 2002-05-17  David S. Miller  <davem@redhat.com>
1778         PR c/6689, PR optimization/6615
1779         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
1780         and make it a pointer to rtx.  Update comments.
1781         (update_equiv_regs): When scanning for equivalences, record
1782         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
1783         it while making the equiv replacements.
1785 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
1787         * doc/install.texi (Testing): Mention two common DejaGnu warnings
1788         that can be ignored.
1790 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1792         * doc/install.texi (Final install): Recommend to install into a
1793         "clean" target directory.
1795 2002-05-17  Andreas Schwab  <schwab@suse.de>
1797         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
1798         SELECT_SECTION.
1799         (UNIQUE_SECTION): Define to get small data correctly.
1801         * varasm.c (resolve_unique_section): Add third parameter
1802         flag_function_or_data_sections and use it instead of
1803         flag_function_sections.
1804         (assemble_start_function): Pass flag_function_sections.
1805         (asm_emit_uninitialised): Pass flag_data_sections.
1806         (assemble_variable): Likewise.
1808 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
1810         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
1811         comparison against the highest or lowest integer value before
1812         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
1813         transformation and that of an unsigned comparison against 0
1814         right after.
1816 2002-05-16  Richard Henderson  <rth@redhat.com>
1818         PR c/3467
1819         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
1820         for c99.
1822 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
1824         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
1826 2002-05-09  David S. Miller  <davem@redhat.com>
1828         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1830 2002-05-07  David S. Miller  <davem@redhat.com>
1832         PR target/6103
1833         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1834         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1835         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1836         library implementation clobbers the output before the inputs
1837         are fully consumed, use stack temporary for the output.
1839 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
1841         * invoke.texi (-malign-double): Re-add lost warning.
1843 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1845         * doc/install.texi: Remove special markup originally required for
1846         HTML generation with texi2html.
1848 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1850         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1851         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1852         (possibly) work around broken /bin/sh.
1854 2002-05-08  Jason Merrill  <jason@redhat.com>
1856         PR c++/6381
1857         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1858         REAL_CST.
1860 2002-05-14  Release Manager
1862         * GCC 3.1 Released.
1864 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1866         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1867         . as N64/N32 libgcc_s.so subdirs.
1869 2002-05-09  Mark Mitchell  <mark@codesourcery.com>
1871         * config/rs6000/rs6000.h: Revert previous patch.
1873 2002-05-09      Joel Sherrill <joel@OARcorp.com>
1875         * config/rs6000/rs6000.h CPP_CPU_SPEC): Correct
1876         403 and 405 arguments for binutils 2.12.
1878 Thu May  9 12:21:48 2002  Jeffrey A Law  (law@redhat.com)
1880         * pa.c (hppa_profile_hook): Use force_reg to get the address
1881         of the profile hook into an appropriate pseudo register.
1883 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1885         * mklibgcc.in: Set shlib_slibdir_qual to empty string if
1886         SHLIB_SLIBDIR_SUFFIXES is empty.
1888 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1890         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1891         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1893 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1895         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1896         * config/sparc/libgcc-sparc-glibc.ver: New file.
1897         * config/i386/t-linux64 (SHLIB_MAPFILES): Add libgcc-x86_64-glibc.ver.
1898         * config/i386/libgcc-x86_64-glibc.ver: New file.
1899         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1900         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1902 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1904         PR target/6429
1905         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1906         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1907         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1908         base multilibs.
1909         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1910         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1911         * config/i386/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1912         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1913         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1915 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1917         PR c/6569.
1918         * varasm.c (mark_weak): New function.
1919         (merge_weak): Use it.  Do not call declare_weak.
1920         (declare_weak): Use merge_weak.
1922 2002-05-07  Geoffrey Keating  <geoffk@redhat.com>
1924         * configure.in: Don't pass -Wno-long-long to a ADA compiler
1925         that doesn't support it.
1926         * configure: Regenerate.
1928 2002-05-07  Jason Merrill  <jason@redhat.com>
1930         * dwarf2out.c (rtl_for_decl_location): Don't try to extract a
1931         constant value from DECL_INITIAL.
1933 2002-05-07  Richard Henderson  <rth@redhat.com>
1935         PR c++/6212
1936         * expr.c (highest_pow2_factor_for_type): New.
1937         (expand_assignment): Use it.
1939 2002-05-07  Jakub Jelinek  <jakub@redhat.com>
1941         * configure.in: If as or ld segfaults, don't clutter with it stdout.
1942         * configure: Rebuilt.
1944 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1946         PR target/6561
1947         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1949 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1951         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1953 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
1955         PR c/6543
1956         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1957         clobber and use result as temporary value.
1959 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1961         PR target/6542
1962         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
1963         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
1964         fill leaf_reg_remap with identity.
1965         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
1967 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1969         PR target/6522
1970         * dwarf2out.c (simple_decl_align_in_bits): Renamed to...
1971         (simple_field_decl_align_in_bits): this.  Apply
1972         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN if defined.
1974 2002-05-03  Richard Henderson  <rth@redhat.com>
1976         PR opt/6534
1977         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
1978         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
1979         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
1980         code before JUMP, not EARLIEST.
1982 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
1984         PR preprocessor/6489
1985         * tradcpp.c (fixup_newlines): New.
1986         (main, finclude): Use it.
1988 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1990         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
1991         (Specific): Removed buildstats references.
1992         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
1993         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
1994         Accomodate Solaris versions beyond 8.
1995         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
1996         (Specific, *-*-solaris2.8): Removed, obsolete.
1998 2002-05-02  Jason Merrill  <jason@redhat.com>
2000         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2001         * c-decl.c (c_init_decl_processing): Use it.
2002         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2003         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2004         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2006 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
2008         * doc/install.texi (*-*-freebsd*): Update to latest status.
2010 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2012         PR target/6540
2013         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2014         * config/float-sparc.h: Assume 128-bit long double if
2015         __LONG_DOUBLE_128__ is defined.
2017         PR target/6512, PR target/5628
2018         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2019         when memory is not aligned.
2020         (movdf_insn_v9only_vis): Likewise.
2021         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2022         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2023         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2025 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2027         * doc/install.texi: State GNAT version requirements.
2029 2002-05-01  Jeff Law  <law@redhat.com>
2031         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2032         'T' constraint.
2034 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
2036         * dbxout.c (dbxout_type): Emit size information for range types,
2037         as well, but only when using GDB extensions.
2039 2002-05-01  Richard Henderson  <rth@redhat.com>
2041         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2042         target-independent gnu binutils date test.
2044 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2046         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2047         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
2048         -M -or -MM is in effect.
2050 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
2052         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
2053         A29k configurations.
2054         * doc/install.texi: Update to match.
2056 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2058         PR bootstrap/6514
2059         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2060         for duplicates. Always loop over whole list.
2062 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2064         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2066 2002-05-01  Joel Sherrill  <joel@OARcorp.com>
2068         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2069         support routines.
2071 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2073         * doc/install.texi: Update Texinfo version requirement
2074         documentation.
2076 2002-04-30  Richard Henderson  <rth@redhat.com>
2078         * config/sparc/sol27-sld.h: Rename from sol26-sld.h.
2079         (PREFERRED_DEBUGGING_TYPE, ASM_DEBUG_SPEC): Undef.
2080         * config.gcc (sparc-solaris): Adjust test for native ld bug.
2081         Add it after the biarch headers.
2083 2002-04-30  Richard Henderson  <rth@redhat.com>
2085         PR opt/6516
2086         * toplev.c (rest_of_compilation): Don't run cross-jump before
2087         bb-reorder.
2089 2002-04-30  Joel Sherrill  <joel@OARcorp.com>
2091         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2093 2002-04-30  Richard Henderson  <rth@redhat.com>
2095         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2096         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2097         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2098         emit_tfmode_cvt): New.
2099         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2100         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2101         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2102         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2103         * config/sparc/sparc-protos.h: Update.
2105 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2107         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2108         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2109         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2110         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2111         * ada/Make-lang.in (ADA_FLAGS_TO_PASS): Don't pass ADA_CFLAGS.
2112         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2113         * pa/x-ada: New file.  Define ADA_CFLAGS.
2115 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
2117         * doc/install.texi (Final install): Add to the list of info to include
2118         in a report of a successful bootstrap, and add link to 3.1 list.
2120 2002-04-30  Jakub Jelinek  <jakub@redhat.com>
2122         PR c++/6396
2123         * toplev.c (rest_of_compilation): Only run regrename and copy
2124         propagation if optimizing.
2126 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2128         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2129         mips.  Add two missing commas.
2131 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
2133         * doc/contrib.texi (Contributors): Update Paolo Carlini's
2134         and Benjamin Kosnik's entries.
2136 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2138         * combine.c (find_split_point): Use trunc_int_for_mode.
2140 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2142         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2143         adjust_address_nv call.
2145 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
2147         * doc/install.texi (Testing): Provide additional information, and
2148         a stronger encouragement, for running the testsuites.
2150 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2152         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2153         Solaris 2 <widec.h> if missing.
2154         * fixinc/fixincl.x: Regenerate.
2155         * fixinc/tests/base/widec.h: New file.
2157 2002-04-29  Jakub Jelinek  <jakub@redhat.com>
2159         PR target/6476
2160         * configure.in: Check whether linker eh_frame optimizations work
2161         properly.
2162         * configure: Rebuilt.
2164 Mon Apr 29 17:08:09 CEST 2002  Jan Hubicka  <jh@suse.cz>
2166         * i386.c (dbx64_register_map): Fix typo.
2168 Mon Apr 29 14:48:33 CEST 2002  Jan Hubicka  <jh@suse.cz>
2170         * i386.md (sse_mov?fcc*): Revert patch of Apr 18th.
2172 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2174         * doc/contrib.texi (Contributors): Add Paolo Carlini and
2175         Janis Johnson.
2176         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2177         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2178         and CPU instead of cpu.
2180 2002-04-29  Alexandre Oliva  <aoliva@redhat.com>
2182         * config.gcc: Revert i386 changes inadvertently brought in
2183         from mainline along with 2002-04-04's change.
2185 2002-04-28  David S. Miller  <davem@redhat.com>
2187         PR target/6496
2188         * config/sparc/sparc.md (call followed by jump peephole): Do not
2189         match for TARGET_V9, kill TARGET_ARCH64 variants.
2191         PR target/6500
2192         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2193         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
2194         several {reads,writes} instead.
2195         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2196         Define.
2198 2002-04-27  David S. Miller  <davem@redhat.com>
2200         PR target/6494
2201         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2202         of the stack bias.
2204         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2205         including signal.h and sys/ucontext.h, not needed.
2207 2002-04-28  Richard Henderson  <rth@redhat.com>
2209         PR c/5154
2210         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2211         (ggc_mark_rtx_children): New.
2213 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2215         PR c/6497
2216         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2217         result as temporary value.
2219 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2221         PR optimization/6475
2222         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2223         register of REGNO_DECL (i).
2224         * Makefile.in (reload1.o): Add $(TREE_H).
2226 2002-04-28  Bruce Korb  <bkorb@gnu.org>
2228         * fixinc/check.tpl (set-writable): verify that it exists before
2229         invoking.
2231 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2233         PR c/6343
2234         * c-decl.c (duplicate_decls): Call merge_weak.
2235         * c-pragma.c (apply_pragma_weak): Warn about misuse.
2236         * output.h (merge_weak): Prototype merge_weak.
2237         * varasm.c (merge_weak): New function.
2238         (declare_weak): Make sure we don't give an error on VAR_DECLs.
2239         Mark RTL with SYMBOL_REF_WEAK.
2241 2002-04-25  David S. Miller  <davem@redhat.com>
2243         PR target/6422
2244         * reorg.c (optimize_skip): Do not allow exception causing
2245         instructions to be considered for delay slots.
2246         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
2247         (relax_delay_slots): Do not try to consider exception causing
2248         instructions as redundant.
2250 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
2252         * tree.c (tree_int_cst_lt): Compare constants whose types differ
2253         in unsigned-ness correctly.
2255 2002-04-26  Chris Demetriou  <cgd@broadcom.com>
2257         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Get closer to
2258         correct for MEABI (used by mipsisa32-elf).
2260 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
2262         PR bootstrap/6445
2263         * config/i386/i386.md (untyped_call): Return the value in a float
2264         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
2265         TARGET_80387.
2267 2002-04-26  Ulrich Weigand  <uweigand@de.ibm.com>
2269         * config/s390/linux.h: Revert 2002-04-22 change.
2271 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2273         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
2274         portable runtime model.
2276 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
2277             Richard Henderson  <rth@redhat.com>
2279         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
2280         result as temporary value.
2282 2002-04-26  Richard Henderson  <rth@redhat.com>
2284         PR c/3581
2285         * c-common.c (combine_strings): Use xmalloc, not alloca.
2287         * c-common.c (combine_strings): Tweak __FUNCTION__ warning text.
2289 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
2291         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
2292         x86-64.
2294 2002-04-25  David S. Miller  <davem@redhat.com>
2296         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
2297         for DECL being NULL.
2299 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
2301         * c-decl.c (grokdeclarator): Remove outdated ??? note
2302         on invalid declaration of flexible array members.
2304 2002-04-25  Richard Henderson  <rth@redhat.com>
2306         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
2308 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
2310         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
2311         needed by the compiler, even if they are used as global regs.
2313 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
2315         * doc/c-tree.texi: Fix typo in introduction.
2317 2002-04-24  Richard Henderson  <rth@redhat.com>
2319         * configure.in (HAVE_GAS_HIDDEN): Detect sparc binutils 2.12
2320         linker bug.
2322 2002-04-24  Jason Merrill  <jason@redhat.com>
2324         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
2325         * dwarf2out.c (dwarf_attr_name): Support it.
2326         (gen_array_type_die): Emit it.
2327         (lookup_type_die): No special handling for VECTOR_TYPE.
2328         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
2330 2002-04-24  Richard Henderson  <rth@redhat.com>
2332         * config/mips/mips.md (movdi_usd): Renumber.
2334 2002-04-24  Robert Lipe  <robertlipe@usa.net>
2336         * config/i386/sco5.h(i386.h, att.h): Eliminate double inclusion.
2338 2002-04-24  David S. Miller  <davem@redhat.com>
2340         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
2341         32-bit Sparc and current_function_returns_struct is true.
2343 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
2345         * config/rs6000/altivec.h: Cleanup file.  Add non individual
2346         variants.
2347         (vec_vaddubm): New.
2348         (vec_vadduhm): New.
2349         (vec_vadduwm): New.
2350         (vec_vaddfp): New.
2351         (vec_vaddcuw): New.
2352         (vec_vaddubs): New.
2353         (vec_vaddsbs): New.
2354         (vec_vadduhs): New.
2355         (vec_vadduws): New.
2356         (vec_vaddsws): New.
2357         (vec_vand): New.
2358         (vec_vandc): New.
2359         (vec_vavgub): New.
2360         (vec_vavgsb): New.
2361         (vec_vavguh): New.
2362         (vec_vavgsh): New.
2363         (vec_vavguw): New.
2364         (vec_vavgsw): New.
2365         (vec_vrfip): New.
2366         (vec_vcmpbfp): New.
2367         (vec_vcmpequb): New.
2368         (vec_vcmpequh): New.
2369         (vec_vcmpequw): New.
2370         (vec_vcmpeqfp): New.
2371         (vec_vcmpgefp): New.
2372         (vec_vcmpgtub): New.
2373         (vec_vcmpgtsb): New.
2374         (vec_vcmpgtuh): New.
2375         (vec_vcmpgtsh): New.
2376         (vec_vcmpgtuw): New.
2377         (vec_vcmpgtsw): New.
2378         (vec_vcmpgtfp): New.
2379         (vec_vcmpgefp): New.
2380         (vec_vcfux): New.
2381         (vec_vcfsx): New.
2382         (vec_vctsxs): New.
2383         (vec_vctuxs): New.
2384         (vec_vexptefp): New.
2385         (vec_vrfim): New.
2386         (vec_lvx): New.
2387         (vec_lvebx): New.
2388         (vec_lvehx): New.
2389         (vec_lde): Add vector float variant.
2390         (vec_lvewx): New.
2391         (vec_lvxl): New.
2392         (vec_vlogefp): New.
2393         (vec_vmaddfp): New.
2394         (vec_vmhaddshs): New.
2395         (vec_vmaxub): New.
2396         (vec_vmaxsb): New.
2397         (vec_vmaxuh): New.
2398         (vec_vmaxsh): New.
2399         (vec_vmaxuw): New.
2400         (vec_vmaxsw): New.
2401         (vec_vmaxsw): New.
2402         (vec_vmaxfp): New.
2403         (vec_vmrghb): New.
2404         (vec_vmrghh): New.
2405         (vec_vmrghw): New.
2406         (vec_vmrglb): New.
2407         (vec_vmrglh): New.
2408         (vec_vmrglw): New.
2409         (vec_vminub): New.
2410         (vec_vminsb): New.
2411         (vec_vminuh): New.
2412         (vec_vminsh): New.
2413         (vec_vminuw): New.
2414         (vec_vminsw): New.
2415         (vec_vminfp): New.
2416         (vec_vmladduhm): New.
2417         (vec_vmhraddshs): New.
2418         (vec_msumubm): New.
2419         (vec_vmsummbm): New.
2420         (vec_vmsumuhm): New.
2421         (vec_vmsumshm): New.
2422         (vec_vmsumuhs): New.
2423         (vec_vmsumshs): New.
2424         (vec_vmuleub): New.
2425         (vec_vmulesb): New.
2426         (vec_vmuleuh): New.
2427         (vec_vmulesh): New.
2428         (vec_vmuloub): New.
2429         (vec_mulosb): New.
2430         (vec_vmulouh): New.
2431         (vec_vmulosh): New.
2432         (vec_vnmsubfp): New.
2433         (vec_vnor): New.
2434         (vec_vor): New.
2435         (vec_vpkuhum): New.
2436         (vec_vpkuwum): New.
2437         (vec_vpkpx): New.
2438         (vec_vpkuhus): New.
2439         (vec_vpkshss): New.
2440         (vec_vpkuwus): New.
2441         (vec_vpkswss): New.
2442         (vec_vpkshus): New.
2443         (vec_vpkswus): New.
2444         (vec_vperm): New.
2445         (vec_vrefp): New.
2446         (vec_vrlb): New.
2447         (vec_vrlh): New.
2448         (vec_vrlw): New.
2449         (vec_vrfin): New.
2450         (vec_vrsqrtefp): New.
2451         (vec_vsel): New.
2452         (vec_vslb): New.
2453         (vec_vslh): New.
2454         (vec_vslw): New.
2455         (vec_vsldoi): New.
2456         (vec_vsl): New.
2457         (vec_vslo): New.
2458         (vec_vspltb): New.
2459         (vec_vsplth): New.
2460         (vec_vspltw): New.
2461         (vec_vspltisb): New.
2462         (vec_vspltish): New.
2463         (vec_vspltisw): New.
2464         (vec_vsrb): New.
2465         (vec_vsrh): New.
2466         (vec_vsrw): New.
2467         (vec_vsrab): New.
2468         (vec_vsrah): New.
2469         (vec_vsraw): New.
2470         (vec_vsr): New.
2471         (vec_vsro): New.
2472         (vec_stvx): New.
2473         (vec_stvebx): New.
2474         (vec_stvehx): New.
2475         (vec_stvewx): New.
2476         (vec_stvxl): New.
2477         (vec_vsububm): New.
2478         (vec_vsubuhm): New.
2479         (vec_vsubuwm): New.
2480         (vec_vsubfp): New.
2481         (vec_vsubcuw): New.
2482         (vec_vsububs): New.
2483         (vec_vsubsbs): New.
2484         (vec_vsubuhs): New.
2485         (vec_vsubshs): New.
2486         (vec_vsubuws): New.
2487         (vec_vsubsws): New.
2488         (vec_vsum4ubs): New.
2489         (vec_vsum4sbs): New.
2490         (vec_vsum4shs): New.
2491         (vec_vsum2sws): New.
2492         (vec_vsumsws): New.
2493         (vec_vrfiz): New.
2494         (vec_vupkhsb): New.
2495         (vec_vupkhpx): New.
2496         (vec_vupkhsh): New.
2497         (vec_vupklsb): New.
2498         (vec_vupklpx): New.
2499         (vec_vupklsh): New.
2500         (vec_vxor): New.
2502 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
2504         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
2505         are obsoleted.
2507 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
2509         PR c/5430
2510         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
2511         added literals from substracted literals.
2512         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
2513         (fold) [associate]: Preserve MINUS_EXPR if needed.
2515 2002-04-23  Tom Tromey  <tromey@redhat.com>
2517         * gcc.c: Added --resource.  For PR java/6314.
2519 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
2521         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
2523 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
2525         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
2526         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
2527         these libraries.
2529 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
2531         PR target/6413
2532         * function.h: (struct function): Add profile_label_no field.
2533         (current_function_profile_label_no): Define.
2534         * function.c: (profile_label_no): New static var.
2535         (expand_function_start): Increment it, and copy to
2536         current_function_profile_label_no.
2537         * output.h (profile_label_no): Delete.
2538         * final.c (profile_label_no): Delete.
2539         (profile_function): Use current_function_profile_label_no.
2540         (final_end_function): Don't increment profile_label_no here.
2541         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
2542         profile_label_no with current_function_profile_label_no.
2543         * config/pa/pa.c (current_function_number): Delete.
2544         (pa_output_function_prologue): Don't output profile label here.
2545         (hppa_profile_hook): Use label_no param rather than
2546         current_function_number.
2547         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
2548         * config/pa/pa.h: .. here.
2549         (FUNCTION_PROFILER): Output profile label here.
2551 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
2553         * config/rs6000/altivec.h (vec_step): Remove extraneous
2554         parentheses.
2555         (vec_ctu): Cast return.
2557 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
2559         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
2560         constraint to 'o' for m=r and r=m alternatives.
2561         ("*movv8hi_internal1"): Same.
2562         ("*movv16qi_internal1"): Same.
2563         ("*movv4sf_internal1"): Same.
2565 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
2567         * c-lex.c (lex_charconst): Call convert to get constant in
2568         proper type; don't just smash the type field.
2569         Fixes PR c/6300.
2571         * config.gcc: Add list of obsolete configurations.  Disallow
2572         building these without --enable-obsolete.
2573         * doc/install.texi: Document --enable-obsolete and obsoletion
2574         policy.  Mention obsoletion of individual targets in
2575         appropriate places.
2577 2002-04-22  Richard Henderson  <rth@redhat.com>
2579         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
2581 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
2583         PR f/6138.
2584         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
2585         (walk_fixup_memory_subreg): Likewise.
2586         (fixup_var_refs_insn): Adjust accordingly.
2587         (fixup_var_refs_1): Likewise.
2589 2002-04-22  Joel Sherrill  <joel@OARcorp.com>
2591         * gthr-rtems.h: Correct prototypes to remove warnings.
2593 2002-04-22  Richard Henderson  <rth@redhat.com>
2595         PR c/6344
2596         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
2598         * gcse.c (free_insn_expr_list_list): New.
2599         (clear_modify_mem_tables): Use it.  Fix bit set usage.
2600         (canon_list_insert): Use EXPR_LISTs for expressions.
2601         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
2603 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
2605         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
2606         LIBPATH_ARCH64_SPEC): Define.
2607         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
2608         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
2609         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
2610         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
2612 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
2614         * config/rs6000/altivec.h (vec_xor): Add variant for both args
2615         being vector signed int.
2616         (vec_andc): Same.
2617         (vec_xor): Add variant for both args being vector signed char.
2618         Remove redundant variant.
2619         (vec_andc): Same.
2621 2002-04-21  David S. Miller  <davem@redhat.com>
2623         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
2624         compare mode in output RTL.
2626 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
2628         * config/rs6000/rs6000.c (rs6000_override_options): Correct
2629         style and formatting of previous patch.
2631 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
2633         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
2634         flag_pic for ABI_AIX.
2636 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2638         * cppmacro.c (funlike_invocation_p): Don't step back
2639         over CPP_EOF.
2641 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
2643         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
2644         labelno.
2646 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
2648         * doc/invoke.texi: Remove Chill references.
2649         * doc/gcc.texi: Update last modified date.
2651 2002-04-19  David S. Miller  <davem@redhat.com>
2653         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
2654         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
2656 Sat Apr 20 02:17:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2658         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
2659         alternative.
2661 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
2663         PR c/6358
2664         * function.c: Reapply patch for c/6358.
2665         (expand_function_end): Copy decl_rtl's mode, not
2666         current_function_return_rtx mode.
2668 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
2670         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
2671         targets.
2673 2002-04-19  Tom Tromey  <tromey@redhat.com>
2675         * doc/install.texi (Specific): Update status of Solaris 2.8.
2676         For PR libgcj/6158.
2678 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
2679             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2681         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
2682         binutils 2.11.2 and higher generate smaller binaries than Sun's
2683         native tools.
2685 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
2687         PR c++/6352
2688         * toplev.c (rest_of_compilation): Do not defer functions for which
2689         TREE_SYMBOL_REFERENCED has already been set.
2691 2002-04-18  Richard Henderson  <rth@redhat.com>
2693         * function.c: Revert patch for c/6358.
2695 2002-04-18  Richard Henderson  <rth@redhat.com>
2697         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
2698         blocks.  Handle multiple references to the TRAP block.  Handle
2699         non-adjacent THEN and OTHER blocks.
2701 2002-04-18  Richard Henderson  <rth@redhat.com>
2703         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
2704         crash with no type for by-mode libcalls.
2706         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
2708 2002-04-18  David S. Miller  <davem@redhat.com>
2710         * config/sparc/sparc.h (BRANCH_COST): Define.
2712         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
2713         does it.
2715 2002-04-18  Richard Henderson  <rth@redhat.com>
2717         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
2718         (ia64_va_arg): Expect variable sized types by reference.
2719         * config/ia64/ia64-protos.h: Update.
2720         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
2721         ia64_function_arg_pass_by_reference.
2723 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
2725         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
2726         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
2727         propagate_block calls after relaxation loop using new variable
2728         stabilized_prop_flags.
2730 2002-04-18  Richard Henderson  <rth@redhat.com>
2732         * ifcvt.c: Include except.h.
2733         (block_has_only_trap): Break out from find_cond_trap.
2734         (find_cond_trap): Use it.  Always delete the trap block.
2735         (merge_if_block): Allow then block null.  Be less simplistic about
2736         what insns can end a block.
2737         * Makefile.in (ifcvt.o): Depend on except.h.
2739         * config/ia64/ia64.md (trap, conditional_trap): New.
2741 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2743         PR c/6358
2744         * function.c (assign_parms): Assign hard current_function_return_rtx
2745         register here...
2746         (expand_function_end): ...not here.
2748 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2750         * doc/install.texi (Downloading the source): Do not mention Chill
2751         any longer, but mention Ada.
2752         (Configuration): Do not mention Chill any longer.
2754 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
2756         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
2758 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2760         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
2761         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
2762         later.
2764 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
2766         PR middle-end/6205
2767         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
2768         otherwise xorps.
2770 2002-04-18  Loren J. Rittle  <ljrittle@acm.org>
2772         Revert this change:
2774         * doc/install.texi (Installing GCC: Configuration): Clarify
2775         the only supported ways to configure gcc.
2777 2002-04-17  Dale Johannesen <dalej@apple.com>
2779         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
2780         comparison operands do not match each other or if modes of
2781         conditions do not match result.
2782         (rs6000_output_function_prologue): Compute instruction addresses.
2783         (rs6000_output_function_epilogue): Likewise.
2785 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2787         * config/s390/s390.c (legitimize_pic_address): Do not generate
2788         illegal address constant without CONST.
2790 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2792         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
2793         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2795 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
2797         PR optimization/6305
2798         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
2799         to make sure previous reloads are taken into account.  Generate
2800         better code if one operand is an in-range immediate constant.
2802 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
2804         * doc/install.texi (Building): libgcj requires GNU make.
2806 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
2808         PR bootstrap/6315
2809         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
2810         even if hard quad and register is not floating.
2811         (movtf reg<-mem split): Disallow splitting if hard quad and
2812         register is floating.
2813         (movtf mem<-reg split): Likewise.
2814         * config/sparc/sparc.c (fp_register_operand): New predicate.
2815         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
2817 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
2819         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
2820         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
2821         (unprotoize.o): Ditto.  Build from protoize.c.  Define
2822         UNPROTOIZE on command line.
2823         * protoize.c: Include cppdefault.h.  Delete include_defaults.
2824         (in_system_include_dir): Use cpp_include_defaults (defined in
2825         cppdefault.o).
2826         * unprotoize.c: Delete file.
2828 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
2830         * config/rs6000/altivec.h (vec_ld): Add array variants.
2831         (vec_lde): Same.
2832         (vec_ldl): Same.
2834 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
2835             Aldy Hernandez <aldyh@redhat.com>
2837         * config/rs6000/altivec.h: Define __ALTIVEC__.
2838         (bool): New.
2839         (__pixel): New.
2840         (pixel): New.
2841         (vec_cfux): New.
2842         (vec_vmaddfp): New.
2843         (vec_vsldoi): New.
2844         Add parentheses to all macro arguments.
2846 2002-04-16  Richard Henderson  <rth@redhat.com>
2848         PR c++/6320
2849         * except.c (remove_eh_handler): Insert inner regions at beginning
2850         of sibling chain.  Refactor expressions.
2852 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
2854         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
2855         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
2856         * tree.h (expand_start_stmt_expr): Update prototype.
2857         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
2858         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
2859         on the STMT_EXPR created for the inline function.
2861 2002-04-16  Richard Henderson  <rth@redhat.com>
2863         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
2864         * config/sparc/sol2-gas-bi.h: New file.
2865         * config.gcc (sparc*-solaris): Add it as needed.
2866         * configure.in (AS_SPARC64_FLAG): Remove check.
2867         * config.in, configure: Regenerate.
2869         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
2871 2002-04-16  Richard Henderson  <rth@redhat.com>
2873         * config/mips/mips.c (override_options): Don't override N32 for
2874         a 64-bit ISA.
2876         PR c/6202
2877         * config/mips/mips.md (can_delay): Split out of existing define_delays.
2878         (HILO_delay): Set can_delay false.
2880 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
2882         * c-parse.in (poplevel, compstmt_start, compstmt_primary_start):
2883         Add ending ';', in accordance with POSIX.
2885 2002-04-16  Richard Henderson  <rth@redhat.com>
2887         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
2888         Adjust tm_file order to get TARGET_DEFAULT set properly.
2889         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
2890         * doc/install.texi (sparc-solaris): Update.
2892 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
2894         PR target/6305
2895         * config/s390/s390.md (mulsidi3): Set both subregs of the
2896         multiword register.
2898 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
2900         * config/rs6000/altivec.h (vec_addc): Type check.
2902 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2904         PR middle-end/6279
2905         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
2907         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
2909 2002-04-15  Richard Henderson  <rth@redhat.com>
2911         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
2912         call_really_used_regs too.
2914 2002-04-15  David S. Miller  <davem@redhat.com>
2916         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
2917         as being CLOBBERed.
2919 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
2921         PR c/6290
2922         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
2923         CONST_VECTOR is { 0, ... 0 }.
2925 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
2927         * doc/install.texi (Installing GCC: Configuration): Clarify
2928         the only supported ways to configure gcc.
2930 2002-04-15  Richard Henderson  <rth@redhat.com>
2932         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
2933         config/i386/linux-aout.h, config/i386/linux-oldld.h,
2934         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
2935         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
2936         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
2937         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
2938         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
2939         Define __gnu_linux__, not gnu_linux.
2940         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
2942 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
2944         Remove Chill front end.
2945         * gcc.c (default_compilers): Remove Chill entries.
2946         * ch: Remove directory.
2947         * doc/frontends.texi: Remove information about Chill.
2948         * doc/sourcebuild.texi: Likewise.
2949         * doc/standards.texi: Likewise.
2951 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
2953         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
2954         (LONGLONG_STANDALONE): Define.
2956 2002-04-15  David S. Miller  <davem@redhat.com>
2958         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
2959         Call emit_library_call with LCT_NORMAL.
2960         (sparc_initialize_trampoline): Use LCT_foo instead of
2961         magic constant in emit_library_call invocations.
2962         (sparc64_initialize_trampoline): Likewise.
2963         (sparc_profile_hook): Likewise.
2964         * config/sparc/sparc.md: Likewise.
2966         * config/sparc/sparc.c (sparc_extra_constraint_check):
2967         Fix type of argument 'c'.
2968         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
2969         Likewise.
2971 2002-04-14  Andreas Schwab  <schwab@suse.de>
2973         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
2975 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2977         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
2979 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2981         * config/alpha/linux.h (CPP_PREDEFINES): Fix typo.
2982         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
2983         not gnu_hurd.
2985 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
2987         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
2989 2002-04-13  Joel Sherrill <joel@OARcorp.com>
2991         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
2992         sparc-elf and sparc-rtems targets.
2994 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
2996         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
2997         defined, and __gnu_hurd__ wherever __GNU__ is defined.
2998         * arm/linux-elf.h: Likewise.
2999         * cris/aout.h: Likewise.
3000         * cris/linux.h: Likewise.
3001         * i370/linux.h: Likewise.
3002         * i386/gnu.h: Likewise.
3003         * i386/linux-aout.h: Likewise.
3004         * i386/linux-oldld.h: Likewise.
3005         * i386/linux.h: Likewise.
3006         * i386/linux64.h: Likewise.
3007         * ia64/linux.h: Likewise.
3008         * m68k/linux-aout.h: Likewise.
3009         * m68k/linux.h: Likewise.
3010         * mips/linux.h: Likewise.
3011         * pa/pa-linux.h: Likewise.
3012         * pj/linux.h: Likewise.
3013         * rs6000/sysv4.h: Likewise.
3014         * s390/linux.h: Likewise.
3015         * sh/linux.h: Likewise.
3016         * sparc/linux-aout.h: Likewise.
3017         * sparc/linux.h: Likewise.
3018         * sparc/linux64.h: Likewise.
3019         * xtensa/linux.h: Likewise.
3021 2002-04-13  Andreas Schwab  <schwab@suse.de>
3023         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
3025 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
3027         Revert these changes:
3029         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
3031         PR c++/5571
3032         * stor-layout.c (layout_decl): Reset the RTL for the decl.
3034         2002-03-15  Mark Mitchell  <mark@codesourcery.com>
3036         * expr.c (expand_expr): Tidy.
3038 2002-04-12  Richard Henderson  <rth@redhat.com>
3040         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
3041         (sparc*-*-solaris): Clean up header files.
3042         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
3043         and plan on generating 64-bit code.
3044         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
3045         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
3046         * config/sparc/sol2-sld-64.h: Rename ...
3047         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
3048         for AS_SPARC64_FLAG not defined.
3049         * config/sparc/sol2-gld-bi.h: New.
3050         * config/sparc/sol2-sld.h: Remove.
3051         * config/sparc/sol26-sld.h: New.
3052         * config/sparc/sol2.h: Tidy comments.
3053         * doc/install.texi: Document sparc-solaris configury changes.
3055 2002-04-12  Richard Henderson  <rth@redhat.com>
3057         * recog.c (offsettable_address_p): Match the logic in adjust_address.
3059         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
3060         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
3062 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3064         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
3066 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
3068         * pa.c (pa_can_combine_p): Call extract_insn before calling
3069         constrain_operands.
3071 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
3073         * hwint.h (HAVE___INT64): Correct spelling.
3075         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
3076         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
3077         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
3078         (CPP_PREDEFINES): Handle __declspec.
3079         * config/i386/t-interix (USER_H): Remove.
3081 2002-04-12  DJ Delorie  <dj@redhat.com>
3083         * integrate.c (compare_blocks): Make comparisons safe for when
3084         sizeof(int) < sizeof(char *).
3085         (find_block): Likewise.
3087 2002-04-12  Andreas Schwab  <schwab@suse.de>
3089         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
3090         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
3091         overrides the definition in config/svr4.h.
3093 2002-04-12      Eric Norum <eric.norum@usask.ca>
3095         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
3096         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
3097         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
3098         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
3099         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
3100         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
3101         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
3102         definitions to config/rtems.h and make the targets more similar.
3104 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3106         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
3107         POINTERS_EXTEND_UNSIGNED.
3108         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
3109         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
3111         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
3112         not specified.
3114 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
3116         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
3117         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
3119 2002-04-12  Andreas Schwab  <schwab@suse.de>
3121         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
3123 2002-04-12  Richard Henderson  <rth@redhat.com>
3125         PR bootstrap/4191
3126         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
3128         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
3129         modes spanning multiple hard regs.
3131         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
3133 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3135         * pa.c (output_millicode_call): Check attribute type as well as length
3136         when length is 28.
3138 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3140         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
3141         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
3142         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
3143         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
3144         elfos.h and dbxelf.h values are fine now.
3145         * config/i386/freebsd.h, config/alpha/freebsd.h
3146         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
3148 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3150         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
3151         or set Acpu or Amachine.  Reformat.
3152         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3153         define.
3154         (LINK_SPEC): Do not need to undef.
3155         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
3156         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
3157         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3158         define.
3159         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
3160         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
3161         (LINK_SPEC): Do not need to undef.
3162         (DONT_USE_BUILTIN_SETJMP): Do not define.
3163         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
3164         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
3165         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
3166         Remove trailing spaces.
3167         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
3168         __ELF__, or set Acpu or Amachine.  Reformat.
3169         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
3170         define.
3172 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3174         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
3175         all other *-*-freebsd* targets.
3177 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
3179         * doc/extend.texi: Remove old claim that typedefs cannot have
3180         an alignment attribute.
3182 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
3184         PR optimization/6177
3185         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
3186         bitpos is 0 and bitsize CONCAT size.
3188 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
3190         PR c/6223
3191         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
3193 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
3195         * config/alpha/freebsd.h: Minor reformatting.
3196         (CPP_SPEC): Define ELF and add cpp_subtarget.
3197         (ASM_SPEC): No longer needed.
3199 2002-04-11  Richard Henderson  <rth@redhat.com>
3201         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
3202         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
3203         (dimode mem/zero splitter): New.
3205 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
3207         * config/cris/cris.c (cris_override_options): Tweak error message
3208         for PIC not implemented.
3210         * config/cris/cris.h: Tweak comments related to parameter-passing.
3212         * config/cris/t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
3214         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
3215         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
3216         (cris_target_asm_function_epilogue): Ditto.
3217         (cris_initial_frame_pointer_offset): Ditto.
3218         (cris_simple_epilogue): Ditto.
3219         (cris_expand_builtin_va_arg): Variable-size types come in
3220         by-reference.
3222 2002-04-10  Richard Henderson  <rth@redhat.com>
3224         * except.c (add_ehl_entry): Allow duplicates after landing pad
3225         creation.
3227 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
3229         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
3231 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
3233         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
3234         is only used as frame pointer when frame_pointer_needed is true.
3236 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
3238         PR target/817
3239         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
3240         for the fact that the pool entry uses two words.
3241         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
3242         1k bytes.
3243         (movdf_soft_insn): Similarly.
3244         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
3245         for the fact that the pool entry uses three words.
3247 2002-04-10  Richard Henderson  <rth@redhat.com>
3249         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
3250         if EXPAND_INITIALIZER.
3252 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
3254         PR optimization/6233
3255         * rtlanal.c (pure_call_p): New function.
3256         * rtl.h (pure_call_p): Declare.
3257         * loop.c (prescan_loop): Use it to set has_nonconst_call.
3258         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
3260 2002-04-09  Richard Henderson  <rth@redhat.com>
3262         * config/alpha/alpha.md (movdi_er_maybe_g): New.
3263         * config/alpha/alpha.c (alpha_expand_mov): Use it.
3265 2002-04-09  Richard Henderson  <rth@redhat.com>
3267         PR c/5078
3268         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
3270 2002-04-09  Andrew MacLeod  <amacleod@redhat.com>
3272         * expr.c (expand_expr): A RESULT_DECL is part of a call.
3274 2002-04-09  Richard Henderson  <rth@redhat.com>
3276         * cfg.c (expunge_block): Decrement num_elements here ...
3277         (expunge_block_nocompact): ... not here.
3278         * cfgcleanup.c (delete_unreachable_blocks): Set num_elements.
3280 2002-04-09  Richard Henderson  <rth@redhat.com>
3282         * basic-block.h (flow_delete_block_noexpunge): Declare.
3283         (expunge_block_nocompact): Declare.
3284         * cfg.c (expunge_block_nocompact): Split out from ...
3285         (expunge_block): ... here.
3286         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
3287         (flow_delete_block_noexpunge): Split out from ...
3288         (flow_delete_block): ... here.
3289         * cfgcleanup.c (delete_unreachable_blocks): Compact while
3290         removing dead blocks.
3291         * except.c (exception_handler_labels): Remove.
3292         (exception_handler_label_map): New.
3293         (struct eh_region): Add aka member.
3294         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
3295         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
3296         (for_each_eh_label, for_each_eh_label_1): New.
3297         (init_eh): Register exception_handler_label_map.
3298         (free_eh_status): Use free_region.
3299         (find_exception_handler_labels): Use the map, not the list.
3300         (remove_exception_handler_label): Likewise.
3301         (maybe_remove_eh_handler): Likewise.
3302         (remove_eh_handler): Use the region aka bitmap.
3303         * except.h (exception_handler_labels): Remove.
3304         (for_each_eh_label): Declare.
3305         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
3306         * loop.c (invalidate_loops_containing_label): New.
3307         (find_and_verify_loops): Use it.  Use for_each_eh_label.
3308         * sched-rgn.c (is_cfg_nonregular): Use
3309         current_function_has_exception_handlers.
3311 2002-04-08  Richard Henderson  <rth@redhat.com>
3313         * reorg.c (get_branch_condition): Use reversed_comparison_code.
3315 2002-04-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3317         * config/m68hc11/larith.asm (__map_data_section): Fix condition
3318         and optimize for size.
3319         (__do_global_ctors): Fix pointer comparison.
3320         (__do_global_dtors): Likewise.
3322 2002-04-09  David S. Miller  <davem@redhat.com>
3324         * config/sparc/sparc.c (sparc_extra_constraint_check): New
3325         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
3326         allow reloading pseudos.
3327         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
3328         * config/sparc/sparc-protos.h: Declare it.
3330         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
3331         unsigned comparison warning.
3332         (output_restore_regs): Mark leaf_function as unused.
3334 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3336         * expr.c (is_aligning_offset): New function.
3337         (expand_expr, case COMPONENT_EXPR): Call it.
3339 2002-04-09  Alan Modra  <amodra@bigpond.net.au>
3341         * configure.in (auto-build.h): Use target_alias and build_alias
3342         when running configure.
3343         (gcc_cv_as): Use $target_alias in directory searchs rather than
3344         $target.  Heed program_prefix and program_transform_name.  Search
3345         for gas in cross-compiler case too.  "test -x" rather than "test -f".
3346         (gcc_cv_ld): Likewise.
3347         (gcc_cv_nm): Set for cross compilers too.  Heed program_prefix and
3348         program_transform_name.
3349         (gcc_cv_objdump): Likewise.
3350         * configure: Regenerate.
3352 2002-04-08  Hans-Peter Nilsson  <hp@bitrange.com>
3354         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
3355         here.
3357         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
3358         semicolon.
3360         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
3361         types come in by-reference.  Fix typo in comment.
3363 2002-04-08  Richard Henderson  <rth@redhat.com>
3365         PR opt/6007
3366         * toplev.c (rest_of_compilation): Disable cross-jumping for
3367         highly connected graphs.
3369 2002-04-08  David S. Miller  <davem@redhat.com>
3371         PR target/6082
3372         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
3374         Make init_priority work on Sparc when using GNU ld.
3375         * config/sparc/linux.h, config/sparc/linux64.h,
3376         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
3377         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
3378         * config/sparc/sol2-gld.h: New file to do the same.
3379         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
3380         sparc/sol2-gld.h to tm_file.
3382         PR optimization/4328
3383         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
3384         * doc/md.texi: Document it.
3385         * config/sparc/sparc.md (movdi_insn_sp64_novis,
3386         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
3387         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
3388         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
3389         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
3391 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3393         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
3394         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
3396 2002-04-07  David S. Miller  <davem@redhat.com>
3398         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
3400 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3402         PR 5933
3403         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
3404         generating 32-bit pic code.
3406 2002-04-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3408         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
3409         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
3410         !flag_pic.
3411         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
3412         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
3413         of PIC_OFFSET_TABLE_REGNUM thruout.
3414         * config/rs6000/rs6000.md: Likewise.
3415         * config/rs6000/darwin.h: Likewise.
3417 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3419         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
3421 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
3423         PR c++/5571
3424         * stor-layout.c (layout_decl): Reset the RTL for the decl.
3426         PR opt/5120
3427         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
3428         RTX_UNCHANGING_P for the functions arguments when a tail call
3429         is made.
3431 2002-04-06  Jason Merrill  <jason@redhat.com>
3433         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
3434         (parse_options_and_default_flags): Set them appropriately.
3435         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
3437 Sat Apr  6 18:26:32 CEST 2002  Jan Hubicka  <jh@suse.cz>
3439         * ifcvt.c (if_convert): Clear aux fields of blocks.
3441 2002-04-05  David S. Miller  <davem@redhat.com>
3443         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
3444         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
3445         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
3446         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
3448 2002-04-05  Jan Hubicka  <jh@suse.cz>
3450         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
3451         of libcall regions.
3453 2002-04-05  David S. Miller  <davem@redhat.com>
3455         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
3456         are not going to emit return instructions, emit at least a nop
3457         for the sake of sane backtraces.
3459 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3461         * mklibgcc.in: Use separate libgcc.map for each multilib.
3462         * Makefile.in (distclean): Don't remove libgcc.map here.
3464 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
3466         * Makefile.in (s-mlib): Handle --disable-multilib by separate
3467         genmultilib invocation.
3469 2002-04-04  David S. Miller  <davem@redhat.com>
3471         * config/sparc/crtfastmath.c: New file.
3472         * config/sparc/t-crtfm: New file.
3473         * config/sparc/linux.h (ENDFILE_SPEC): Use crtfastmath.o
3474         * config/sparc/linux64.h (ENDFILE_SPEC): Likewise.
3475         * config/sparc/sol2.h (ENDFILE_SPEC): Likewise.
3476         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Likewise.
3477         * config/sparc/elf.h (ENDFILE_SPEC): Likewise.
3478         * config.gcc (sparc*-*-{elf*,linux*,solaris2*}): Add
3479         sparc/t-crtfm to tmake_file.
3481 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
3483         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
3484         Add rules to make null object file.
3486 2002-04-04  David S. Miller  <davem@redhat.com>
3488         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
3490 2002-04-04  Richard Henderson  <rth@redhat.com>
3492         PR opt/6165
3493         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
3494         (write_dependence_p): Likewise.
3496 2002-04-04  Richard Henderson  <rth@redhat.com>
3498         * predict.c (estimate_bb_frequencies): Do frequency calculation
3499         with a volatile temporary.
3501 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
3503         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
3505 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3507         PR c++/6119
3508         * final.c (final_start_function): Don't bump profile_label_no here...
3509         (final_end_function): ...but here.
3511 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3513         * config/sparc/sparc.md (pic): New attribute.
3514         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
3515         into stack slots.
3516         (split after do_builtin_setjmp_setup): New.
3518 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3520         PR fortran/6106
3521         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
3522         change.
3524 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
3526         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
3527         UNITS_PER_WORD for zero sized aggregates.
3529 2002-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3531         * doc/contrib.texi (Contributors): Add David O'Brien.
3533 2002-04-03  David S. Miller  <davem@redhat.com>
3535         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
3536         one-character spec for this, just use %(link_gcc_c_sequence).
3538 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
3540         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
3542 2002-04-03  David S. Miller  <davem@redhat.com>
3544         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
3545         library sequence passed to the linker.
3546         (LINK_COMMAND_SPEC): Use it.
3547         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
3548         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
3549         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3551 2002-04-03  Jason Merrill  <jason@redhat.com>
3553         PR c++/5636
3554         * tree.h (CLEANUP_EH_ONLY): New macro.
3555         * stmt.c (expand_decl_cleanup_eh): New fn.
3556         (expand_cleanups): Check CLEANUP_EH_ONLY.
3557         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
3558         Use expand_decl_cleanup_eh.
3559         (expand_stmt): Adjust.
3560         * c-common.h: Adjust prototype.
3562 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3564         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
3565         works properly with .hidden symbols.
3566         * configure: Rebuilt.
3567         * config.in: Rebuilt.
3568         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3569         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
3570         properly with .hidden symbols.
3572 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
3574         PR middle-end/6102
3575         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
3576         USE argument.
3578 2002-04-03  Richard Henderson  <rth@redhat.com>
3580         PR opt/4120
3581         * sched-rgn.c (sets_likely_spilled): New.
3582         (sets_likely_spilled_1): New.
3583         (add_branch_dependences): Use it.
3585 2002-04-02  Richard Henderson  <rth@redhat.com>
3587         PR opt/4311
3588         * loop.h (LOOP_FIRST_PASS): New.
3589         * loop.c (strength_reduce): Mind it when deciding to unroll.
3590         * toplev.c (rest_of_compilation): Set it.
3592 2002-04-02  David S. Miller  <davem@redhat.com>
3594         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
3595         mems_ok_for_ldd_peep when the order of the loads being examined
3596         is reversed.
3597         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
3598         existing comment to increase comprehension of this situation.
3600 2002-04-02  Richard Henderson  <rth@redhat.com>
3602         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
3604 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
3605             Richard Henderson  <rth@redhat.com>
3607         PR c/5484
3608         * function.c (assign_temp): Accept either type or decl argument.
3609         Detect variables whose size is too large to fit into an integer.
3610         * stmt.c (expand_decl): Pass the decl, not the type.
3612 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
3614         * protoize.c: Match include directory usage with cppdefault.c.
3616 2002-04-03  Jeffrey A Law  (law@redhat.com)
3617             Hans-Peter Nilsson  <hp@bitrange.com>
3619         * combine.c (simplify_comparison): Avoid narrowing a comparison
3620         with a paradoxical subreg when doing so would drop signficant bits.
3622 2002-04-02  David Edelsohn  <edelsohn@gnu.org>
3624         * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
3626 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
3628         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
3629         associated splitter.  Remove MQ constraint.
3630         (ctrdi_internal4): Correct CCmode clobber.
3632 2002-04-03  Hans-Peter Nilsson  <hp@bitrange.com>
3634         * config/mmix/mmix.md (define_constants): Remove misleading
3635         FIXME.  Add MMIX_fp_rO_OFFSET.
3636         ("nonlocal_goto_receiver"): Don't have stack-frame address of
3637         saved rO as part of the pattern.  Remove FIXME.
3638         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
3639         here, at output-time.
3640         * config/mmix/crti.asm (_init): Register _fini with atexit.
3641         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
3642         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
3643         unwind information when frame_pointer_needed.
3644         (mmix_assemble_integer): Tweak wording in comment.
3646 2002-04-02  Richard Henderson  <rth@redhat.com>
3648         PR opt/3967
3649         * local-alloc.c (contains_replace_regs): LO_SUM may contain
3650         replace regs.
3652 2002-04-02  Richard Henderson  <rth@redhat.com>
3654         * doc/standards.texi: Document required freestanding libc entry points.
3656 2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
3658         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3659         offset before loading address of argument passed by transparent
3660         reference.
3662 2002-04-02  Richard Henderson  <rth@redhat.com>
3664         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
3665         rename solaris_sys_varargs_h.
3667 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3669         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
3670         the same mode as its component.
3672 2002-04-02  Richard Henderson  <rth@redhat.com>
3674         PR opt/420
3675         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
3677 2002-04-01  Richard Henderson  <rth@redhat.com>
3679         PR target/1538
3680         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
3681         * fixinc/fixincl.x: Rebuild.
3683 2002-04-01  Richard Henderson  <rth@redhat.com>
3685         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
3686         (atomic_alloc, atomic_free): New.
3687         (SIZE, MASK_FOR, PTR_IN): New.
3688         (emergency_reg_state, emergency_reg_state_free): New.
3689         (emergency_labeled_state, emergency_labeled_state_free): New.
3690         (reg_state_alloced, labeled_state_alloced): New.
3691         (alloc_reg_state, free_reg_state): New.
3692         (alloc_label_state, free_label_state, free_label_states): New.
3693         (push, pop, dup_state_stack, free_state_stack): Use them.
3694         (desc_label_state): Likewise.
3695         (uw_frame_state_for): Free label states and state stack.
3696         (uw_update_reg_address): Eliminate warnings.
3698 2002-04-01  Loren J. Rittle  <ljrittle@acm.org>
3700         * doc/install.texi (*-*-freebsd*): Update.
3702 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
3704         * version.c:  Fix misplaced leading blanks on first line.
3706 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
3708         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
3709         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
3711 2002-04-01  Jim Blandy  <jimb@redhat.com>
3713         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
3714         macro formal parameter names.
3716 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3718         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
3719         in previous change.
3721 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
3723         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
3724         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
3726 2002-03-31  Richard Henderson  <rth@redhat.com>
3728         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
3729         (desc_frgr_mem): Fix reference to f16-f31.
3731 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3733         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
3734         unsigned HOST_WIDE_INT, not unsigned int.
3736 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3738         PR middle-end/6096, middle-end/6098, middle-end/6099
3739         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
3740         CODE_LABELs.
3741         (fill_slots_from_thread): Likewise.
3743 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3745         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
3746         floating fields in float regs.
3747         (function_arg_record_value_2): Likewise.
3749 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
3751         PR middle-end/6100
3752         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
3753         REG_BR_PRED.
3754         (output_v9branch): Likewise.
3756 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3758         * gcc.c: Revert previous patch for now.
3759         * config/i386/djgpp.h: Likewise.
3761 2002-03-31  Richard Henderson  <rth@redhat.com>
3763         PR target/3997
3764         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
3765         (ASM_OUTPUT_DEF_FROM_DECLS): New.
3767 2002-03-31  Richard Henderson  <rth@redhat.com>
3769         * libgcc2.c (__bb_exit_func): Make static.
3771         * config/alpha/alpha.md (trap): New.
3773 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
3775         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
3776         (LINK_COMMAND_SPEC): ... from here.
3777         (init_gcc_specs): Duplicate it here too, omitting
3778         shared_name in the second copy.
3779         (init_spec): Test for duplicate
3780         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
3782 2002-03-31  Richard Henderson  <rth@redhat.com>
3784         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
3785         promoted argument types; build trap.
3786         (expand_builtin_trap): New.
3787         (expand_builtin): Use it.
3788         * stmt.c (expand_nl_goto_receivers): Likewise.
3789         * expr.h (expand_builtin_trap): Declare.
3790         * libfuncs.h (LTI_abort, abort_libfunc): New.
3791         * optabs.c (init_optabs): Init abort_libfunc.
3793 2002-03-30  David S. Miller  <davem@redhat.com>
3795         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
3796         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
3798 2002-03-30  Roger Sayle <roger@eyesopen.com>
3799             Richard Henderson  <rth@redhat.com>
3801         * regmove.c (combine_stack_adjustments_for_block): Avoid
3802         emitting a stack adjustment of zero bytes.  Let delete_insn
3803         update bb->head.
3805 2002-03-30  Richard Henderson  <rth@redhat.com>
3807         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
3808         (sparc_emitting_epilogue): New.
3809         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
3810         * config/sparc/sparc-protos.h: Update.
3811         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
3812         (TARGET_SWITCHES): Update.
3813         * config/sparc/sparc.md (return): Remove.
3814         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
3815         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
3816         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
3817         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
3818         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
3819         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
3820         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
3821         Remove MASK_EPILOGUE.
3822         * doc/invoke.texi: Update.
3824 2002-03-30  Daniel Berlin  <dan@dberlin.org>
3826         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
3827         CPP will start the file for us.
3829 2002-03-30  Richard Henderson  <rth@redhat.com>
3831         PR target/5446
3832         * config/ia64/ia64.c (group_barrier_needed_p): Special case
3833         prologue_allocate_stack.
3834         (ia64_single_set): Use insn codes for recognition of special
3835         cases, not rtl matching.
3836         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
3838 2002-03-30  Richard Henderson  <rth@redhat.com>
3840         PR target/6032
3841         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
3842         or -fomit-frame-pointer with profiling.
3843         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3844         (FUNCTION_PROFILER): Do nothing.
3845         (PROFILE_HOOK): New.
3846         * config/sparc/sparc.c (sparc_override_options): Don't check
3847         code models for profiling.
3848         (sparc_function_profiler): Remove.
3849         (sparc_profile_hook): New.
3850         * config/sparc/sparc-protos.h: Update.
3852 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
3854         PR optimization/6086
3855         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
3856         of SUBREG of volatile MEM or because the MEM was mode dependent,
3857         return CLOBBER instead of unmodified SUBREG.
3859 2002-03-30  David O'Brien  <obrien@FreeBSD.org>
3861         * config/i370/linux.h: Update copyright.
3863 2002-03-30  Alexandre Oliva  <aoliva@redhat.com>
3865         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3866         in o32 and o64 ABIs.
3867         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3868         but getting fixed-size structs passed in registers regardless of
3869         padding in o32 and o64 ABIs.
3871 2002-03-29  Richard Henderson  <rth@redhat.com>
3873         PR target/5672
3874         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
3876 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3878         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
3879         for aggregate and TFmode types.
3881 2002-03-29  Richard Henderson  <rth@redhat.com>
3883         PR target/5886
3884         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
3885         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
3887 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3889         * doc/install.texi (*-*-freebsd*): Fix last commit.
3891 2002-03-29  Richard Henderson  <rth@redhat.com>
3893         PR target/6041
3894         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
3895         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
3896         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
3897         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
3898         conditional.
3899         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
3901 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
3903         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
3904         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
3905         No functional change except ...
3906         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
3907         * doc/install.texi (*-*-freebsd*): Document port configuration.
3909 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3911         PR c++/5964
3912         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
3913         attributes.
3914         (length): Compute variable length for branches/calls/jumps here.
3915         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
3916         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
3917         define branch_type attribute.
3918         (divsi3_sp32): Maximum length is 6 not 7.
3919         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
3920         call_address_untyped_struct_value_sp32,
3921         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
3922         * config/sparc/sparc.c (empty_delay_slot): New function.
3923         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
3924         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
3926 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
3928         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
3929         nonzero_bits if not needed.
3930         (nonzero_bits) [XOR]: Likewise.
3931         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
3932         reg_last_set_mode and mode are both MODE_INT, but not equal.
3933         (record_value_for_reg): Compute reg_last_set_nonzero_bits
3934         in nonzero_bits_mode for MODE_INT modes.
3936 2002-03-28  Richard Henderson  <rth@redhat.com>
3938         PR target/5715
3939         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
3940         to GAS.  Correct drift between alternatives.
3942 2002-03-28  Richard Henderson  <rth@redhat.com>
3944         PR target/6087
3945         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
3947 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
3949         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
3950         emulation to the linker.
3952 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
3954         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
3955         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3957 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3959         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
3961 Thu Mar 28 16:33:13 2002  Jeffrey A Law  (law@redhat.com)
3963         * combine.c (simplify_and_const_int): Make sure to apply mask
3964         when force_to_mode returns a constant integer.  PR3311.
3966 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3968         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
3969         and Objective-C Dialect Options.
3971 2002-03-28  Richard Henderson  <rth@redhat.com>
3973         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
3974         comparison should be done vs !=0 not >0 return code.  Tidy cases.
3976 2002-03-28  Richard Henderson  <rth@redhat.com>
3978         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
3979         on to c_expand_body.
3980         * c-tree.h (finish_function): Update decl.
3981         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
3983 2002-03-27  Andreas Schwab  <schwab@suse.de>
3985         * config/i386/i386.c (classify_argument): Also check for
3986         QUAL_UNION_TYPE.
3988 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3990         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
3991         any more.
3993 Wed Mar 27 22:52:02 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3995         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
3996         assigning to BLOCK_FOR_INSN directly.
3998 Wed Mar 27 22:46:04 CET 2002  Jan Hubicka  <jh@suse.cz>
4000         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
4002 2002-03-27  Richard Henderson  <rth@redhat.com>
4004         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
4006 2002-03-27  Richard Henderson  <rth@redhat.com>
4008         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
4009         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
4010         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
4012 2002-03-27  Richard Henderson  <rth@redhat.com>
4014         PR target/6054
4015         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
4016         TARGET_CONST_GP.  Simplify conditions.
4018 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
4020         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
4022         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
4023         or __rtems_ is defined.
4025 2002-03-26  Richard Henderson  <rth@redhat.com>
4027         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
4028         if a non-trivial load was emitted.
4029         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
4030         in high+extra+low case.
4032 2002-03-26  Richard Henderson  <rth@redhat.com>
4034         * config.gcc (sparc*-solaris): Use float_format=sparc.
4036 2002-03-26  Richard Henderson  <rth@redhat.com>
4038         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
4039         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
4040         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
4041         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
4042         (WINT_TYPE_SIZE): Fix at 32.
4044 2002-03-26  Richard Henderson  <rth@redhat.com>
4046         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
4047         until after eh landing pad generation.
4048         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
4049         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
4051 2002-03-26  Richard Henderson  <rth@redhat.com>
4053         * expr.h (ADD_PARM_SIZE): One more convert for INC.
4055 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
4057         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
4059 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
4061         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
4062         Restore more of the signal context.  Set no_reg_stack_frame.
4063         * config/ia64/unwind-ia64.c (unw_state_record):
4064         Add no_reg_stack_frame, comments.
4065         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
4066         (uw_update_context): Adjust bsp when unwinding from leaf,
4067         but not signal frame.
4069 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4071         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
4073 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
4075         PR target/5621
4076         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
4077         "Add a pool_range attribute", which was lost during the ARM/Thumb
4078         merge.
4080 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
4082         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
4083         a register into the MAC16 accumulator.
4085 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
4087         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
4088         code to not restoring global registers.
4090 2002-03-26  Richard Henderson  <rth@redhat.com>
4092         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
4093         (SUB_PARM_SIZE): Cast DEC to ssizetype.
4095         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
4096         types from the normal argument frame.
4098         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
4099         variable sized objects by reference.
4100         (sparc_va_arg): Receive them by reference too.
4102 2002-03-25  Bruce Korb  <bkorb@gnu.org>
4104         * Makefile.in(check-fixinc): run "$(MAKE) check" in the fixinc
4105         directory when autogen is detected.
4107 2002-03-25  Richard Henderson  <rth@redhat.com>
4109         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
4110         anywhere in the block.  Don't refer to insns that have been
4111         removed from the chain.  Iterate backward through the new insns.
4112         Don't refer to edges that have been removed.
4114 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
4116         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
4117         test for overflow of constant.
4119 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
4121         PR target/2623
4122         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
4123         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
4124         these patterns on arm_archv4.
4126 2002-03-22  Nick Clifton  <nickc@cambridge.redhat.com>
4128         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
4129         defined.  Do not disable exceptions or rtti.
4130         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
4131         mcore.h.  Disable exceptions and rtti, since they are not
4132         supported by EPOC.
4134 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4136         * regrename.c (build_def_use): Move recog_memoized
4137         before extract_insn.
4139 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4141         PR target/6043
4142         * expr.c (emit_group_store): Handle storing into CONCAT.
4144 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
4146         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
4147         corresponding MATCH_DUP.
4149 2002-03-24  Richard Henderson  <rth@redhat.com>
4151         * unroll.c (unroll_loop): Zero label_map.
4153         * gcse.c: Include except.h.
4154         * Makefile.in (gcse.o): Update.
4156 2002-03-24  Richard Henderson  <rth@redhat.com>
4158         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
4159         Do resolve_unique_section before shared data clause.
4161 2002-03-24  Richard Henderson  <rth@redhat.com>
4163         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
4165 2002-03-24  Richard Henderson  <rth@redhat.com>
4167         * recog.c (peephole2_optimize): Split blocks when EH insns are
4168         generated in the middle of a block.  Do global life update if
4169         zapped EH edges.
4171 2002-03-24  Richard Henderson  <rth@redhat.com>
4173         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
4175 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4177         preprocessor/3951
4178         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
4179         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
4180         (init_dependency_output): Don't make no_output decision here.
4182 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4184         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
4185         (m68hc11_split_move): Call it to see if the source and destination
4186         operands use the same direction auto inc/dec mode, otherwise make the
4187         source an offsetable memory operand and generate an add.
4189 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4191         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
4192         register for operand 2.
4193         ("*subsi3_zero_extendqi"): Likewise.
4194         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
4195         bits so that it is compatible with a pop.
4196         ("*andhi3_gen"): Likewise.
4197         ("xorhi3"): Likewise.
4199 2002-03-24  Richard Henderson  <rth@redhat.com>
4201         PR optimization/5742
4202         * machmode.def: Add inner mode field to complex modes.
4203         * config/mips/mips.c (mips_function_value): Always define.  Add
4204         new argument to handle libcalls.
4205         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
4206         (FUNCTION_VALUE): Likewise.
4207         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
4208         * config/mips/mips-protos.h: Update.
4210 2002-03-23  Richard Henderson  <rth@redhat.com>
4212         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
4213         * config/sparc/sparc-protos.h: Update.
4214         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
4216 2002-03-23  Richard Henderson  <rth@redhat.com>
4218         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
4219         _start or _init begins the text segment.
4221 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
4223         * combine.c (simplify_comparison): When widening modes, ignore
4224         sign extension on CONST_INTs.
4226 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4228         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
4229         passed to adjust_address.  Fix comment formatting.
4231 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4233         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
4234         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
4236 2002-03-22  Richard Henderson  <rth@redhat.com>
4238         * c-pragma.c (maybe_apply_renaming_pragma): New.
4239         (handle_pragma_redefine_extname, pending_redefine_extname): New.
4240         (handle_pragma_extern_prefix, pragma_extern_prefix): New.
4241         (init_pragma): Register them.
4242         * c-pragma.h (maybe_apply_renaming_pragma): Declare.
4243         * c-decl.c (finish_decl): Call it.
4244         * cp/decl.c (cp_finish_decl): Likewise.
4245         * doc/extend.texi: Document the new pragmas.
4247         * config/alpha/osf.h (CPP_SUBTARGET_SPEC): Add __EXTERN_PREFIX.
4248         (HANDLE_PRAGMA_EXTERN_PREFIX): New.
4250         * config/i386/sol2.h (CPP_PREDEFINES): Add __PRAGMA_REDEFINE_EXTNAME.
4251         (HANDLE_PRAGMA_REDEFINE_EXTNAME): New.
4252         * config/sparc/sol2.h: Likewise.
4254 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
4256         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
4257         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
4258         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
4259         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
4260         prevent use of sp as a reload register.
4261         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
4262         non_acc_reg_operand.
4263         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
4264         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
4265         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4266         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
4268 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4270         PR optimization/5854
4271         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
4272         Shut up warnings.
4273         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
4274         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
4275         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
4276         const0 if scratch register was not allocated.
4277         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
4278         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
4279         with GEN_INT (...).
4280         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
4281         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
4282         with GEN_INT (...) everywhere.  Remove constraints in define_split
4283         patterns.
4284         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
4285         require scratch register for setting 0 into regs/non-pushable memory.
4287 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
4289         * flow.c (calculate_global_regs_live): Clear aux fields of
4290         ENTRY and EXIT.
4292 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
4294         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
4295         REG or MEM subregs, pass rtx * instead of rtx to it.
4296         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
4297         rtx * instead of rtx to alter_subreg.
4298         * config/m32r/m32r.c (gen_split_move_double): Likewise.
4299         * config/pj/pj.c (pj_output_rval): Likewise.
4301 2002-03-22  Richard Henderson  <rth@redhat.com>
4303         PR target/3177
4304         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
4305         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
4306         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
4307         (ia64_expand_prologue): Look at int_regs, not words, for number
4308         of incomming int regs.
4310 Fri Mar 22 16:00:06 CET 2002  Jan Hubicka  <jh@suse.cz>
4312         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
4313         frequencies match; avoid match on different loop depths.
4314         (try_crossjump_to_bb): Kill tests that no longer brings time
4315         savings.
4316         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
4317         updating code.
4318         (split_edge): Likewise.
4320 2002-03-21  Richard Henderson  <rth@redhat.com>
4322         PR target/5996
4323         * fixinc/inclhack.def (solaris_stdio_tag): New.
4324         * fixinc/fixincl.x: Regenerate.
4326 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4328         PR c/5597
4329         * c-typeck.c (process_init_element): Flag non-static
4330         initialization of a flexible array member as illegal.
4332 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
4334         * config/rs6000/t-linux64: New.
4335         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
4336         t-ppccomm.  Use t-rs6000 and t-linux64.
4337         (powerpc64-*-gnu* <tmake_file>): Likewise.
4338         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
4339         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
4340         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
4342 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
4344         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
4345         flag_really_no_inline instead of optimize == 0.
4347         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
4349         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
4351         * flags.h (flag_really_no_inline): New.
4353         * c-common.c (c_common_post_options): Initialzie
4354         flag_really_no_inline.
4356         * toplev.c (flag_really_no_inline): New.
4358 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4360         * config/avr/avr.md (length): Fix length computation for
4361         conditional branches.
4363 2002-03-21  Richard Henderson  <rth@redhat.com>
4365         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
4366         constants in .data when -fpic.
4368 2002-03-21  Tom Tromey  <tromey@redhat.com>
4370         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
4372 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4374         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
4375         where appropriate.
4377 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4379         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
4381         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
4383 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
4384             Richard Henderson  <rth@redhat.com>
4386         PR c/5354:
4387         * c-common.c (c_expand_expr): Preserve result of a statement
4388         expression if needed.
4390 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
4392         PR bootstrap/4195
4393         * genrecog.c (maybe_both_true_mode): Remove.
4394         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
4395         * machmode.def (Pmode): Likewise.
4397 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4399         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
4400         UNIX assert.h.
4401         * fixinc/fixincl.x: Regenerate.
4403 2002-03-20  Jason Merrill  <jason@redhat.com>
4405         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
4407 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
4409         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
4410         ".literal_position" directive before the constant pool.
4412 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4414         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
4415         Add Craig Rodrigues.
4416         Add Brad Lucier to testers.
4418 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4420         PR target/4792
4421         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
4422         to if_then_else.
4423         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
4424         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
4425         instead of insn_extract.
4427 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4429         PR bootstrap/4192
4430         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
4432         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
4433         stmt if some case has been output.
4435 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
4437         PR c/5972
4438         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
4439         movsfcc_1, movdfcc_1): Add %O2.
4440         * config/i386/i386.c (print_operand): Handle %ON.
4441         Print . before float condition codes in Sun as cmov syntax.
4442         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
4443         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
4444         no longer true.
4446 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
4448         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
4449         return instruction if PC was popped.
4451 2002-03-20  Hans-Peter Nilsson  <hp@bitrange.com>
4453         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
4454         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
4455         ("truncdfsf2"): Correct operator is float_truncate, not fix.
4456         ("*truncdfsf2_real"): Ditto.
4457         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
4459         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
4461 2002-03-19  Jim Blandy  <jimb@redhat.com>
4463         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
4464         the start_source_file debug hook, not the current line number.
4466         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
4467         name, even if the replacement list contains no tokens, as required
4468         by Dwarf.
4470 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
4472         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
4473         about -fpic/-fPIC if extra_warnings set.
4475 2002-03-19  Richard Henderson  <rth@redhat.com>
4477         * flow.c (EH_USES): Provide default.
4478         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
4479         * doc/tm.texi (EH_USES): New.
4481         * config/ia64/ia64.c (ia64_eh_uses): New.
4482         * config/ia64/ia64-protos.h: Update.
4483         * config/ia64/ia64.h (EH_USES): New.
4485 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
4487         * defaults.h (SUPPORTS_WEAK): Set if ASM_WEAKEN_DECL.
4488         * varasm.c (assemble_alias): Use ASM_WEAKEN_DECL.
4489         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
4490         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
4491         (SUPPORTS_WEAK): Likewise.
4493 2002-03-19  Richard Henderson  <rth@redhat.com>
4495         PR 5879
4496         * except.c (current_function_has_exception_handlers): New.
4497         * except.h: Declare it.
4498         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
4499         Combine tests that disable all sibcalls for the function.
4501 2002-03-19  Richard Henderson  <rth@redhat.com>
4503         PR 5977, 5991
4504         * config/ia64/ia64.c: Revert 2002-03-01 patch.
4505         * config/ia64/ia64.h (INIT_EXPANDERS): New.
4507 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
4509         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
4510         for INTEGER_CST.
4512 2002-03-19  Jason Merrill  <jason@redhat.com>
4514         * varasm.c (globalize_decl): Get the name from the RTL, not
4515         DECL_ASSEMBLER_NAME.
4517         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
4519 2002-03-19  Dale Johannesen  <dalej@apple.com>
4521         PR optimization/5999, middle-end/5731
4522         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
4523         multiplications by reciprocals.
4525 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
4527         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
4528         subdi_carry): Define.
4530 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4532         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
4533         in favor of SP if FRAME_POINTER_REQUIRED is false.
4535 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
4537         PR c/5656
4538         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
4539         convert_parm_for_inlining.
4540         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
4541         Define.
4542         * langhooks-def.h: Likewise.
4543         * objc/objc-lang.c: Likewise.
4544         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
4545         function.
4546         * tree-inline.c (initialize_inlined_parameters):
4547         Call convert_parm_for_inlining lang hook if needed.
4548         * c-typeck.c (c_convert_parm_for_inlining): New function.
4549         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
4551 2002-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4553         * gcse.c (insert_insn_end_bb): Fix typo in last change.
4555 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
4557         * calls.c (precompute_arguments): Do not assume that temporaries
4558         can be destroyed after expanding the argument.
4559         (expand_call): Likewise.
4561 2002-03-18  Ashif Harji  <asharji@uwaterloo.ca>
4563         * gcc.c (struct compiler default_compilers): Add
4564         -no-integrated-cpp flag to invoke an external cpp.
4565         (struct option_map option_map[]): Likewise.
4566         * objc/lang-specs.h (struct compiler default_compilers): Add
4567         -no-integrated-cpp flag to invoke an external cpp.
4568         * doc/invoke.texi: Document -no-integrated-cpp flag.
4570 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
4571             David Edelsohn  <edelsohn@gnu.org>
4573         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
4574         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4575         .weak for code sym.  Do emit .size for descriptor sym.
4576         (ASM_DECLARE_FUNCTION_SIZE): Define.
4577         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
4578         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
4579         .lglobl unless TARGET_XCOFF.  Formatting fixes.
4580         (PREDICATE_CODES): Add any_operand and zero_constant.
4581         (HANDLE_PRAGMA_PACK): Delete.
4582         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
4583         .weak for code sym.
4584         (HANDLE_PRAGMA_WEAK): Remove.
4585         (ASM_WEAKEN_LABEL): Remove.
4586         (COLLECT_EXPORT_LIST): Delete.
4587         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
4588         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
4590 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
4592         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
4593         constant-pool addresses as "mode-dependent".
4595 Mon Mar 18 18:12:48 CET 2002  Jan Hubicka  <jh@suse.cz>
4597         * i386.c (override_options): Disallow preferred_stack_boundary to be
4598         less than 16 bytes
4599         (construct_container): Fix end of array check.
4600         (ix86_va_start): Force alignemnt to be 16 bytes.
4602         * linux64.h (MULTILIB_DEFAULTS): Set to "m64".
4603         (t-linux64): Add multilibing
4605         * i386.h (PROMOTE_PROTOTYPES): Set to 0 for x86_64.
4607         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
4609         * basic-block.h (fixup_abnormal_edges): Declare.
4610         * reload1.c (fixup_abnormal_edges): Make global.
4611         * reg-stack.c (convert_regs): Use it.
4613         * gcse.c (insert_insn_end_bb): Handle trapping insns.
4615         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
4617         * recog.c (peephole2_optimize): Re-distribute EH edges.
4619 2002-03-18  Jason Merrill  <jason@redhat.com>
4621         * configure.in: Disable checking by default on release branch.
4623 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
4625         PR target/5740
4626         * expr.c (emit_group_load): Use extract_bit_field if
4627         needed for CONCAT arguments.
4629 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
4631         PR target/4863
4632         * arm.md (tablejump): Make this a define_expand.  For PIC add the
4633         offset to the base of the table.
4634         (thumb_tablejump): Matcher for Thumb tablejump insn.
4635         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
4636         as the difference of two labels.
4637         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4638         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
4639         tables in the code.
4640         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4641         * arm.c (get_jump_table_size): If the table is not in the text
4642         section, return zero.
4644 2002-03-17  Richard Henderson  <rth@redhat.com>
4646         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
4647         explicitly.
4649 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4651         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
4653 2002-03-17  David Edelsohn  <edelsohn@gnu.org>
4655         * expr.c (expand_expr): Sign-extend CONST_INT generated from
4656         TREE_STRING_POINTER.
4658 2002-03-16  Richard Henderson  <rth@redhat.com>
4660         * config/ia64/ia64.c (ia64_attribute_table): Move before
4661         targetm definition.  Make static.
4663 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
4665         * cppinit.c (print_help): Display -MD and -MMD.
4666         Don't display usage string.  Update assertion syntax and
4667         typo.
4669 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4671         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
4672         soft registers by default for 68HC12.
4673         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
4674         when compiling with -fomit-frame-pointer.
4675         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
4676         (expand_epilogue): Likewise.
4677         (m68hc11_gen_rotate): Use exg when rotating by 8.
4679 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4681         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
4682         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
4683         (splits): Remove unused add splits.
4684         ("*addhi3_68hc12"): Tune constraints.
4685         ("addhi_sp"): Try to use X instead of Y in all cases and if the
4686         constant fits in 8-bits and D is dead use abx/aby instructions.
4687         ("*addhi3"): Remove extern declaration of ix_reg.
4688         ("*subsi3"): Optimize and provide new split.
4689         ("subhi3"): Cleanup.
4690         ("*subhi3_sp"): Avoid saving X if we know it is dead.
4691         (arith splits): For 68hc12 save the address register on the stack
4692         and do the arithmetic operation with a pop.
4694 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4696         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
4697         allocating QImode in address registers.
4698         ("*movqi_m68hc11"): Likewise.
4700 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
4702         * expr.c (expand_expr): Revert previous change.
4704         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
4705         * c-common.def (CLEANUP_STMT): New tree node.
4706         * c-common.h (CLEANUP_DECL): New macro.
4707         (CLEANUP_EXPR): Likewise.
4708         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
4709         * expr.c (expand_expr): Tidy.
4710         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
4711         * tree-inline.c (initialize_inlined_parameters): Clean up
4712         new local variables.
4714 2002-03-15  Richard Henderson  <rth@redhat.com>
4716         * c-decl.c: Include c-pragma.h.
4717         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
4718         (finish_function): Tidy.
4719         * c-pragma.c: Include c-common.h.
4720         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
4721         (handle_pragma_weak): Use them.
4722         (init_pragma): Register pending_weaks.
4723         * c-pragma.h (maybe_apply_pragma_weak): Declare.
4724         * print-tree.c (print_node): Print DECL_WEAK.
4725         * varasm.c (mark_weak_decls): Remove.
4726         (remove_from_pending_weak_list): Remove.
4727         (add_weak): Remove.
4728         (asm_emit_uninitialised): Call globalize_decl for weak commons.
4729         (weak_decls): Make a tree_list.
4730         (declare_weak): Cons weak_decls directly.
4731         (globalize_decl): Remove weak_decls elements directly.
4732         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
4733         symbols.  Don't pretend to handle aliases.
4734         (init_varasm_once): Update weak_decls registry.
4735         * Makefile.in: Update dependencies.
4737 2002-03-15  Richard Henderson  <rth@redhat.com>
4739         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
4740         size as a tree.
4742 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4744         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
4745         ("tstqi" split): Avoid using memory for tstqi on address register.
4746         (splits): Remove constraints.
4747         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
4748         ("cmpdf", "cmpsf"): Remove since not used.
4749         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
4750         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
4752 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4754         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
4755         ("neghi2"): Tighten constraints.
4756         ("one_cmplsi2"): Optimize and simplify split.
4757         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
4759 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4761         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
4762         and split of AND operation to clear the upper bits.
4763         ("*logicalsi3_zextqi"): Likewise.
4764         ("*logicallhi3_zexthi_ashift8"): Likewise.
4765         ("*logicalsi3_silshr16"): Likewise.
4766         ("logicalsi3_silshl16"): Likewise.
4767         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
4769 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4771         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
4772         (m68hc11_indirect_p): New function.
4773         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
4774         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
4775         TARGET_M6812.
4776         (asm_print_register): Likewise.
4777         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
4778         (m68hc11_indirect_p): Declare.
4779         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
4780         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
4781         (TARGET_SWITCHES): New option -mrelax.
4782         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
4783         destination.
4784         ("iorsi3", "xorsi3"): Likewise.
4785         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
4786         ("*andhi3_mem"): New to handle destination in memory with bclr
4787         and a scratch register.
4788         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
4789         ("*andhi3_const"): New when operand2 is constant.
4790         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
4791         ("*andhi3_gen"): Cleanup of the old "andhi3".
4792         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
4793         ("xorqi3"): Update constraints.
4795 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4797         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
4798         for reg_equiv_memory_loc when the operand is a register that does
4799         not get a hard register (stack location).
4800         (tst_operand): After reload, accept all memory operand.
4801         (symbolic_memory_operand): Fix detection of symbolic references.
4802         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
4803         accept symbols and any constant.
4805 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4807         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
4808         note on the insn that sets the soft frame register.
4809         (must_parenthesize): ix and iy are also reserved names.
4810         (print_operand_address): One more place where parenthesis are required
4811         to avoid confusion with register names.
4812         (m68hc11_gen_movhi): Allow push of stack pointer.
4813         (m68hc11_check_z_replacement): Fix handling of parallel with a
4814         clobber.
4815         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
4816         the replacement register is.
4817         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
4818         and D8_REGS classes.
4819         (MODES_TIEABLE_P): All modes are tieable except QImode.
4821 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4823         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
4824         (___subdi3): Likewise.
4825         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
4826         (__map_data_section): Optimize 68hc11 case.
4828 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4830         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
4831         than a shift to avoid adding a register with itself.
4832         (m68hc11_memory_move_cost): Take into account NO_REGS.
4833         (m68hc11_register_move_cost): Update and use memory move cost
4834         for soft registers.
4835         (m68hc11_address_cost): Make cost of valid offset not 0 so that
4836         it gives more opportunities to cse to optimize.
4837         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
4838         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
4840 2002-03-15  Jason Merrill  <jason@redhat.com>
4842         * varasm.c (globalize_decl): New fn.
4843         (assemble_start_function): Use it.
4844         (asm_emit_uninitialized): Use it.
4845         (assemble_alias): Use it.
4846         (assemble_variable): Use it.
4848 2002-03-15  Jason Merrill  <jason@redhat.com>
4850         * varasm.c (assemble_variable): Use zeros for a decl with DECL_INITIAL
4851         of error_mark_node.
4853 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4855         PR bootstrap/4128
4856         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
4857         before movrXX only, use reg_overlap_mentioned_p.
4858         Only special case NE if just one insn can be generated.
4860 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
4862         PR target/5712
4863         * arm.md (movaddr, movaddr_insn): Delete.
4865 2002-03-15  Jason Merrill  <jason@redhat.com>
4867         * toplev.c (wrapup_global_declarations): Clarify variable handling.
4868         -fkeep-static-consts doesn't apply to comdats.
4870 2002-03-14  Richard Henderson  <rth@redhat.com>
4872         PR target/5312
4873         * config/ia64/ia64.c: Include tm_p.h last.
4874         (gen_nop_type): Remove duplicate definition.
4875         (cycle_end_fill_slots): Set sched_data for second L slot.
4876         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
4877         (nop_cycles_until): Fix typos.
4879 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
4881         PR optimization/5891
4882         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
4884 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
4886         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
4887           descriptors correctly.
4889 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
4891         * cpphash.h (struct lexer_state): Remove line_extension member.
4892         * cpplib.c (dequote_string, do_linemarker): New functions.
4893         (linemarker_dir): New data object.
4894         (DIRECTIVE_TABLE): No longer need to interpret #line in
4895         preprocessed source.  Delete obsolete comment about return
4896         values of handlers.
4897         (end_directive, directive_diagnostics, _cpp_handle_directive):
4898         Don't muck with line_extension.
4899         (directive_diagnostics): No need to issue warnings for
4900         linemarkers here.
4901         (_cpp_handle_directive): Issue warnings for linemarkers here,
4902         when appropriate.  Dispatch linemarkers to do_linemarker, not
4903         do_line.
4904         (do_line): Code to handle linemarkers split out to do_linemarker.
4905         Convert escape sequences in filename argument, both places.
4907         * cppmacro.c (quote_string): Rename cpp_quote_string and
4908         export.  All callers changed.
4909         * cpplib.h (cpp_quote_string): Prototype.
4910         * cppmain.c (print_line): Call cpp_quote_string on to_file
4911         before printing it.
4913         * doc/cpp.texi: Document that escapes are now interpreted in
4914         #line and in linemarkers, and that non-printing characters are
4915         converted to octal escapes when linemarkers are generated.
4917 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
4918             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4920         PR target/5828
4921         * arm.c (arm_output_epilogue): Fix floating-point register save
4922         adjustment when using a frame pointer.
4924 2002-03-13  Hans-Peter Nilsson  <hp@bitrange.com>
4926         * config/mmix/mmix.c: Improve comments.
4927         (mmix_target_asm_function_prologue): Drop variable
4928         empty_stack_frame.  Don't allocate unused slot above fp.
4929         (mmix_target_asm_function_epilogue): Mirror prologue changes.
4930         (mmix_expand_builtin_va_arg): Do all computations on trees.
4931         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
4932         brace in first column.
4933         (enum reg_class): Ditto.
4934         (FIRST_PARM_OFFSET): Now 0.
4935         (USER_LABEL_PREFIX): Remove #if 0:d definition.
4936         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
4937         relocatably.  Always produce ELF, not mmo if linking relocatably.
4939 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
4941         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
4942         * config/rs6000/rs6000.c (rs6000_va_arg): Use
4943         std_expand_builtin_va_arg if not ABI_V4.
4945 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4947         PR target/5626
4948         * config/sparc/sparc.md (normal_branch, inverted_branch,
4949         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
4950         inverted_fp_branch): Adjust calls to output_cbranch.
4951         Set length attribute.
4952         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
4953         output_v9branch.  Set length attribute.
4954         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
4955         predicates.
4956         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
4957         (output_cbranch): Likewise.  Handle far branches.
4958         (output_v9branch): Handle far branches.
4959         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
4960         Adjust prototypes.
4961         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
4962         noov_compare64_op predicates.
4964 2002-03-13  Jason Merrill  <jason@redhat.com>
4966         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
4967         into the function and constify it.
4968         * gthr-dce.h, gthr-solaris.h: Likewise.
4970 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
4972         * config/cris/cris.c (cris_print_operand): Avoid
4973         traditional-warning for 0xffffffff.
4974         (cris_expand_builtin_va_arg): Do all computations on trees.
4976 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
4978         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
4979         VOIDmode operand.  Add compile-time optimization for constant results.
4981 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
4983         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
4984         before prologue, to avoid scheduling problems.
4986 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4988         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4989         (ELIMINABLE_REGS): Add sfp->sp.
4990         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
4992 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4994         PR optimization/5892
4995         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
4997 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
4999         * loop.c (basic_induction_var): Don't call convert_modes if mode
5000         classes are different.
5002 2002-03-12  Richard Henderson  <rth@redhat.com>
5004         PR optimization/5901
5005         * function.c (reposition_prologue_and_epilogue_notes): Position
5006         the markers after/before the last/first insn not deleted.
5008 2002-03-12  Richard Henderson  <rth@redhat.com>
5010         PR optimization/5878
5011         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
5012         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
5013         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5015         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
5016         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
5017         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
5019         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
5020         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
5021         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
5022         also.  Don't set it if not flag_pic.
5023         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
5024         to be INVALID_REGNUM when not used.
5026 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
5028         * expmed.c (store_bit_field): Reset alias set for memory.
5029         (extract_bit_field): Same.
5031 2002-03-12  Chris Meyer  <cmeyer@gatan.com>
5033         * genflags.c (gen_insn): Use IS_VSPACE.
5034         * genoutput.c (output_insn_data): Likewise.
5035         (process_template): Likewise.
5037 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5039         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
5040         validize_mem() instead of change_address to avoid clobbering
5041         memory attributes.
5043 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
5045         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
5046         (lex_string): Use unsigned char pointers.
5048 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5050         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
5051         is not a valid memory_operand.
5053 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5055         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
5056         * config/xtensa/lib1funcs.asm: Fix copyright to include
5057         special case for libgcc files.
5058         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
5059         (__divsi3): Likewise.
5060         (__umodsi3): Likewise.
5061         (__modsi3): Likewise.
5062         * config/xtensa/lib2funcs.S: Fix copyright to include
5063         special case for libgcc files.
5065 2002-03-12  Michael Matz  <matz@suse.de>
5067         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
5068         (ne0+5): Use new clobber to generate proper shift pattern.
5070 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5072         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
5074 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
5076         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
5077         to function_section before writing out the constant pool.
5079 2002-03-12  Zack Weinberg  <zack@codesourcery.com>
5081         * Makefile.in: Give texi2pod its input file as a command
5082         line argument, not on stdin.
5084 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
5086         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
5087         address calculation.
5089 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
5091         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
5092         scratch register to DImode / TImode.
5093         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
5094         register used does not overlap the target.
5096 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
5098         * Makefile.in: Update.
5099 doc:
5100         * cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
5101         Update documentation.
5102         * gcc.texi: Include cppopts.texi and cppenv.texi.
5103         * cpp.texi: Include cppopts.texi and cppenv.texi.
5105 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
5107         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
5109 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
5111         * toplev.c (vms_fopen): Remove, not needed.
5113         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
5115         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
5117         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
5118         for FP, already done later.
5120         * toplev.c (debug_args): Add entry for VMS_DEBUG.
5121         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
5123 2002-03-10  Richard Henderson  <rth@redhat.com>
5125         PR 5693
5126         * reload.c (copy_replacements_1): New.
5127         (copy_replacements): Use it to recurse through the rtx.
5129 2002-03-10  Richard Henderson  <rth@redhat.com>
5131         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
5132         to move away from the end of the block.
5134 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
5136         PR preprocessor/5899
5137         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
5139 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5141         * combine.c (make_extraction): Fix error in last change.
5143 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5145         PR optimization/5172, optimization/5200
5146         * gcse.c (gcse_main): Disable store_motion.
5148 2002-03-09  Andreas Schwab  <schwab@suse.de>
5150         * gcc.c (validate_all_switches): Also handle `%W{...}'.
5152 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
5154         PR middle-end/5877
5155         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
5156         even for non-representable constants.
5158 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5160         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
5161         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
5162         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
5163         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
5164         (pop_function_context): Compute MAY_SHARE parameter for
5165         fixup_var_refs.
5166         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
5167         (gen_mem_addressof): Call fixup_var_refs with new parm.
5169         * combine.c (make_extraction): Don't make extension of CONST_INT.
5171 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5173         * sparc.c (arith_4096_operand): Fix error in last change.
5175 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5177         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
5178         vectors.
5180 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
5182         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
5184 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5186         * doc/install.texi (--with-libiconv-prefix): Document.
5188 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
5190         * doc/sourcebuild.texi: Fix typo.
5192 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
5194         PR c/3711
5195         * builtins.c (std_expand_builtin_va_arg): Do all computations on
5196         trees.
5198 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5200         * rtl.c (copy_most_rtx): Move from here ...
5201         * emit-rtl.c (copy_most_rtx): ... to here.
5203 2002-03-08  Richard Earnshaw  <rearnsha@arm.com>
5205         * combine.c (simplify_comparison): If simplifying a logical shift
5206         right and compare with constant, force the comparison to unsigned.
5208 2002-03-07  Ulrich Weigand  <uweigand@de.ibm.com>
5210         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
5211         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
5212         and MATCH_OP_DUP.
5214 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
5216         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
5218         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
5219         -mabi=no-altivec
5220         (alt_reg_names): Remove % for vrsave.
5222 2002-03-06  Jeffrey A Law  (law@redhat.com)
5224         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
5225         after completing fast dead code elimination.
5227 2002-03-06  Richard Henderson  <rth@redhat.com>
5229         PR optimization/5844
5230         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
5231         if used indicates we've already emitted one copy of an operand.
5232         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
5233         (gen_split): Supply a non-null used.
5235 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5237         * simplify-rtx.c (simplify_plus_minus): Do not abort,
5238         but simply fail if the expression is too complex to simplify.
5239         (simplify_gen_binary): Handle simplify_plus_minus failures.
5241 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
5243         * reload1.c (reload): Unshare all rtl after reload is done.
5245 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
5247         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
5248         patch.
5250 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
5252         * cppmain.c (setup_callbacks): Disable #pragma and #ident
5253         callbacks when processing assembly language.
5255 2002-03-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5257         * pa.h (ASM_FILE_END): Define.
5258         * som.h (ASM_FILE_END): Delete.
5260         * pa.c (function_arg): Don't pass floats in general registers in
5261         indirect calls if TARGET_ELF32.
5263 2002-03-05  Richard Henderson  <rth@redhat.com>
5265         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
5267 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5269         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
5270         -r command line.  Don't hide any symbols if not building
5271         shared libgcc.
5273 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5275         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
5276         wide volatile memory by parts.
5278 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
5280         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
5281         is NULL.
5283 2002-03-05  Richard Henderson  <rth@redhat.com>
5285         * config/rs6000/rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
5287 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
5289         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
5291 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5293         * configure.in: Increase required makeinfo version to 4.1.
5294         * configure: Regenerate.
5296 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
5298         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
5299         * doc/invoke.texi: Fix @math uses.
5301 2002-03-02  Per Bothner  <per@bothner.com>
5303         * gcc.c (option_map):  Suport new --bootclasspath option.
5304         --CLASSPATH is now just an alias for --classpath.
5306 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5308         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
5309         trunc_int_for_mode.
5311         * emit-rtl.c (offset_address): Call update_temp_slot_address.
5313 2002-03-01  Richard Henderson  <rth@redhat.com>
5315         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
5316         adjust argument_pointer by pretend_args_size.
5317         (ia64_va_start): Adjust va_start address by -pretend_args_size.
5319 2002-03-01  Zack Weinberg  <zack@codesourcery.com>
5321         * doc/cpp.texi: Clarify documentation of relationship between
5322         #line and #include.
5324 2002-02-28  Richard Henderson  <rth@redhat.com>
5326         * expmed.c (store_bit_field): Prevent generation of CONCATs;
5327         pun complex values as integers; use gen_lowpart instead of
5328         gen_rtx_SUBREG.
5329         (extract_bit_field): Likewise.
5331 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
5333         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
5334         of "ultrasparc".
5335         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
5336         to be broken.
5338 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
5340         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
5341         override -shared and -shared-libgcc.
5343 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
5345         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
5346         POST_DEC, and POST_MODIFY.
5348 2002-02-28  Joseph S. Myers  <jsm28@cam.ac.uk>
5350         * doc/invoke.texi, doc/standards.texi: Link to
5351         gcc-3.1/c99status.html.
5353 2002-02-28  Richard Henderson  <rth@redhat.com>
5355         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
5356         4 cycle latency from MM producers.
5357         (ia64_internal_sched_reorder): Likewise with pipeline flush.
5359 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
5361         * mklibgcc.in: Don't use GNU make extension.
5363 2002-02-28  Richard Henderson  <rth@redhat.com>
5365         * haifa-sched.c (sched_emit_insn): New.
5366         (schedule_block): Use last_scheduled_insn to track last insn.
5367         * sched-int.h (sched_emit_insn): Prototype.
5368         * config/ia64/ia64.c (last_issued): Remove.
5369         (ia64_variable_issue): Don't set it.
5370         (nop_cycles_until): Use sched_emit_insn.
5372 2002-02-28  Bo Thorsen  <bo@suse.de>
5374         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
5375         (STARTFILE_SPEC): Add 64 bit files.
5376         (ENDFILE_SPEC): Likewise.
5378 Don Feb 28 16:41:19 CET 2002  Jan Hubicka  <jh@suse.cz>
5380         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
5382         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
5383         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
5385         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Always define.
5387 2002-02-28  David Edelsohn  <edelsohn@gnu.org>
5389         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
5390         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
5392 2002-02-28  Alan Modra  <amodra@bigpond.net.au>
5394         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
5396 2002-02-28  Jason Merrill  <jason@redhat.com>
5398         * c-decl.c (finish_function): Only warn about missing return
5399         statement with -Wreturn-type.
5401 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
5403         * mklibgcc.in: Don't use \n in a line subject to
5404         interpretation by echo.
5406 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
5408         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
5409         insn UIDs with insn addresses.
5411 2002-02-27  Graham Stott  <grahams@redhat.com>
5413         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECL):
5414         Constify NAME.
5416         * loop.c (prescan_loop): Handle PARALLEL.
5418         * unroll.c (loop_iterations): Return 0 if the add_val for
5419         a BIV is REG.
5421         * final.c (output_operand_lossage): Constify PFX_STR.
5423         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
5425 2002-02-26  Richard Henderson  <rth@redhat.com>
5427         * config/alpha/alpha.md (ashldi_se): Re-enable.
5429 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
5431         * config/i386/i386.c (print_operand): Don't append ATT-style
5432         length suffixs to x87 opcodes when in Intel mode.
5434 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
5436         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
5437         (init_emit_once): Update calls.
5438         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
5439         (init_syntax_once): Prototype.
5441 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5443         * pa-linux.h (LIB_SPEC): Update definition.
5444         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5446 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
5448         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
5449         generate a die for the lexical block.
5451 2002-02-26  Richard Henderson  <rth@redhat.com>
5453         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
5454         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
5456 2002-02-26  Richard Henderson  <rth@redhat.com>
5458         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
5459         if we emitted a stop bit.
5461 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5463         * configure.in (libgcc_visibility): Substitute.
5464         * configure: Rebuilt.
5465         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
5466         defined symbols .hidden.
5468 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
5470         PR debug/5770
5471         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
5472         STRING_CST initializer spanning the whole variable without
5473         embedded zeros.
5474         If expand_expr returned MEM, don't use it.
5476 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
5478         PR target/5755
5479         * config/i386/i386.c (ix86_return_pops_args): Only pop
5480         fake structure return argument if it was passed on the stack.
5482 2002-02-25  Jason Merrill  <jason@redhat.com>
5484         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
5485         RESULT_DECL.
5487 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5489         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
5490         link with shared_name only.
5491         * doc/invoke.texi (Link Options): Document new behavior.
5493 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5495         * c-typeck.c (push_init_level): Handle vectors.
5497 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
5499         * config/sparc/sparc.c (const64_high_operand): Zero-extend
5500         operands of SPARC_SETHI_P.
5501         (input_operand): Likewise.
5502         (sparc_emit_set_const32): Likewise.
5503         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
5504         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
5505         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
5506         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
5507         (movdi_insn_sp64_vis): Likewise.
5508         (movdi split, movdf split): Use SETHI32.
5509         * doc/md.texi: Document SPARC constraints L, M and N.
5511 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
5513         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
5514         ("*set_vrsave_internal"): use mfspr for Darwin.
5516         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
5517         gen_get_vrsave_internal.
5519 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5521         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
5523 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5525         * cpplex.c (cpp_interpret_charconst): Get signedness or
5526         otherwise of wide character constants correct.
5527         * cppexp.c (lex): Get signedness of wide charconsts correct.
5529 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5531         * optabs.c (widen_operand): Only call convert_modes for
5532         promoted SUBREG if signedness matches.
5533         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
5535 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5537         * cpplib.c (glue_header_name): Use local buffer to build up
5538         header name.
5540 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5542         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
5544 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5546         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
5547         H8/300[HS] separately.
5548         * config/h8300/h8300.md: Remove the early clobber constraint
5549         from bit field patterns.
5551 2002-02-23  Kazu Hirata  <kazu@hxi.com>
5553         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
5554         register_operand.
5555         (mulhisi3): Likewise.
5556         (umulqisi3): Likewise.
5557         (umulhisi3): Likewise.
5559 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
5561         * cppinit.c (output_deps): Correct test for stdout output.
5562         (init_dependency_output): Cure warning.
5564 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5566         * expr.c (store_expr): When converting expression to promoted
5567         equivalent type, allow using SUBREG_REG of TARGET as the target
5568         of the expansion of EXP.
5569         * loop.c (basic_induction_var, case SUBREG): Always look inside.
5570         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
5571         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
5572         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
5573         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
5575 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
5577         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
5578         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
5579         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
5581 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
5583         PR optimization/5747
5584         * loop.c (scan_loop): Update reg info if move_movables created new
5585         pseudos.
5587 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5589         * gcc.c (init_gcc_spec): Revert last change.
5591 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
5593         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
5594         gpc_reg_operand constraint.
5596 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
5598         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
5599         Simplify comparison of `low'.
5600         (add_operand): Fix formatting.
5601         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
5602         (mask_operand): Disallow mask to wrap in 64-bit mode.
5603         (rs6000_stack_info): Remove redundant test setting push_p.
5604         (output_toc): Fix formatting.
5605         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
5606         cc_reg_not_cr0_operand constraint.
5607         (booldi3, boolcdi3 splitters): Same.
5609 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
5611         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
5613 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
5615         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
5616         gcc invoked with -shared-libgcc.
5618 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
5620         PR c++/5748
5621         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
5622         decl if any of elements was TREE_USED.
5624 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
5626         * config/sparc/sol2.h: Don't include sys/mman.h.
5627         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
5628         (arith_4096_operand): Don't throw high bits away.
5629         (const64_operand): Take sign extension of CONST_INTs into account.
5630         (const64_high_operand, sparc_emit_set_const32): Likewise.
5631         (GEN_HIGHINT64): Likewise.
5632         (sparc_emit_set_const64_quick1): Likewise.
5633         (const64_is_2insns): Likewise.
5634         (print_operand): Use trunc_int_for_mode for sign extension.
5635         * config/sparc/sparc.h (SMALL_INT32): Likewise.
5636         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
5637         chars.  Assume CONST_INT is already properly sign-extended.
5638         (movdi split): Sign-extend each SImode part.
5639         (andsi3 split): Don't mask high bits off, so that result
5640         remains properly sign-extend.
5641         (iorsi3 split): Likewise.
5642         (xorsi3 split): Likewise.
5644 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
5646         * fold-const.c (fold): Fix typo in comments.
5648 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5650         * Makefile.in (langhooks.o): Update dependencies.
5652 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
5654         * langhooks.c: Include flags.h.
5656 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
5658         * testsuite/gcc.dg/attr-alwaysinline.c: New.
5660         * c-common.c (c_common_post_options): Set inline trees by
5661         default.
5663         * doc/extend.texi (Function Attributes): Document always_inline
5664         attribute.
5665         Update documentation about inlining when not optimizing.
5667         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
5669         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
5670         unless DECL_ALWAYS_INLINE.
5672         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
5673         unless DECL_ALWAYS_INLINE.
5674         (c_disregard_inline_limits): Disregard if always_inline set.
5676         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
5677         Disregard if always_inline set.
5678         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
5679         unless DECL_ALWAYS_INLINE.
5681         * attribs.c (handle_always_inline_attribute): New.
5682         (c_common_attribute_table): Add always_inline.
5684         * config/rs6000/altivec.h: Add prototypes for builtins
5685         requiring the always_inline attribute.
5687 2002-02-21  Eric Christopher  <echristo@redhat.com>
5689         * expmed.c (store_bit_field): Try to simplify the subreg
5690         before generating a new one when when the mode size of
5691         value is less than maxmode.
5693 2002-02-21  Richard Henderson  <rth@redhat.com>
5695         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
5696         than gen_rtx_PLUS to form the sum.
5697         * explow.c (force_reg): Rearrange to not allocate new pseudo
5698         when force_operand returns a register.
5699         * expr.c (expand_assignment): Allow offset_rtx expansion to
5700         return a sum.  Do not force addresses into registers.
5701         (expand_expr): Likewise.
5702         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
5703         to canonicalize arithmetic that didn't simpify.
5704         (simplify_plus_minus): New argument force; update
5705         all callers.  Don't split CONST unless we can do something with it,
5706         and wouldn't lose the constness of the operands.
5708         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
5709         that we generated earlier.
5711 2002-02-21  Tom Tromey  <tromey@redhat.com>
5713         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5714         (output_line_info): Use constant `1', with a long explanatory
5715         comment.
5716         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
5718 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
5720         * jump.c (redirect_jump): If old label has no UID, don't try to
5721         delete it.
5723 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
5725         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
5726         If input is constant, do shifts at compile time.
5728 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5730         * doc/extend.texi: Fix some more overfull hboxes.
5732 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5734         PR optimization/4994
5735         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
5736         register moves.
5738 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5740         PR c++/4574
5741         * expr.h (expand_and): Add mode argument.
5742         * expmed.c (expand_and): Add mode argument.
5743         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
5744         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
5745         * except.c (expand_builtin_extract_return_addr): Likewise.
5746         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5747         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5748         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
5749         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
5750         * config/c4x/c4x.md: Use GEN_INT (x) instead of
5751         gen_rtx (CONST_INT, VOIDmode, x).
5753 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
5755         PR c/4697:
5756         * stmt.c (warn_if_unused_value): Move side effects test once more.
5758 2002-02-20  Torbjorn Granlund  <tege@swox.com>
5760         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
5761         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
5763 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
5765         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
5766         SUBREG or ZERO_EXTEND.
5768 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
5770         * sh.h (current_function_anonymous_args): Remove.
5771         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
5772         of current_function_varargs and current_function_stdarg is set.
5773         * sh.c (sh_expand_prologue): Check current_function_varargs /
5774         current_function_stdarg / TARGET_SH5 instead of
5775         current_function_anonymous_args.
5777         * sh64.h (TARGET_VERSION): Define.
5779 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
5781         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
5782         VRSAVE_REGNO on TARGET_ALTIVEC.
5784 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
5786         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
5787         bits of SImode const_int.
5788         (includes_rshift_p): Likewise.
5789         (print_operand): Call mask_operand and mask64_operand with correct
5790         mode.
5791         (rs6000_output_function_epilogue): Pad traceback table to word.
5792         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
5793         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
5794         mask64_operand with correct mode.
5795         (FUNCTION_ARG_REGNO_P): Correct parentheses.
5797 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5799         PR debug/4461
5800         * varasm.c (get_pool_constant_mark): New.
5801         * rtl.h (get_pool_constant_mark): Add prototype.
5802         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
5803         be represented if it has not been output.
5805 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5807         * combine.c (do_SUBST): Sanity check substitutions of
5808         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
5809         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
5810         CONST_INT into its operand.
5811         (known_cond): Likewise, for ZERO_EXTEND.
5812         * simplify-rtx.c (simplify_unary_operation): Fix condition to
5813         allow for simplification of wide modes.  Reject CONST_INTs in
5814         ZERO_EXTEND when their actual mode is not given.
5816 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
5818         * c-decl.c (pushdecl): If no global declaration is found for an
5819         extern declaration in block scope, try a limbo one.
5821 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5823         PR c++/4401
5824         * c-common.c (pointer_int_sum): Moved from...
5825         * c-typeck.c (pointer_int_sum): ...here.
5826         * c-common.h (pointer_int_sum): Add prototype.
5828 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
5830         PR c++/5713
5831         * c-decl.c (duplicate_decls): Return 0 if issued error about
5832         redeclaration.
5834 2002-02-20  Roger Sayle  <roger@eyesopen.com>
5835             Jakub Jelinek  <jakub@redhat.com>
5837         PR c/4389
5838         * tree.c (host_integerp): Ensure that the constant integer is
5839         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
5840         when pos is zero or non-zero respectively.  Clarify comment.
5841         * c-format.c (check_format_info_recurse): Fix host_integerp
5842         usage; the pos argument should be zero when assigning to a
5843         signed HOST_WIDE_INT.
5845 2002-02-20  Richard Henderson  <rth@redhat.com>
5847         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
5848         of the operand, rather than assuming TImode.
5849         (ix86_expand_binop_builtin): Cope with commutative patterns
5850         using nonimmediate_operand for both operands.
5851         (ix86_expand_timode_binop_builtin): Likewise.
5852         (ix86_expand_store_builtin): Validate operand 1.
5853         (ix86_expand_unop1_builtin): Likewise.
5855 2002-02-20  Philip Blundell  <philb@gnu.org>
5857         PR 5705
5858         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
5860 2002-02-20  Richard Henderson  <rth@redhat.com>
5862         PR c/5615
5863         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
5865 2002-02-20  Tom Tromey  <tromey@redhat.com>
5867         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5868         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5869         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5870         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
5871         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
5872         unconditionally.
5874 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
5876         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
5877           for (const_int 0) in X not just INTVAL.
5879 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5881         * doc/extend.texi: Avoid or reduce overfull hboxes.
5883 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
5885         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
5886         operations if the field does not start at a mode boundary.
5888 2001-02-20      Joel Sherrill <joel@OARcorp.com>
5890         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
5891         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
5892         Also done for -Acpu and -Amachine.
5894 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5896         * cppinit.c (init_dependency_output): Take deps output file
5897         from -o if none given with -MF.  Suppress normal output.
5898         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
5899         * doc/cpp.texi, doc/invoke.texi: Update.
5901 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5903         * toplev.c (output_quoted_string): Write unprintable
5904         characters with octal escapes.
5906 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5908         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
5909         really_call_used[VRSAVE_REGNO] if not Altivec.
5911 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
5913         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
5914         MODE_MASK.
5915         (constant_pool_expr_1): Fix formatting.
5916         (rs6000_legitimize_reload_address): Likewise.
5918 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5920         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
5921         now that we have one.
5923 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
5925         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
5926         end of first block of bitfields (which was only seven bits);
5927         rename dummy to unused_1; remove comment which is no longer true.
5929 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5931         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
5933 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5935         PR 5399
5936         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
5937         if generating PIC.
5939         PR 5054
5940         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
5941         arm_is_longcall_p rather than inspecting call-type cookie
5942         directly.
5943         (call_value_insn) [TARGET_THUMB]: Likewise.
5945 2002-02-19  Graham Stott  <grahams@redhat.com>
5947         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
5949 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
5951         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
5952         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
5953         (FP_SAVE_INLINE): Delete.
5955         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
5956         * config/rs6000/eabi.asm: Remove ABI save restore routines.
5957         * config/rs6000/t-ppccomm: Build crtsavres.o.
5958         * config/rs6000/crtsavres.asm: New file.
5960 2002-02-19  Philip Blundell  <philb@gnu.org>
5962         * config/arm/arm.c (use_return_insn): Don't reject interrupt
5963         functions.
5964         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
5965         (output_return_instruction): Allow interrupt functions to return with
5966         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
5967         (arm_expand_prologue): Subtract 4 before stacking LR in an
5968         interrupt function.
5970 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
5972         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
5973         decl, not just FUNCTION_DECL.
5974         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
5975         (arm_assemble_integer): Likewise.
5976         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
5977         marked local.
5979 2002-02-19  matthew green  <mrg@eterna.com.au>
5981         * config.gcc (sparc-*-netbsdelf*): Enable target.
5982         (sparc64-*-netbsd*): New target.
5983         * config/sparc/netbsd-elf.h: New file.
5984         * config/sparc/t-netbsd64: New file.
5986 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
5988         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
5990 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
5992         * doc/invoke.texi: explicitly list the style guidelines that
5993         -Weffc++ checks for.
5995 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
5997         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
5999 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6001         PR other/5718
6002         * gcc.c (cpp_unique_options): Treat -o as indicating object file
6003         only if not -E.  If -E, pass -o through to the preprocessor.
6005 2002-02-19  Kazu Hirata  <kazu@hxi.com>
6007         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
6008         register number with an appropriate macro.
6010 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
6012         * doc/rtl.texi (Constants): Close @code tag.
6014 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
6016         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
6017         ("mmx_uavgv4hi3"): Same.
6018         ("pmulhrwv4hi3"): Same.
6020         * tree-inline.c (walk_tree): Handle vectors.
6022         * c-common.c (constant_expression_warning): Handle vectors.
6023         (overflow_warning): Same.
6025         * sched-deps.c (sched_analyze_2): Handle vectors.
6027         * rtlanal.c (rtx_unstable_p): Handle vectors.
6028         (rtx_varies_p): Same.
6029         (count_occurrences): Same.
6030         (regs_set_between_p): Same.
6031         (modified_between_p): Same.
6032         (modified_in_p): Same.
6033         (volatile_insn_p): Same.
6034         (volatile_refs_p): Same.
6035         (side_effects_p): Same.
6036         (may_trap_p): Same.
6037         (inequality_comparisons_p): Same.
6038         (replace_regs): Same.
6039         (computed_jump_p_1): Same.
6041         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
6042         argument.
6043         (inner_mode_array): New.
6044         (copy_rtx): Handle vectors.
6045         (copy_most_rtx): Same.
6046         (rtx_equal_p): Same.
6047         (get_mode_alignment): Adjust for vectors.
6049         * resource.c (mark_referenced_resources): Handle vectors.
6050         (mark_set_resources): Same.
6052         * reload1.c (eliminate_regs): Handle vectors.
6053         (elimination_effects): Same.
6054         (scan_paradoxical_subregs): Same.
6056         * reload.c (subst_reg_equivs): Handle vectors.
6058         * regrename.c (scan_rtx): Handle vectors.
6060         * regclass.c (reg_scan_mark_refs): Handle vectors.
6062         * recog.c (find_single_use_1): Handle vectors.
6064         * local-alloc.c (equiv_init_varies_p): Handle vectors.
6065         (contains_replace_regs): Same.
6066         (memref_referenced_p): Same.
6068         * integrate.c (copy_rtx_and_substitute): Handle vectors.
6069         (subst_constants): Same.
6071         * genattrtab.c (attr_copy_rtx): Handle vectors.
6072         (encode_units_mask): Same.
6073         (clear_struct_flag): Same.
6074         (count_sub_rtxs): Same.
6076         * gcse.c (want_to_gcse_p): Handle vectors.
6077         (oprs_unchanged_p): Same.
6078         (hash_expr_1): Same.
6079         (oprs_not_set_p): Same.
6080         (expr_killed_p): Same.
6081         (compute_transp): Same.
6082         (store_ops_ok): Same.
6084         * function.c (purge_addressof_1): Do not allow paradoxical subregs
6085         of vectors.
6086         (fixup_var_refs_1): Same.
6087         (instantiate_virtual_regs_1): Same.
6089         * fold-const.c (operand_equal_p): Handle vectors.
6090         (fold): Same.
6091         (rtl_expr_nonnegative_p): Same.
6093         * flow.c (mark_used_regs): Handle vectors.
6095         * df.c (df_uses_record): Handle vectors.
6097         * cselib.c (cselib_subst_to_values): Handle vectors.
6098         (cselib_mem_conflict_p): Same.
6099         (hash_rtx): Same.
6101         * cse.c (canon_reg): Handle vectors.
6102         (fold_rt): Same.
6103         (cse_process_notes): Same.
6104         (count_reg_usage): Same.
6105         (canon_hash): Same.
6107         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
6109         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
6111         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
6112         (gen_rtx): Handle CONST_VECTOR.
6113         (gen_const_vector_0): New.
6114         (copy_rtx_if_shared): CONST_VECTORs can be shared.
6115         (reset_used_flags): Same.
6116         (copy_insn_1): Same.
6117         (initializer_constant_valid_p): Handle VECTOR_CST.
6119         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
6121         * doc/rtl.texi (Constants): Document const_vector.
6122         (CONST0_RTX): Update for vectors.
6123         (RTL sharing): Same.
6125         * print-tree.c (print_node): Add case for VECTOR_CST.
6127         * tree.h (TREE_VECTOR_CST_ELTS): New.
6128         (struct tree_vector): New.
6129         (union tree_node): Add vector node.
6130         (build_vector): Add prototype.
6132         * tree.def (VECTOR_CST): New.
6134         * tree.c (build_vector): New.
6136         * expmed.c (make_tree): Handle CONST_VECTOR.
6138         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
6139         (CONST_VECTOR_ELT): New.
6140         (CONST_VECTOR_NUNITS): New.
6142         * machmode.h (GET_MODE_INNER): New.
6143         (DEF_MACHMODE): Accept 8th arg.
6145         * machmode.def: Add 8th argument for vector inner mode.
6146         Add inner vector modes for vectors.
6148         * rtl.def (VEC_CONST): Remove.
6149         (CONST_VECTOR): New.
6151         * expr.c (clear_storage): Allow vectors.
6152         (is_zeros_p): Handle VECTOR_CST.
6154         * varasm.c (output_constant_pool): Handle vectors.
6155         (rtx_const): Add veclo and vechi fields.
6156         (kind): Add RTX_VECTOR.
6157         (decode_rtx_const): Add case for vector.
6159         * config/rs6000/rs6000-protos.h: Add zero_constant.
6161         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
6162         constants.  Force easy vector constants into memory.
6163         (easy_vector_constant): New.
6164         (emit_easy_vector_constant): New.
6165         (rs6000_legitimize_reload_address): Do not generate bad reloads on
6166         darwin.
6168         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
6169         instruction does.
6170         ("altivec_lvxl"): Same.
6171         (altivec_lvebx): Same.
6172         (altivec_lvehx): Same.
6173         (altivec_lvewx): Same.
6174         ("*movv4si_const0"): New.
6175         ("*movv4sf_const0"): New.
6176         ("*movv8hi_const0"): New.
6177         ("*movv16qi_const0"): New.
6179 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6181         * config/h8300/h8300.c (notice_update_cc): Use
6182         cc_status.value2.
6184 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6186         * config/h8300/h8300.md (divmod patterns): Change the
6187         constraints for operands[1] to register_operand.
6189 2002-02-18  Kazu Hirata  <kazu@hxi.com>
6191         * config/h8300/h8300-protos.h: Remove the prototype for
6192         p_operand.
6193         * config/h8300/h8300.c (p_operand): Remove.
6194         * config/h8300/h8300.md: Replace p_operand with
6195         const_int_operand.
6197 2002-02-18 Philip Blundell <pb@nexus.co.uk>
6199         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
6200         comment.
6201         (output_return_instruction): Allow use of LDR to unstack
6202         return addresss even for interrupt handlers or when
6203         interworking.  If compiling for ARMv5, use interworking-safe
6204         return instructions by default.  Remove duplicated code and
6205         lengthy "strcat" sequences.
6207 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6209         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
6210         (LINK_EH_SPEC): Define.
6211         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
6213 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
6215         * config/s390/s390.c (s390_emit_prologue): Do not set the
6216         frame_related flag for call-clobbered registers.
6218 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
6220         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
6221         (construct_container): Fix handling of SSE operands.
6222         (ix86_expand_builtin): Fix handling of 64bit pointers.
6223         (mmx_maskmovq_rex): New pattern.
6225 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
6227         * regrename.c (kill_set_value): Handle subregs properly.
6229 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
6231         * objc/objc-act.c (handle_impent): Remove leading '*'
6232         from objc_class_name.
6234 2002-02-17  Richard Henderson  <rth@redhat.com>
6236         * config/alpha/alpha.c (some_small_symbolic_operand,
6237         some_small_symbolic_operand_1, split_small_symbolic_operand,
6238         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
6239         Handle small SYMBOL_REFs anywhere, not just inside memories.
6240         * config/alpha/alpha-protos.h: Update.
6241         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6242         * config/alpha/alpha.md (small symbolic operand splitter): Update.
6244 2002-02-17  Roland McGrath  <roland@frob.com>
6246         * config.gcc (powerpc-*-gnu-gnualtivec*,
6247         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
6248         * config/rs6000/gnu.h: New file.
6249         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
6250         Grok "gnu" in rs6000_abi_name.
6251         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
6252         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
6253         Grok -mcall-gnu analogous to -mcall-linux et al.
6254         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6255         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
6256         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
6258 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
6260         PR c/3444:
6261         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
6262         shortening.
6264 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6266         * config/cris/cris.h: Undefine STARTFILE_SPEC and
6267         ENDFILE_SPEC before (re)defining them.
6269 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6271         * config/h8300/h8300.c: Fix formatting.
6272         * config/h8300/h8300.h: Likewise.
6274 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6276         * doc/tm.texi: Explain why empty strings should not be
6277         marked for translation.
6279 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6281         * final.c (output_operand_lossage): Changed to accept
6282         printf style arguments. Change calls where necessary.
6283         * output.h (output_operand_lossage): Change declaration
6284         accordingly. Update copyright.
6285         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
6286         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
6287         Update copyright date where necessary.
6289         * config/i386/i386.c (print_operand): Likewise. Remove use of
6290         sprintf.
6292         * config/cris/cris.c (cris_operand_lossage): Likewise.
6293         Rename parameter so that exgettext recognizes it as
6294         translatable message.
6295         (LOSE_AND_RETURN): Rename parameter to msgid.
6297 2002-02-17  Kazu Hirata  <kazu@hxi.com>
6299         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
6300         hard coded register number with an appropriate macro.
6301         (HARD_REGNO_MODE_OK): Likewise.
6302         (ARG_POINTER_REGNUM): Likewise.
6303         (STATIC_CHAIN_REGNUM): Likewise.
6304         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6305         * config/h8300/h8300.md (define_constants): Define more
6306         register numbers.
6308 2002-02-17  Philipp Thomas  <pthomas@suse.de>
6310         * config/i386/i386.h: Don't mark empty strings for translation.
6312 2002-02-16  H.J. Lu <hjl@gnu.org>
6314         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
6316 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
6318         * cppinit.c (merge_include_chains): Check for brack being
6319         NULL before attempting to merge it with qtail.
6321 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
6323         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
6324         DBX_DEBUG.
6326 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6328         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
6330 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6332         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
6333         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
6334         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
6336 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6338         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
6339         now only if !TARGET_FIX.
6340         (*movsi_nt_vms_fix): New pattern.
6342 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
6344         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
6345         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
6346         (alpha_sa_mask, alpha_sa_size): Reflect above change.
6347         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
6348         (alpha_start_function, alpha_expand_epilogue): Likewise.
6349         (unicosmk_gen_dsib): Likewise.
6351 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6353         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
6355 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
6357         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
6358         check_and_change_labels, s390_final_chunkify): Delete.
6359         (s390_split_branches, s390_chunkify_pool): New functions.
6360         (s390_function_prologue): Call them.
6362         * config/s390/s390.h (S390_REL_MAX): Delete.
6363         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
6365         * config/s390/s390.md (cjump, icjump, jump): Fix length
6366         attribute calculation.
6369 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
6371         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
6372         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
6374 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6376         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
6377         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
6378         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
6380 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6382         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
6384 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
6386         * reload.c (find_dummy_reload): Check that an output register
6387         is valid for its mode.
6389 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
6391         * combine.c (known_cond): After replacing the REG of a SUBREG, try
6392         to simplify it.
6394         * function.c (assign_parms): Demote promoted argument passed by
6395         transparent reference.
6397 2001-02-14      Joel Sherrill <joel@OARcorp.com>
6399         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
6400         -Acpu() and -Amachine() to eliminate warnings.
6402 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
6404         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
6406 2002-02-14  Kazu Hirata  <kazu@hxi.com>
6408         * config/h8300/h8300-protos.h: Update the prototype for
6409         const_costs.
6410         * config/h8300/h8300.c (const_costs): Treat SET as a little
6411         more expensive operation.
6412         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
6413         reference to const_costs.
6415 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
6417         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
6419 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
6421         PR c/5503:
6422         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
6423         use arguments from newtype.
6425 2002-02-13  Eric Christopher  <echristo@redhat.com>
6427         * config/mips/mips.c (override_options): Add check for march/mipsX
6428         on the same command line. Fix error message in cpu processing.
6429         Remove architecture and ISA checks.
6431 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6433         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
6435         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
6437 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
6439         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
6440         alternatives.
6441         ("*movv8hi_internal1"): Same.
6442         ("*movv16qi_internal1"): Same.
6443         ("*movv4sf_internal1"): Same.
6445         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
6446         not push_reload for altivec modes.
6448 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
6450         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
6451         all RTEMS targets including removal of #includes from config/*/rtems*.h
6452         file and adding them to tm_file setting. Added xm_defines=POSIX to
6453         many targets.
6454         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
6455         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
6456         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
6457         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
6458         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
6459         config/m68k/rtemself.h: Ditto.
6460         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
6461         config/mips/rtems64.h: Ditto.
6462         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
6463         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
6464         Ditto.
6465         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
6466         config/sparc/rtemself.h: Ditto.
6467         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
6468         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
6469         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
6470         more like arm-elf.
6471         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
6472         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
6473         target made more similar to i386-elf.
6474         * config/i386/t-rtems-i386: Added soft float support and multilibs.
6475         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
6476         be similar to config/m68k/t-m68kelf.
6477         * gthr-rtems.h: Encapsulate with extern "C" for C++.
6479 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
6481         * regmove.c (kill_value): Handle subregs.
6483 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
6485         * i386.md (mul patterns): Allow memory operand to be first;
6486         add expanders where needed; fix constraints.
6487         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
6488         Allow memory operand to be the first.
6490         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
6491         operands.
6493 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6495         PR c/5681:
6496         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
6497         GET_MODE (x).
6499 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
6501         PR optimization/5547:
6502         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
6503         all valid IA-32 address modes involving non-scaled %ebx and
6504         GOT/GOTOFF as displacement.
6506 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
6508         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
6509         after emitting ltorg insns.
6511         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
6512         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
6513         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
6514         *abssf2): Fix "op_type" attribute.
6516 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
6518         * mkconfig.sh: Avoid using a subshell redirect.
6519         ($output.T): Change to $(output)T.
6520         (ENABLE_NLS): Remove unneeded undef.
6522         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
6523         * config/alpha/x-vms (libsubdir): Define.
6525         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
6526         register frame procedures. Optimize retrieving context.
6528         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
6529         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
6530         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
6532 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6534         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
6535         Make same change as for find_base_value.
6537 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6539         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
6540         of QImode and SImode.
6542 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6544         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
6545         length computation of movsi.
6546         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
6548 2002-02-13  Kazu Hirata  <kazu@hxi.com>
6550         * config/h8300/h8300.md (subqi3): Tighten the predicate for
6551         operands[2] to register_operand.
6553 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
6555         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
6557 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
6559         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
6560         for altivec_lvx* and altivec_stvx*.
6561         ("*movv4si_internal"): Add constraint for loading from GPRs.
6562         ("*movv8hi_internal1"): Same.
6563         ("*movv16qi_internal1"): Same.
6564         ("*movv4sf_internal1"): Same.
6566         * config/rs6000/rs6000.c (altivec_register_operand): New.
6568         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6569         altivec_register_operand.
6571 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
6573         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
6574         handle SYMBOL_REF.
6576 2002-02-13  Stan Shebs  <shebs@apple.com>
6578         * c-typeck.c (digest_init): Handle vectors.
6579         (really_start_incremental_init): Same.
6580         (pop_init_level): Same.
6581         (process_init_element): Same.
6583         * varasm.c (output_constant): Same.
6585         * expr.c (clear_storage): Same.
6586         (store_constructor): Same.
6588 2002-02-12  Eric Christopher  <echristo@redhat.com>
6590         * explow.c (hard_function_value): Add comment explaining
6591         signed/unsigned comparison.
6593 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
6595         * jump.c (never_reached_warning): Add finish argument.
6596         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
6597         real insn after end.
6598         * rtl.h (never_reached_warning): Adjust prototype.
6599         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
6600         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
6601         never_reached_warning.
6603 2002-02-12  Graham Stott  <grahams@redhat.com>
6605         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
6607 2002-02-12  Kazu Hirata  <kazu@hxi.com>
6609         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
6610         logical shifts on H8/300.
6611         (shift_alg_si): Improve several shifts on H8/300.
6612         (get_shift_alg): Likewise.
6614 2002-02-12  Graham Stott  <grahams@redhat.com>
6616         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
6618 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6620         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
6621         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
6623 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
6625         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
6626         non-CONST_INT through default_assemble_integer.
6627         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
6628         <case 8>: Abort for CONST_DOUBLE.
6630 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6632         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
6633         is specified.
6634         * config/pa/pa-linux.h (LIB_SPEC): Delete.
6635         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
6637 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
6639         * config/stormy16/stormy16.md (zero_extendqihi2): New.
6641 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
6643         * regrename.c (regrename_optimize): Don't accept a
6644         part-clobbered register if the replaced register is not part
6645         clobbered.
6647         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
6648         take padding into account when computing the argument value.
6650         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
6652         * combine.c (try_combine): Apply substitutions in
6653         CALL_INSN_FUNCTION_USAGE too.
6655 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
6657         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
6658         __builtin_altivec_abs*.
6659         (bdesc_abs): New.
6661         * config/rs6000/rs6000.h (rs6000_builtins): Add
6662         ALTIVEC_BUILTIN_ABS*.
6664         * config/rs6000/altivec.h: Use const char for builtins expecting
6665         literals.
6666         (vec_abs): New versions for C and C++.
6667         (vec_abss): Same.
6669 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6671         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
6672         using Pmode.
6674 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6676         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
6677         constant definition from h8300.md.
6678         (FRAME_POINTER_REGNUM): Likewise.
6679         * config/h8300/h8300.md (define_constants): Add FP_REG.
6681 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6683         * config/h8300/h8300.c (print_operand): Remove redundant code.
6685 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6687         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
6688         * config/h8300/h8300.c (byte_reg): Make it static.
6690 2002-02-10  Richard Henderson  <rth@redhat.com>
6692         PR c/5623
6693         * c-typeck.c (incomplete_type_error): Handle flexible array members.
6695 2002-02-10  Richard Henderson  <rth@redhat.com>
6697         PR c++/5624
6698         * tree.c (append_random_chars): Don't abort if main_input_filename
6699         does not exist.
6701 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
6703         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
6705 2002-02-10  Kazu Hirata  <kazu@hxi.com>
6707         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
6708         (pushhi1): Likewise.
6710 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6712         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
6713         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
6715 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
6717         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
6718         remove MASK_VIS.
6719         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
6721 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6723         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
6724         a half of an SImode register on H8/300.
6726 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
6728         * i386.md (movdi_2): Add missing '!'.
6730 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6732         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
6733         definitions.
6735 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6737         * config/h8300/h8300.md (length): Correct the distance valid
6738         for the short branch.
6740 2002-02-09  Kazu Hirata  <kazu@hxi.com>
6742         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
6744 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6746         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
6747         registers in SImode.
6748         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
6749         part-clobbered.
6751         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
6752         patch.
6754         Contribute sh64-elf.
6755         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
6756         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
6757         (sh_cannot_modify_jumps_p): New function.
6758         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6759         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
6760         (sh_ms_bitfield_layout_p): New function.
6761         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
6762                     Zack Weinberg  <zack@codesourcery.com>
6763         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
6764         expand_simple_binop instead of expand_binop.
6765         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
6766         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
6767         use of .quad and .uaquad.
6768         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
6769         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
6770         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6771         * config/sh/sh.md (movdi_const, movdi_const_32bit,
6772         movdi_const_16bit): Make sure all CONSTs have modes.
6773         (sym2PIC): Ditto, but by adjusting all callers.
6774         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
6775         if the prologue calls the SHmedia argument decoder or register
6776         saver.
6777         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
6778         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
6779         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
6780         (sh_expand_epilogue): Don't emit USE of return target register.
6781         (prepare_move_operands): Legitimize DImode PIC addresses.
6782         (sh_media_register_for_return): Skip tr0, used to initialize the
6783         PIC register.
6784         (sh_expand_prologue): Remove explicit USE of return register.
6785         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
6786         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
6787         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
6788         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
6789         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
6790         EXTRA_CONSTRAINT_T.
6791         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
6792         (MOVI_SHORI_BASE_OPERAND_P): New.
6793         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
6794         (EXTRA_CONSTRAINT_T): Define in terms of them.
6795         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
6796         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
6797         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
6798         alternatives supporting TARGET_REGS.
6799         (UNSPEC_GOTPLT): New constant.
6800         (movdi split): Move incrementing of LABEL_NUSES...
6801         (movdi_const, movdi_const_32bit): Here.  Use
6802         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
6803         (movdi_const_16bit): New.
6804         (call, call_value) [flag_pic]: Use GOTPLT.
6805         (call_pop, call_value_pop): New expands.
6806         (call_pop_compact, call_pop_rettramp): New insns.
6807         (call_value_pop_compact, call_value_pop_rettramp): New insns.
6808         (sibcall) [flag_pic]: Use GOT.
6809         (builtint_setjmp_receiver): Remove bogus, unused expand.
6810         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
6811         (*pt, *ptb, ptrel): New insns.
6812         (sym2GOT): Handle DImode GOT.
6813         (sym2GOTPLT, symGOTPLT2reg): New expands.
6814         (sym2PIC): New expand.
6815         (shcompact_return_tramp): Use GOTPLT to return trampoline.
6816         (shcompact_return_tramp_i): Use return register explicitly.
6817         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
6818         disable flag_reorder_blocks.
6819         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
6820         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
6821         clobbers, for clarity.
6822         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
6823         restoring of r0 in macl as MAYBE_DEAD.
6824         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
6825         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
6826         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
6827         alter_subreg all over.
6828         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
6829         reload, instead of emitting instructions that would require
6830         reloading.
6831         (casesi_load_media): Add missing modes.
6832         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
6833         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
6834         as used if the argument decoder is called.
6835         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6836         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
6837         Pmode, then extend it to DImode if necessary.
6838         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6839         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
6840         constants in FPU-enabled SHmedia, let them be loaded from memory.
6841         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
6842         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
6843         Adjust whitespace in assembly output templates.
6844         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
6845         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
6846         mode of if_then_else.
6847         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
6848         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
6849         sh.h.
6850         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
6851                     Joern Rennecke <amylaar@redhat.com>
6852         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
6853         (SUBTARGET_CPP_PTR_SPEC): New.
6854         (SUBTARGET_CPP_SPEC): Remove.
6855         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6856         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6857         Fix typo in previous checkin.
6858         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
6859         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
6860         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
6861                     Alexandre Oliva  <aoliva@redhat.com>
6862         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
6863         what single FP register can hold for SHmedia target.
6864         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
6865                     Alexandre Oliva  <aoliva@redhat.com>
6866         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
6867         Do not split into SUBREG.
6868         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
6869         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
6870         and added new functions as specified in SH5 ABI r9.
6871         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
6872         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
6873         8-byte boundary.
6874         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
6875         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
6876         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
6877         and consttable_window_ends.
6878         2001-06-03  Graham Stott  <grahams@redhat,com>
6879         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
6880         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
6881         * config/sh/sh.c (print_operand): Handle floating-point pair,
6882         vector and matrix registers.
6883         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
6884         vector modes into account.
6885         * config/sh/sh.md (movv2sf): Split move between registers into
6886         movdf.
6887         (movv4sf, movv16sf): Introduce insns that get split only after
6888         reload.
6889         * config/sh/shmedia.h: Fix Copyright dates.
6890         * config/sh/ushmedia.h: Likewise.  Move loop counter
6891         declarations into conditionals that uses them.
6892         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
6893         loop boundary.
6894         * config/sh/sshmedia.h: Fix Copyright dates.
6895         (sh_media_PUTCFG): Fix constraints.
6896         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
6897         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
6898         ptrmemfunc_vbit_in_delta for SH5.
6899         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
6900         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
6901         * invoke.texi: Likewise.
6902         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
6903         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
6904         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
6905         GCC_pop_shmedia_regs_nofpu): New global symbols.
6906         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
6907         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
6908         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
6909         compact function with nonlocal labels.
6910         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
6911         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
6912         (initial_elimination_offset): Account for their stack space.
6913         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
6914         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
6915         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
6916         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
6917         least one of the operands to be a register.
6918         (movv2sf): Likewise.  Renamed to movv2sf_i.
6919         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
6920         prepare_move_operands() before emitting SHmedia insns.
6921         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
6922         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
6923         Don't save nor initialize r12.  Don't mis-align the stack.
6924         Pad the code with a nop.
6925         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
6926         stack.
6927         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
6928         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
6929         [__SHMEDIA__]: Implement.
6930         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
6931         * config/sh/sh.md: Set latency of `pt' closer to reality.
6932         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
6933         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
6934         Set move, load and store type attributes.
6935         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
6936         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
6937         profiling.
6938         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
6939         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
6940         * config/sh/sh.c (sh_media_register_for_return): New function.
6941         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
6942         branch-target register.
6943         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
6944         * config/sh/sh.md (return_media_i): Use any call-clobbered
6945         branch-target register.
6946         (return_media): If r18 wasn't copied in the prologue, copy it
6947         here.
6948         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
6949         Clear class FP0_REGS.
6950         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
6951         from elf.h.
6952         2001-03-08  DJ Delorie  <dj@redhat.com>
6953         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
6954         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6955         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
6956         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
6957         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
6958         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
6959         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
6960         return value correctly for call_cookie.
6961         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
6962         * config/sh/crt1.asm (start): Modified so as to call
6963         ___setup_argv_and_call_main.
6964         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
6965         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
6966         SHmedia mode.
6967         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
6968         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
6969         (STRIP_NAME_ENCODING): Use it.
6970         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
6971         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
6972         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
6973         prepare_scc_operands().
6974         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
6975         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
6976         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
6977         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
6978         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
6979         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
6980         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
6981         used in shcompact_incoming_args.
6982         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
6983         change.
6984         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
6985         mode.
6986         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
6987         Adjust accordingly.
6988         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6989         Simplify.  Adjust.  Add sanity check.
6990         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
6991         FPU_SINGLE_BIT.
6992         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
6993         TARGET_SHCOMPACT.
6994         (udivsi3, divsi3): Use them.
6995         (force_mode_for_call): New insn.
6996         (call, call_value, sibcall_value): Emit it before SHcompact
6997         calls.
6998         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
6999         * config/sh/sh.md (call, call_value, sibcall): Make sure the
7000         call cookie is non-NULL before taking its value.
7001         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
7002         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
7003         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
7004         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
7005         block.
7006         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
7007         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
7008         temporary for stack adjusts.  Use MACL and MACH to pass
7009         arguments to shcompact_incoming_args.
7010         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
7011         clobber r1.
7012         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
7013         (nested_trampoline): Load static chain address into r1.
7014         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
7015         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
7016         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
7017         fp_arith_reg_operand().
7018         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
7019         * config/sh/sh.md (casesi): Sign-extend the first two operands,
7020         and use signed compares for them.
7021         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
7022         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
7023         ones properly aligned.
7024         (find_barrier): Account for extra alignment needed for 8-byte wide
7025         constants.
7026         (machine_dependent_reorg): Require a label for the second 4-byte
7027         constant after an 8-byte one.
7028         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
7029         change.
7030         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
7031         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
7032         last_float when switching float modes.
7033         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
7034         auto-increment for general-purpose registers.
7035         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
7036         result.
7037         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
7038         for stack adjust.
7039         * config/sh/sh.c (sh_builtin_saveregs): Support using all
7040         registers for varargs.
7041         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
7042         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
7043         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
7044         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
7045         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
7046         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
7047         call_cookie accordingly.
7048         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
7049         (SHCOMPACT_BYREF): Likewise.
7050         (SHCOMPACT_FORCE_ON_STACK): New macro.
7051         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
7052         (sh_builtin_saveregs): Likewise.
7053         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7054         shcompact_incoming_args): Use new shift values.  Support
7055         sequences of consecutive and non-consecutive pushes/pops.
7056         * config/sh/sh.md (return): Don't explicitly use PR_REG.
7057         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
7058         * config/sh/sh.h (TEXT_SECTION): Define.
7059         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
7060         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
7061         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
7062         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
7063         return values on FPU-enabled SHmedia.
7064         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
7065         FPU-enabled SHmedia.
7066         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
7067         value is returned in a non-FP reg and is not returned by
7068         reference.
7069         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
7070         jump_ind.
7071         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
7072         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
7073         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
7074         quad-aligned to be passed by callee-copy reference.
7075         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
7076         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
7077         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
7078         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
7079         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
7080         copying low-numbered FP regs to r7 and r8.
7081         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
7082         FP regs to general-purpose regs only if the copy was passed on the
7083         stack.
7084         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
7085         copying FP reg to r9.
7086         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
7087         copy FP regs to general-purpose regs only in outgoing calls.
7088         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
7089         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
7090         HOST_WIDE_INT.
7091         * config/sh/sh.h (struct sh_args): Document all fields.
7092         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
7093         passed partially on the stack should not consider making
7094         sibcalls.
7095         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
7096         stack_regs only for incoming calls.  When passing FP args,
7097         make sure there are FP regs available before modifying
7098         call_cookie.
7099         (SHCOMPACT_BYREF): Pass double args in general-purpose
7100         registers by reference.
7101         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
7102         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
7103         attempt to generate sibcalls if the caller got any arguments
7104         by reference.
7105         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
7106         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
7107         to 8-byte boundaries.
7108         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
7109         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
7110         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
7111         stored in the stack.
7112         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
7113         for the offsets to have the ISA bit set.
7114         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
7115         invocation.  Use beq instead of bgt to mark end of sequence of
7116         loads.
7117         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
7118         bgt to mark end of sequence of stores.
7119         * config/sh/sh.c (arith_operand): Don't check whether
7120         CONST_OK_FOR_J for now.
7121         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
7122         instead of long for conversion.
7123         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
7124         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
7125         before passing it to fprintf.
7126         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
7127         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
7128         Call set_fpscr before reading/writing SR.
7129         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
7130         Call set_fpscr.
7131         * config/sh/lib1funcs.asm: Add `.align 2' directives before
7132         SHmedia code.
7133         (FMOVD_WORKS): Define on SH5 with FPU.
7134         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
7135         setting.
7136         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
7137         _fpscr_values.
7138         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
7139         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
7140         address.
7141         (ia_main_table): Ditto.
7142         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
7143         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7144         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
7145         the definitions from sh.h.
7146         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
7147         TARGET_SH5.
7148         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
7149         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
7150         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7151         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
7152         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
7153         Increment LABEL_NUSES.
7155         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
7156         TARGET_SH5.
7157         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
7158         defined.
7159         * config/sh/elf.h (SIZE_TYPE): Likewise.
7160         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
7161         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7162         shcompact_incoming_args): Load switch table addresses using
7163         datalabel.
7164         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7165         (NO_BUILTIN_SIZE_TYPE): Define.
7166         (SIZE_TYPE): Don't define.
7167         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
7168         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
7169         definition of __SH5__=32 for -m5-compact-nofpu.
7170         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
7171         ADDR_DIFF_VEC.
7172         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
7173         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
7174         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
7175         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
7176         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
7177         (INSN_LENGTH_ALIGNMENT): Likewise.
7178         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7179         * config/sh/sh.md (call, call_value, sibcall): Simplify
7180         copying of non-branch-target register.
7181         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7182         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
7183         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
7184         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
7185         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
7186         floating-point values as structs.
7187         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
7188         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
7189         general-purpose register.
7190         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
7191         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7192         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
7193         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
7194         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
7195         (ENCODE_SECTION_INFO): Enclose variables and constants in
7196         DATALABEL unspecs.
7197         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
7198         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
7199         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
7200         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
7201         only for LABEL_REFs.  For SYMBOL_REFs, prepend
7202         SH_DATALABEL_ENCODING to the symbol name.
7203         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
7204         convert_mode().
7205         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
7206         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
7207         UNSPEC_DATALABEL.
7208         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
7209         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
7210         (DATALABEL_REF_P): Don't require CONST.
7211         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
7212         REL label.
7213         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
7214         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
7215         right.
7216         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7217         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
7218         Use shallow_copy_rtx and PUT_MODE to change the mode of
7219         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
7220         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
7221         on SHmedia using GENERAL_REGs.
7222         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7223         bltu_media_i): Fix reversion of conditions.
7224         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
7225         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
7226         * config/sh/sh.c (output_far_jump): Save r13 in macl.
7227         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
7228         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
7229         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
7230         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
7231         (GCC_nested_trampoline): Likewise.
7232         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
7233         * config/sh/sh.c (gen_datalabel_ref): Define.
7234         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
7235         (INITIALIZE_TRAMPOLINE): Likewise.
7236         (TRAMPOLINE_ADJUST_ADDRESS): Define.
7237         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
7238         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
7239         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
7240         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
7241         (ic_invalidate): Adjust for SH5.
7242         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
7243         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
7244         _nested_trampoline.
7245         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
7246         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
7247         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
7248         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7249         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
7250         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
7251         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
7252         * config/sh/sh.c (target_reg_operand): Match only target-branch
7253         registers and pseudos that aren't virtual registers.
7254         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7255         Copy operands that don't match target_reg_operand to pseudos.
7256         (call_media, call_value_media, sibcall_media): Use
7257         target_reg_operand instead of target_operand.
7258         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
7259         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
7260         * config/sh/sh.c (target_reg_operand): Match hardware registers
7261         other than branch-target registers.
7262         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
7263         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
7264         (fpscr_values) [SH5 == 32]: Define.
7265         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
7266         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
7267         Handle function addresses coming in SUBREGs.
7268         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
7269         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
7270         shcompact_return_trampoline): Use datalabel where appropriate.
7271         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
7272         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
7273         general-purpose register to copy one branch-target register to
7274         another.
7275         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7276         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
7277         SYMBOL_REFs with VOIDmode.
7278         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
7279         bltu_media_i): New insns.
7280         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
7281         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
7282         (INIT_CUMULATIVE_ARGS): Likewise.
7283         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
7284         * machmode.def (V16SFmode): New mode.
7285         * c-common.c (type_for_mode): Support V2SF and V16SF.
7286         * tree.c (build_common_tree_nodes_2): Likewise.
7287         * tree.h (tree_index): Likewise.
7288         * calls.c (emit_call_1): Take args_so_far.  Adjust all
7289         callers.  Introduce CALL_POPS_ARGS.
7290         * tm.texi (CALL_POPS_ARGS): Document.
7291         * config/sh/crt1.asm: Implement in SHmedia mode.
7292         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
7293         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
7294         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
7295         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
7296         Implement divsi and udivsi in SHmedia mode.  Introduce
7297         SHcompact trampolines.
7298         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
7299         only in SHmedia64.
7300         (regno_reg_class): Rewrite.
7301         (fp_reg_names): Remove.
7302         (sh_register_names, sh_additional_register_names): New.
7303         (print_operand): Added `u'.  Support SUBREGs in addresses.
7304         Add parentheses around shifted CONSTs.
7305         (output_file_start): Output .mode and .abi directives.
7306         (shiftcosts, addsubcosts, multcosts): Adjust.
7307         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
7308         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
7309         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
7310         bytes, not registers.  Take into account the need for the
7311         SHcompact incoming args trampoline.  Adjust all callers.
7312         (sh_expand_prologue): Take stack_regs into account.  Call
7313         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
7314         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
7315         stack aligned as per SH5 ABI.
7316         (sh_builtin_saveregs): Support SH5 ABI.
7317         (sh_build_va_list, sh_va_start): Likewise.
7318         (initial_elimination_offset): Take alignment into account.
7319         Compute location of PR according to the SH5 stack frame.
7320         (arith_reg_operand): Reject branch-target registers.
7321         (shmedia_6bit_operand): New.
7322         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
7323         (target_reg_operand): Match DImode only.  Accept SUBREGs.
7324         (target_operand): New.
7325         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
7326         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
7327         SIBCALL_REGS for SHmedia.
7328         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
7329         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
7330         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
7331         (TARGET_SWITCHES): New SH5 flags.
7332         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
7333         VALID_REGISTER_P to disable unsupported registers.
7334         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
7335         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
7336         (FUNCTION_ARG_PADDING): Define.
7337         (FASTEST_ALIGNMENT): Adjust.
7338         (SH_REGISTER_NAMES_INITIALIZER): New.
7339         (sh_register_names): Declare.
7340         (DEBUG_REGISTER_NAMES): Define.
7341         (REGISTER_NAMES): Define based on sh_register_names.
7342         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
7343         (sh_additional_register_names): Declare.
7344         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
7345         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
7346         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
7347         (REGISTER_NATURAL_MODE): Define.
7348         (FIRST_PSEUDO_REGISTER): Adjust.
7349         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
7350         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
7351         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
7352         (VECTOR_MODE_SUPPORTED_P): Define.
7353         (REG_CLASS_CONTENTS): Adjust.
7354         (SMALL_REGISTER_CLASSES): Adjust.
7355         (REG_ALLOC_ORDER): Adjust.
7356         (INDEX_REG_CLASS): Adjust.
7357         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
7358         (CONST_OK_FOR_LETTER_P): Adjust.
7359         (PREFERRED_RELOAD_CLASS): Adjust.
7360         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
7361         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
7362         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
7363         (FIRST_FP_PARM_REG): Adjust.
7364         (CALL_POPS_ARGS): Define.
7365         (FUNCTION_ARG_REGNO_P): Adjust.
7366         (struct sh_args): New fields.
7367         (GET_SH_ARG_CLASS): Adjust.
7368         (INIT_CUMULATIVE_ARGS): Adjust.
7369         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
7370         (FUNCTION_ARG_ADVANCE): Adjust.
7371         (FUNCTION_ARG): Adjust.
7372         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
7373         (FUNCTION_ARG_CALLEE_COPIES): Define.
7374         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
7375         (STRICT_ARGUMENT_NAMING): Define.
7376         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
7377         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
7378         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
7379         (SETUP_INCOMING_VARARGS): Adjust.
7380         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
7381         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
7382         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
7383         (SUBREG_OK_FOR_INDEX_P): Adjust.
7384         (EXTRA_CONSTRAINT_S): Update.
7385         (EXTRA_CONSTRAINT_T): New.
7386         (EXTRA_CONSTRAINT): Adjust.
7387         (GO_IF_LEGITIMATE_INDEX): Adjust.
7388         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
7389         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
7390         (MOVE_MAX): Adjust.
7391         (MAX_MOVE_MAX): Define.
7392         (Pmode): Adjust.
7393         (CONST_COSTS): Adjust.
7394         (REGISTER_MOVE_COST): Adjust.
7395         (BRANCH_COST): Adjust.
7396         (TEXT_SECTION_ASM_OP): Adjust.
7397         (DBX_REGISTER_NUMBER): Adjust.
7398         (ASM_OUTPUT_DOUBLE_INT): New.
7399         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
7400         (PREDICATE_CODES): Adjust.
7401         (PROMOTE_MODE): Adjust.
7402         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
7403         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
7404         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
7405         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
7406         (DR0_REG, DR2_REG, DR4_REG): Renumber.
7407         (TR0_REG, TR1_REG, TR2_REG): New.
7408         (XD0_REG): Renumber.
7409         (UNSPEC_COMPACT_ARGS): New.
7410         (type): Added pt and ptabs.
7411         (length): Default to 4 on SHmedia.  Default pt length to 12
7412         and     20 on SHmedia32 and SHmedia64, respectively.
7413         (pt): New function unit.
7414         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
7415         Add whitespace between operands of SHmedia instructions.
7416         (movdicc): Fix.
7417         (adddi3_media, addsi3_media): Adjust constraints.
7418         (subsi3) [SHmedia]: Force operand 1 into a register.
7419         (udivsi3_i1_media, udivsi3_i4_media): New.
7420         (udivsi3): Support SHmedia.
7421         (divsi3_i1_media, divsi3_i4_media): New.
7422         (divsi3): Support SHmedia.
7423         (anddi3, iordi3, xordi3): Adjust constraints.
7424         (zero_extendhidi2, zero_extendqidi2): New.
7425         (extendsidi2, extendhidi2, extendqidi2): New.
7426         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
7427         (pop_e, pop_fpul, pop_4): Likewise.
7428         (movsi_media): Support FP and BT registers.
7429         (movsi_media_nofpu): New.  Adjust splits to DImode.
7430         (lduw, ldub): Renamed to zero_extend* above.
7431         (movqi_media): Fix typo.
7432         (movdi_media): Support FP and BT registers.
7433         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
7434         (movdi_const_32bit): New.
7435         (shori_media): Require immediate operand.  Use `u' for output.
7436         (movdf_media, movsf_media): Simplified.
7437         (movdf_media_nofpu, movsf_media_nofpu): New.
7438         (movdf, movsf): Adjust
7439         (movv2sf, movv2sf, movv16sf): New.
7440         (beq_media, beq_media_i): Adjust constraints.  Don't use
7441         scratch BT register.
7442         (bne_media, bne_media_i): Likewise.
7443         (bgt_media, bgt_media_i): Likewise.
7444         (bge_media, bge_media_i): Likewise.
7445         (bgtu_media, bgtu_media_i): Likewise.
7446         (bgeu_media, bgeu_media_i): Likewise.
7447         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
7448         bunordered): Emit jump insn.  Force operands to registers when
7449         needed.
7450         (jump_media, jump): Simplify.
7451         (call_compact, call_compact_rettramp): New.
7452         (call_value_compact, call_value_compact_rettramp): New.
7453         (call_media, call_value_media): Simplify.
7454         (sibcall_compact, sibcall_media): New.
7455         (call, call_value): Adjust for SHmedia and SHcompact.
7456         (sibcall, sibcall_value, untyped_call): Likewise.
7457         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
7458         (indirect_jump): Adjust for SHmedia.
7459         (casesi_jump_media): New.
7460         (nop): Re-enable for SHmedia.
7461         (call_site): Restrict to SH1.
7462         (casesi): Adjust for SHmedia.
7463         (casesi_shift_media, casesi_load_media): New.
7464         (return): Explicitly use PR register.  Call return trampoline
7465         on SHcompact.
7466         (return_i): Explicitly use PR register.
7467         (shcompact_return_tramp, shcompact_return_tramp_i): New.
7468         (return_media): Adjust.
7469         (shcompact_incoming_args): New.
7470         (epilogue): Adjust.
7471         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7472         (movstrsi): Disable on SH5.
7473         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
7474         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
7475         (subsf3, subsf3_media): Likewise.
7476         (mulsf3, mulsf3_media, mac_media): Likewise.
7477         (divsf3, divsf3_media): Likewise.
7478         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
7479         (floatsisf2, fux_truncsfsi2): Likewise.
7480         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
7481         constraints.
7482         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
7483         (cmpunsf_media, cmpsf): Likewise.
7484         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
7485         (abssf2, abssf2_media): Likewise.
7486         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
7487         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
7488         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
7489         (floatsidf2, fix_truncdfsi2): Likewise.
7490         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
7491         constraints.
7492         (cmpeqdf_media, cmpgtdf_media): Likewise.
7493         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
7494         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
7495         (absdf2, absdf2_media): Likewise.
7496         (extendsfdf2, extendsfdf2_media): Likewise.
7497         (truncsfdf2, truncsfdf2_media): Likewise.
7498         * config/sh/sh64.h: New file.
7499         * config/sh/t-sh64: New file.
7500         * config/sh/shmedia.h: New file.
7501         * config/sh/ushmedia.h: New file.
7502         * config/sh/sshmedia.h: New file.
7503         * configure.in: Added sh64-*-elf.
7504         * configure: Rebuilt.
7505         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
7506         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
7507         (reg_class_from_letter): Use `b' for TARGET_REGS.
7508         (print_operand): Support `%M', `%m', `AND' and
7509         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
7510         (andcosts): Adjust for SHmedia.
7511         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
7512         Likewise.
7513         (target_reg_operand): New function.
7514         * config/sh/sh-protos.h (target_reg_operand): Declare.
7515         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
7516         FP registers on SH5.
7517         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
7518         on SH4.
7519         (TARGET_REGISTER_P): New macro.
7520         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
7521         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
7522         (EXTRA_CONSTRAINT_S): New macro.
7523         (EXTRA_CONSTRAINT): Adjust.
7524         (FLOAT_TYPE_SIZE): Define to 32.
7525         (Pmode): DImode on SHmedia.
7526         (CONST_COSTS): Adjust for SHmedia literals.
7527         (PREDICATE_CODES): Added target_reg_operand.
7528         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
7529         * config/sh/sh.md: Remove all attrs from SHmedia insns.
7530         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
7531         (cmpdi): Accept SHmedia.
7532         (movdicc_false, movdicc_true): New insns.
7533         (movdicc): New expand.
7534         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
7535         no_new_pseudos.
7536         (addsi3_media): Match `S' constraint.
7537         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
7538         (negdi2): Expand for SHmedia.
7539         (one_cmpldi2): New expand.
7540         (zero_extendsidi2): Change from expand to insn.
7541         (extendsidi2): Add constraints.
7542         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
7543         LD/ST address.  Fix SI immediate loading split.
7544         (movhi_media, movqi_media, lduw, ldub): New insns.
7545         (movhi, movqi): Accept SHmedia.
7546         (shori_media, movdi_media): Relax input constraints.  Split
7547         symbolic constants.
7548         (movdf_media, movsf_media): New insn.  New split to movdi.
7549         (movdf, movsf): Match on SHmedia.
7550         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
7551         bgeu_media): New insns and splits.  New insns with `_i' suffix.
7552         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
7553         (bunordered): New expand.
7554         (jump_compact): Renamed from `jump'.
7555         (jump_media): New insn.
7556         (jump): New expand.
7557         (call_media, call_value_media): New insns.
7558         (call, call_value): Adjust.
7559         (indirect_jump_compact): Renamed from `indirect_jump'.
7560         (indirect_jump_media): New insn.
7561         (indirect_jump): New expand.
7562         (untyped_call, return): Accept SHmedia.
7563         (return_media): New insn.
7564         (prologue, epilogue, blockage): Accept SHmedia.
7565         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
7566         (sunordered): New expand.
7567         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
7568         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
7569         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
7570         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
7571         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
7572         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
7573         abssf2_media): New insns.
7574         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
7575         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
7576         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
7577         floatdidf2, floatsidf2_media, fix_truncdfdi2,
7578         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
7579         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
7580         absdf2_media): New insns.
7581         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
7582         (extendsfdf2_media, truncdfsf2_media): New insns.
7583         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
7584         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
7585         * config/sh/sh.h (CONST_OK_FOR_J): Document.
7586         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
7587         * config/sh/sh.md (adddi3): New expand.
7588         (adddi3_media, adddi3z_media): New insns.
7589         (adddi3_compact): Renamed from adddi3.
7590         (addsi3_media): Use add.l r63 to add constant zero.
7591         (subdi3): New expand.
7592         (subdi3_media): New insn.
7593         (subdi3_compact): Renamed from subdi3.
7594         (mulsidi3): New expand.
7595         (mulsidi3_media): New insn.
7596         (mulsidi3_compact): Renamed from mulsidi3.
7597         (umulsidi3): New expand.
7598         (umulsidi3_media): New insn.
7599         (umulsidi3_compact): Renamed from umulsidi3.
7600         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
7601         (ashlsi3, ashrsi3, lshrsi3): Use them.
7602         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
7603         (ashldi3, ashrdi3, lshrdi3): Use them.
7604         (zero_extendsidi2): New expand.
7605         (extendsidi2): New insn.
7606         (movsi_media): New insn.  Split to movdi to load constants.
7607         (movsi): Enable for shmedia.
7608         (movdi_media): New insn.  Use shori_media to load wide constants.
7609         (short_media): New insn.
7610         (movdi): Enable for shmedia.
7611         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
7612         * config/sh/sh.h (CPP_SPEC): Added `m5'.
7613         (SUBTARGET_CPP_SPEC): Added `!m5'.
7614         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
7615         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
7616         to all other SH variants.
7617         (TARGET_DEFAULT): Set to SH1_BIT.
7618         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
7619         (BITS_PER_WORD): Raise to 64 on shmedia.
7620         (MAX_BITS_PER_WORD): Change to 64.
7621         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
7622         (INT_TYPE_SIZE): Keep as 32.
7623         (UNITS_PER_WORD): Raise to 8 on shmedia.
7624         (MIN_UNITS_PER_WORD): Keep as 4.
7625         (POINTER_SIZE): Raise to 64 on shmedia.
7626         (CONST_OK_FOR_J): New macro.
7627         (CONST_OK_FOR_LETTER_P): Use it.
7628         (processor_type): Add PROCESSOR_SH5.
7629         * config/sh/sh.md: Conditionalize all expands, insns and
7630         splits to TARGET_SH1.
7631         (cpu): Added sh5.
7632         (addsi3_compact): Renamed from...
7633         (addsi3): Now an expand.
7634         (addsi3_media, subsi3_media): New insns.
7635         (subsi3): Don't negate constants with SHmedia.
7637         * hooks.c: New file.
7638         * hooks.h: New file.
7639         * Makefile.in (HOOKS_H): New.
7640         (TARGET_DEF_H): Added $(HOOKS_H).
7641         (OBJS): Added hooks.o.
7642         (cfgcleanup.o, bb-reorder.o): Added target.h.
7643         (hooks.o): Added dependencies.
7644         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
7645         (TARGET_INITIALIZER): this.
7646         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
7647         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
7648         * bb-reorder.c: Include target.h.
7649         (reorder_basic_blocks): Skip if cannot modify jumps.
7650         * cfgcleanup.c: Include target.h.
7651         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
7653 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7655         * config/mips/mips.md (casesi_internal, casesi_internal_di):
7656         Protect jump delay slot instructions with .set noreorder and
7657         .set nomacro.
7659 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
7661         * config/mips/mips.md (casesi_internal_di): Calculate
7662         the index into the target offset table correctly.
7664 2002-02-08  Richard Henderson  <rth@redhat.com>
7666         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
7667         * final.c (output_addr_const): Accept and discard SUBREG.
7668         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
7669         mark them unknown instead.
7670         (simplify_subtraction): Handle RTX_UNKNOWN.
7671         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
7673 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
7675         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
7677 2002-02-08  Richard Henderson  <rth@redhat.com>
7679         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
7681 2002-02-08  Andreas Jaeger  <aj@suse.de>
7683         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
7684         * config/i386/t-linux64: New file.
7686 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
7688         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
7689         * c-parse.in (compstmt): Clear last_expr_type.
7691 2002-02-07  Richard Henderson  <rth@redhat.com>
7693         * loop.c (strength_reduce): Sink final_value when not
7694         eliminating a biv.
7696 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
7698         * config/sparc/freebsd.h: Fix mismatched spec {.
7700 2002-02-07  Richard Henderson  <rth@redhat.com>
7702         * cfgrtl.c: Include recog.h and insn-config.h.
7703         (keep_with_call_p): Fix general_operand invocation.
7704         * Makefile.in (cfgrtl.o): Update dependencies.
7706 2002-02-07  Kazu Hirata  <kazu@hxi.com>
7708         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
7709         comment.  Accept HImode only if TARGET_H8300.
7711 2002-02-07  Eric Christopher  <echristo@redhat.com>
7713         * config/mips/crtn.asm: Cleanup #ifdefs.
7715 2002-02-07  Eric Christopher  <echristo@redhat.com>
7717         * config/mips/crti.asm: Add changes for mips16. mips16 uses
7718         register 7 as RA instead of $31.
7719         * config/mips/crtn.asm: Ditto.
7720         * config/mips/mips.c (mips_move_2words): Add case for
7721         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
7722         (compute_frame_size): Fix typo.
7723         (save_restore_insns): Ditto.  Make documentation about using
7724         register $7 as return register more precise.
7725         (mips_expand_epilogue): Fix comment. Add code to work around not
7726         being able to add to the stack pointer directly.
7727         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
7728         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
7729         epilogue.
7731 2002-02-07  Tom Rix  <trix@redhat.com>
7733         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
7734         immediates in ldu and stdu DS opcode field.
7735         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
7736         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
7737         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
7739 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
7741         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
7742         offset for stack bias.
7744 2002-02-07  H.J. Lu <hjl@gnu.org>
7746         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
7748 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
7750         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
7752 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
7754         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
7755         * i386.c (x86_order_regs_for_local_alloc): New global function.
7756         * i386.h (REG_ALLOC_ORDER): CLeanup.
7757         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
7759 2002-02-07  Richard Henderson  <rth@redhat.com>
7761         PR optimization/2463
7762         * alias.c (find_base_value): Recall base values for fixed hard regs.
7763         * loop.c (loop_regs_update): Don't use single_set on non-insns.
7765 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
7767         * config/mips/mips.md (define_delay) [mips16]: Adjust required
7768         length.
7770 2002-02-06  Richard Henderson  <rth@redhat.com>
7772         PR c/5609
7773         * stmt.c (resolve_operand_name_1): Take more care with mixed
7774         named and unnamed operands.
7776 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
7777             Jan Hubicka  <jh@suse.cz>
7779         * loop.c (remove_constant_addition): Avoid clobbering a shared
7780         CONST expression.
7782 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7784         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
7785         * config/s390/t-linux64: New file.
7786         * config/s390/libgcc-glibc.ver: New file.
7788 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
7790         * config/s390/linux64.h: Delete file.
7791         * config/s390/s390x.h: New file.
7792         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
7793         as target header file.
7794         * config/s390/linux.h (TARGET_VERSION): Define depending on
7795         DEFAULT_TARGET_64BIT.
7796         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
7797         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
7798         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
7799         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
7800         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
7801         (EXTRA_SPEC): New define.
7802         * config/s390/s390.h (TARGET_VERSION): Define depending on
7803         DEFAULT_TARGET_64BIT.
7804         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
7806 2002-02-06  Jason Merrill  <jason@redhat.com>
7808         * c-decl.c (finish_function): Warn about a non-void function with
7809         no return statement and no abnormal exit.
7810         (current_function_returns_abnormally): New variable.
7811         (start_function): Clear it.
7812         (struct c_language_function): Add returns_abnormally.
7813         (push_c_function_context): Save it.
7814         (pop_c_function_context): Restore it.
7815         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
7816         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
7817         an explicit return type.
7818         * c-tree.h: Declare current_function_returns_abnormally.
7819         (C_FUNCTION_IMPLICIT_INT): New macro.
7820         * c-typeck.c (build_function_call): Set it.
7821         (c_expand_return): Set current_function_returns_value even if the
7822         value is erroneous.
7824 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7826         PR c/5420:
7827         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
7828         unsafe for reevaluation.
7830 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
7832         PR c/5482:
7833         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
7834         EXPR_STMT, but COMPOUND_STMT, recurse into it.
7836 2002-02-06  Richard Henderson  <rth@redhat.com>
7838         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
7839         be a general_operand.  Dest for function value must be a pseudo.
7841 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
7843         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
7844         as SYMBOL_REFs from the constant pool.
7846 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
7848         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
7849         passed by invisible reference.
7851 2002-02-05  Richard Henderson  <rth@redhat.com>
7853         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
7855 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
7857         Implement using "base addresses" in insn operands as default.
7858         * config/mmix/mmix.c (mmix_conditional_register_usage): if
7859         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
7860         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
7861         used to read the rtx value.
7862         (mmix_target_asm_function_epilogue): Fix spacing.
7863         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
7864         (mmix_legitimate_address): Ditto.
7865         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
7866         should be loaded with a GETA insn.  Don't allocate needless extra
7867         char for nul termination and fix misleading comment.
7868         (mmix_print_operand_address): Handle constants if
7869         TARGET_BASE_ADDRESSES.
7870         (mmix_output_register_setting): Use base addressing if
7871         TARGET_BASE_ADDRESSES and the number of insns is 3.
7872         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
7873         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
7874         to use R as constraint, add LDA to match s.
7875         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
7876         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
7877         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
7878         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
7879         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
7880         order with other fixed registers.
7881         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
7882         other parameter/call-clobbered registers.
7883         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
7884         -mbase-addresses, -mno-base-addresses.
7885         (MMIX Options): Ditto.
7887 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7889         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
7891 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
7893         * config/rs6000/altivec.h: Change elem to _S_elem.
7895 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7897         * config/netbsd.h (WCHAR_TYPE): Define.
7898         (WCHAR_TYPE_SIZE): Ditto.
7899         (WINT_TYPE): Ditto.
7900         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
7901         (WCHAR_UNSIGNED): Ditto.
7902         (WCHAR_TYPE_SIZE): Ditto.
7903         (WINT_TYPE): Ditto.
7904         * config/arm/netbsd.h: Likewise.
7905         * config/i386/netbsd-elf.h: Likewise.
7906         * config/i386/netbsd.h: Likewise.
7907         * config/m68k/netbsd-elf.h: Likewise.
7908         * config/m68k/netbsd.h: Likewise.
7909         * config/ns32k/netbsd.h: Likewise.
7910         * config/sparc/netbsd.h: Likewise.
7911         * config/vax/netbsd.: Likewise.
7913 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
7915         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
7916         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
7917         (TARGET_INITIALIZER): this.
7918         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
7919         (BITFIELD_NBYTES_LIMITED): Markup fix.
7920         * tree.h (default_ms_bitfield_layout_p): Declare.
7921         (record_layout_info): Added prev_field.
7922         * tree.c (default_ms_bitfield_layout_p): New fn.
7923         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
7924         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
7925         * stor-layout.c: Include target.h.
7926         (start_record_layout): Initialize prev_field.
7927         (place_field): Handle MS bit-field layout, and disregard
7928         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
7929         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
7930         * Makefile.in (stor-layout.o): Adjust dependencies.
7932 2002-02-05  Jason Merrill  <jason@redhat.com>
7934         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
7936 2002-02-05  Andreas Jaeger  <aj@suse.de>
7938         * crtstuff.c: Fix comments.
7940 2002-02-05  Richard Henderson  <rth@redhat.com>
7942         PR fortran/3393
7943         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
7944         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7946         PR fortran/3392
7947         * config/mips/mips.c (function_arg): Handle TImode.
7948         (function_arg_advance): Likewise.
7950 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7952         * config/rs6000/altivec.h (vec_step_help): Rename to
7953         __vec_step_help.
7955 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7957         * config/rs6000/altivec.h: Fix typos.
7959 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
7961         * config/arm/netbsd.h: Correct a comment.
7963 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7965         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
7966         building void typed builtins.
7968         * config/rs6000/altivec.h (vec_ld*): Fix typos.
7969         (vec_step): Implement for C++.
7971 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7973         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
7975 2002-02-04  Richard Henderson  <rth@redhat.com>
7977         * combine.c (nonzero_bits): Re-introduce special case for
7978         sp/fp/ap wrt REGNO_POINTER_ALIGN.
7980 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
7982         * doc/extend.texi: Warn about unsupported usage of altivec
7983         builtins.
7985         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
7986         (altivec_predicate_*): New.
7988         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
7989         Add C++ version of vec_*() functions.
7991         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
7992         (bdesc_2arg): Remove altivec predicates.
7993         (altivec_expand_builtin): Handle predicates.
7994         (altivec_init_builtins): Handle predicates.
7995         (altivec_expand_predicate_builtin): New.
7997 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7999         * pa.c (DO_FRAME_NOTES): Move forward.
8000         (store_reg): Revise handling of frame notes.
8001         (load_reg): Likewise.
8002         (set_reg_plus_d): Likewise.
8003         (hppa_expand_prologue): Likewise.
8004         (hppa_expand_epilogue): Likewise.
8006 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8008         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
8010 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8012         PR c/4475, c++/3780:
8013         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
8014         * c-common.h (SWITCH_TYPE): Define.
8015         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
8016         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
8017         Rename spareness variable to sparseness.
8018         (expand_end_case_type): Renamed from expand_end_case, use orig_type
8019         if non-NULL instead of TREE_TYPE (orig_index).
8020         * tree.h (expand_end_case_type): Renamed from expand_end_case.
8021         (expand_end_case): Define using expand_end_case_type.
8022         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
8023         to expand_end_case_type.
8024         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
8026 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8028         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
8029         (BIGGEST_ALIGNMENT): Change to 128.
8031 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8033         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
8035 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8037         * pa.md (call_internal_reg_64bit): Remove unused variable.
8039 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
8041         * config/arm/arm.h (machine_function): Add uses_anonymous_args
8042         field.
8043         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
8044         * config/arm/arm.c (current_function_anonymous_args): Delete,
8045         replace uses with cfun->machine->uses_anonymous_args.
8046         (arm_reorg): Do not reset uses_anonymous_args.
8048         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
8049         any geenral register.
8051 2001-02-04  Bernd Schmidt  <bernds@redhat.com>
8053         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
8054         the entry block.
8056 2002-02-04  Richard Henderson  <rth@redhat.com>
8058         * combine.c (force_to_mode): Remove STACK_BIAS code.
8059         (nonzero_bits): Likewise.  Replace sp/fp special case with
8060         REGNO_POINTER_ALIGN.
8062         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
8063         (HARD_FRAME_POINTER_REGNUM): New.
8064         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
8065         (FIXED_REGS, CALL_USED_REGS): Update.
8066         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
8067         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
8068         (HARD_REGNO_NREGS): Update for SFP.
8069         (STACK_POINTER_OFFSET): Include bias here ...
8070         (FIRST_PARM_OFFSET): ... not here.
8071         (STACK_BIAS): Remove.
8072         (INIT_EXPANDERS): New.
8073         (STARTING_FRAME_OFFSET): Do not include bias.
8074         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
8075         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
8076         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
8077         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
8078         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
8079         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
8080         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
8081         (MUST_SAVE_REGISTER): Likewise.
8082         (sparc_flat_function_prologue): Likewise.
8083         (sparc_flat_function_epilogue): Likewise.
8084         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
8085         (sparc_init_modes): SFP is GENERAL_REGS.
8086         (sparc_builtin_saveregs): SFP does not have bias applied.
8088 2002-02-04  Richard Henderson  <rth@redhat.com>
8090         * config/alpha/alpha.c (current_function_is_thunk): Don't check
8091         current_function_is_thunk.
8092         (alpha_sa_mask): Distinguish between current_function_is_thunk
8093         called from ASM_OUTPUT_MI_THUNK and not.
8094         (alpha_does_function_need_gp): Thunks always need gp.
8095         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8096         (alpha_output_mi_thunk_osf): New.
8097         * config/alpha/alpha-protos.h: Update.
8098         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
8100 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
8102         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
8103         function types, not when they're taken away.
8105 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
8107         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
8108         CODE_LABEL and jump table when replacing a table jump with a
8109         simple jump.
8111 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8113         * config/s390/s390-protos.h (legitimize_la_operand,
8114         s390_secondary_input_reload_class, s390_plus_operand,
8115         s390_expand_plus_operand): Add prototypes.
8117         config/s390/s390.c (s390_secondary_input_reload_class,
8118         s390_plus_operand, s390_expand_plus_operand): New functions.
8120         (struct s390_address): New member 'pointer'.
8121         (s390_decompose_address): Compute it.
8122         (legitimate_la_operand_p): Use it.
8123         (legitimize_la_operand): New function.
8124         (movti, movdi, movdf splitters): Call it.
8126         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
8127         (PREDICATE_CODES): Add s390_plus_operand.
8129         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
8130         (la_ccclobber): Allow GENERAL_REGS as output operand.
8132         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
8133         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
8134         (*la_64, *la_31, reload_indi, reload_insi): ... these.
8136 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
8138         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
8139         register names for regular asm () construct.
8141 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8143         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
8144         registers.
8146 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
8148         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
8149         pat for recog.
8151 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
8153         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
8154         constant pool to be identical by string address and index.
8156 2002-02-04  Anthony Green  <green@redhat.com>
8158         * output.h (SECTION_OVERRIDE): Define.
8159         * varasm.c (named_section): Obey SECTION_OVERRIDE.
8161 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8163         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
8164         by existing arm*-*-netbsd* (a.out) target.
8165         (ns32k-*-netbsdelf*): Likewise.
8166         (sparc-*-netbsdelf*): Likewise.
8167         (vax-*-netbsdelf*): Likewise.
8169 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
8171         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
8172         headers and libobjc headers.
8174 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
8176         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
8177         (_mingw.h): Remove duplicate include.
8179 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
8181         * config.gcc: Set cpu_type to m68k for 68010, as well.
8182         (m68010-*-netbsdelf*): New...
8183         (m68k*-*-netbsdelf*): ...targets.
8184         * config/m68k/netbsd-elf.h: New file.
8186 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8188         * config/h8300/h8300.c (hand_list): Move inside function_arg.
8190 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8192         * config/h8300/h8300.c (h8_push_ops): Move inside
8193         h8300_init_once.
8194         (h8_pop_ops): Likewise.
8195         (h8_move_ops): Likewise.
8197 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8199         * config/h8300/h8300.c (os_task): Make it static.
8200         (monitor): Likewise.
8201         (pragma_saveall): Likewise.
8203 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
8205         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
8206         constant is a valid sign-extension for Pmode.
8208 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8210         * config/h8300/h8300.c: Fix formatting.
8212 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8214         * config/h8300/h8300.md: Fix formatting.
8216 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8218         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
8219         predicates of operands[1].  Split the patterns for each
8220         processor variant.
8222 2002-02-02  Kazu Hirata  <kazu@hxi.com>
8224         * config/h8300/h8300.md (xor patterns): Tighten the predicates
8225         of operands[1] to register_operand.
8227 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8229         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
8230         * cpphash.c (_cpp_init_hashtable): Similarly.
8231         * cppinit.c (cpp_create_reader): Default the signed_char flag.
8232         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
8233         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
8234         (cpp_handle_option): Handle the new options.
8235         * cpplex.c (cpp_interpret_charconst): Use new flag.
8236         * cpplib.h (struct cpp_options): New member signed_char.
8237         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
8238         (cpp_options): Handle -fsigned-char and -funsigned-char.
8239         (static_specs): Remove signed_char_spec.
8240         (do_spec1): Don't handle %c.
8241         * system.h: Poison SIGNED_CHAR_SPEC.
8242         * tradcif.y (yylex): Use flag_signed_char.
8243         * tradcpp.h (flag_signed_char): New.
8244         * tradcpp.c (flag_signed_char): New.
8245         (main): Handle new command-line options.
8246         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
8247 config:
8248         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
8249         * avr/avr.h: Remove old comments.
8250         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
8251         (CC1_SPEC): Pass -fsigned-char if -mic*.
8252         (SIGNED_CHAR_SPEC): Remove.
8253 doc:
8254         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
8256 2002-02-01  Eric Christopher  <echristo@redhat.com>
8258         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
8259         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
8260         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
8261         (ASM_OUTPUT_REG_POP): Ditto.
8263 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8265         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
8266         patch.
8268 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8270         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
8272 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
8274         PR c/5304:
8275         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
8276         unconditionally.
8278 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8280         * cfganal.c: Include tm_p.h.
8281         (keep_with_call_p): Fix the test that determines if a register holds
8282         the return value of a call.
8284 2002-02-01  DJ Delorie  <dj@redhat.com>
8286         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
8287         we are given conflicting registers, switch to the other one we
8288         had allocated for us.
8289         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
8290         as TImode so we know when the "other" register is available.
8292 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
8294         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
8295         sparc/sparc_bi.h.
8297 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
8299         * cfganal.c (keep_with_call_p): New function.
8300         (flow_call_edges_add): Prevent splitting a block between a call and
8301         a single-set instruction that should be kept in the same block.
8303 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8305         * doc/install.texi (avr): Update outdated URL.
8307 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
8309         * config/stormy16/stormy16.md (pushqi): New.
8310         (popqi): New.
8311         (pushhi): New.
8312         (pophi): New.
8313         (movhi): Remove stack operands.
8314         (movqi): Likewise.
8315         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
8316         nonimmediate_nonstack_operand.
8317         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
8318         New.
8319         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
8320         New.
8322 2002-01-31  Jason Merrill  <jason@redhat.com>
8324         * Makefile.in (c-parse.c): Handle .output file.
8325         * objc/Make-lang.in (objc-parse.c): Likewise.
8327 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
8329         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
8330         the -me[lb] option is given.  Don't output the default flag
8331         twice.
8333 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
8335         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
8336         the primary source file; this has not been done yet.
8337         * c-decl.c (c_expand_body): Reset input_filename from
8338         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
8340 2002-01-31  Kazu Hirata  <kazu@hxi.com>
8342         * rtlanal.c (subreg_regno_offset): Do not use
8343         SUBREG_REGNO_OFFSET.
8344         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
8345         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
8347 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8349         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
8350         version rather than GNATS version in --version output.
8352 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
8354         * ifcvt.c (noce_process_if_block): Make a copy of the destination
8355         when copying back from a temporary.
8357 2002-01-30  Richard Henderson  <rth@redhat.com>
8359         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
8360         and new_dest are the same.
8362 2002-01-30  Richard Henderson  <rth@redhat.com>
8364         PR opt/5076
8365         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
8366         * rtl.c (note_insn_name): Update.
8367         * emit-rtl.c (remove_unnecessary_notes): Kill it.
8368         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
8369         to perform loop rotation.
8370         (expand_exit_loop_top_cond): New.
8371         * tree.h (expand_exit_loop_top_cond): Declare it.
8372         * c-semantics.c (genrtl_while_stmt): Use it.
8373         (genrtl_for_stmt): Likewise.
8375 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
8377         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
8378         arguments to 64-bit boundaries on 64-bit ABIs.
8380 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
8382         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
8384 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
8386         * c-decl.c (grokdeclarator): Handle type being a typedef for an
8387         invalid type.
8389 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
8391         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
8392         * config/sparc/sparc_bi.h: Remove file.
8393         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
8395 2002-01-30  Richard Henderson  <rth@redhat.com>
8397         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
8399 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
8401         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
8403 2002-01-30  Jason Merrill  <jason@redhat.com>
8405         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
8406         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
8407         (reg_save): Use DW_CFA_offset_extended_sf instead.
8409         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
8411 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8413         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
8414         in cselib_lookup.
8416 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
8418         * rs6000.md ("*call_value_local32"): Remove constraints.
8419         ("*call_value_local64"): Same.
8420         ("*call_value_indirect_nonlocal_aix32"): Same.
8421         ("*call_value_nonlocal_aix32"): Same.
8422         ("*call_value_indirect_nonlocal_aix64"): Same.
8423         ("*call_value_nonlocal_aix64"): Same.
8424         ("*call_value_nonlocal_sysv"): Same.
8426 2002-01-29  Richard Henderson  <rth@redhat.com>
8428         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
8430 2002-01-29  Richard Henderson  <rth@redhat.com>
8432         * expr.c (force_operand): Ignore flag_pic for detecting pic
8433         address loads.
8434         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
8435         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
8436         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
8437         instead of open-coded loop.
8438         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
8439         be fixed when in use.
8441 2002-01-29  Richard Henderson  <rth@redhat.com>
8443         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
8444         * sched-rgn.c (propagate_deps): Update them.
8445         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
8446         clobbers list when either gets too long.
8448 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8450         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
8451         and INDEX_REGS the same as GENERAL_REGS.
8452         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8454 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8456         * tree.c (build_nonstandard_integer_type): Correct prototype.
8458 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
8460         * config/s390/s390.md (movstrsico, movstrdix_64,
8461         movstrsix_31): Remove, replace by ...
8462         (movstrdi_short, movstrsi_short, movstrdi_long,
8463         movstrsi_long): ... these.  New.
8464         (movstrdi, movstrsi): Adapt.
8466         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
8467         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
8468         Remove unnecessary CC clobber.
8469         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
8470         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
8472         (divmoddi4): Don't partially initialize TImode register.
8474 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
8476         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
8478 2002-01-29  Richard Henderson  <rth@redhat.com>
8480         * flow.c (print_rtl_and_abort): Remove.
8481         (print_rtl_and_abort_fcn): Remove.
8482         (verify_local_live_at_start): Use dump_bb instead.
8483         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
8484         (verify_wide_reg_1): Return 2 on mode test failure.
8486 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8488         PR c/3325, c/3326, c/2511, c/3347
8489         * c-decl.c (enum_decl_context): Remove BITFIELD.
8490         (grokdeclarator): Take bitfield width as an input.
8491         Ensure bitfields are given the correct type.  Perform
8492         bitfield width validation with build_bitfield_integer_type
8493         rather than waiting for finish_struct.
8494         (grok_typename, grok_typename_in_parm_context, start_decl,
8495         push_parmdecl, grokfield, start_function): Update calls to
8496         grokdeclarator.
8497         (build_bitfield_integer_type): New function.
8498         (finish_struct): Move bitfield validation to grokdeclarator
8499         and build_bitfield_integer_type.
8500         * tree.c (build_nonstandard_integer_type): New function.
8501         * tree.h (build_nonstandard_integer_type): New prototype.
8502 objc:
8503         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
8505 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
8507         PR other/1502:
8508         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
8509         don't ignore unrecognized -W* options.
8510         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
8511         * cpplib.h (cpp_handle_option): Adjust prototype.
8512         * c-decl.c (c_decode_options): Pass 0 as last argument to
8513         cpp_handle_option.
8515         PR c/2896:
8516         * gcc.c (cpp_unique_options): Split from cpp_options.
8517         (cpp_options): Source cpp_unique_options.
8518         (default_compilers): Use cpp_unique_options instead of cpp_options
8519         when used together with cc1_options.
8520         (static_specs): Add cpp_unique_options.
8521         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
8522         when used together with cc1_options.
8524 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8526         * config/h8300/h8300-protos.h: Update the prototype of
8527         output_a_shift.
8528         * config/h8300/h8300.c (output_a_shift): Remove an unused
8529         argument 'insn'.  Remove redundant code.
8530         * config/h8300/h8300.md: Adust to the new prototype of
8531         output_a_shift.
8533 2002-01-29  Kazu Hirata  <kazu@hxi.com>
8535         * config/h8300/h8300-protos.h: Update the prototypes of
8536         emit_a_rotate and expand_a_rotate.
8537         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
8538         first argument to 'enum rtx_code'.
8539         (expand_a_rotate): Likewise.
8541 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8543         * config/h8300/h8300-protos.h: Update the prototype of
8544         output_simode_bld.
8545         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
8546         'log2'.
8547         * config/h8300/h8300.md: Adjust to the new prototype.
8549 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8551         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
8552         redundant code.
8554 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8556         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
8557         is a fixed register before returning pic_offset_table_rtx.
8558         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
8559         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
8561 2002-01-28  Jason Merrill  <jason@redhat.com>
8563         * dwarf2.h: Sync with src version.
8565 2002-01-28  Paul Koning  <pkoning@equallogic.com>
8567         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
8568         BT_FN_VOID_PTR_VAR.
8569         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
8570         * doc/extend.texi (__builtin_prefetch): Update documentation:
8571         first argument is now const void ptr.
8573 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8575         * config/h8300/h8300-protos.h: Remove an unused prototype.
8577 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
8579         * toplev.c (lang_independent_init): Round up identifier size.
8581 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8583         * config.gcc: Revert previous change.
8585 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
8587         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
8589 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
8591         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
8592         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
8593         other non-elf netbsd config frags.
8594         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
8595         collect2 will does that.
8596         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
8597         shared-lib frobbing will work.
8599 2002-01-28  Kazu Hirata  <kazu@hxi.com>
8601         * config/h8300/h8300.h: Fix formatting.
8602         * config/h8300/h8300.md: Likewise.
8604 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
8606         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
8607         the old, removed AAA_standards fix.
8608         * fixinc/fixincl.x: Rebuilt.
8610 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
8612         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
8613         atexit call in crtbegin, hooked in after call to frame_dummy;
8614         register EH before registering __fini__start.
8616 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
8618         * config/rs6000/altivec.h: Remove spurious semicolons.
8620 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8622         * config/h8300/h8300.md: Replace dead bit extraction patterns
8623         with ones that work.
8625 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8627         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
8628         if not STRICT_ALIGNMENT.
8629         * rtl.h (MEM_ALIGN): Likewise.
8631 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8633         * doc/invoke.texi (-fdump-translation-unit): Revert this
8634         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8636 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8638         * config/h8300/h8300.md (define_constants): New.
8639         (anonymous patterns) Use defined constants appropriately.
8641 2002-01-27  Kazu Hirata  <kazu@hxi.com>
8643         * config/h8300/h8300.c (function_arg): Remove redundant code.
8645 2002-01-26  Richard Henderson  <rth@redhat.com>
8647         * sched-deps.c (reg_pending_uses_head): New.
8648         (reg_pending_barrier): Rename from reg_pending_sets_all.
8649         (find_insn_list): Don't mark inline.
8650         (find_insn_mem_list): Remove.
8651         (add_dependence_list, add_dependence_list_and_free): New.
8652         (flush_pending_lists): Replace only_write param with separate
8653         for_read and for_write parameters.  Update all callers.  Use
8654         add_dependence_list_and_free.
8655         (sched_analyze_1): Do not add reg dependencies here; just set
8656         the pending bits.  Use add_dependence_list.
8657         (sched_analyze_2): Likewise.
8658         (sched_analyze_insn): Replace schedule_barrier_found with
8659         reg_pending_barrier.  Add all dependencies for pending reg
8660         uses, sets, and clobbers.
8661         (sched_analyze): Don't add reg dependencies for calls, just
8662         set pending bits.  Use regs_invalidated_by_call.  Treat
8663         sched_before_next_call as a normal list, not a fake insn.
8664         (init_deps): No funny init for sched_before_next_call.
8665         (free_deps): Free pending mems lists.  Don't zero reg_last.
8666         (init_deps_global): Init reg_pending_uses.
8667         (finish_deps_global): Free it.
8668         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
8669         (find_insn_mem_list): Remove.
8670         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
8671         (propagate_deps): Use them.  Zero temp mem lists.
8673 2002-01-26  Richard Henderson  <rth@redhat.com>
8675         * Makefile.in (CRTSTUFF_CFLAGS): New.
8676         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
8677         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
8678         crtstuff.c instead of alpha assembly version.
8679         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
8680         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
8681         not FORCE_{INIT,FINI}_SECTION_ALIGN.
8682         (__do_global_dtors_aux): Mark used.
8683         (frame_dummy, __do_global_ctors_aux): Mark used.
8684         (fini_dummy, init_dummy): Remove.
8686         * config/alpha/crtbegin.asm: Remove file.
8687         * config/alpha/crtend.asm: Remove file.
8688         * config/alpha/t-crtbe: Remove file.
8689         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
8690         (LINK_EH_SPEC): New.
8692         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
8693         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
8694         calling constructors.
8695         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
8697         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
8698         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
8699         CRT_END_INIT_DUMMY hack.
8700         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
8701         FORCE_{INIT,FINI}_SECTION_ALIGN.
8703         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
8704         FORCE_{INIT,FINI}_SECTION_ALIGN.
8706         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
8707         invocation sequence.
8708         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
8710         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
8711         (FORCE_CODE_SECTION_ALIGN): New.
8713 2002-01-26  Richard Henderson  <rth@redhat.com>
8715         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
8717 2002-01-26  Richard Henderson  <rth@redhat.com>
8719         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
8720         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
8722 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8724         * config/h8300/h8300.md: Remove bit extraction patterns that
8725         cannot be triggered.
8726         Restrict each bit extraction pattern to a variant on which the
8727         pattern is tested.
8729 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
8731         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
8733 2002-01-26  Kazu Hirata  <kazu@hxi.com>
8735         * config/h8300/h8300.md: Remove bit test patterns that cannot
8736         be triggered.
8737         Restrict each bit test pattern to a variant on which the
8738         pattern is tested.
8740 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8742         * builtins.c (expand_builtin_strncat): Remove redundant check for
8743         INTEGER_CST.
8745 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8747         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
8748         default setting.
8749         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
8750         existing setting.
8752 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8754         * dbxout.c (dbxout_init): Use assemble_name rather than just
8755         stripping off the first character.
8756         (dbxout_source_file): Likewise.
8758 2002-01-25  DJ Delorie  <dj@redhat.com>
8760         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
8761         using rtx_equal_p, not by comparing pointers.
8763 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
8765         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
8766         for PIC_OFFSET_TABLE_REGNUM.
8767         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
8769 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
8771         * config.gcc (x86_64-*-freebsd*): New target.
8772         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
8773         value.
8774         (i[34567]86-*-freebsd*): Don't include svr4.h.
8775         * config/i386/freebsd64.h: New file.
8777 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
8779         * config/alpha/x-vms (version): Make static.
8781         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
8782         in previous checkin.
8784         * Makefile.in (install-headers-cp): New target.
8785         * config.gcc (alpha-dec-*vms*): Install headers with
8786         install-headers-cp
8788 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
8790         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
8791         avoid it's copies.
8793 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8795         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
8796         of compare_tree_int.
8797         (expand_builtin_strncat): Likewise.
8798         * c-decl.c (finish_struct): Use tree_low_cst.
8799         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
8800         * tree.c (compare_tree_int): Likewise.
8802 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
8804         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
8805         adjustments even if they are implemented by more than two insns.
8807 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
8809         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
8810         * df.h (struct ref): Kill B.
8811         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
8813         * basic-block.h (PROP_EQUAL_NOTES): New flag.
8814         * flow.c (propagate_one_insn): Use it.
8815         (mark_used_regs): Handle NIL.
8817 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
8819         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
8820         to help folding.
8822 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
8824         * rs6000.md (prefetch): Make address V4SI mode so that the address
8825         is restricted to legitimate form for instruction.
8827 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
8829         * doc/install.texi (xtensa-*-elf): New target.
8830         (xtensa-*-linux*): New target.
8831         * doc/contrib.texi: Add myself.
8833 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
8835         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
8836         purpose register to hold an SImode (or smaller) value.
8838 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
8840         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
8841         registry only.
8842         * crtstuff.c: Likewise.
8844 2002-01-25  Kazu Hirata  <kazu@hxi.com>
8846         * config/h8300/h8300.md (negation patterns): Tighten
8847         predicates to register_operand.
8849 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
8851         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
8852         mode, not Pmode.
8854         * builtins.c (expand_builtin_prefetch): Same.
8856 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8858         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
8859         modes.
8861 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8863         * config/h8300/h8300.c (print_operand): Remove support for
8864         operand character 'A'.
8865         * config/h8300/h8300.md (three anonymous patterns): Replace
8866         operand character 'A' with either 'T' or 'S'.
8868 2002-01-24  Kazu Hirata  <kazu@hxi.com>
8870         * config/h8300/h8300.c (print_operand): Remove support for
8871         operand character 'U'.
8873 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
8875         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
8877 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
8879         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
8880         values to be assigned to the stack pointer.
8882 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8884         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
8885         to const_double needs to be done right for big-endian systems.
8887 2002-01-24  Jason Merrill  <jason@redhat.com>
8889         PR c++/2432
8890         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
8891         to can_throw_internal.
8893 2002-01-23  Richard Henderson  <rth@redhat.com>
8895         * fold-const.c (fold): Change UINT_MAX test to check vs precision
8896         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
8898 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8900         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
8901         (symGOT2reg): Use them, then set as GOT value as unchanging.
8902         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
8903         as a temporary, if possible.
8904         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
8905         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
8907 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8909         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
8910         accept to accept 0x80 as operands[2].
8912 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
8914         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
8916 2002-01-23  Richard Henderson  <rth@redhat.com>
8918         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
8920 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
8922         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
8923         (parmlist_or_identifiers_1): Verify that only a parmlist follows
8924         an attribute.
8926 2002-01-23  Richard Henderson  <rth@redhat.com>
8928         * expr.c (move_by_pieces_1): Extend size before negation.
8930         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
8931         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
8932         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
8933         * config/m68k/t-m68kelf: Likewise.
8935 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
8937         * config/xtensa/elf.h: New file.
8938         * config/xtensa/lib1funcs.asm: New file.
8939         * config/xtensa/lib2funcs.S: New file.
8940         * config/xtensa/linux.h: New file.
8941         * config/xtensa/t-xtensa: New file.
8942         * config/xtensa/xtensa-config.h: New file.
8943         * config/xtensa/xtensa-protos.h: New file.
8944         * config/xtensa/xtensa.c: New file.
8945         * config/xtensa/xtensa.h: New file.
8946         * config/xtensa/xtensa.md: New file.
8947         * config.gcc (xtensa-*-elf*): New target.
8948         (xtensa-*-linux*): New target.
8949         * cse.c (canon_hash): Compare rtx pointers instead of register
8950         numbers.  This is required for the Xtensa port.
8951         * integrate.c (copy_insn_list): Handle case where the static
8952         chain is in memory and the memory address has to be copied to
8953         a register.
8954         * doc/invoke.texi (Option Summary): Add Xtensa options.
8955         (Xtensa Options): New node.
8956         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
8958 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8960         * diagnostic.c (internal_error): Do ICE suppression only
8961         when ENABLE_CHECKING is not defined.
8963         * c-typeck.c (require_complete_type): Return error_mark_node
8964         if type is error_mark_node.
8966 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
8968         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
8969         -Os and issue a warning.
8971 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
8973         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
8974         current (lack of) need for host configuration by hand.
8976         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
8977         references.  Documentation of some target macros moved from
8978         hostconfig.texi to tm.texi.
8980 2002-01-23  Will Cohen  <wcohen@redhat.com>
8982         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
8983         defined.
8985 2002-01-23  Kazu Hirata  <kazu@hxi.com>
8987         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
8988         operand[3].
8990 2002-01-23  Jason Merrill  <jason@redhat.com>
8992         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
8994         * function.c (assign_parms): Don't put args of inline functions
8995         into registers when not optimizing.
8997 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
8999         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
9000         (prologue_use): New pattern.
9001         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
9002         preference to gen_rtx_USE.
9003         (thumb_expand_prologue): Use gen_prologue_use in preference to
9004         gen_rtx_USE.
9005         (thumb_expand_epilogue): Use gen_prologue_use in preference to
9006         gen_rtx_USE.
9008 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
9010         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
9012 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
9014         PR c/3504
9015         * doc/extend.texi: Correct documentation of __alignof__.
9017 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
9019         * params.h: Rename arguments of DEFPARAM so that it will be
9020         recognized as a translation keyword.
9022 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9024         * extend.texi: Document altivec functions.
9025         Fix N-bit adjectives in X86 builtin documentation.
9027 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
9029         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
9030         auto_inc_dec values.
9032 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
9034         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
9035         after backslash.
9036         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
9038 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
9040         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
9042 2002-01-22  Richard Henderson  <rth@redhat.com>
9044         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
9045         copy_insn not copy_rtx.
9047 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
9049         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
9050         "nonzero" as that might add "1" bits.  Ensure "constop" is
9051         properly sign extened.
9052         (force_to_mode): Tweak for sign extended constop.
9054 2002-01-22  Richard Henderson  <rth@redhat.com>
9056         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
9057         for_each_rtx instead of assuming we're already looking at the MEM.
9058         (split_small_symbolic_mem_operand): Likewise.
9059         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9060         * config/alpha/alpha.md (small symbolic memory splitters): Update.
9062 2002-01-22  Richard Henderson  <rth@redhat.com>
9064         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
9065         sequence number for the literal.
9066         (divmoddi_internal_er): Likewise.
9068 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9070         PR java/4972
9071         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
9072         in LIBICONV variable.
9073         * configure: Regenerated.
9075 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
9077         * dependence.c (build_def_use): Remove array_idx.
9079         * dwarfout.c (last_filename): Remove.
9080         (output_compile_unit_die): Remove last_filename.
9082 2002-01-22  Roger Sayle  <roger@eyesopen.com>
9083             Richard Henderson  <rth@redhat.com>
9085         PR opt/3640
9086         * fold-const.c (fold): Optimize unsigned comparisons against
9087         UINT_MAX (and similar unsigned constants).
9089 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
9091         * Makefile.in (loop.o): Depend on OPTABS_H.
9092         * loop.c (emit_prefetch_instructions): Check the prefetch operand
9093         against the predicate.
9095         PR target/5379
9096         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
9097         for the address operand.
9099 2002-01-22  Richard Henderson  <rth@redhat.com>
9101         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
9103 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9105         PR other/5450
9106         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
9107         preprocessor flags.
9109 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
9111         * config.gcc (x86_64-*-netbsd*): New target.
9112         * config/i386/netbsd64.h: New file.
9114 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9116         * regrename.c (kill_value): Fix typo.
9118 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
9120         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
9122         * config/rs6000/rs6000.h: Same.
9124         * function.c (instantiate_virtual_regs): Remove
9125         STARTING_FRAME_PHASE.
9126         (assign_stack_local_1): Same.
9127         Calculate frame phase.
9129 2002-01-22  Nick Clifton  <nickc@redhat.com>
9131         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
9132         variable declaration to outer scope in order to simplify
9133         future extensions.
9134         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
9135         arm_hard_regno_mode_ok.
9136         * config/arm/arm-protos.h: Add a prototype for
9137         arm_hard_regno_mode_ok.
9138         * config/arm/arm.c (soft_df_operand): Remove now redundant
9139         check for DImode values using IP_REGNUM.
9140         (nonimmediate_soft_df_operand): Remove now redundant check for
9141         DImode values using IP_REGNUM.
9142         (arm_hard_regno_mode_ok): New function. New check: make sure
9143         that DImode values are not stored in IP_REGNUM.
9145         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
9146         note with a USE.
9147         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
9149 2002-01-22  Jason Merrill  <jason@redhat.com>
9151         * c-semantics.c (genrtl_compound_stmt): Only check nesting
9152         consistency if this COMPOUND_STMT is scoped.
9154 2002-01-22  Kazu Hirata  <kazu@hxi.com>
9156         * predict.c: Fix formatting.
9157         * print-tree.c: Likewise.
9158         * protoize.c: Likewise.
9159         * real.h: Likewise.
9160         * rtl.h: Likewise.
9161         * sbitmap.h: Likewise.
9162         * scan.c: Likewise.
9163         * sched-deps.c: Likewise.
9164         * sched-vis.c: Likewise.
9165         * sdbout.c: Likewise.
9166         * sibcall.c: Likewise.
9167         * ssa.c: Likewise.
9168         * ssa-ccp.c: Likewise.
9169         * ssa-dce.c: Likewise.
9170         * stmt.c: Likewise.
9171         * stor-layout.c: Likewise.
9172         * system.h: Likewise.
9174 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9176         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
9177         if fits in bounds of base type.
9179         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
9180         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
9181         (add_bound_info, default): If can't find a context, make a
9182         SAVE_EXPR.
9183         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
9185 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
9187         * c-typeck.c (parser_build_binary_op): If result from
9188         build_binary_op is ERROR_MARK just return error_mark_node without
9189         further processing.
9191 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
9193         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
9194         Split a.out-specific bits into...
9195         * config/netbsd-aout.h: ...this.
9196         * config/netbsd-elf.h: New file.
9197         * config/alpha/netbsd-elf.h: Remove.
9198         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
9199         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
9200         (STARTFILE_SPEC): Remove redundant definition.
9201         (ENDFILE_SPEC): Likewise.
9202         (LINK_SPEC): Likewise.
9203         (CPP_SPEC): Likewise.
9204         (ASM_SPEC): Likewise.
9205         (LIB_SPEC): Likewise.
9206         (SWITCH_TAKES_ARG): Likewise.
9207         (TARGET_MEM_FUNCTIONS): Likewise.
9208         (CPP_PREDEFINES): Redefine.
9209         (ASM_FINAL_SPEC): Remove redefinition.
9210         (ASM_COMMENT_START): Redefine.
9211         (FUNCTION_PROFILER): Define.
9212         (TARGET_VERSION): Redefine.
9213         Comment and formatting cleanup.
9214         * config/i386/netbsd.h: Include <netbsd-aout.h>.
9215         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
9216         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
9217         big- or little-endian.
9218         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
9219         * config.gcc (*-*-netbsd*): Add definitions common to all
9220         NetBSD configs.
9221         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
9222         gnu_ld definitions.  Add netbsd-elf.h to and remove
9223         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
9224         tmake_file, and don't lose previous tmake_file contents.
9225         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
9226         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
9227         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
9228         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
9229         (mipsel-*-netbsd*): Rename this to...
9230         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
9231         mips/little.h to tm_file for mips*el-*.
9232         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
9233         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
9234         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
9236 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9238         * pa-protos.h (reg_before_reload_operand): New function prototype.
9239         * pa.c (reg_before_reload_operand): New function implementation.
9240         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
9241         contraints to "*m".
9243 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9245         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
9247 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9249         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
9250         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
9251         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
9252         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
9253         (ENDFILE_SPEC): Undefine.
9254         (STARTFILE_SPEC): Redefine for PA.
9256 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9258         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
9260 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
9262         * config.gcc: Add entries to supported PowerPC --with-cpu
9263         types.
9265 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
9267         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
9268         true for 64-bit mode only SSE registers in 32-bit mode.
9270 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9272         * unwind-dw2.c: Fix formatting.
9273         * unwind-dw2-fde.c: Likewise.
9274         * unwind-dw2-fde.h: Likewise.
9275         * unwind-pe.h: Likewise.
9276         * varasm.c: Likewise.
9277         * varray.h: Likewise.
9279 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
9281         Remove workaround for register stack overwrite bug in mmix.
9282         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
9283         support for TARGET_REG_STACK_FILL_BUG.
9284         * config/mmix/mmix.h: Remove member has_call_without_parameters.
9285         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
9286         Delete.
9287         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
9288         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
9289         -mno-reg-stack-fill-bug-workaround.
9290         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
9291         machine member has_call_without_parameters.
9292         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
9293         -mreg-stack-fill-bug-workaround and
9294         -mno-reg-stack-fill-bug-workaround.
9295         (MMIX Options): Ditto.
9297 2002-01-21  Kazu Hirata  <kazu@hxi.com>
9299         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
9300         as appropriate.
9301         Remove redundant code.
9303 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9305         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
9306         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
9307         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
9308         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
9309         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
9310         out target macro definitions and non-target-specific comments
9311         mostly taken from old versions of the manual.
9313 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9315         * config/h8300/h8300.h: Fix comment formatting.
9316         * config/ia64/aix.h: Likewise.
9317         * config/ia64/ia64-protos.h: Likewise.
9318         * config/ia64/ia64.c: Likewise.
9319         * config/ia64/ia64.h: Likewise.
9320         * config/ia64/ia64intrin.h: Likewise.
9321         * config/ia64/linux.h: Likewise.
9322         * config/ia64/unwind-aix.c: Likewise.
9323         * config/ia64/unwind-ia64.c: Likewise.
9325 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9327         * config/h8300/h8300.c: Revise comments about shift code.
9329 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9331         * config/h8300/h8300.c (function_arg): Update a comment.
9333 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9335         * config/h8300/h8300.md: Update the comments at the beginning
9336         of the file.
9338 2002-01-20  Kazu Hirata  <kazu@hxi.com>
9340         * config/i370/i370.c: Fix comment formatting.
9341         * config/i370/i370.h: Likewise.
9342         * config/i370/i370.md: Likewise.
9343         * config/i370/linux.h: Likewise.
9345 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9347         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
9349         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
9350         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
9351         in incomplete case.
9353 2002-01-20  Graham Stott  <grahams@redhat.com>
9355         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
9357 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9359         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
9361 2002-01-19  Tom Rix  <trix@redhat.com>
9363         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
9365 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
9367         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
9369         * function.c (assign_stack_local_1): Adjust x_frame_offset with
9370         STARTING_FRAME_PHASE.
9371         (STARTING_FRAME_PHASE): New.
9372         (instantiate_virtual_regs): Check saneness of
9373         STARTING_FRAME_PHASE.
9375         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
9377 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
9379         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
9381 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9383         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
9384         be used for bootstrapping GCC 3.0.
9386 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9388         * config/h8300/h8300.md: Fix an insn length.
9390 2002-01-18  Kazu Hirata  <kazu@hxi.com>
9392         * bitmap.h: Fix comment formatting.
9393         * combine.c: Likewise.
9394         * cppfiles.c: Likewise.
9395         * c-pragma.h: Likewise.
9396         * c-typeck.c: Likewise.
9397         * df.c: Likewise.
9398         * dwarf2out.c: Likewise.
9399         * function.c: Likewise.
9400         * gcc.c: Likewise.
9401         * genattrtab.c: Likewise.
9402         * gthr-win32.h: Likewise.
9403         * haifa-sched.c: Likewise.
9404         * predict.c: Likewise.
9405         * rtlanal.c: Likewise.
9406         * rtl.h: Likewise.
9407         * unwind-dw2-fde.h: Likewise.
9408         * unwind-pe.h: Likewise.
9409         * vmsdbgout.c: Likewise.
9411 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9413         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
9414         if type_required and passed decl.
9416 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
9418         * config.gcc (cpu_type): Include altivec.h in powerpc
9419         extra_headers.
9420         Same for darwin.
9422         * config/rs6000/altivec.h: New.
9424 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
9426         * doc/install.texi (*-ibm-aix*): Update assembler and exception
9427         handling information.
9428         * doc/trouble.texi (Interoperation): Add libstdc++ information
9429         for AIX.
9430         (Misunderstandings): Add template instantiation and static template
9431         member information for AIX.
9433 2002-01-17  Jason Merrill  <jason@redhat.com>
9435         * dbxout.c (dbxout_type): Support const and volatile.
9437         * except.c (add_partial_entry): Remove backwards compatibility code.
9438         (end_protect_partials): Likewise.
9440 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
9442         * config/ia64/ia64.md (prologue_use): New.
9443         * config/ia64/ia64.c (ia64_expand_prologue): Use
9444         gen_prologue_use instead of gen_rtx_USE.
9445         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
9446         as CODE_FOR_pred_rel_mutex.
9447         (ia64_sched_reorder2): Likewise.
9449 2002-01-16  Eric Christopher  <echristo@redhat.com>
9451         * config/mips/r3900.h: Reformat.
9452         (SUBTARGET_CPP_SIZE_SPEC): Remove.
9453         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
9454         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
9455         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
9456         * config/mips/t-elf: Remove mips3 multilib.
9458 2002-01-16  H.J. Lu <hjl@gnu.org>
9460         * config/mips/linux.h: Include "mips/abi64.h".
9462 2002-01-16  H.J. Lu <hjl@gnu.org>
9464         * config/mips/t-linux: New.
9466         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
9468         * config/mips/linux.h: Don't include "gofast.h".
9469         (INIT_SUBTARGET_OPTABS): Removed.
9471 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9473         * config/h8300/h8300-protos.h: Replace emit_a_shift with
9474         output_a_shift.
9475         * config/h8300/h8300.c: Likewise.
9476         * config/h8300/h8300.md: Likewise.
9478 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9480         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
9481         spaces after an opcode name.
9482         (pushqi1_h8300hs): Likewise.
9483         (pushhi1_h8300hs): Likewise.
9485 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9487         * doc/extend.texi: Replace "option" with "attribute"
9488         appropriately.
9490 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9492         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
9493         (and:DI () (const_int -8)).
9494         (split_small_symbolic_mem_operand): Split
9495         (mem (and:DI () (const_int -8)).
9497 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9499         PR target/5309:
9500         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
9501         same way as TYPE_IMUL.
9502         (ultrasparc_sched_reorder): Likewise.
9503         * config/sparc/sparc.md (type): Add comment to update
9504         ultrasparc_sched_reorder when making changes.
9506 2002-01-16  Kazu Hirata  <kazu@hxi.com>
9508         * doc/invoke.texi: Change the dump file name of block
9509         reordering pass from 28.bbro to 29.bbro.
9510         Mention -dk option.
9512 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9514         * i386.md (minsf splitter): Fix pasto.
9516 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9518         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
9519         to frame pointer initialisation instruction.
9520         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
9521         initialisation instruction.
9522         (soft_df_operand): Do not accept the IP register.
9523         (nonimmediate_soft_df_operand): Do not accept the IP register.
9525 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
9527         PR target/5357:
9528         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
9529         MASK_V8 being both set.
9531 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
9533         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
9534         insn for GOT register; add REG_MAYBE_DEAD notes instead.
9535         config/s390/s390.md (call, call_value): Add GOT register to
9536         CALL_INSN_FUNCTION_USAGE where needed.
9537         (call_exp, call_value_exp): New.
9539 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
9541         * config/arm/arm.c: General formatting tidy up.
9543 2002-01-16  Graham Stott  <grahams@redhat.com>
9545         * calls.c (try_to_integrate): Use "(size_t)" intermediate
9546         cast and when casting an integer literal to "rtx" pointer.
9547         (expand_call): Likewise.
9548         * flow.c (try_pre_increment): Likewise.
9549         (find_use_as_address): Likewise.
9550         * integrate.c (expand_iline_function): Likewise.
9551         * regmove.c (try_auto_increment): Likewise.
9553 2002-01-16  Graham Stott  <grahams@redhat.com>
9555         * sched-rgn.c (passed): Use sbitmap_free.
9556         (header): Likewise.
9557         (inner): Likewise.
9558         (in_queue): Likewise.
9559         (in_stack): Likewise.
9561 2002-01-15  Eric Christopher  <echristo@redhat.com>
9563         * flow.c (propagate_one_insn): Change to use fatal_insn.
9565 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9567         * expmed.c (extract_fixed_bit_field): Remove unused code.
9568         * system.h: Poison SLOW_ZERO_EXTEND.
9569         * doc/tm.texi: Remove.
9570         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
9571         * config/arm/arm.h: Likewise.
9572         * config/avr/avr.h: Likewise.
9573         * config/clipper/clipper.h: Likewise.
9574         * config/convex/convex.h: Likewise.
9575         * config/d30v/d30v.h: Likewise.
9576         * config/dsp16xx/dsp16xx.h: Likewise.
9577         * config/elxsi/elxsi.h: Likewise.
9578         * config/fr30/fr30.h: Likewise.
9579         * config/h8300/h8300.h: Likewise.
9580         * config/i370/i370.h: Likewise.
9581         * config/i386/i386.h: Likewise.
9582         * config/m68k/m68k.h: Likewise.
9583         * config/mips/mips.h: Likewise.
9584         * config/ns32k/ns32k.h: Likewise.
9585         * config/pdp11/pdp11.h: Likewise.
9586         * config/pj/pj.h: Likewise.
9587         * config/s390/s390.h: Likewise.
9588         * config/sh/sh.h: Likewise.
9589         * config/stormy16/stormy16.h: Likewise.
9590         * config/v850/v850.h: Likewise.
9591         * config/vax/vax.h: Likewise.
9592         * config/we32k/we32k.h: Likewise.
9594 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9596         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
9597         (altivec_lvsl): Change constraint to b.
9598         (altivec_lvsr): Same.
9599         (altivec_lvebx): Same.
9600         (altivec_lvehx): Same.
9601         (altivec_lvewx): Same.
9602         (altivec_lvxl): Same.
9603         (altivec_lvx): Same.
9604         (altivec_stvx): Add parallel.
9605         (altivec_stvxl): Same.
9606         (altivec_stvehx): Same.
9607         (altivec_stvebx): Same.
9608         (altivec_stvebx): Same.
9610 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
9612         * config.gcc: Change altivec.h to altivec-defs.h.
9614         * config/rs6000/altivec.h: Delete.
9616         * config/rs6000/altivec-defs.h: Add.
9618 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9620         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
9621         and UMOD modes.
9623         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
9624         less than or equal to eight bytes.
9626         * vax.md (andsi3): Remove constraints and change SET destination
9627         operand type to nonimmediate_operand.
9628         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
9629         when it is a CONST_INT.
9631 2002-01-15  Jason Merrill  <jason@redhat.com>
9633         * c-common.def (FILE_STMT): New code.
9634         * c-common.c (statement_code_p): It's a statement.
9635         * c-common.h (stmt_tree_s): Add x_last_filename.
9636         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
9637         (last_expr_filename): New macro.
9638         * c-semantics.c (begin_stmt_tree): Initialize it.
9639         (add_stmt): If the filename changed, also insert a
9640         FILE_STMT.
9641         (expand_stmt): Handle seeing one.
9643 2002-01-15  Eric Christopher  <echristo@redhat.com>
9645         * flow.c (propagate_one_insn): Add error message and print out
9646         insn for debugging.
9648 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9650         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
9651         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
9652         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
9653         TRAMPOLINE_ALIGNMENT.
9654         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
9655         to be in bits.
9656         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
9657         PCC_BITFIELD_TYPE_MATTERS.
9658         * config/interix.h (STDC_VALUE): Remove.  Use
9659         STDC_0_IN_SYSTEM_HEADERS.
9660         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
9661         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
9662         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
9664 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9666         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
9667         not work on this platform currently.
9669 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
9671         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
9672         readonly_warning in _().
9674 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
9676         * gcc.c (delete_if_ordinary): Backout previous change.
9678 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9680         * config/h8300/h8300.c (print_operand): Remove support for
9681         unused operand characters.
9683         * read-rtl.c: Fix formatting.
9684         * real.c: Likewise.
9685         * recog.c: Likewise.
9686         * regclass.c: Likewise.
9687         * regmove.c: Likewise.
9688         * reg-stack.c: Likewise.
9689         * reload1.c: Likewise.
9690         * rtlanal.c: Likewise.
9692 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9694         * config/i386/i386.c: Fix formatting.
9696 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
9698         * c-typeck.c (process_init_element): Don't save_expr
9699         COMPOUND_LITERAL_EXPR if just its initializer will be used.
9701 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
9703         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
9704         emit optional traceback table if optimize_size or TARGET_ELF.
9705         * config/rs6000/rs6000.md (prefetch): New.
9707 2002-01-15  Andreas Jaeger  <aj@suse.de>
9709         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
9711 2002-01-15  Kazu Hirata  <kazu@hxi.com>
9713         * mips-tfile.c: Fix formatting.
9715 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9717         * unroll.c (final_reg_note_copy): Fix previous commit.
9719 2002-01-14  Kazu Hirata  <kazu@hxi.com>
9721         * config/h8300/h8300-protos.h: Remove the prototype for
9722         eq_operator.
9723         * config/h8300/h8300.c (eq_operator): Remove.
9725 2002-01-14  Richard Henderson  <rth@redhat.com>
9727         * config/i386/i386.md (prefetch): Tidy.
9728         (prefetch_3dnow): Fix locality operand.
9730 2002-01-14  Richard Henderson  <rth@redhat.com>
9732         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
9733         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
9735 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
9737         * reload1.c (reload_combine): Pass reg_sum replacement through
9738         copy_rtx in loop performing multiple changes.
9740 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
9742         * except.c (remove_unreachable_regions): New.
9743         (free_eh_status): Clear exception_handler_labels.
9744         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
9745         (find_exception_handler_labels): Don't add the same label more than
9746         once.
9747         (remove_exception_handler_label): Don't die if
9748         find_exception_handler_labels hasn't been called for the current
9749         function yet.
9751 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9753         * toplev.c (rest_of_compilation): Rebuild jump labels after
9754         gcse.
9756 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
9758         * doc/extend.texi: Move documentation of X86 built-in functions
9759         here.
9760         * doc/invoke.texi: From here.
9761         * doc/sourcebuild.texi: Document location of documentation for
9762         machine built-in functions.
9764 2002-01-13  Christopher Faylor  <cgf@redhat.com>
9766         * cppfiles.c (TEST_THRESHOLD): New macro.
9767         (SHOULD_MMAP): Ditto.
9768         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
9769         be used.
9771 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9773         * unroll.c (final_reg_note_copy): Properly handle
9774         REG_LABEL
9775         (unroll_loops): Fix LOOP_CONDITION heuristics.
9777 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
9779         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
9780         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
9782 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9784         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
9785         threaded loop.
9787 2002-01-14  Tom Rix  <trix@redhat.com>
9789         * config/rs6000/rs6000.md: Fix typo with sradi.
9791 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
9793         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
9794         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
9795         (clrstrdi, clrstrsi): Adapt callers.
9797         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
9799         (movti splitter): Never use register 0 as base register.
9801 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9803         * combine.c (simplify_shift_const): Always generate new rtx
9804         for shift expression instead of reusing given expression.
9806 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9808         * config/alpha/alpha.c (alpha_expand_mov): Don't call
9809         alpha_legitimize_address unless mode is Pmode.
9811 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
9813         * doc/md.texi (Modifiers): Document the '*' constraint for the
9814         user.
9816         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
9817         * doc/extend.texi (Function Attributes): 'interrupt' is valid
9818         for xstormy16 too.
9820 2002-01-13  Richard Henderson  <rth@redhat.com>
9822         * reload.c (find_reloads): Use a hard reg destination as reload reg
9823         for an input reload of the source.
9825 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9827         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
9828         more generic.
9830 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
9832         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9833         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
9835         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
9837 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9839         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
9841 2002-01-12  Tom Rix  <trix@redhat.com>
9843         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
9844         TARGET_POWERPC64.
9846 2002-01-12  Richard Henderson  <rth@redhat.com>
9848         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
9850         * doc/invoke.texi: Update Alpha options.
9852         * doc/invoke.texi: Update i386 built-in function lists.
9854 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
9856         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
9857         referencing outside.
9859 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9861         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
9862         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
9863         offsets, and change line folding.
9864         * optabs.c (expand_binop): Remove warnings.
9865         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
9867 2002-01-12  Graham Stott <grahams@redhat.com>
9869         * attribs.c (handle_deprecated_attribute): constify WHAT.
9870         * diagnostic.c (warn_deprecated_use): Add braces, fixes
9871         dangling else warning and constify WHAT.
9872         * except.h (struct function, struct inline_remap): Move
9873         struct tag forward defs before all prototypes.
9874         (duplicate_eh_regions): Whitespace.
9876 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
9878         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9879         MODE_BASE_REG_CLASS.
9880         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
9882 2002-01-12  Richard Henderson  <rth@redhat.com>
9884         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
9885         (ix86_expand_vector_move): New.
9886         (bdesc_2arg): Remove andps, andnps, orps, xorps.
9887         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
9888         Remove old prefetch builtins.  Special case the logicals removed above.
9889         (ix86_expand_builtin): Likewise.
9890         (safe_vector_operand): Use V4SFmode, not TImode.
9891         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
9892         (ix86_expand_timode_binop_builtin): New.
9893         * config/i386/i386-protos.h: Update.
9894         * config/i386/i386.h (enum ix86_builtins): Update.
9895         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
9896         Use ix86_expand_vector_move in vector move expanders.
9897         (movti_internal, movti_rex64): Add xorps alternative.
9898         (sse_clrv4sf): Rename and adjust from sse_clrti.
9899         (prefetch): Don't work so hard.
9900         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
9901         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
9902         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
9904 2002-01-11  Richard Henderson  <rth@redhat.com>
9906         * config/i386/mmintrin.h: New file.
9907         * config/i386/xmmintrin.h: New file.
9908         * config.gcc (i?86-*-*): Add extra_headers.
9909         * simplify-rtx.c (simplify_unary_operation): Handle saturating
9910         truncation codes.
9911         (simplify_binary_operation): Handle saturating arithmetic codes.
9912         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
9913         not the lowpart subreg.
9914         (ix86_expand_builtin): Return a TImode dummy register instead of 0
9915         on error.
9916         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
9918 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9920         * conflict.c (conflict_graph_compute): Free regsets when finished.
9921         * ssa.c (compute_coalesced_reg_partition): Likewise.
9923 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9925         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
9926         every where we allocate a register.
9928 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9930         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
9931         * lcm.c (compute_earliest, compute_farthest): Likewise.
9933 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9935         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
9937 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
9939         * doc/rtl.texi (Insns): Fix 2 typos.
9941 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
9943         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
9944         options.  Use @table @gcctabopt for MMIX options.  Add index
9945         entries for MMIX options.  Start new paragraph with first
9946         heading of the machine-dependent options.
9948 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9950         PR other/5299
9951         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
9952         * combine.c (force_to_mode): Same.
9953         * reload1.c (clear_reload_reg_in_use): Same.
9955 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
9957         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
9958         and 'subtargets'.
9960 2002-01-11  Andreas Jaeger  <aj@suse.de>,
9961             Brad Lucier <lucier@math.purdue.edu>
9963         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
9964         mcpu.
9966 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
9968         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
9969         Protect with IN_LIBGCC.
9970         (LINK_EH_SPEC): Add required trailing space.
9972 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9974         * c-tree.h: Move function declarations so that they are listed
9975         under the filename which contains them.
9976         (check_identifier, finish_decl_top_level,
9977         lookup_name_current_level_global, shadow_record_fields): Remove.
9979 2002-01-11  Andreas Jaeger  <aj@suse.de>
9981         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
9982         march.
9984 2002-01-10  Richard Henderson  <rth@redhat.com>
9986         * config/alpha/alpha.c (print_operand): Add 'J'.
9987         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
9988         new operand with the sequence number for the lituse.  When splitting
9989         the insns, use gen_movdi_er_high_g and generate a sequence number.
9990         (gen_movdi_er_high_g): Print the sequence number if non-zero.
9992 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
9994         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
9995         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
9996         stvxl.
9997         (altivec_expand_builtin): Same.
9998         (altivec_expand_stv_builtin): New.
10000         * config/rs6000/rs6000.h (rs6000_builtins): Same.
10002         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
10003         ("altivec_lvehx"): New.
10004         ("altivec_lvewx"): New.
10005         ("altivec_lvxl"): New.
10006         ("altivec_lvx"): New.
10007         ("altivec_stvx"): New.
10008         ("altivec_stvebx"): New.
10009         ("altivec_stvehx"): New.
10010         ("altivec_stvewx"): New.
10011         ("altivec_stvxl"): New.
10013 2002-01-10  Richard Henderson  <rth@redhat.com>
10015         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
10016         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
10017         care not to delete instructions twice.
10019 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
10021         * toplev.c: Don't declare environ (it's not used anywhere).
10022         * configure.in: Don't check for declaration of environ.
10023         * config/i386/xm-mingw32.h: Don't #define environ.
10024         * config.in, configure: Regenerate.
10026 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
10028         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
10029         * configure: Regenerate.
10031         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
10032         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
10033         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
10034         alpha/xm-vms.h.
10035         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
10036         LIMITS_H_TEST here, not in m68k/x-next.
10037         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
10038         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
10040         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
10041         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
10042         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
10044         * config/i386/x-djgpp: Renamed i386/t-djgpp.
10045         * config/m88k/x-dolph: Renamed m88k/t-dolph.
10046         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
10047         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
10048         replacement of quadlib.asm with quadlib.c.
10050         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
10051         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
10052         config/rs6000/xm-beos.h: Delete file.
10054         * config.gcc: Update to match above changes.
10056 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10058         * config/h8300/h8300.h: Fix comment typos.
10059         * config/h8300/h8300.md: Likewise.
10060         * config/h8300/lib1funcs.asm: Likewise.
10062 2002-01-10  Dale Johannesen  <dalej@apple.com>
10064         PR optimization/5269
10065         * unroll.c (precondition_loop_p): Make *increment be the correct
10066         sign when n_iterations known, to avoid confusing caller.
10068 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10070         * doc/extend.texi (deprecated): Fix a typo.
10072 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10074         * basic-block.h (update_br_prob_note): Declare.
10075         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
10076         (try_forward_edges): Care negative frequencies and update note.
10077         (outgoing_edges_match): Tweek conditional merging heuristics.
10078         (try_crossjump_to_edge): use update_br_prob_note.
10079         * cfglayout.c (fixup_reorder_chain): Likewise.
10080         * cfrtl.c (update_br_prob_note): New.
10081         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
10083         * i386.c (ix86_decompose_address): Return -1 if address contains
10084         shift.
10085         (legitimate_address_p): Require ix86_decompose_address to return 1.
10087         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
10088         (cprop_insn): Likewise.
10090 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10092         * toplev.c: Fix formatting.
10093         * tree.c: Likewise.
10094         * tree-dump.c: Likewise.
10095         * unroll.c: Likewise.
10096         * unwind-dw2.c: Likewise.
10097         * unwind-dw2-fde.c: Likewise.
10098         * unwind-dw2-fde-glibc.c: Likewise.
10099         * unwind-sjlj.c: Likewise.
10101 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10103         * doc/invoke.texi: Document PDP-11 options.
10105 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10107         * config/h8300/h8300.h: Fix formatting.
10109 2002-01-10  Ira Ruben   <ira@apple.com>
10111         Add __attribute__ ((deprecated)).
10112         * extend.texi: Document __attribute__ ((deprecated)).
10113         * invoke.texi: Document -Wno-deprecated-declarations.
10114         * testsuite/g++.dg/other/deprecated.C: New C++ test.
10115         * testsuite/gcc.dg/deprecated.c: New C test.
10116         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
10117         (c_common_attribute_table): Add "deprecated" entry.
10118         (handle_deprecated_attribute): New function.
10119         * c-decl.c (deprecated_states): New enum.
10120         deprecated_state: State of "deprecated" handling.
10121         (start_decl): Set deprecated_state based on attributes.
10122         (grokdeclarator): Test for deprecated uses, propagate attribute.
10123         * c-typeck.c (build_component_ref): Test for deprecated fields.
10124         (build_external_ref): Test for deprecated primaries.
10125         * diagnostic.c (warn_deprecated_use) New function to issue
10126         warnings about __attribute__ ((depricated)) references.
10127         * flags.h (warn_deprecated_decl): Extern declared for
10128         -W[no-]deprecated-declarations option.
10129         * print-tree.c (print_node): Show deprecated flag status.
10130         * toplev.c (warn_deprecated_decl): Defined.
10131         (W_options): Added "deprecated-declaration".
10132         * toplev.h (warn_deprecated_use): Extern declared.
10133         * tree.h (struct tree_common): Define deprecated_flag.
10134         (TREE_DEPRECATED): New macro to access flag.
10135         * cp/call.c (build_call): Test for deprecated calls.
10136         * cp/class.c (add_implicitly_declared_members): Set global
10137         flag to tell grokdeclarator to not issue deprecated warnings.
10138         * cp/cp-tree.h: Add extern for adding_implicit_members.
10139         * cp/decl.c (deprecated_states): New enum.
10140         (start_decl): Set deprecated_state based on attributes.
10141         (grokdeclarator): Test for deprecated uses, propagate attribute.
10142         * cp/lex.c (do_identifier): Test for deprecated primaries.
10143         * cp/typeck.c (build_component_ref): Test for deprecated fields.
10145 2002-01-10  Ira Ruben   <ira@apple.com>
10147         Fix to assign attributes to inline member functions.
10148         * cp/decl.c (start_method): Handle attrlist.
10150 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10152         * combine.c (expand_field_assignment): Use subreg_lsb().
10154 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
10156         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
10157         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
10158         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
10159         Recurse for any operand of AND as long as constant is non-zero.
10161 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10163         * config/h8300/h8300.md: Remove constraints from expanders.
10165 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10167         * varasm.c: Fix formatting.
10168         * varray.c: Likewise.
10169         * vmsdbgout.c: Likewise.
10170         * xcoffout.c: Likewise.
10172 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10174         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
10175         update edge probabilities to match.
10177 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
10179         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
10180         dependencies.
10181         * doc/languages.texi, doc/sourcebuild.texi: New files.
10182         * doc/configfiles.texi: Make a subsubsection.  Update.
10183         * doc/configterms.texi: Add @node.  Remove warning that this isn't
10184         instructions for building GCC.
10185         * doc/makefile.texi: Make a subsection.
10186         * doc/gccint.texi: Update.
10188 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10190         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
10192 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
10194         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
10196 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
10198         * optabs.c (expand_fix): Look for wider integer modes first.
10200         * i386.md (mov?f): Avoid the fake const double trick for medium
10201         memory model.
10202         (min?f*/max?f*): Prohibit memory operands for i387 variant.
10203         (fop_df_4): Disable for SSE compilation.
10205 2002-01-10  Graham Stott  <grahams@redhat.com>
10207         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
10208         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
10210 2002-01-10  Richard Henderson  <rth@redhat.com>
10212         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
10214 2002-01-10  Richard Henderson  <rth@redhat.com>
10216         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
10217         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
10219 2002-01-10  Kazu Hirata  <kazu@hxi.com>
10221         * combine.c (can_combine_p): Fix a comment typo.
10223 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
10225         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
10226         empty list correctly.  Change loop index $t to $f for
10227         consistency with rest of Makefile.
10229 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
10231         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
10232         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10234         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
10235         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
10236         (altivec_init_builtins): Same.
10237         (altivec_expand_unop_builtin): Return NULL_RTX on error.
10238         (altivec_expand_binop_builtin): Same.
10239         (altivec_expand_ternop_builtin): Same.
10240         (bdesc_dst): New.
10242         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
10243         ("altivec_vctuxs"): Fix typo.
10244         ("altivec_vnmsubfp"): Same.
10245         ("altivec_dssall"): New.
10246         ("altivec_mfvscr"): New.
10247         ("altivec_dss"): New.
10248         ("altivec_lvsl"): New.
10249         ("altivec_lvsr"): New.
10250         ("altivec_dstt"): New.
10251         ("altivec_dstst"): New.
10252         ("altivec_dststt"): New.
10253         ("altivec_dst"): New.
10255         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
10256         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
10258 2002-01-09  Richard Henderson  <rth@redhat.com>
10260         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
10262 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
10264         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
10265         function.
10266         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
10267         prototype.
10268         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
10270 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10272         * read-rtl.c: Fix formatting.
10273         * real.c: Likewise.
10274         * regclass.c: Likewise.
10275         * regrename.c: Likewise.
10276         * reg-stack.c: Likewise.
10277         * reload1.c: Likewise.
10278         * reload.c: Likewise.
10279         * rtl.c: Likewise.
10281 2002-01-09  Kazu Hirata  <kazu@hxi.com>
10283         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
10284         to extract items in the expr_list chain.
10286 2002-01-09  Richard Henderson  <rth@redhat.com>
10288         * config/vax/vax.c (vax_rtx_cost): Never abort.
10290         * config/vax/vax.h (REAL_ARITHMETIC): Define.
10292 2002-01-09  Jan Hubicka  <jh@suse.cz>
10294         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
10296 2002-01-09  Richard Henderson  <rth@redhat.com>
10298         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
10299         Unify code from various alternatives.
10301 2002-01-09  Richard Henderson  <rth@redhat.com>
10303         * regrename.c (copy_value): Ignore the copy if the source register
10304         is present in the value chain with a narrower mode.
10306 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10308         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
10309         for the c4x target. Also improve layout.
10311 2002-01-09  Richard Henderson  <rth@redhat.com>
10313         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
10314         * config/m32r/m32r.md (and ior xor splitters): Swap operands
10315         to match insn patterns.
10317 2002-01-09  Richard Henderson  <rth@redhat.com>
10319         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
10320         (copyprop_hardreg_forward_1): Likewise.
10322 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10324         * pa.md (decrement_and_branch_until_zero): Change predicate for
10325         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
10327 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10329         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
10330         gets undefined. For Darwin.
10332 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10334         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
10336 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10338         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
10340 2002-01-08  Richard Henderson  <rth@redhat.com>
10342         * regrename.c (copy_value): Ignore overlapping copies.
10344 2002-01-08  Richard Henderson  <rth@redhat.com>
10346         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
10347         as needed to avoid shared structure.
10349 2002-01-08  Kazu Hirata  <kazu@hxi.com>
10351         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
10352         H8/300H and H8/S.
10354 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10356         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
10357         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
10358         documentation of obsolete macros.
10359         * system.h: Poison these macros.
10360         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
10361         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
10362         config/c4x/c4x.h, config/clipper/clipper.h,
10363         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
10364         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
10365         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
10366         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
10367         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10368         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10369         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10370         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
10371         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
10372         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10373         config/sparc/sparc.h, config/stormy16/stormy16.h,
10374         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
10375         definitions and commented out definitions of obsolete macros.
10376         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
10377         of MAX_INT_TYPE_SIZE.
10379 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10381         * config/s390/s390.c (s390_preferred_reload_class): Never
10382         return ADDR_REGS if it isn't a subset of the given class.
10383         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
10384         FP_REGS, but all superclasses as well.
10386         * config/s390/s390.c (s390_function_profiler): Fix thinko.
10388         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
10389         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
10390         must not be a const_int.
10392 2002-01-08  Richard Henderson  <rth@redhat.com>
10394         * Makefile.in (toplev.o): Depend on options.h.
10395         (gcc.o): Depend on specs.h.
10397 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
10399         * expr.c (store_expr): Convert VOIDmode constants back to target's
10400         mode.
10402 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10404         * doc/invoke.texi: Markup gcc as @command.  Refer to
10405         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
10406         of http://gcc.gnu.org/thanks.html.
10408 2002-01-08  Dale Johannesen  <dalej@apple.com>
10410         * config/rs6000/rs6000.md: Add missing int register
10411         target case to movdf_low.
10413 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
10415         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
10416         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
10417         (cppinit.o): Depend on except.h.
10418         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
10419         s-specs): New rules.
10421         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
10422         Don't create specs.h/options.h/gencheck.h here.  Remove
10423         unnecessary variable settings from last argument of AC_OUTPUT.
10424         * config.in, configure: Regenerate.
10425         * intl.c: Hardcode package name as "gcc".
10427         * cppinit.c: Include except.h.
10428         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
10429         appropriate.
10430         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
10431         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
10432         (!)USING_SJLJ_EXCEPTIONS.
10433         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
10435 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10437         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
10438         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
10439         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
10440         documentation of obsolete macros.
10441         * system.h: Poison these macros.
10442         * config/d30v/d30v.h, config/ns32k/encore.h,
10443         config/stormy16/stormy16.h: Remove definitions and commented out
10444         definitions of obsolete macros.
10446 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
10448         * objc/objc-act.c (handle_class_ref): Mark the declaration of
10449         %sobjc_class_ref_%s as used - to prevent unwanted compiler
10450         warnings.
10452 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
10454         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
10455         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
10456         to insn adjusting stack/frame pointer.
10457         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
10458         accept operands that cause the insn to be non-splittable.
10460 2002-01-08  Graham Stott  <grahams@redhat.com>
10462         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
10463         (C_TYPE_FIELDS_VOLATILE): Likewise.
10464         (C_TYPE_BEING_DEFINED): Likewise.
10465         (C_IS_RESERVED_WORD): Likewise.
10466         (C_TYPE_VARIABLE_SIZE): Likewise.
10467         (C_DECL_VARIABLE_SIZE): Likewise.
10468         (C_MISSING_PROTOTYPE_WARNED): Likewise.
10469         (C_SET_EXP_ORIGINAL_CODE): Likewise.
10470         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
10471         parenthesis.
10472         (C_DECL_ANTICIPATED): Likewise.
10473         (c_build_type_variant): Add parenthesis.
10475 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
10477         * gcc.c (option_map): Remove --version.
10478         (process_command): Handle -fversion following the GNU Coding
10479         Standards.  Partially addresses PR other/704.
10481 2002-01-08  Graham Stott  <grahams@redhat.com>
10483         * combine.c (combine_instructions): Fix typo.
10485 2002-01-08  Graham Stott  <grahams@redhat.com>
10487         * debug.h: Use "tree" and "rtx" throughout.
10489         * debug.c: Likewise.
10491 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
10493         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
10494         constant pool, use the pool's version of the symbol instead.
10496 2002-01-07  Richard Henderson  <rth@redhat.com>
10498         * regrename.c (find_oldest_value_reg): Ignore the value chain if
10499         the original register was copied in a mode with a fewer number of
10500         hard registers than the desired mode.
10501         (copyprop_hardreg_forward_1): Likewise.
10502         (debug_value_data): Fix loop test.
10503         * toplev.c (parse_options_and_default_flags): Reenable
10504         -fcprop-registers at -O1.
10506 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10508         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
10509         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
10511         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
10512         predicates.
10514         * config/rs6000/rs6000.md: Add altivec predicate patterns.
10516 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10518         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
10519         (pa_output_function_prologue): Output local label at the beginning of
10520         the prologue when profiling.
10521         (hppa_profile_hook): Use the local label rather than the function label.
10522         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
10524 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10526         * config/rs6000/rs6000.c (print_operand): Remove extra space.
10527         (altivec_expand_unop_builtin): Fix thinko.
10528         (altivec_expand_binop_builtin): Same.
10529         (altivec_expand_ternop_builtin): Same.
10530         (altivec_expand_builtin): Same.
10532 2002-01-07  Richard Henderson  <rth@redhat.com>
10534         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
10536 2002-01-07  Jason Merrill  <jason@redhat.com>
10538         * unwind-dw2.c (execute_cfa_program): Use < again.
10540 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10542         * predict.c (combine_predictions_for_insn): Avoid division by zero.
10544 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
10546         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
10547         Don't allow -1 - x -> ~x simplifications in the first pass.
10549 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10551         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
10552         arguments.
10553         (altivec_expand_binop_builtin): Same.
10554         (altivec_expand_unop_builtin): Same.
10555         (print_operand): Fix typo.
10556         (bdesc_1arg): Add vupk* variants.
10558         * rs6000.h (rs6000_builtins): Add vupk* enums.
10560         * rs6000.md: Add altivec_vupk* variants.
10562 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
10564         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
10565         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
10566         and last update dates.
10568 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
10570         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
10572 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10574         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
10575         * config/avr/avr.h (CPP_SPEC): Likewise.
10576         (LINK_SPEC): Likewise.
10577         (CRT_BINUTILS_SPECS): Likewise.
10578         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10579         * doc/invoke.texi (AVR Options): Document them.
10581 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
10583         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
10584         LABEL_NUSES.
10586 2002-01-07  Graham Stott  <grahams@redhat.com>
10588         * config/i386/i386.h: Update copyright date.
10589         (HALF_PIC_PTR): Add parenthesis.
10590         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
10591         (CONSTANT_ALIGNMENT): Add parenthesis.
10592         (DATA_ALIGNMENT): Likewise.
10593         (LOCAL_ALIGNMENT): Likewise.
10594         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
10595         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
10596         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
10597         (HARD_REGNO_NREGS): Add paranethesis.
10598         (VALID_SSE_REG_MODE): Whitespace.
10599         (VALID_MMX_REG_MODE): Whitespace.
10600         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
10601         (ix86_hard_regno_mode_ok): Add parenthesis.
10602         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
10603         (RETURN_IN_MEMORY): Whitespace.
10604         (N_REG_CLASSES): Add parenthesis.
10605         (INTEGER_CLASS_P): Add parenthesis and wrap.
10606         (FLOAT_CLASS_P): Likewise.
10607         (SSE_CLASS_P): Likewise.
10608         (MMX_CLASS_P): Likewise.
10609         (MAYBE_INTEGER_CLASS_P): Likewise.
10610         (MAYBE_FLOAT_CLASS_P): Likewise.
10611         (MAYBE_SSE_CLASS_P): Likewise.
10612         (MAYBE_MMX_CLASS_P): Likewise.
10613         (Q_CLASS_P): Likewise.
10614         (GENERAL_REGNO_P): Uppercase macro parameter.
10615         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
10616         (FP_REGNO_P): Likewise.
10617         (ANY_FP_REGNO_P): Uppercase macro parameter.
10618         (SSE_REGNO_P): Likewise.
10619         (SSE_REGNO): Likewise.
10620         (SSE_REG_P): Likewise.
10621         (SSE_FLOAT_MODE_P): Likewise.
10622         (MMX_REGNO_P): Likewise.
10623         (MMX_REG_P):Likewise.
10624         (STACK_REG_P): Likewise.
10625         (NON_STACK_REG_P): Likewise.
10626         (STACK_TOP_P): Likewise.
10627         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
10628         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
10629         (SECONDARY_MEMORY_NEEDED): Likewise.
10630         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
10631         (MD_ASM_CLOBBERS): Whitespace and wrap.
10632         (MUST_PASS_IN_STACK): Whitespace and wrap.
10633         (RETURN_POPS_ARGS): Add parenthesis.
10634         (INIT_CUMULATIVE_ARGS): Likewise.
10635         (FUNCTION_ARG): Likewise.
10636         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
10637         (SETUP_INCOMING_VARARGS): Likewise.
10638         (BUILD_VA_LIST_TYPE):  Add parenthesis.
10639         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
10640         parenthsis.
10641         (EXPAND_BUILTIN_VA_ARG): Likewise.
10642         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
10643         (INITIALIZE_TRAMPOLINE): Add parenthesis.
10644         (INITIAL_ELIMINATION_OFFSET): Likewise.
10645         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
10646         (REGNO_OK_FOR_BASE_P): Likewise.
10647         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
10648         (REGNO_OK_FOR_DIREG_P): Likewise.
10649         (REG_OK_FOR_INDEX_P): Whitespace.
10650         (REG_OK_FOR_BASE_P): Whitespace.
10651         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
10652         parenthesis.
10653         (FIND_BASE_TERM): Fix typo.
10654         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
10655         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
10656         (SYMBOLIC_CONST; Whitespace.
10657         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
10658         (ENCODE_SECTION_INFO): Whitespace.
10659         (FINALIZE_PIC): Remove do { ... } while (0).
10660         (PROMOTE_MODE): Wrap in do { ... } while (0).
10661         (CONST_COSTS): Whitespace.
10662         (RTX_COSTS): Add paramethesis, whitespace and wrap.
10663         (REGISTER_MOVE_COST): Add parenthesis.
10664         (MEMORY_MOVE_COST): Likewise.
10665         (EXTRA_CC_MODES): Whitespace.
10666         (SELECT_CC_MODE): Add parenthesis and whitespace.
10667         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
10668         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
10669         (ASM_OUTPUT_LABEL): Add paramethesis.
10670         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
10671         (ASM_OUTPUT_REG_POP): Likewise.
10672         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
10673         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10675         * config/i386/i386.c: Update copyright.
10676         (CHECK_STACK_LIMIT): Add parenthesis.
10677         (AT_BP): Uppercase macro parameter.
10678         (x86_64_int_parameter_registers): Constify.
10679         (x86_64_int_return_registers): Likewise.
10680         (ix86_compare_op0): Use rtx.
10681         (construct_container): Constify INTREG parameter.
10682         (function_arg): Use rtx.
10684         * diagnostic.h: Update copyright date.
10685         (output_buffer_state): Add parenthesis.
10686         (output_buffer_format_args): Likewise.
10688         * combine.c (combine_instructions): Replace XEXP (links, 0)
10689         with link.
10691 2002-01-06  H.J. Lu <hjl@gnu.org>
10693         * cfgcleanup.c (thread_jump): Fix 2 typos.
10695 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
10697         * config.gcc: Add support for --enable-altivec.
10699 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10701         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
10703 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
10705         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
10706         __objc_class_name_*.
10708 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10710         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
10712 2002-01-06  Richard Henderson  <rth@redhat.com>
10714         * reorg.c (emit_delay_sequence): Remove death notes, not merely
10715         nop them out.  Increment label reference count for REG_LABEL.
10716         (fill_slots_from_thread): Frob label reference count around
10717         delete_related_insns.
10719 2002-01-05  Richard Henderson  <rth@redhat.com>
10721         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
10722         jump threading.
10724 2002-01-05  Richard Henderson  <rth@redhat.com>
10726         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
10727         * integrate.c (output_inline_function): Likewise.
10728         * toplev.c (rest_of_compilation): Do it here instead.  Move call
10729         to remove_unnecessary_notes after emitting abstract instance.
10730         Force an emitted nested function to have its parent emited as well.
10731         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
10732         for null.
10733         (rtl_for_decl_location): Do not look at reload data structures
10734         before reload has run.
10736 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10738         * cse.c: Fix formatting.
10739         * dwarf2asm.c: Likewise.
10740         * dwarf2out.c: Likewise.
10741         * explow.c: Likewise.
10742         * expmed.c: Likewise.
10743         * function.c: Likewise.
10744         * gcov.c: Likewise.
10745         * gencheck.c: Likewise.
10746         * genrecog.c: Likewise.
10747         * ggc-common.c: Likewise.
10748         * ggc-page.c: Likewise.
10749         * global.c: Likewise.
10751 2002-01-05  Kazu Hirata  <kazu@hxi.com>
10753         * combine.c: Fix formatting.
10755 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
10757         PR middle-end/1557
10758         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
10760 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
10762         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
10763         as 1 for __powerpc64__ as well.
10765         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
10767         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
10768         return it.
10770 2002-01-05  Daniel Berlin  <dan@dberlin.org>
10772         * lcm.c: Revert change, due to performance regression it causes on
10773         SPEC because it's slightly more conservative (sigh, I hate
10774         edge-based LCM).
10776 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
10778         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
10780 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10782         * doc/cppinternals.texi: Update.
10784 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
10786         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
10787         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
10788         negatives.
10789         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
10790         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
10791         kludge for pre-october-14th mmix versions to handle new-found bug
10792         with PUSHJ/PUSHGO and the register stack.
10793         * config/mmix/mmix.h (struct machine_function): Rename member
10794         has_call_value_without_parameters to has_call_without_parameters.
10795         All referers changed.
10796         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
10797         TARGET_MASK_BRANCH_PREDICT): New macros.
10798         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
10799         -mno-reg-stack-fill-bug-workaround.
10800         * config/mmix/mmix.md ("call"): Set struct machine member
10801         has_call_without_parameters.
10803 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10805         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
10807 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
10809         * cfgcleanup.c: Include tm_p.h
10810         (mark_effect): Fix handling of hard register; fix handling of SET
10812 2002-01-04  Kazu Hirata  <kazu@hxi.com>
10814         * config/h8300/h8300.md (anonymous patterns): Check that
10815         operands are registers before using REGNO on them.
10817 2002-01-03  Roland McGrath  <roland@frob.com>
10819         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
10821 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
10823         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
10824         * c-common.h (genrtl_expr_stmt_value): Likewise.
10825         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
10826         (expand_expr_stmt_value): Add maybe_last argument.
10827         Don't warn about statement with no effect if it is the last statement
10828         in expression statement.
10829         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
10830         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
10831         expand_expr_stmt_value.
10832         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
10833         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
10834         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
10835         as maybe_last to expand_expr_stmt_value.
10837 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
10839         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
10840         be passed in, do not build it.
10841         (c_begin_if_stmt): New function.
10842         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10843         * c-common.h (c_expand_start_cond): Update prototype.
10844         (c_begin_if_stmt): Prototype new function.
10845         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10846         * c-parse.in (if_prefix): Use c_begin_if_stmt,
10847         c_begin_while_stmt and c_finish_while_stmt_cond.
10849 2002-01-04  William Cohen  <wcohen@redhat.com>
10851         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
10852         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10853         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10854         * config/pa/som.h (ASM_FILE_START): Likewise.
10856 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
10858         * lcm.c: Include df.h.
10859         Add available_transfer_function prototype.
10860         (compute_available): Rework to use iterative dataflow framework.
10861         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
10862         with bb_info in df.h
10863         (available_transfer_function): New function.
10865         * Makefile.in (lcm.o): add df.h to dependencies.
10867 2002-01-04  Richard Henderson  <rth@redhat.com>
10869         * config/alpha/alpha.c (some_operand): Accept HIGH.
10870         (input_operand): Likewise; accept simple references to globals.
10871         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
10872         (alpha_const_double_ok_for_letter_p): Likewise.
10873         (alpha_extra_constraint): Likewise.
10874         (alpha_preferred_reload_class): Likewise.  Do not force
10875         symbolic constants to memory.
10876         (alpha_legitimate_address_p): Accept simple references
10877         to small_symbolic_operand.
10878         (alpha_legitimize_address): New arg scratch.  Be prepared to be
10879         called when no_new_pseudos.  Emit simple symbolic references.
10880         Split integers into low, high, and rest.
10881         (alpha_expand_mov): Use alpha_legitimize_address.
10882         (some_small_symbolic_mem_operand): New.
10883         (split_small_symbolic_mem_operand): New.
10884         * config/alpha/alpha-protos.h: Update.
10885         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
10886         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
10887         (EXTRA_CONSTRAINT): Likewise.
10888         (PREFERRED_RELOAD_CLASS): Likewise.
10889         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
10890         (PREDICATE_CODES): Update.
10891         * config/alpha/alpha.md: New post-reload splitters to convert
10892         simplfied symbolic operands to the form that references $29.
10893         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
10894         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
10896 2002-01-03  Richard Henderson  <rth@redhat.com>
10898         * local-alloc.c (function_invariant_p): Update commentary.
10900 2002-01-04  H.J. Lu <hjl@gnu.org>
10902         * toplev.c (rest_of_compilation): Fix a typo when calling
10903         cleanup_cfg.
10905 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10907         * c-common.c: Fix formatting.
10908         * diagnostic.c: Likewise.
10909         * doloop.c: Likewise.
10910         * dwarf2out.c: Likewise.
10912 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10914         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
10915         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
10917 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10919         * cpperror.c: Update comments and copyright.
10920         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
10921         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
10923 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10925         * collect2.c (main): Use strcmp when testing for "-shared".
10927 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10929         * cppmacro.c: Don't include intl.h.  Update comments.
10930         (new_number_token): Allocate enough buffer for 64-bit unsigned
10931         integers; update prototype.
10932         * cppmain.c: Update comments.
10934 2002-01-03  William Cohen  <wcohen@redhat.com>
10936         * function.h (struct function): Add profile.
10937         (current_function_profile): New.
10938         doc/extend.texi: Update documentation.
10939         * final.c (final_start_function): Use current_function_profile
10940         instead of profile_flag.
10941         (profile_after_prologue): Likewise.
10942         * function.c (expand_function_start): Likewise.
10943         (expand_function_start): Likewise.
10944         * config/alpha/alpha.c (direct_call_operand):
10945         (alpha_does_function_need_gp): Likewise.
10946         (alpha_expand_prologue): Likewise.
10947         * config/arm/arm.c (arm_expand_prologue): Likewise.
10948         thumb_expand_prologue: Likewise.
10949         * config/d30v/d30v.c (d30v_stack_info): Likewise.
10950         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
10951         (fr30_expand_prologue): Likewise.
10952         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
10953         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
10954         * config/i386/i386.h (FINALIZE_PIC): Likewise.
10955         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
10956         * config/i960/i960.c (i960_output_function_prologue): Likewise.
10957         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10958         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
10959         (m32r_expand_prologue): Likewise.
10960         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
10961         (m88k_expand_prologue): Likewise.
10962         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
10963         * config/mips/mips.c (compute_frame_size): Likewise.
10964         (mips_expand_prologue): Likewise.
10965         (mips_can_use_return_insn): Likewise.
10966         * config/pa/elf.h (ASM_FILE_START): Likewise.
10967         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
10968         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
10969         * config/pa/som.h (ASM_FILE_START): Likewise.
10970         * config/romp/romp.c (romp_using_r14): Likewise.
10971         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
10972         (rs6000_stack_info): Likewise.
10973         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10974         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10975         * config/v850/v850.c (compute_register_save_size): Likewise.
10977 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
10979         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
10980         gen_lowpart_common fails, use gen_lowpart_SUBREG.
10982 2002-01-03  Turly O'Connor  <turly@apple.com>
10984         * darwin.c (machopic_output_possible_stub_label): Don't generate
10985         stub routines for pseudo-stubs which we've just defined.
10987 2002-01-03  Kazu Hirata  <kazu@hxi.com>
10989         * builtins.c: Fix formatting.
10990         * c-typeck.c: Likewise.
10991         * combine.c: Likewise.
10992         * expr.c: Likewise.
10993         * loop.c: Likewise.
10995 2002-01-03  Andreas Schwab  <schwab@suse.de>
10997         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
10998         and return true if _cpp_push_next_buffer pushed a new include
10999         file.
11000         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
11001         _cpp_pop_file_buffer did not push a new file.
11002         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
11004 2002-01-02  Eric Christopher  <echristo@redhat.com>
11006         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
11007         FIND_REG_INC_NOTE call. Update copyright.
11008         * loop.c (canonicalize_condition): Ditto.
11009         * reorg.c (delete_scheduled_jump): Ditto.
11011 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11013         * gcse.c: Fix formatting.
11015 2002-01-03  Graham Stott  <grahams@redhat.com>
11017         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
11018         forward defs for struct tags rtx_def, union_tree, rtvec_def
11019         also output corresponding typedefs for rtx, tree, and rtvec.
11021         * system.h: Move forward defs for struct tags rtx_def, union_tree,
11022         rtvec_def along with corresponding typedefs for rtx, tree, and
11023         rtvec to config.h, hconfig.h, tconfig.h.
11025 2002-01-03  Graham Stott  <grahams@redhat.com>
11027         * tree.h: Update copyright date.
11028         (IS_EXPR_CODE_CLASS): Add parenthesis.
11029         (TREE_SET_CODE): Add whitespace.
11030         (TREE_CHECK): Add parenthesis.
11031         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
11032         (CST_OR_CONSTRUCTOR_CHECK):
11033         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
11034         (TREE_SYMBOL_REFERENCED): Whitespace.
11035         (INT_CST_LT): Likewise.
11036         (INT_CST_LT_UNSIGNED): Likewise.
11037         (tree_real_cst): Unwrap comment.
11038         (tree_string): Likewise.
11039         (tree_complex): Likewise.
11040         (IDENTIFIER_POINTER): correct cast.
11041         (SAVE_EXPR_CONTEXT): Whitespace.
11042         (EXPR_WFL_FILENAME_NODE): Likewise.
11043         (EXPR_WFL_FILENAME): Remove parenthesis.
11044         (DECL_ORIGIN): Add parenthesis.
11045         (DECL_FROM_INLINE): Use NULL_TREE.
11046         (build_int_2): Whitespace.
11047         (build_type_variant): Add parenthesis.
11049         * gcc/jcf-parse.c: Update copyright date.
11050         (yyparse): Constify resource_filename.
11052 2002-01-03  Graham Stott  <grahams@redhat.com>
11054         * rtl.h: Update copyright date.
11055         (RTL_CHECK1): Wrap long line.
11056         (RTL_CHECK2): Likewise.
11057         (RTL_CHECKC1): Wrap long line and whitespace.
11058         (RTL_CHECKC2): Likewise.
11059         (XWINT): Whitespace.
11060         (XINT): Likewise.
11061         (XSTR): Likewise.
11062         (XEXP): Likewise.
11063         (XVEC): Likewise.
11064         (XMODE): Likewise.
11065         (XBITMAP): Likewise.
11066         (XTREE): Likewise.
11067         (XBBDEF): Likewise.
11068         (XTMPL): Likewise.
11069         (X0WINT): Likewise.
11070         (X0INT):Likewise.
11071         (X0UINT): Likewise.
11072         (X0STR): Likewise.
11073         (X0EXP): Likewise.
11074         (X0VEC): Likewise.
11075         (X0MODE): Likewise.
11076         (X0BITMAP): Likewise.
11077         (X0TREE): Likewise.
11078         (X0BBDEF): Likewise.
11079         (X0ADVFLAGS): Likewise.
11080         (X0CSELIB): Likewise.
11081         (X0MEMATTR): Likewise.
11082         (XCWINT): Likewise.
11083         (XCINT): Likewise.
11084         (XCUINT): Likewise.
11085         (XCSTR): Likewise.
11086         (XCEXP): Likewise.
11087         (XCVEC): Likewise.
11088         (XCMODE): Likewise.
11089         (XCBITMAP): Likewise.
11090         (XCTREE): Likewise.
11091         (XCBBDEF): Likewise.
11092         (XCADVFLAGS): Likewise.
11093         (XCCSELIB): Likewise.
11094         (XC2EXP): Likewise.
11095         (INSN_UID): Likewise.
11096         (PREV_INSN): Likewise.
11097         (PATTERN): Likewise.
11098         (INSN_CODE): Likewise.
11099         (PUT_REG_NOTE_KIND): Likewise.
11100         (CODE_LABEL_NUMBER): Likewise.
11101         (NOTE_SOURCE_FILE): Likewise.
11102         (NOTE_BLOCK): Likewise.
11103         (NOTE_EH_HANDLER): Likewise.
11104         (NOTE_RANGE_INFO): Likewise.
11105         (NOTE_LIVE_INFO): Likewise.
11106         (NOTE_BASIC_BLOCK): Likewise.
11107         (NOTE_EXPECTED_VALUE): Likewise.
11108         (NOTE_LINE_NUMBER): Likewise.
11109         (LABEL_NAME): Likewise.
11110         (LABEL_NUSES): Likewise.
11111         (LABEL_ALTERNATE_NAME): Likewise.
11112         (ADDRESSOF_DECL): Likewise.
11113         (JUMP_LABEL): Likewise.
11114         (LABEL_NEXTREF): Likewise.
11115         (REGNO): Likewise.
11116         (ORIGINAL_REGNO: Likewise.
11117         (HARD_REGISTER_NUM_P): Add parenthesis.
11118         (SUBREG_REG): Whitespace.
11119         (SUBREG_BYTE): Likewise.
11120         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
11121         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
11122         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
11123         (ASM_OPERANDS_INPUT_VEC): Likewise.
11124         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
11125         (ASM_OPERANDS_INPUT): Likewise.
11126         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
11127         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
11128         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
11129         (ASM_OPERANDS_INPUT_MODE): Likewise.
11130         (ASM_OPERANDS_SOURCE_FILE): Likewise.
11131         (ASM_OPERANDS_SOURCE_LINE): Likewise.
11132         (MEM_SET_IN_STRUCT_P): Minor reformat.
11133         (TRAP_CONDITION): Whitespace.
11134         (TRAP_CODE): Likewise.
11135         (COND_EXEC_TEST): Likewise.
11136         (COND_EXEC_CODE): Likewise.
11137         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
11138         (PHI_NODE_P): Add parenthesis.
11139         (plus_constant): Whitespace and add parenthesis.
11141 2002-01-03  Kazu Hirata  <kazu@hxi.com>
11143         * config/avr/avr.c: Fix comment typos.
11144         * config/c4x/c4x.md: Likewise.
11145         * config/dsp16xx/dsp16xx.h: Likewise.
11146         * config/dsp16xx/dsp16xx.md: Likewise.
11147         * config/i386/i386.md: Likewise.
11148         * config/ia64/ia64.c: Likewise.
11149         * config/m32r/m32r.h: Likewise.
11150         * config/m68hc11/m68hc11.md: Likewise.
11151         * config/mmix/mmix.c: Likewise.
11152         * config/mn10200/mn10200.c: Likewise.
11153         * config/romp/romp.c: Likewise.
11154         * config/sh/sh.c: Likewise.
11155         * config/stormy16/stormy16.c: Likewise.
11156         * config/stormy16/stormy16.h: Likewise.
11157         * config/stormy16/stormy16.md: Likewise.
11159 2002-01-03  Graham Stott  <grahams@redhat.com>
11161         * loop.h: Update copyright date.
11162         (LOOP_MOVABLES): Fix typo.
11163         (LOOP_REGS): Likewise.
11164         (LOOP_IVS): Likewise.
11166 2002-01-03  Graham Stott  <grahams@redhat.com>
11168         * cppinit.c: Update copyright date.
11169         Don't include output.h
11170         * Makefile.in: Update copyright date.
11171         Update dependency.
11173 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11175         PR c/5226
11176         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
11177         (-pthread) Add to RS/6000 options.
11179 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11181         * except.c: Fix comment typos.
11182         * loop.c: Likewise.
11183         * varasm.c: Likewise.
11184         * doc/tm.texi: Fix a typo.
11186 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
11188         * c-typeck.c (output_init_element): Allow initializing static storage
11189         duration objects with compound literals.
11191 2002-01-02  Richard Henderson  <rth@redhat.com>
11193         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
11194         after abusing it.
11196 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11198         * gcc.c (default_compilers): Const-ify.
11199         * mips-tdump.c (stab_names): Likewise.
11200         * mips-tfile.c (map_coff_types, map_coff_storage,
11201         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
11202         pseudo_ops_t, pseudo_ops): Likewise.
11203         * protoize.c (default_include): Likewise
11205         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
11206         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
11207         Add array size in declaration.
11208         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
11209         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
11210         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
11211         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
11212         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
11213         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
11214         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
11215         emtens, make_nan): Const-ify.
11216         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
11217         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
11219 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
11221         * config.gcc (ia64-*-*): Set extra_headers.
11222         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
11223         * config/alpha/t-osf: Remove.
11224         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
11226 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
11228         * config/rs6000/t-aix43: Revert previous change.
11230 2002-01-02  Jason Merrill  <jason@redhat.com>
11232         * c-decl.c (c_expand_body): Call outlining_inline_function when
11233         emitting an inline function out of line.
11235 2002-01-02  Richard Henderson  <rth@redhat.com>
11237         * dwarf2out.c (limbo_die_node): Add created_for member.
11238         (new_die): New argument created_for.  Update all callers.
11239         (mark_limbo_die_list): New.
11240         (dwarf2out_init): Register limbo_die_list as a root.
11241         (dwarf2out_finish): Force insert limbo dies into their function
11242         context.
11244 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
11246         PR c++/5089
11247         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
11249 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11251         * config/h8300/fixunssfsi.c: Update copyright.
11252         Fix comment typos.
11253         Fix formatting.
11254         * config/h8300/h8300.c: Update copyright.
11255         Eliminate warnings.
11257 2002-01-02  Kazu Hirata  <kazu@hxi.com>
11259         * config/romp/romp.c: Fix comment formatting.
11260         * config/romp/romp.h: Likewise.
11261         * config/romp/romp.md: Likewise.
11262         * config/s390/s390.c: Likewise.
11263         * config/stormy16/stormy16.c: Likewise.
11264         * config/stormy16/stormy16.h: Likewise.
11266 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
11268         * c-common.h (genrtl_expr_stmt_value): Declare.
11269         * c-semantics.c (genrtl_goto_stmt): Redirect to...
11270         (genrtl_goto_stmt_value): ... this new function.  Pass new
11271         argument down to expand_expr_stmt_value, taking
11272         TREE_ADDRESSABLE into account.
11273         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
11274         STMT_EXPR as addressable, i.e., one whose result we want.
11275         * expr.c (expand_expr): Don't save expression statement value
11276         of labeled_blocks or loop_exprs.
11277         * stmt.c (expand_expr_stmt): Redirect to...
11278         (expand_expr_stmt_value): ... this new function.  Use new
11279         argument to tell whether to save expression value.
11280         (expand_end_stmt_expr): Reset last_expr_type and
11281         last_expr_value if we don't have either.
11282         * tree-inline.c (declare_return_variable): Mark its use
11283         statement as addressable.
11284         * tree.h: Document new use of TREE_ADDRESSABLE.
11285         (expand_expr_stmt_value): Declare.
11287 2002-01-01  Tom Rix  <trix@redhat.com>
11289         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
11290         rs6000_emit_allocate_stack.
11292 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
11294         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
11295         ${srcdir}/ginclude/ to every entry in extra_headers.
11296         * configure: Regenerate.
11297         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
11298         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
11299         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
11300         * ginclude/proto.h: Rename to config/convex/proto.h.
11302 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11304         * attribs.c (handle_vector_size_attribute): Use host_integerp
11305         and tree_int_cst; remove warnings.
11306         * caller-save.c (insert_restore): Add cast to get rid of warning.
11307         (insert_save): Likewise.
11308         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
11309         * regmove.c (find_matches): Add temporary var to kill a warning.
11311 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
11313         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
11314         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
11315         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
11316         (vms-dwarf2eh.o): Add Makefile rule.
11317         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
11318         * config/alpha/vms-dwarf2eh.asm: New file.
11320         * gcc.c (delete_if_ordinary): Delete all versions.
11322 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
11324         * config/mmix/mmix.md: Update FIXME to not mention
11325         define_constants.
11326         (MMIX_rJ_REGNUM): New define_constants constant.
11327         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
11328         "*movdicc_real"): Adjust contraints formatting.
11329         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
11330         for branch prediction.
11331         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
11332         output template.
11333         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
11334         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
11335         number.  Delete related FIXMEs.
11336         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
11337         from number to MMIX_rJ_REGNUM.
11338         (TARGET_MASK_BRANCH_PREDICT): New.
11339         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
11340         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
11341         value.  Add -mbranch-predict and -mno-branch-predict.
11342         (TARGET_VERSION): Drop date.
11343         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
11344         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
11345         for finding out global symbols.
11346         (mmix_asm_output_labelref): Revert condition for global symbol.
11347         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
11348         (mmix_print_operand_punct_valid_p): A '+' is valid.
11350 See ChangeLog.6 for earlier changes.