2003-03-11 Aldy Hernandez <aldyh@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob80363e61e177f4b8169dd254459b61d92387ee04
1 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
3         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
4         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
6         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
8 Tue Mar 11 21:19:03 2003  Alexandre Oliva  <aoliva@redhat.com>
10         * toplev.c (independent_decode_option): Return success for --help,
11         --target-help and --version.
13 Tue Mar 11 20:20:14 2003  Alexandre Oliva  <aoliva@redhat.com>
15         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
16         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
17         specified.
18         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
19         DRIVER_SELF_SPECS.
20         (LINK_SPEC): Let endian options affect the linker emulation name.
22 Tue Mar 11 22:35:39 2003  J"orn Rennecke <joern.rennecke@superh.com>
24         * sh.md (reload_inqi): Fix mode for source in second set.
26 Tue Mar 11 22:48:03 CET 2003  Jan Hubicka  <jh@suse.cz>
28         * cselib.c (cselib_invalidate_mem_1): Move too ...
29         (cselib_invalidate_mem): ... here; use new list
30         (dummy_val, first_containing_mem): New static variables.
31         (clear_table): Initialize first_containing_mem.
32         (discard_useless_values):  Compact the containing_mem list.
33         (add_mem_for_addr): Add to the list.
34         * cselib.h (cselib_val): Add next_containing_mem.
36 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
38         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
39         instructions for e500.
41 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
43         * Makefile.in: Update.
44         * c-cppbuiltin.c: Include tm_p.h.
46 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
48         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
50         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
51         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
52         (_Unwind_SetGR): Same.
53         (_Unwind_GetGRPtr): New.
54         (_Unwind_SetGRPtr): New.
55         (uw_update_context_1): Use accesor functions instead of accessing
56         context->reg[] directly.
57         (uw_install_context_1): Same.
58         (execute_cfa_program): Same.
59         (__frame_state_for): Same.
61         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
62         the synthetic register offset.
64         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
66 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
68         * config/cris/cris.md: Remove lingering EGCS reference.
69         ("*extopqihi_side_biap"): For HI operation, match
70         cris_additive_operand_extend_operator, not
71         cris_operand_extend_operator.  Adjust condition.
72         ("*extopqihi_side", "*extopqihi"): Ditto.
73         ("*extopqisi_side_biap"): Correct operand numbers in condition.
74         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
75         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
76         ("*extophisi_swap"): Ditto.
77         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
78         PLUS, not cris_operand_extend_operator.  Adjust condition and
79         output template.
80         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
81         * config/cris/cris.h (PREDICATE_CODES): Add
82         cris_additive_operand_extend_operator.
83         * config/cris/cris.c (cris_additive_operand_extend_operator):
84         New predicate.
86 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
88         * df.c (read_modify_subreg_p): Change from static to global.
89         * df.h (read_modify_subreg_p): Add prototype.
90         * sched-deps.c (sched_analyze_1): Generate true dependency for
91         strict_low_part, certain subregs and zero/sign_extract. 
93 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
95         * Makefile.in: Update.
96         * c-common.c: Don't include real.h or except.h.
97         (REGISTER_PREFIX): Remove.
98         (builtin_define_std, builtin_define_with_value,
99         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
100         builtin_define_type_max, builtin_define_type_precision,
101         builtin_define_float_constants): Move to c-cppbuiltin.c.
102         (c_stddef_cpp_builtins): New.
103         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
104         * c-cppbuiltin.c: New, extracted from c-common.c.
105         (define__GNUC__): New.
106         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
107         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
108         (cpp_unique_options): Don't support no-gcc.
109         (do_spec_1): Remove support of version specs.
110         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
111         * doc/passes.texi: Update.
112         * doc/tm.texi: Update.
114 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
116         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
118 2003-03-10  Andrew Pinski  <apinski@apple.com>
120         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
121         is on should not get here.
122         (machopic_indirect_data_reference): If dynamic-no-pic is on just
123         generate high/low parts of the address.
124         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
125         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
126         symbol and labels with a new reg.  Dynamic-no-pic does not have a
127         pic_offset_table_rtx.
128         (machopic_select_section): Change references of flag_pic to
129         MACHOPIC_INDIRECT. 
130         (machopic_asm_out_destructor): Likewise.
131         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
132         reference of flag_pic to MACHOPIC_INDIRECT.
133         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
134         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
135         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
136         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
137         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
138         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
139         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
140         (TARGET_DYNAMIC_NO_PIC): Define.
141         (SUBTARGET_SWITCHES): Define, have sub-target switches for
142         dynamic-no-pic. 
143         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
144         rs6000_override_options to here. Dynamic-no-pic overrides
145         pic.
146         (CC1_SPEC): Change from not static then pic to not static and not
147         dynamic-no-pic then pic.
148         * config/rs6000/rs6000.c (rs6000_override_options): Move the
149         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
150         (rs6000_legitimize_reload_address): Add case for loading floating in
151         dynamic-no-pic.
152         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
153         of flag_pic to MACHOPIC_INDIRECT.
154         (secondary_reload_class): Conditional change the reference of
155         flag_pic to MACHOPIC_INDIRECT.
156         (rs6000_output_mi_thunk): Change reference of flag_pic to
157         MACHOPIC_INDIRECT.
158         (output_profile_hook): Likewise.
159         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
160         * config/rs6000/rs6000.md (movdf_low): Add the case for
161         MACHO_DYNAMIC_NO_PIC_P.
162         (call): Change references for flag_pic in TARGET_MACHO to
163         MACHOPIC_INDIRECT.
164         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
165         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
166         * doc/invoke.texi (-mdynamic-no-pic): Document.
168 2003-03-10  Devang Patel  <dpatel@apple.com>
169         
170         PR c++/9394
171         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
172         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
173         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
174         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
175         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
176         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
177         
178 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
180         PR optimization/7189
181         * toplev.c (rest_of_compilation):  Move
182         check_function_return_warnings up to just after
183         delete_unreachable_blocks.
185 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
187         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
188         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
189         Declare.
190         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
191         for reg rename optimization to avoid using Z and Y registers.
193 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
195         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
196         when adding to X and Y since leax/leay are fast.
197         ("*addhi3"): Accept 'I' constraint when adding to address register.
198         ("rotlhi3"): Operand 1 must be a register_operand.
199         (peephole2): New peephole to optimize some adds.
200         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
201         to represent -2 .. 2 small integer range.
203 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
205         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
206         each 16-bit rotation.
208 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
210         * c-opts.c (add_prefixed_path): Don't use concat.  When
211         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
212         cpp_GCC_INCLUDE_DIR_len characters.
214 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
216         * testsuite/gcc.dg/altivec-9.c: New file.
218         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
219         (rs6000_emit_prologue): Use rs6000_frame_related instead.
221 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
223         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
224         vectors.
225         (__ev_convert_u64): Remove macro.  Define as inline.
226         (__ev_convert_s64): Same.
228 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
230         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
231         (rs6000_stack_t): Add spe_64bit_regs_used.
233         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
234         spe_64bit_regs_used, and use it to determine the size of the
235         frame.
236         (spe_func_has_64bit_regs_p): New.
237         (spe_synthesize_frame_save): New.
238         (rs6000_frame_related): Handle SPE synthetic registers.
239         (rs6000_emit_prologue): Only save in 64-bits if the function used
240         any registers in 64-bit mode.
241         (rs6000_emit_epilogue): Same, but for restore.
243 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
245         * arm.h (enum floating_point_type): Delete.  Replace with...
246         (enum fputype): ... new.
247         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
248         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
249         * arm.md (attr fpu): Reworked for new underlying enum values.
250         * arm.c (arm_fpu_arch): Now enum fputype.
251         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
252         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
253         Update uses of arm_fpu_arch and arm_fpu_tune.
255 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
257         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
258         (try_crossjump_to_edge): Replace refereces to one jump table by
259         references to identical jump table.
260         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
261         (replace_label): Moved to rtlanal.c.
262         (struct rtx_pair): Moved to rtl.h.
263         * rtl.h (struct rtx_pair): Moved from loop.c.
264         (replace_label): New extern function.
265         (subrtx_p): New extern function.
266         (tablejump_p): New extern function.
267         * rtlanal.c (replace_label): Moved from loop.c.
268         (subrtx_p_1): New static function.
269         (subrtx_p): New function.
270         (tablejump_p): New function.
272 Mon Mar 10 15:30:36 CET 2003  Jan Hubicka  <jh@suse.cz>
274         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
276         * cfgcleanup.c (merge_blocks): Return where to iterate next.
277         (try_optimize_cfg): Use return value of merge_blocks
279 2003-03-10  Michael Matz  <matz@suse.de>
281         * cfg.c (unchecked_make_edge): New.
282         (cached_make_edge): Use it.
283         * basic-block.h (unchecked_make_edge): Declare.
284         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
286 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
288         * fpa.md: New file.  Move all patterns relating to FPA co-processor
289         to here...
290         * arm.md: ... from here.
291         (cirrus.md, fpa.md): Include at end of description.
292         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
293         (pic_load_addr_based): Remove register constraint from expander.
294         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
295         (sordered, sungt, sunle, sunge, sunlt): Likewise.
296         (eh_epilogue, tablejump): Likewise.
298 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
299             Mostafa Hagog
301         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
302         condition.
304 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
306         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
307         * config/ip2k/ip2k.h: Similarly.
308         * config/m32r/m32r.h: Similarly.
309         * config/m68hc11/m68hc11.h: Similarly.
310         * config/mn10200/mn10200.h: Similarly.
311         * config/mn10300/mn10300.h: Similarly.
312         * config/pdp11/pdp11.h: Similarly.
313         * config/v850/v850.h: Similarly.
314         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
315         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
316         * config/mips/iris3.h: Remove #if 0 block.
318 2003-03-09  Roger Sayle  <roger@eyesopen.com>
319             Joern Rennecke <joern.rennecke@superh.com>
321         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
322         pending argument upon return from handle_braces here.
323         (do_spec_2): Instead handle it upon return from do_spec_1 here.
325 2003-03-09  Roger Sayle  <roger@eyesopen.com>
326             Joern Rennecke <joern.rennecke@superh.com>
328         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
329         pending argument upon return from handle_braces here.
330         (do_spec_2): Instead handle it upon return from do_spec_1 here.
332 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
334         * varasm.c (make_decl_one_only): Use declare_weak().
336 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
338         PR middle-end/9986
339         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
340         after the common builtins.
341         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
342         * pa.c (TARGET_INIT_BUILTINS): Define.
343         (pa_init_builtins): New function.
345         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
346         space has been allocated for the outgoing arguments, set the arg
347         pointer for a call emitted after virtuals have been instantiated
348         using the stack pointer offset, otherwise abort.
350 2003-03-09  DJ Delorie  <dj@redhat.com>
352         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
354 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
356         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
357         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
358         conversion to integer.
359         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
361 2003-03-09  Roger Sayle  <roger@eyesopen.com>
363         * builtins.def: Fix typo and improve grammar.
364         * loop-unroll.c (decide_peel_completely): Tidy log message.
366 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
368         * config/h8300/h8300.md (*tstsi_upper_bit): New.
369         (*iorsi3_e2f): Likewise.
371 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
373         * config/h8300/h8300.c (h8300_and_costs): Return the number of
374         assembly instructions needed.
375         (h8300_shift_costs): Likewise.
377 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
379         * config/cris/aout.h (ENDFILE_SPEC): Undef.
381         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
382         moves from here ...
383         * expr.c (emit_move_insn_1): ... to here.
385         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
386         (TARGET_OS_CPP_BUILTINS): New macro.
387         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
388         (TARGET_OS_CPP_BUILTINS): New macro.
389         (CPP_PREDEFINES): Don't define.  Move old definitions and...
390         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
391         (TARGET_CPU_CPP_BUILTINS): New macro.
392         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
393         definitions and the optional __PIC__, __pic__ and
394         __NO_UNDERSCORES__ definitions to...
395         (TARGET_OS_CPP_BUILTINS): New macro.
397         * flags.h (flag_leading_underscore): Declare.
399         * c-opts.c (c_common_post_options): On fopen failure, return
400         false, not NULL.
402 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
404         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
405         config.h.
406         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
407         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
409 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
411         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
412         CPP_PREDEFINES.
413         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
414         CPP_PREDEFINES.
416 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
418         * c-common.h (c_common_init, c_common_post_options): Update.
419         * c-objc-common.c (c_objc_common_init): Update for new prototype.
420         * c-opts.c (saved_lineno): New.
421         (c_common_post_options, c_common_init): Update prototypes,
422         move call to cpp_read_main_file from latter to former.
423         * c-tree.h (c_ojbc_common_init): Update.
424         * langhooks-def.h (lhd_post_options): New.
425         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
426         * langhooks.c (lhd_post_options): New.
427         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
428         * toplev.c (no_backend): New.
429         (process_options): Call post_options hook and set main_input_filename
430         and input_filename here.
431         (lang_dependent_init, do_compile): post_options hook moved to
432         process_options.
433         * objc/objc-act.c (objc_init): Update prototype.
434         * objc/objc-act.h (objc_init): Update prototype.
436 2003-03-08  Roger Sayle  <roger@eyesopen.com>
438         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
439         a complex or vector type, using a load in the original mode.
441 Sat Mar  8 19:22:30 CET 2003  Jan Hubicka  <jh@suse.cz>
443         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
444         * gt-cgraph.h: New GC file.
445         * cgraph.c (known_fns): New static variable.
446         (cgraph_node): Add the decl into varray.
448 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
450         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
452 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
454         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
455         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
456         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
457         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
458         All callers changed.
459         * arm.md, arm.h, arm-protos.h: Updated.
461         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
462         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
463         * arm.c (arm_regno_class, f_register_operand): Updated.
465 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
467         * config/cris/cris.h: Remove EGCS references.
468         (CPP_SPEC): Remove "-$".
469         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
471 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
473         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
474         preference to CPP_PREDEFINES.
476 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
478         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
480 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
482         * config/h8300/h8300.md (*extzv_16_8): New.
484 Sat Mar  8 14:13:35 CET 2003  Jan Hubicka  <jh@suse.cz>
486         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
487         * cgraph.h: (cgraph_local_info): Add can_inline_once
488         (cgraph_global_info): Add inline_once.
489         (cgraph_node): Add previous.
490         (cgraph_remove_node): New.
491         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
492         function.
493         (cgraph_optimize): Call it.
494         (cgraph_finalize_function):  Set inlinable flags.
495         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
496         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
497         (cgraph_expand_function): Likewise.
498         * cgraph.c
499         (cgraph_node): Put nodes into doubly linked chain.
500         (cgraph_remove_node): New function.
501         * flags.h (flag_inline_functions_called_once): Declare.
502         * tree-inline.c: Include cgraph.h
503         (inlinable_functions_p): Add extra argument to bypass limits.
504         (expand_call_inline):  Obey cgraph flag.
505         * tree-inline.h (tree_inlinable_function_p): Update prototype.
507 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
509         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
510         irreducible loops.
512         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
513         loops info correctly.
515 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
517         PR middle-end/7796
518         * unroll.c (calculate_giv_inc): Handle constants being
519         loaded with LSHIFTRT.
521 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
523         * config/rs6000/rs6000.c (processor_target_table): Do not disable
524         GP optional instructions on Power3, Power4, 620, and 630.
526 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
528         * calls.c: Fix comment formatting.
529         * cfgloopanal.c: Likewise.
530         * cfgloopmanip.c: Likewise.
531         * combine.c: Likewise.
532         * dwarf2out.c: Likewise.
533         * ggc-common.c: Likewise.
534         * langhooks.c: Likewise.
535         * loop-unroll.c: Likewise.
536         * loop.c: Likewise.
537         * ra-build.c: Likewise.
538         * sbitmap.c: Likewise.
539         * toplev.c: Likewise.
541 2003-03-07  James E Wilson  <wilson@tuliptree.org>
543         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
545 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
547         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
548         support -no-integrated-cpp.
550         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
551         than langhooks.name.
553 2003-03-07  Michael Matz  <matz@suse.de>
555         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
556         (DF_FOR_REGALLOC): New.
557         * df.c (df_ref_record): Set DF_REF_STRIPPED.
558         (read_modify_subreg_p): Simplify.
559         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
560         Use DF_FOR_REGALLOC.
561         * ra.h (struct web): New member subreg_stripped.
562         (invalid_mode_change_regs): Declare.
563         * ra.c (invalid_mode_change_regs): New.
564         (init_ra): Initialize it.
565         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
566         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
567         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
568         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
569         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
571 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
573         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
574         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
575         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
576         machine description file from ...
577         * cirrus.md: ... here.
579 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
581         * config/h8300/h8300.md (a peephole2): Don't use
582         reg_overlap_mentioned_p.
584 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
586         * c-pch.c: Include langhooks.h.
587         (IDENT_LENGTH): New.
588         (get_ident): New.
589         (pch_ident): Delete.
590         (pch_init): Use get_ident, IDENT_LENGTH.
591         (c_common_valid_pch): Likewise.  Also, use actual language
592         in warning message.
593         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
595         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
596         c-parse.in.
597         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
598         gt-objc-objc-act.h.
599         (gt-objc-objc-act.h): New rule.
600         * objc/lang-specs.h: Support PCH.
601         * objc/objc-act.c: Include gt-objc-objc-act.h.
602         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
603         (build_selector_reference_decl): Move idx out, mark for PCH.
604         (build_class_reference_decl): Likewise.
605         (build_objc_string_decl): Move *_idx out, mark for PCH.
606         (build_tmp_function_decl): Move xxx out, mark for PCH.
608 2003-03-06  Dale Johannesen  <dalej@apple.com>
610         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
611         global functions for inlining on Darwin.
613 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
615         * haifa-sched.c (schedule_block): Don't call reorder when sorting
616         is prohibited.
618 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
620         * Makefile.in (c-ppoutput.o): Update.
621         * c-common.h (init_pp_output): New.
622         (preprocess_file): Update.
623         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
624         Register builtins.
625         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
626         Make call to cpp_read_main_file common to whether preprocessing
627         or not.  Don't register builtins.
628         * c-ppoutput.c: Include c-pragma.h.
629         (setup_callbacks): Rename init_pp_output.
630         (preprocess_file): No longer setup callbacks or call
631         cpp_read_main_file.
632         * cpphash.h (_cpp_init_mbchar): New.
633         * cppinit.c (init_library): Call _cpp_init_mbchar.
634         * cpplex.c (_cpp_init_mbchar): New.
636 2003-03-06  Roger Sayle  <roger@eyesopen.com>
638         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
639         MEM, try loading the MEM into a register and taking the low-part
640         of that, to help CSE see the use of the MEM in its true mode.
642 2002-03-05  Tom Tromey  <tromey@redhat.com>
644         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
645         Define.
647 2002-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
649         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
650         operand 2.
651         ("*ineqbranchsi"): Likewise.
653 2002-03-05  Andrew Haley  <aph@cambridge.redhat.com>
655         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
656         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
657         register store followed by a stack increment.
659 2002-03-05  Chris Moller  <cmoller@redhat.com>
661         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
662         to inhibit saving CARRY_REGS.
664         * config/stormy16/stormy16.c (xs_hi_general_operand):
665         added predicate to detect and error-out on out-of-range
666         const_ints for movhi.
667         * config/stormy16/stormy16.md (movhi): use
668         xs_hi_general_operand.
670         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
671         added a check for local vbl size overflow.
672         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
673         added predicate to detect and error-out on out-of-range
674         const_ints for addhi and subhi.
675         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
676         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
678         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
679         add a term to accept PRE_MODIFY addresses.
680         * config/stormy16/stormy16.c (xstormy16_expand_move):
681         add code to expand PRE_MODIFY addresses to an add followed
682         by a move.
684 2003-03-06  Jason Merrill  <jason@redhat.com>
686         * tree-inline.c (inlinable_function_p): Revert earlier change
687         pending investigation.
689 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
691         * config/h8300/h8300.md (a new peephole2): New.
693 Thu Mar  6 14:20:15 CET 2003  Jan Hubicka  <jh@suse.cz>
695         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
697 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
699         * dwarf2out.c (size_of_die): Compute size of external reference to
700         die correctly.
702 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
704         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
705         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
706         expanders.
708 2003-03-05  Roger Sayle  <roger@eyesopen.com>
710         * expr.h (lang_expand_expr): Delete obsolete prototype.
712 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
714         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
716 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
718         * config/h8300/h8300.md (a peephole2): Generalize to
719         accept a memory operand.
721 Wed Mar  5 19:34:18 2003  Olivier Hainque <hainque@act-europe.fr>
723         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
724         * config/alpha/alpha.c (print_operand, case '+'): New.
725         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
726         (call_value_osf_1_noreturn): Likewise.
728 Wed Mar  5 18:55:02 2003  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
730         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
731         (expand_end_bindings): Likewise.
733 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
735         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
736         (epilogue): Don't generate return_external_pic when emitting PA 2.0
737         code.
739 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
741         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
743         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
745         * hooks.c (hook_rtx_rtx_null): New.
747         * hooks.h (hook_rtx_rtx_null): Protoize.
749         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
750         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
752         * target.h (struct gcc_target): Add dwarf_register_span.
754         * dwarf2out.c (multiple_reg_loc_descriptor): New.
755         (one_reg_loc_descriptor): New.
756         (reg_loc_descriptor): Add support for values that span more than
757         one register.
759 Wed Mar  5 23:16:57 CET 2003  Jan Hubicka  <jh@suse.cz>
761         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
762         * alias.c:  Include cgraph.h
763         (mark_constant_function): Use cgraph_rtl_info.
764         * calls.c:  Include cgraph.h
765         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
766         calls.
767         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
768         * cgraph.c (cgraph_rtl_info): New function.
769         * cgraph.h (cgraph_rtl_info): Declare
770         (cgraph_rtl_info): Likewise.
771         * function.h (struct function): Add recursive_call_emit.
772         * toplev.c: Include cgraph.h.
773         (rest_of_compilation): Set preferred_incoming_stack_boundary.
775 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
777         * config/h8300/h8300.c (output_simode_bld): Clear the
778         destination first if possible.
779         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
780         alternative.
781         (extzv_1_r_inv_h8300hs): Likewise.
783 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
785         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
786         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
787         * cfgloop.c (flow_loop_free): Made global.
788         (establish_preds): New static function.
789         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
790         (get_loop_exit_edges): New.
791         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
792         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
793         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
794         loops.
795         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
796         removability of an edge.
797         (fix_irreducible_loops): New static function.
798         (find_path, remove_path): Add ability to remove enclosing loops.
799         (unloop): New.
800         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
801         flags.
802         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
803         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
804         not neccessary.
805         (decide_peel_completely, peel_loops_completely): Allow complete peeling
806         of non-duplicable once rolling loops.
807         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
809 Wed Mar  5 21:40:57 2003  J"orn Rennecke <joern.rennecke@superh.com>
811         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
812         for align_jumps is 4.
814         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
815         use GENERAL_REGS.
817 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
819         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
820         according to va_arg type.
821         (EXPAND_BUILTIN_VA_ARG): Remove.
822         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
823         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
825 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
827         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
828         else clauses.
830 2003-03-05  Michael Matz  <matz@suse.de>
832         * i386/i386.c (ix86_save_reg): Also test
833         current_function_uses_const_pool.
835 2003-03-05  Michael Matz  <matz@suse.de>
837         * unwind.h: Add the GPL exception.
838         * Makefile.in (USER_H): Add unwind.h.
840 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
842         PR c/9799
843         * c-typeck.c (push_init_level): Add sanity check.
845 Wed Mar  5 02:04:04 CET 2003  Jan Hubicka  <jh@suse.cz>
847         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
848         RTL inlining is done.
850         * cgraphunit.c (cgraph_mark_local_functions): New local function.
851         (cgraph_optimize): Mark local functions.
852         * i386-protos.h (init_cumulative_args): Update prototype.
853         * i386.c (init_cumulative_args): Use register passing convention for
854         local functions.
856         * cgraph.c (cgraph_global_info_ready): New global variable
857         (cgraph_local_info, cgraph_global_info): New functions.
858         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
859         structures.
860         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
861         Declare.
862         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
863         (cgraph_mark_functions_to_output): Use inline_many.
864         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
865         (cgraph_expand_functions): Expand inline functions last.
866         (cgraph_optimize): Do not emit uneeded functions.
868 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
870         * expr.c (convert_modes): Check for legal hard register.
872 2003-03-04  Tom Tromey  <tromey@redhat.com>
874         * doc/sourcebuild.texi (Front End Directory): Document tags.
875         * configure: Rebuilt.
876         * configure.in (target_list): Added tags.
877         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
878         TAGS files by reference.
879         * objc/Make-lang.in (objc.tags): New target.
881 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
883         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
884         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
885         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
886         gcov_read_string, gcov_write_length): Modified to enable reading/
887         writing of whole .da file just once.
888         (da_file_open, da_file_close, da_file_eof, da_file_error,
889         da_file_position, da_file_seek, da_file_write, da_file_read): New
890         functions.
891         (actual_da_file, actual_da_file_position, actual_da_file_length,
892         actual_da_file_buffer, actual_da_file_buffer_size): New static
893         functions.
894         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
895         just once.
898 2003-03-04  Andreas Schwab  <schwab@suse.de>
900         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
901         offset without frame pointer.
903 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
905         * expr.c (expand_expr): Call promote_mode to set unsignedp.
907 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
909         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
910         * configure: Regenerated.
911         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
913 2003-03-04  Andreas Jaeger  <aj@suse.de>
915         * configure.in: Check for <memcheck.h>.
916         * configure: Regenerated.
918         * config.in: Define HAVE_MEMCHECK_H.
920         * ggc-common.c: Use <memcheck.h> if available instead of
921         <valgrind.h>.
922         * ggc-page.c: Likewise.
923         * cppfiles.c: Likewise.
925 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
927         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
929 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
931         PR c/9262
932         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
933         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
935 Tue Mar  4 11:30:04 CET 2003  Jan Hubicka  <jh@suse.cz>
937         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
938         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
939         for -O3.
941 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
943         * configure.in: Delete three unused variables.  Move a variable
944         definition closer to its use.  Simplify use_collect2 logic.  Start to
945         organize.  Simplify tests for in-tree gas and ld.
946         * configure: Regenerate.
948 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
950         * Makefile.in: Update.
951         * c-common.c (flag_no_line_commands, flag_no_output,
952         flag_dump_macros, flag_dump_includes): New.
953         * c-common.h (flag_no_line_commands, flag_no_output,
954         flag_dump_macros, flag_dump_includes, preprocess_file): New.
955         (init_c_lex): Update prototype.
956         * c-lex.c (init_c_lex): Update prototype; move some code to
957         c_common_init.
958         * c-opts.c (preprocess_file): Subsume into c_common_init.
959         (c_common_decode_option): Update flags.
960         (c_common_init): Move code from preprocess_file and init_c_lex.
961         (sanitize_cpp_opts): Update.
962         * c-ppoutput.c: New, cppmain.c almost verbatim.
963         * cpphash.h (struct printer): Remove.
964         (struct cpp_reader): Remove print.
965         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
966         cpp_preprocess_file): Remove.
967         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
968         and dump_includes.
969         * cppmain.c: Remove.
970         * doc/passes.texi: Update.
972 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
974         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
975         (assign_stack_local_1): Perform overall stack alignment only when
976         STACK_ALIGNMENT_NEEDED is non-zero.
977         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
979         * pa.c (compute_frame_size): Rename fsize to size.  Account for
980         alignment to a word boundary before general register save block.  Only
981         account for double-word alignment before floating point register save
982         block if one or more are saved.  Don't allocate space for %r3 when
983         frame pointer is needed.
984         (hppa_expand_prologue): Include alignment to word boundary in local
985         frame size.
986         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
987         (STACK_ALIGNMENT_NEEDED): Define.
989 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
991         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
992         global register variables.
994 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
996         * reload.c (reload_adjust_reg_for_mode): New function.
997         (subst_reloads): Call it.
998         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
999         * reload.h (reload_adjust_reg_for_mode): Declare.
1000         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
1001         Call it.
1003 2003-03-03  James E Wilson  <wilson@tuliptree.org>
1005         * optabs.c (add_equal_note): Delete SUBREG_REG use.
1006         Fixes PR c/7872.
1008 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1010         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
1011         (*ixorsi3_lshiftrt_16): New.
1012         (*iorsi3_ashift_16): Remove.
1014 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1016         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
1017         pattern.
1019 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
1021         * doc/install.texi (Specific): Update entry for powerpc-darwin.
1023 2003-03-03  Richard Henderson  <rth@redhat.com>
1025         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
1027 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
1029         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
1030         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
1031         (rs6000_variable_issue): Do not return negative value.
1032         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
1033         scheduling pass.
1035 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1037         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
1038         prune_unused_types calls.
1040 2003-03-03  Jason Merrill  <jason@redhat.com>
1042         * tree-inline.c (find_builtin_longjmp_call): Save and restore
1043         lineno and input_filename.
1044         (find_alloca_call): Likewise.
1045         (inlinable_function_p): Run the langhook earlier.
1047         * calls.c (compute_argument_addresses): Give the new MEMs a
1048         minimum alignment of PARM_BOUNDARY.
1050 Mon Mar  3 20:45:25 2003  J"orn Rennecke <joern.rennecke@superh.com>
1052         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
1053         subtarget_asm_isa_spec.
1054         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
1055         (ASM_SPEC): Define as SH_ASM_SPEC.
1056         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
1057         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
1058         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
1059         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
1061         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
1062         and align_jumps if not set.
1063         Force align_jumps to be at least 2.
1064         When relaxing, force align_functions to be at least the maximum of
1065         align_loops, align_jumps and 4.
1066         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
1067         (sh_loop_align): Honour align_loops_log.
1069         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
1070         to check for indirect_jump_scratch.
1071         (indirect_jump_scratch): Add second set.
1072         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
1073         when looking for indirect_jump_scratch.
1074         Extract scratch register taking new structure of indirect_jump_scratch
1075         into account.
1076         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
1078 Mon Mar  3 19:07:21 CET 2003  Jan Hubicka  <jh@suse.cz>
1080         * calls.c (rtx_for_function_call): Take the address as an argument
1081         (expand_call): Do not modify the expression.
1083         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
1084         optimizing.
1086 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1088         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
1089         TARGET_H8300H and TARGET_H8300S.
1091 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1093         * config/h8300/h8300.md (a peephole2): New.
1095 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1097         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
1098         operands[0] and operands[1] are different.
1100 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1102         * reload1.c (reload_cse_move2add): Remove variable success.
1104 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1106         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
1107         warnings.
1109 2003-03-02  Richard Henderson  <rth@redhat.com>
1111         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
1112         * config.in, configure: Rebuild.
1113         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
1114         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
1115         paired ldtoffx and ldxmov annotations.
1116         (load_symptr_internal1): Remove.
1117         (load_symptr_high, load_symptr_low): New.
1119 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
1121         * c-incpath.c (add_path): Fix sysp assignment.
1123 2003-03-02  Kurt Garloff  <garloff@suse.de>
1125         * params.def: Introduce parameter max-inline-insns-rtl for
1126         a separate limit for the RTL inliner.
1127         * params.h: Likewise.
1128         * integrate.c (function_cannot_inline_p): Use it.
1129         * toplev.c (decode_f_option): Set multiple parameters
1130         controlling inlining with -finline-limit.
1131         * params.def: Fix orthographic and typographic errors.
1132         * doc/invoke.texi: Document parameters controlling inlining
1133         and the way -finline-limit sets multiple of them.
1135         * tree.h (struct tree_decl): Introduce inlined_function_flag,
1136         recording whether the function became eligible for inlining
1137         by a compiler flag rather than the declaration.
1138         Provide DID_INLINE_FUNC macro to access it.
1139         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
1140         * cp/decl.c (grokfndecl): Likewise.
1141         * toplev.c (rest_of_compilation): Likewise.
1142         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
1143         * print-tree.c (print_node): Report it.
1144         * params.def: Introduce new max-inline-insns-auto limit.
1145         * params.h: Likewise.
1146         * tree-inline.c (inlinable_function_p): Apply it to functions
1147         with DID_INLINE_FUNC set.
1148         * toplev.c (decode_f_option): Initialize it from -finline-limit
1149         value.
1150         * doc/invoke.texi: Document new parameter.
1152 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
1154         * fix-header.c (read_scan_file): Don't reference simplify_path.
1156 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1158         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
1159         min/max instructions by default as may result in reload errors.
1161 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1163         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
1164         avoid reload problems; define split for it.
1166 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1168         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
1169         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
1170         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
1171         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
1172         rotatert and rotate.
1173         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
1174         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
1175         ("*rotrhi3_addr"): New split for shift insns on address register.
1176         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
1177         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
1178         (___rotrhi3): Likewise.
1179         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
1181 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
1183         * toplev.c (aux_base_name): Moved from toplev.h.
1184         (filename): Constify.
1185         (lang_dependent_init): Don't duplicate name.
1186         (process_options): Set aux_base_name here, not...
1187         (do_compile): ...here.  Change protoype.
1188         (toplev_main): Move some code from do_compile.
1189         * toplev.h: Remove aux_base_name.
1191 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1193         * config/h8300/h8300-protos.h: Add a prototype for
1194         iorxor_operator.
1195         * config/h8300/h8300.c (print_operand): Handle 'c'.
1196         (iorxor_operator): New.
1197         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
1198         * config/h8300/h8300.md (*iorhi3_zext): Remove.
1199         (*iorsi3_zexthi): Likewise.
1200         (*iorsi3_zextsi): Likewise.
1201         (*xorhi3_zextqi): Likewise.
1202         (*xorsi3_zexthi): Likewise.
1203         (*xorsi3_zextsi): Likewise.
1204         (*ixorhi3_zext): New.
1205         (*ixorsi3_zext_qi): Likewise.
1206         (*ixorsi3_zext_hi): Likewise.
1208 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
1210         * c-incpath.c (remove_component_p, simplify_path): Move back to
1211         cppfiles.c.
1212         (remove_duplicates): Use cpp_simplify_path.
1213         * c-incpath.h (simplify_path): Remove.
1214         * c-lex.c: Don't include c-incpath.h.
1215         (init_c_lex): Remove simplify_path.
1216         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
1217         (find_or_create_entry, validate_pch): Revert.
1219 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
1221         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
1222           an external cpp during compilation.
1223         (option_map): Likewise.
1224         * objc/lang-specs.h (default_compilers): Similarly.
1225         * doc/invoke.texi: Document -no-integrated-cpp flag.
1227 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1229         * config/h8300/h8300.md (zero_extendqisi2): Change to an
1230         expander.
1231         (*zero_extendqisi2_h8300): New.
1232         (*zero_extendqisi2_h8300hs): New.
1233         (two splitters): New.
1235 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1237         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
1239 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1241         * config/h8300/h8300.md (a peephole2): Remove dead code.
1243 2003-03-01  Roger Sayle  <roger@eyesopen.com>
1245         PR c++/9367
1246         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
1247         (BT_FN_INT_CONST_STRING_VALIST_ARG,
1248         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
1249         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
1250         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
1251         BT_FN_INT_STRING_CONST_STRING_VAR,
1252         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
1253         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
1254         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
1255         ATTR_NONNULL_3): Also include the nothrow attribute.
1256         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
1257         vsnprintf, vscanf, vsscanf): Don't define attributes here.
1258         * builtins.def (putchar, puts): Make full C89 built-ins.
1259         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
1260         vsscanf, vsnprintf, vsprintf): New built-ins.
1261         * c-common.c (c_common_nodes_and_builtins): Handle new macro
1262         DEF_FUNCTION_TYPE_VAR_3.
1264         * doc/extend.texi: Document these new built-in functions.
1266 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1268         * config/h8300/h8300.md (a peephole2): New.
1270 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
1272         * predict.c (estimate_bb_frequencies): Correctly set
1273         real_values_initialized after initialization.
1275 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
1277         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
1278         cppinit.o, cppdefault.o, fix-header): Update.
1279         * c-incpath.c: New file.
1280         * c-incpath.h: New file.
1281         * c-lex.c: Include c-incpath.h.
1282         (init_c_lex): Register path simplifier.
1283         * c-opts.c: Include cppdefault.h and c-incpath.h.
1284         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
1285         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
1286         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
1287         (missing_arg, c_common_decode_option): Handle them.
1288         (c_common_post_options): Register include chains.
1289         (print_help): Update.
1290         * cppdefault.h (struct default include): Update.
1291         Move some macros to ...
1292         * cppdefault.c: ... here.
1293         (cpp_include_defaults): Add extra field add_sysroot.
1294         * cppfiles.c (include_file, search_from, find_or_create_entry,
1295         cpp_included, find_include_file, remap_filename): Update for
1296         renaming of search_path to cpp_path, and of the chain headers.
1297         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
1298         * cpphash.h (struct search_path): Move to cpplib.h.
1299         (struct cpp_buffer, struct cpp_reader): Update.
1300         (_cpp_simplify_pathname): Remove.
1301         * cppinit.c: Don't include prefix.h and cppdefault.h.
1302         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
1303         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
1304         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
1305         no_pth, cpp_handle_options): Remove.
1306         (struct pending_option): Remove chain members.
1307         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
1308         cpp_handle_option): Update.
1309         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
1310         (struct cpp_options): Remove quote_include, bracket_include,
1311         include_prefix, include_prefix_len, verbose, ignore_srcdir,
1312         no_standard_includes, no_standard_cplusplus_includes.
1313         (struct cpp_callbacks): Add simplify_path.
1314         (cpp_handle_options): Remove.
1315         * fix-header.c: Include c-incpath.h.
1316         (read_scan_file): Update to use c-incpath functionality.
1317         * doc/passes.texi: Update.
1319 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1321         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
1322         satisfies EXTRA_CONSTRAINT 'U'.
1324 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1326         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
1327         register.
1328         (*tst_extzv_memqi_1_n): Change to a splitter.
1329         (a peephole2): Update.
1331 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
1333         * predict.c (estimate_bb_frequencies): Initialize the sreal
1334         constants once per compilation.
1336 2003-02-28  Richard Henderson  <rth@redhat.com>
1338         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
1340 2003-02-28  scott snyder  <snyder@fnal.gov>
1342         * flags.h: Add flag_eliminate_unused_debug_types.
1343         * toplev.c: Add flag_eliminate_unused_debug_types.
1344         (f_options): Add -feliminate-unused-debug-types.
1345         * dwarf2out.c (struct file_table): Add emitted member.
1346         (splice_child_die): Fix the parent pointer for the child being
1347         spliced.
1348         (lookup_filename): Maintain file_table.emitted array.  Don't
1349         output .file directive here.
1350         (maybe_emit_file): (new)
1351         (init_file_table): Set up file_table.emitted.
1352         (dwarf2out_source_line): Use maybe_emit_file.
1353         (dwarf2out_start_source_file): Use maybe_emit_file.
1354         (dwarf2out_init): Use maybe_emit_file.
1355         (prune_unused_types_walk_attribs): (new)
1356         (prune_unused_types_mark): (new)
1357         (prune_unused_types_walk): (new)
1358         (prune_unused_types_prune): (new)
1359         (prune_unused_types): (new)
1360         (dwarf2out_finish): Call prune_unused_types if
1361         flag_eliminate_unused_debug_types is set.
1362         * doc/invoke.texi (Option Summary): Add
1363         -feliminate-unused-debug-types.
1364         (Debugging Options): Likewise.
1366 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
1368         * doc/invoke.texi: Change .pch to .gch.
1369         * cppfiles.c (open_file_pch): Likewise.
1370         * gcc.c (default_compilers): Likewise.
1372 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
1374         * floatlib.c: Remove.
1376 2003-02-28  Jason Merrill  <jason@redhat.com>
1378         * stor-layout.c (variable_size): Leave a "minus 1" outside the
1379         SAVE_EXPR.
1381 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
1383         * config/rs6000/power4.md: Add compare bypass.
1385 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
1387         * config/netbsd.h: Update copyright years.
1388         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
1389         -pthread is specified on the command line.
1391 2003-02-28  Dale Johannesen <dalej@apple.com>
1393         * loop.c (struct movable): Add insert_temp, shrink savemode.
1394         (scan_loop): Accept invariants that require copying; mark as
1395         insert_temp.
1396         (combine_movables): Don't combine insert_temp movables.
1397         (move_movables): Insert copies for insert_temp movables.
1398         Don't record the info based on regno for insert_temp's.
1400 2003-02-28  Joel Sherrill <joel@OARcorp.com>
1402         PR 9638/other
1403         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
1404         this constant defaults to 1.
1406 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
1408         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
1410 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
1412         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
1413         ARMv5e processor, not just for XScale.  Instructions are predicable.
1414         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
1416 2003-02-28  Nick Clifton  <nickc@redhat.com>
1418         * config/arm/arm.c (note_invalid_constants): Change parameter type
1419         from bool to int.
1421 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1423         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
1424         test of bit 7.
1425         (*tst_extzv_memqi_1_n): Likewise.
1426         (a peephole2): New.
1428 2002-02-28  Richard Sandiford  <rsandifo@redhat.com>
1430         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
1431         #ifndef __mips16.
1433 Fri Feb 28 11:09:14 CET 2003  Jan Hubicka  <jh@suse.cz>
1435         * combine.c (gen_lowpart_for_combine): Update handling of
1436         subregs_of_mode
1437         * flow.c (life_analysis, mark_used_regs): Likewise.
1438         * regclass.c (subregs_of_mode): Turn into single bitmap.
1439         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
1440         dealing with subregs_of_mode
1441         * regs.h (subregs_of_mode): Update prototype.
1443 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
1445         * emit-rtl.c (set_reg_attrs_for_parm): New function.
1446         * rtl.h (set_reg_attrs_for_parm): New exported function.
1447         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
1448         set_reg_attrs_from_mem.
1450 2003-02-27  Roger Sayle  <roger@eyesopen.com>
1451             Zack Weinberg <zack@codesourcery.com>
1453         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
1455 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
1457         * reload1.c (sext_for_mode): Remove.
1458         (reload_cse_move2add): Use trunc_int_for_mode instead of
1459         sext_for_mode.
1460         (move2add_note_store): Likewise.
1461         Reset register information if we see a set in non-integer
1462         mode.
1464 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
1466         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
1467         option.
1468         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
1469         * config/rs6000/aix51.h: Same.
1470         * config/rs6000/aix52.h: Same.
1471         * config/rs6000/power4.md: Additional VMX bypasses.
1473 2003-02-27   Geert Bosch <bosch@gnat.com>
1475         * toplev.c (print_version): Add indentation for GGC heuristics and
1476         output after printing version information.
1478 2003-02-27  James E Wilson  <wilson@tuliptree.org>
1480         * combine.c (simplify_comparison): Require integral mode when
1481         permuting SUBREG with AND.
1483 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
1485         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
1487 2003-02-27  Nick Clifton  <nickc@redhat.com>
1489         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
1490         deleted when cirrus instructions were added.
1492 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
1494         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
1495         POSIX thread support by default.
1497 2003-02-27  Roger Sayle  <roger@eyesopen.com>
1499         * config/i386/cygwin.h: Don't include any other files directly.
1500         * config/i386/mingw32.h: Don't include cygwin.h directly.
1501         * config.gcc (cygwin, mingw32, uwin): Instead make these files
1502         explicit in the tm_files variable.
1504 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
1506         * config/rs6000/rs6000.md: Add TI constant splitter.
1508 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
1510         * builtins.c (purge_builtin_constant_p): Handle subreg of
1511         constant_p_rtx too.
1513         * function.c (assign_stack_local_1): Truncate constant added to
1514         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
1516 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
1518         * config.gcc: Add power4 to PowerPC with_cpu list.
1520 Wed Feb 26 19:46:25 CET 2003  Jan Hubicka  <jh@suse.cz>
1522         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
1524 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1526         * gcov-dump.c (print_prefix): Fix signedness warning.
1527         * gcov-io.h (struct counter_section, struct counter_section_data): New.
1528         (struct function_info): n_arc_counts field removed, n_counter_sections,
1529         counter_sections fields added.
1530         (struct gcov_info): arc_counts, n_arc_counts fields removed,
1531         n_counter_sections, counter_sections fields added.
1532         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
1533         profile sections.
1534         * profile.h (MAX_COUNTER_SECTIONS): New.
1535         (struct section_info): New.
1536         (struct profile_info): count_instrumented_edges,
1537         count_edges_instrumented_now fields removed, n_sections, section_info
1538         fields added.
1539         (find_counters_section): Declare.
1540         * profile.c (struct function_list): count_edges field removed,
1541         n_counter_sections, counter_sections fields added.
1542         (set_purpose, label_for_tag, build_counter_section_fields,
1543         build_counter_section_value, build_counter_section_data_fields,
1544         build_counter_section_data_value, build_function_info_fields,
1545         build_function_info_value, build_gcov_info_fields,
1546         build_gcov_info_value): New static functions.
1547         (find_counters_section): New function.
1548         (instrument_edges, get_exec_counts, compute_branch_probabilities,
1549         branch_prob, create_profiler): Modified to support multiple profile
1550         sections.
1552 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1554         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
1555         is 8 * STACK_BOUNDARY.
1556         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
1558 2003-02-26  Michael Matz  <matz@suse.de>
1560         * ra-colorize.c (merge_moves): Fix list handling.
1562 2003-02-26  Nick Clifton  <nickc@redhat.com>
1564         * config/arm/arm.c (is_load_address): Rename to...
1565         (arm_memory_load_p) ... this and make it check for SUBREGs and
1566         constant loads that will be converted into loads from the
1567         minipool.
1568         (is_cirrus_insn): Rename to ...
1569         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
1570         of CIRRUS_NO with CIRRUS_NOT.
1571         (cirrus_reorg): Use renamed functions.
1572         (note_invalid_constants): Change from a void function to bool.
1573         Add an extra parameter, saying whether the fixups should be
1574         pushed.  Return true if fixups are needed.
1575         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
1576         of CIRRUS_NO with CIRRUS_NOT.
1577         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
1578         other floating point co-processors can also affect this.
1579         * config/arm/arm.md ("type" attribute): Add mav_farith and
1580         mav_dmult.  Replace references to "cirrus_type" attribute with
1581         "type".
1582         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
1583         ("cirrus_type" attribute): Delete - use "type" instead.
1584         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
1585         'normal'.
1587 Tue Feb 25 22:46:27 CET 2003  Jan Hubicka  <jh@suse.cz>
1589         * objc-act.c: Include cgraph.h
1590         (mark_referenced_methods): New function.
1591         (objc_init): Call it.
1592         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
1594         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
1595         mode.
1597         * optabs.c (expand_fix): Do not widen the input operand.
1599         * expr.c (emit_group_store):  Fix crash when converting single
1600         register into complex register.
1602         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
1603         * alias.c: Include timevar.h
1604         (init_alias_analysis):  Set timevar
1605         * jump.c: Include timevar.h
1606         (rebuild_jump_labels):  Set timevar
1607         * regcalss.c: Include timevar.h
1608         (reg_scan):  Set timevar
1609         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
1611 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1613         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
1615         * Makefile.in (loop-unroll.o): New.
1616         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
1617         (unroll_and_peel_loops): Declare.
1618         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
1619         flag_old_unroll_loops.
1620         * loop.c (loop_invariant_p): Ditto.
1621         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
1622         flag_old_unroll_all_loops.
1623         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
1624         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
1625         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
1626         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
1627         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
1628         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
1629         PARAM_MAX_ONCE_PEELED_INSNS): New.
1630         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
1631         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
1632         instead of old one.
1633         (flag_peel_loops): New.
1634         (lang_independent_options): The new flags added.
1635         (rest_of_compilation): Call new unroller.
1636         (process_options): Setup flags for coexistence of old and new unroller.
1637         * doc/invoke.texi: Document new options.
1638         * doc/passes.texi: Document new unroller pass.
1640 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
1642         * fixinc/fixincl.x: Regenerate
1644 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
1646         * function.c (assign_parms): Set reg_attrs for parameters passed in
1647         registers.
1649 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
1651         PR target/9681
1652         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
1654 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
1656         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
1657         pseudo-op.
1659 2003-02-25  Roger Sayle  <roger@eyesopen.com>
1661         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
1662         * cse.c (invalidate_skipped_set):  Likewise.
1663         * integrate.c (subst_constants):  Likewise.
1664         * jump.c (reversed_comparison_code_parts):  Likewise.
1665         * loop.c (canonicalize_condition):  Likewise.
1666         * simplify-rtx.c (simplify_relational_operation):  Likewise.
1668 2003-02-25  Roger Sayle  <roger@eyesopen.com>
1670         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
1671         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
1672         the appropriate macro to define built-in function.
1673         (fmod,fmodf,fmodl): New built-in functions.
1675         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
1677 2003-02-25  Richard Henderson  <rth@redhat.com>
1679         * config/i386/i386.c (function_arg): Pass variable sized
1680         structures correctly on the stack.
1682 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
1684         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
1685         does not reduce the cost of SET.
1687 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1689         PR target/9732
1690         * config/rs6000/rs6000.c (first_reg_to_save): Handle
1691         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
1692         (rs6000_emit_prologue): Likewise.
1693         (rs6000_emit_epilogue): Likewise.
1694         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
1695         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
1697 2003-02-25  Richard Henderson  <rth@redhat.com>
1699         * real.c (real_to_integer2): Force overflow result only for
1700         unsigned overflow.
1702 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
1704         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
1706 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
1707             Richard Henderson  <rth@redhat.com>
1709         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
1710         there is no similar load.
1712 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
1713             Richard Henderson  <rth@redhat.com>
1715         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
1716         sched-rgn.c.
1717         (add_forward_dependence): New function prototype.
1719         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
1720         sched-init.h.
1721         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
1722         them to haifa-sched.c.
1724         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
1725         haifa_classify_insn): Move them from sched-rgn.c.
1727         * sched-deps.c (add_dependence): Return flag of creating a new
1728         entry.
1729         (add_forward_dependence): New function.
1730         (compute_forward_dependences): Use the function.
1732         * sched-ebb.c (earliest_block_with_similiar_load): New function.
1733         (add_deps_for_risky_insns): New function.
1734         (schedule_ebb): Call the function.
1736 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
1738         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
1739         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
1741         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
1742         opaque types fail.
1744         * c-typeck.c (comptypes): Change call to vector_types_compatible
1745         to vector_opaque_p.
1746         (convert_for_assignment): Call vector_opaque_p instead of
1747         vector_types_compatible.
1748         (really_start_incremental_init): Disallow initialization of opaque
1749         types.
1751         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
1752         Define TARGET_VECTOR_OPAQUE_P.
1753         (TARGET_INITIALIZER): Same.
1755         * target.h (struct gcc_target): Remove vector_types_compatible.
1756         Add vector_opaque_p.
1758         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
1759         Remove.
1760         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
1761         a vector type.  Change return type to bool.
1762         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
1763         (TARGET_VECTOR_OPAQUE_P): Define.
1765         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
1766         target hook.
1767         Include target.h.
1768         (cp_parser_init_declarator): Fix typo in function comments.
1770 Tue Feb 25 12:35:34 CET 2003  Jan Hubicka  <jh@suse.cz>
1772         * Makefile.in (lcm.o):  Add dependency on function.h
1773         * lcm.c (function.h): Include.
1774         * i386.c (machine_function, ix86_stack_locals,
1775         * ix86_save_varrargs_registers) : Move to
1776         ...
1777         * i386.h (machine_function, ix86_stack_locals,
1778         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
1779         (ix86_optimize_mode_switching): New.
1780         * i386.md (fix patterns): Set ix86_optimize_mode_switching
1782 2003-02-25  Nick Clifton  <nickc@redhat.com>
1784         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
1785         of fourth arg is 'fndecl' not 'indirect'.  Update comment
1786         describing the function's parameters.
1788 Mon Feb 24 22:08:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1790         * combine.c (simplify_shift_const):  Fix previous patch.
1792 2003-02-24  Jeff Law  <law@redhat.com>
1794         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
1795         alternative.
1796         (testsi_1, testhi_1, testqi_1): Likewise.
1798 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1800         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
1801         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
1802         * doc/extend.texi (Tru64 Pragmas): Reflect this.
1804         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
1805         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
1806         * fixinc/fixincl.x: Regenerate.
1807         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
1808         testcase.
1809         Fixes PR c/5059, c/6126, other/9671.
1811 2003-02-24  Roger Sayle  <roger@eyesopen.com>
1813         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
1814         from handle_braces in "%{...}".
1816 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1818         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
1819         (prepare_move_operands): Handle TLS operands.
1820         (tls_symbolic_operand): New.
1821         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
1822         (legitimize_pic_address): Do nothing for the TLS symbol.
1823         (sh_encode_section_info): Handle TLS case.
1824         (sh_strip_name_encoding): Drop TLS encoding.
1825         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
1826         * config/sh/sh.h (SH_TLS_ENCODING): Define.
1827         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
1828         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
1829         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
1830         * config/sh/sh.md: Define TLS UNSPEC constants.
1831         (type): Add tls_load.
1832         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
1833         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
1834         ("tls_initial_exec"): New insn.
1835         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
1836         ("load_gbr"): New insn.
1838         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1839         * configure: Regenerate.
1841 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
1843         PR 9297, PR 9722
1844         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
1845         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
1846         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
1847         (enum block_op_methods): Reorder for better store_expr optimization.
1848         * expr.c (store_expr): Test bit 1 of "want_value" for call param
1849         stores, test bit 0 for original want_value meaning.  Pass
1850         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
1851         recursive calls, and calls to expand_param.
1852         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
1853         expected, set target to 0 rather than to subtarget.  Formatting.
1855 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
1857         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
1859 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1861         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
1862         new default behavior.
1863         * ggc-common.c: Include sys/resource.h.
1864         (ggc_rlimit_bound): New function.
1865         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
1866         defaults to account for rlimits.
1868 2003-02-22  Richard Henderson  <rth@redhat.com>
1870         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
1872 2003-02-22  Kelley Cook <kelley@dwhoops.info>
1874         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
1875         (ix86_tune_string): Rename from ix86_cpu_string.
1877 2003-02-22  Kelley Cook <kelleycook@comcast.net>
1879         * config/i386/i386.c: Replace "mcpu" with "mtune".
1880         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
1881         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
1882         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
1883         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
1885 2003-02-23  Andreas Schwab  <schwab@suse.de>
1887         * config.gcc: Delete references to m68k/t-linux and
1888         m68k/t-linux-aout.
1889         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
1891 Sat Feb 22 20:22:19 CET 2003  Jan Hubicka  <jh@suse.cz>
1893         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
1894         of track scheduling patch.
1896 Sat Feb 22 19:29:28 CET 2003  Jan Hubicka  <jh@suse.cz>
1898         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
1899         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
1901 Sat Feb 22 12:42:16 CET 2003  Jan Hubicka  <jh@suse.cz>
1903         * c-decl.c (c_expand_body_1): Fix.
1905 Sat Feb 22 03:13:36 CET 2003  Jan Hubicka  <jh@suse.cz>
1907         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
1909         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
1910         when not optimizing.
1911         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
1912         when not expensive.
1913         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
1914         optimizing;  Delete trivially dead insns early; fix optimize check.
1916         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
1917         dependency on cgraph.h
1918         * c-decl.c: Include cgraph.h
1919         (finish_function): Update call of tree_inlinable_function_p.
1920         * c-objc-common.c: Include cgraph.h
1921         * cgraph.h: New file.
1922         * cgraphunit.c: New file.
1923         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
1924         (cgraph_nodes, cgraph_n_nodes): Globalize.
1925         (cgraph_finalize_function, cgraph_finalize_compilation_unit
1926         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
1927         Move into cgraphunit.c
1928         * tree-inline.c: Include cgraph.h
1929         * tree-inline.c: Include cgraph.h
1931 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
1933         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
1934         for copying a register.
1936 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
1938         PR other/3782
1939         * toplev.c (process_options): If flag_detailed_statistics is set,
1940         then set time_report as well.
1942         PR c/8828
1943         * jump.c (never_reached_warning): Don't fall through BARRRIER
1944         insns.  Update comments to reflect what the function really does.
1946 2003-02-21  Roger Sayle  <roger@eyesopen.com>
1948         * fold-const.c (omit_one_operand): No longer static.
1949         * tree.h (omit_one_operand): Prototype here.
1950         (div_and_round_double): Keep fold-const.c prototypes together.
1951         * builtins.c (builtin_mathfn_code): Handle binary built-in
1952         funtions, such as "pow" and "atan2".
1953         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
1954         Simplify optimizations using "type" the builtin's return type.
1956 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
1958         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
1959         Fix functionalization typo.
1961         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
1962         in an asm.
1964 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1966         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
1967         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
1968         documentation.
1969         * ggc-common.c: Include params.h
1970         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
1971         init_ggc_heuristics): New functions.
1972         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
1973         init_ggc_heuristics): Prototype.
1974         * toplev.c (print_version):  Output GGC heuristics.
1975         (parse_options_and_default_flags): Call init_ggc_heuristics.
1977 Sat Feb 22 02:35:07 CET 2003  Jan Hubicka  <jh@suse.cz>
1979         * i386.c (def_builtin):  Special case 64bit builtins.
1980         (MASK_SSE164, MASK_SSE264): New constants.
1981         (builtin_description): Add 64bit builtins.
1982         (ix86_init_mmx_sse_builtins): Likewise.
1983         * i386.h (enum ix86_builtins): Likewise.
1984         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
1985         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
1986         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
1987         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
1988         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
1989         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
1990         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
1992 Sat Feb 22 00:48:22 CET 2003  Jan Hubicka  <jh@suse.cz>
1994         * i386.c (builtin_description): Add __builtin_ia32_paddq and
1995         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
1996          and __builtin_ia32_psubq128.
1997         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
1998         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
1999         (mmx_adddi3, mmx_subdi3): New.
2000         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
2001         * xmmintrin.h (_mm_movepi64_pi64): New.
2002         (_mm_add_epi64, _mm_sub_epi64): fix.
2003         (_mm_mul_pu16): Rename to...
2004         (_mm_mul_su32): ... this one.
2006         * builtins.c (expand_builtin_expect):  Do not predict
2007         flag_guess_branch_prob is not set.
2008         * c-semantics.c (expand_stmt): Likewise.
2009         * predict.c (predict_insn): Likewise.
2010         * stmt.c (expand_continue_loop): Likewise.
2011         * toplev.c (rest_of_compilation): Do not call
2012         note_prediction_to_br_prob and note_prediction_to_br_prob
2013         when not optimizing.
2015 Fri Feb 21 23:10:13 CET 2003  Jan Hubicka  <jh@suse.cz>
2017         * cfgrtl.c (commit_edge_insertions):  Call
2018         find_many_sub_basic_block only when some code has been emitted.
2019         (commit_edge_insertions_watch_calls): Bring into sync with
2020         commit_edge_insertions
2022 Fri Feb 21 20:41:29 2003  J"orn Rennecke <joern.rennecke@superh.com>
2024         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
2026         * sh.md (binary_sf_op): Use extra constant operand instead of
2027         negating constant operand 4.
2028         * sh.c (sh_expand_binop_v2sf): Supply it.
2030 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
2032         * cpphash.h (struct lexer_state): Add directive_wants_padding.
2033         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
2034         for directives of type INCL.
2035         (glue_header_name, parse_include): Use get_token_no_padding.
2036         * cppmacro.c (replace_args): If directive_wants_padding,
2037         provide padding tokens.
2039 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
2041         * config/h8300/h8300.md (a peephole2): New.
2043 Fri Feb 21 11:05:44 CET 2003  Jan Hubicka  <jh@suse.cz>
2045         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
2046         (commit_edge_insertions): Call find_many_sub_basic_blocks
2048         * reg-stack.c (convert_regs): Cleax aux for blocks.
2050 Fri Feb 21 10:29:52 CET 2003  Jan Hubicka  <jh@suse.cz>
2052         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
2054 2003-02-21  Glen Nakamura  <glen@imodulo.com>
2056         PR optimization/8613
2057         * builtins.c (expand_builtin): Emit postincrements before expanding
2058         builtin functions.
2060 2003-02-21  Ben Elliston  <bje@redhat.com>
2062         PR other/5634
2063         * doc/install.texi (Configuration): Explain using $HOME instead of
2064         the ~ metacharacter when referring to home directories.
2066 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2068         * configure.in (TARGET_SYSTEM_ROOT): Set default to
2069         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
2070         '${exec_prefix}' (in addition to the expansion thereof) as
2071         relocatable.
2072         * configure: Rebuilt.
2074 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2076         * config/h8300/h8300.md (addhi3_incdec): Change the name to
2077         *addhi3_incdec.
2078         (addsi3_incdec): Change the name to *addsi3_incdec.
2080 2003-02-20  Roger Sayle  <roger@eyesopen.com>
2082         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
2084 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
2086         PR fortran/9038
2087         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
2088         options to be ignored.
2089         (c_common_decode_option): Ignore them when preprocessing.
2091 Thu Feb 20 21:41:19 CET 2003  Jan Hubicka  <jh@suse.cz>
2093         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
2094         global variables.
2095         (lang_independent_options):  Add -fsched2-use-superblocks
2096         -fsced2-use-traces.
2097         (rest_of_compilation): Deal with it.
2098         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
2099         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
2100         Declare.
2101         * rtl.h (reg_to_stack):  Update prototype.
2102         * reg-stack.c (reg_to_stack): Return when something has changed;
2103         update liveness when executing after superblock scheduling.
2105         * combine.c (simplify_shift_const):  Simplify few special cases
2106         into constants.
2108 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
2110         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
2111         (add.,subf.,neg.): Change attribute to fast_compare.
2112         All DFA descriptions updated.
2114 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2116         Change base class access representation.
2117         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
2118         TREE_VIA_PRIVATE): Remove.
2119         (BINFO_BASEACCESSES): New binfo elt.
2120         (BINFO_BASEACCESS): New accessor.
2121         (BINFO_ELTS): Increase.
2122         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
2123         (access_public_node, access_protected_node,
2124         access_private_node): New global nodes.
2125         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
2126         * dbxout.c (dbxout_type): Adjust.
2127         * dwarf2out.c (gen_inheritance_die): Add access parameter.
2128         (gen_member_die): Adjust.
2129         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
2130         (output_type): Adjust.
2131         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
2133         Change base class access representation. Share virtual base
2134         binfos.
2135         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
2136         call.
2137         * cp/class.c (build_base_path): Likewise.
2138         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
2139         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
2140         (make_new_vtable): Adjust.
2141         (force_canonical_binfo_r): Delete.
2142         (force_canonical_binfo): Delete.
2143         (mark_primary_virtual_base): Delete.
2144         (dfs_unshared_virtual_bases): Delete.
2145         (mark_primary_bases): Adjust.
2146         (maybe_warn_about_overly_private_class): Adjust.
2147         (dfs_base_derived_from): Delete.
2148         (base_derived_from): Follow the inheritance chain.
2149         (struct find_final_overrider_data): Add vpath member.
2150         (dfs_find_final_overrider): Adjust.
2151         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
2152         (find_final_overrider): Adjust.
2153         (update_vtable_entry_for_fn): Adjust.
2154         (modify_all_vtables): Adjust.
2155         (walk_subobject_offsets): Adjust.
2156         (layout_nonempty_base_or_field): Adjust.
2157         (layout_empty_base): Remove last parameter. Adjust.
2158         (build_base_field): Adjust.
2159         (build_base_fields): Adjust.
2160         (propagate_binfo_offsets): Remove last parameter. Adjust.
2161         (dfs_set_offset_for_unshared_vbases): Delete.
2162         (layout_virtual_bases): Adjust.
2163         (finish_struct_1): Adjust.
2164         (init_class_processing): Don't init access nodes.
2165         (dfs_get_primary_binfo): Delete.
2166         (get_primary_binfo): Adjust.
2167         (dump_class_hierarchy_r): Remove most derived arg, add IGO
2168         parameter. Adjust.
2169         (dump_class_hierarchy): Adjust.
2170         (finish_vtbls): Adjust.
2171         (get_original_base): Delete.
2172         (build_vtt_inits): Adjust.
2173         (dfs_build_secondary_vptr_vtt_inits): Adjust.
2174         (dfs_ctor_vtable_bases_queue_p): Adjust.
2175         (build_ctor_vtbl_group): Adjust.
2176         (dfs_accumulate_vtbl_inits): Adjust.
2177         (build_vtbl_initializer): Adjust.
2178         (build_vbase_offset_vtbl_entries): Adjust.
2179         (add_vcall_offset_vtbl_entries_1): Adjust.
2180         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
2181         (access_*_node): Remove.
2182         (CANONICAL_BINFO): Delete.
2183         (BINFO_UNSHARED_MARKED): Remove.
2184         (BINFO_MARKED): Set LANG_FLAG_0 directly.
2185         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
2186         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
2187         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
2188         Delete.
2189         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
2190         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
2191         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
2192         Delete.
2193         (BINFO_DEPENDENT_BASE_P): New.
2194         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
2195         index.
2196         (markedp, unmarkedp): Adjust.
2197         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
2198         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
2199         find_vbase_instance, binfo_for_vbase): Delete.
2200         (copied_binfo, original_binfo): Declare.
2201         (finish_base_specifier): Add virtual_p arg.
2202         (unshare_base_binfos): Delete.
2203         (copy_base_binfos): Declare.
2204         (reverse_path): Delete.
2205         * cp/decl.c (xref_basetypes): Access and virtuality passed
2206         differently. Don't copy direct base binfos here. Call
2207         copy_base_binfos.
2208         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
2209         (initialize_vtbl_ptrs): Adjust.
2210         (expand_member_init): Adjust.
2211         * cp/parser.c (cp_parser_base_specifier): Adjust.
2212         * cp/pt.c (instantiate_class_template): Adjust.
2213         (get_template_base_recursive): Adjust.
2214         * cp/rtti.c (get_pseudo_ti_init): Adjust.
2215         (get_pseudo_ti_desc): Adjust.
2216         * cp/tree.c (unshare_base_binfos): Rename to ...
2217         (copy_base_binfos): ... here, reimplement.
2218         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
2219         (reverse_path): Remove.
2220         * cp/typeck.c (get_delta_difference): Adjust error messages.
2221         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
2222         * cp/search.c (lookup_base_r): Adjust.
2223         (dynamic_cast_base_recurse): Adjust.
2224         (canonical_binfo): Remove.
2225         (dfs_canonical_queue): Remove.
2226         (dfs_assert_unmarked_p): Remove.
2227         (assert_canonical_unmarked): Remove.
2228         (shared_marked_p, shared_unmarked_p): Remove.
2229         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
2230         (dfs_access_in_type): Adjust.
2231         (access_in_type): Adjust.
2232         (dfs_accessible_queue_p): Adjust.
2233         (dfs_accessible_p): Adjust.
2234         (is_subobject_of_p_1, is_subobject_of_p): Remove.
2235         (struct lookup_field_info): Remove from_dep_base_p field.
2236         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
2237         (lookup_field_r): Remove dependent base code.
2238         (lookup_member): Likewise.
2239         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
2240         (dfs_unmarked_real_bases_queue_p): Remove.
2241         (dfs_marked_real_bases_queue_p): Remove.
2242         (dfs_skip_vbases): Remove.
2243         (dfs_get_pure_virtuals): Adjust.
2244         (markedp, unmarkedp): Adjust.
2245         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
2246         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
2247         (dfs_unmark): Adjust.
2248         (dfs_get_vbase_types):Remove.
2249         (dfs_build_inheritance_graph_order): Remove.
2250         (get_vbase_types): Remove
2251         (dfs_find_vbase_instance): Remove.
2252         (find_vbase_instance): Remove.
2253         (dfs_debug_unmarkedp): Adjust.
2254         (dependent_base_p): Remove.
2255         (dfs_push_type_decls): Adjust.
2256         (dfs_push_decls): Adjust.
2257         (dfs_no_overlap_yet): Adjust.
2258         (copied_binfo): New function.
2259         (original_binfo): New function.
2260         (binfo_for_vbase): Remove.
2262         Change base class access representation.
2263         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
2264         (add_interface_do): Likewise.
2266 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
2268         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2269         * config/rs6000/power4.md (power4-store,power4-vecstore): New
2270         insn reservations.
2271         (power4-fpstore): Compact.
2273 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2275         * config/h8300/h8300.md (*iorsi3_w): New.
2277 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
2279         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
2280         * rtl.c (reg_note_name): Likewise.
2281         * rtl.h (enum reg_note): Likewise.
2282         * doc/invoke.texi: Likewise.
2283         * doc/rtl.texi: Likewise.
2285 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
2287         * bb-reorder.c (find_traces_1_round): Fix comment typo.
2289 2003-02-19  Roger Sayle  <roger@eyesopen.com>
2291         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
2292         addition in the presence of signaling NaNs.
2294 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
2296         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
2298 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2300         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
2301         ORing with 0xffff??00 with the highest bit of the ?? part set.
2302         (compute_logical_op_length): Update.
2303         (compute_logical_op_cc): Likewise.
2305 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
2307         * bb-reorder.c (find_traces_1_round): Fixed condition for small
2308         destination block with multiple predecessors.
2309         (connect_traces): Check whether the block is a start of trace.
2311 Wed Feb 19 19:00:24 CET 2003  Jan Hubicka  <jh@suse.cz>
2313         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
2314         * function.c (assign_params): Likewise.
2315         * arm-protos.h (arm_init_cumulative_args): Update prototype.
2316         * arm.c (arm_init_cumulative_args): Update function.
2317         * arm.h (INIT_CUMULATIVE_ARGS): Update.
2318         * avr-protos.h (init_cumulative_args): Update prototype.
2319         * avr.c (init_cumulative_args): Update function.
2320         * avr.h (INIT_CUMULATIVE_ARGS): Update.
2321         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
2322         * d30v.c (d30v_init_cumulative_args): Update function.
2323         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
2324         * frv-protos.h (frv_init_cumulative_args): Update prototype.
2325         * frv.c (frv_init_cumulative_args): Update function.
2326         * frv.h (INIT_CUMULATIVE_ARGS): Update.
2327         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
2328         * pa.h (INIT_CUMULATIVE_ARGS): Update.
2329         * sparc-protos.h (init_cumulative_args): Update prototype.
2330         * sparc.c (init_cumulative_args): Update function.
2331         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
2332         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
2334 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2336         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
2337         (*ashiftsi_sextqi_7): Likewise.
2339 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2341         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
2342         ISO C99 and C++.
2344         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
2345         for C++ on IRIX 6.5.1[89].
2346         * fixinc/tests/base/internal/sgimacros.h: New file.
2348         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
2349         * fixinc/tests/base/internal/wchar_core.h: New file.
2351         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
2352         socklen_t definition.
2353         * fixinc/fixincl.x: Regenerate.
2354         * fixinc/tests/base/sys/socket.h: New file.
2355         Fixes PR libgcj/9652.
2357 Wed Feb 19 17:22:51 CET 2003  Jan Hubicka  <jh@suse.cz>
2359         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
2361 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
2363         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
2364         align_jumps_max_skip and align_loops_max_skip.
2366 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
2368         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
2369         test size if named section.
2371 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
2373         * expr.c (expand_expr): Use gen_int_mode for the argument
2374         to gen_rtx_MULT.
2376 Wed Feb 19 14:22:42 CET 2003  Jan Hubicka  <jh@suse.cz>
2378         * i386.md (cosxf2):  Fix conditional.
2380 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2382         * config/h8300/h8300.md (extendqisi2): Change to an expander.
2383         (*extendqisi2_h8300): New.
2384         (*extendqisi2_h8300hs): Likewise.
2386 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
2388         * config/h8300/h8300-protos.h: Update the prototype for
2389         split_adds_subs.  Remove the prototypes for
2390         const_int_le_2_operand and const_int_le_6_operand.
2391         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
2392         (const_int_le_2_operand): Remove.
2393         (const_int_le_6_operand): Likewise.
2394         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
2395         for const_int_le_2_operand and const_int_le_6_operand.
2396         * config/h8300/h8300.md: Update all uses of split_adds_subs.
2397         (a peephole2): New.
2399 Tue Feb 18 23:50:59 CET 2003  Jan Hubicka  <jh@suse.cz>
2401         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
2402         (cgraph_expand_function): Rewrite.
2404 2003-02-18  Matt Austern <austern@apple.com>
2406         * toplev.c, langhooks.c, langhooks-def.h: Move
2407         write_global_declarations from toplev.c to langhooks.c.
2409 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2411         * config/h8300/h8300.c (general_operand_src): Always check
2412         MODE.
2413         (general_operand_dst): Likewise.
2415 2003-02-18  Roger Sayle  <roger@eyesopen.com>
2417         * convert.c (convert_to_real): Also optimize (float)log(x) into
2418         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
2420 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
2422         * config/sh/sh.c (unspec_caller_rtx_p): New.
2423         (sh_cannot_copy_insn_p): New.
2424         (TARGET_CANNOT_COPY_INSN_P): New.
2426 2003-02-18  Richard Henderson  <rth@redhat.com>
2428         * c-common.c (handle_used_attribute): Accept static data too.
2430 2003-02-18  Nick Clifton  <nickc@redhat.com>
2431             Aldy Hernandez  <aldyh@redhat.com>
2433         * testsuite/gcc.dg/20030218-1.c: New.
2435         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
2437         * target-def.h (TARGET_INITIALIZER): Add
2438         TARGET_VECTOR_TYPES_COMPATIBLE.
2439         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
2441         * target.h (struct gcc_target): Add field vector_types_compatible.
2443         * c-typeck.c (comptypes): Take into account
2444         TARGET_VECTOR_TYPES_COMPATIBLE.
2445         (convert_for_assignment): Same.
2447         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
2448         (rs6000_spe_vector_types_compatible): New.
2449         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
2451 2003-02-19  Andreas Schwab  <schwab@suse.de>
2453         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
2454         * toplev.c: Include langhooks-def.h.
2456 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
2458         * config/mips/mips.h (enum processor_type): Sort entries
2459         alphabetically.
2460         * config/mips/mips.md (define_attr cpu): Sync with processor_type
2461         enum values, including adding entries that were missing.
2463 Tue Feb 18 20:15:54 2003  J"orn Rennecke <joern.rennecke@superh.com>
2465         * sh.c (calc_live_regs): Also check GET_CODE when checking if
2466         initial value for PR_REG is still the PR_REG register.
2468 2003-02-18  Jim Wilson  <wilson@redhat.com>
2470         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
2471         instruction in output template.
2472         (bsp_value): Change output template from string to C code, add %,
2473         before actual instruction.
2474         (flushrs): Mark as not predicable.
2476 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
2478         * inclhack.def (netbsd_bogus_semicolon): New fix.
2479         * fixincl.x: Rebuilt.
2480         * tests/base/ctype.h: Update.
2482 2003-02-18  Roger Sayle  <roger@eyesopen.com>
2484         * fold-const.c (negate_expr_p): New function to determine whether
2485         an expression can be negated cheaply.
2486         (fold) [MINUS_EXPR]: Use it to determine whether to transform
2487         -A - B into -B - A for floating point types.
2489 2003-02-18  Roger Sayle  <roger@eyesopen.com>
2491         * sbitmap.c (sbitmap_resize): New function.
2492         * sbitmap.h (sbitmap_resize): Prototype here.
2493         * recog.c (split_all_insns): Use sbitmap_resize.
2495 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
2497         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
2498         insn length.
2499         (extendqisi2): Likewise.
2500         (*extendhisi2_h8300): Likewise.
2502 2003-02-18  Matt Austern <austern@apple.com>
2504         * langhooks.h, langhooks-def.h: introduce new langhook,
2505         final_write_globals, with write_global_declarations as default.
2506         * toplev.c: Move invocation of wrapup_global_declarations from
2507         compile_file to new function, write_global_declarations.  Change
2508         compile_file to use final_write_globals hook.  Change
2509         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
2510         conditional.
2512 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2514         * pa.md: Correct and enhance comment.
2516 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
2518         * gcc.c (validate_switches): Don't scan past closing '}'.
2520 2003-02-18  Ben Elliston  <bje@redhat.com>
2522         PR c++/1607
2523         * doc/extend.texi (Function Attributes): Document the effect of
2524         the C++ "this" parameter on the counting of arguments for the
2525         "format" and "format_arg" attributes.
2527 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
2529         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
2530         (__ev_stdw): Same.
2531         (__ev_stdh): Same.
2533 Mon Feb 17 16:16:54 CET 2003  Jan Hubicka  <jh@suse.cz>
2535         * recog.c (split_all_insns):  Fix memory overflow.
2537 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
2539         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
2540         (cmphi): Likewise.
2541         (*cmphi_h8300): Likewise.
2542         (*cmphi_h8300hs): Likewise.
2543         (cmpsi): Likewise.
2544         (7 peephole2): Likewise.
2546 Sun Feb 16 23:07:52 CET 2003  Jan Hubicka  <jh@suse.cz>
2548         * c-typeck.c (build_c_cast):  Fold constant variables into
2549         initial values.
2551 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2553         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
2554         (Binaries): Ditto for Sinix/Reliant Unix.
2556 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
2558         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
2559         not overlap the final result register.
2561 2003-02-16 Arend Bayer <arend.bayer@web.de>
2562            Richard Henderson  <rth@redhat.com>
2564         PR c/8068
2565         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
2566         rearrange mult arguments for less recursion.
2567         (extract_muldiv): New.  Prevent runaway recursion.
2569 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
2571         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
2572         MASK_ALIGN_DOUBLE.
2574 2003-02-15  Roger Sayle  <roger@eyesopen.com>
2576         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
2577         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
2578         (ext_80387_constants_table): Global table of 80387 special constants
2579         guarded by ext_80387_constants_init flag when not initialized.
2580         (init_ext_80387_constants): New function to initialize this table.
2581         (standard_80387_constant_p): Extend to recognize extra 80387
2582         constants, in XFmode, on processors where this is a win.
2583         (standard_80387_constant_opcode): New function to return the
2584         opcode associated with standard_80387_constant_p.
2585         (standard_80387_constant_rtx): New function to return the XFmode
2586         CONST_DOUBLE associated with standard_80387_constant_p.
2587         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
2589         * config/i386/i386-protos.h (standard_80387_constant_opcode):
2590         Prototype here.
2591         (standard_80387_constant_rtx): Likewise.
2593         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
2594         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
2595         *movtf_integer): Simplify using new standard_80387_constant_opcode.
2597 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
2599         * doc/invoke.texi (Optimize Options): Correct @option syntax.
2601 2003-02-15  Richard Henderson  <rth@redhat.com>
2603         * Makefile.in (cfglayout.o): Depend on TARGET_H.
2604         * cfglayout.c: Include target.h.
2605         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
2606         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
2607         * target.h (struct gcc_target): Add cannot_copy_insn_p.
2609         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
2610         (TARGET_CANNOT_COPY_INSN_P): New.
2611         (override_options): Revert 2003-02-08 hack.
2613 2003-02-15  Richard Henderson  <rth@redhat.com>
2615         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
2616         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
2618 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
2620         * config/rs6000/rs6000.h (processor_type): Add PPC440.
2621         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2622         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2623         TARGET_SCHED_VARIABLE_ISSUE): Define.
2624         (rs6000_use_dfa_pipeline_interface): New function.
2625         (rs6000_multipass_dfa_lookahead): New Function.
2626         (rs6000_variable_issue): New function.
2627         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
2628         (rs6000_issue_rate): Add PPC440.
2629         * config/rs6000/rs6000.md (unspec list): Correct typo.
2630         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
2631         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
2632         cmp, delayed_cr, mfcr, mtcr.
2633         (automata_option): Set "ndfa".
2634         (extendMMNN2): Update attributes.
2635         (movcc_internal1): Discourage move to non-cr0.  Update
2636         attributes.
2637         (movMM_update): Update attributes.
2638         (cmpMM_internal): Update attributes.
2639         (sCC CR materialization): Update attributes.
2640         (branch patterns): Do not discourage non-cr0.
2641         (cr logical patterns): Prefer destructive register allocation.
2642         Update attributes.
2643         (movesi_from_cr): Update attribute.
2644         (mtcrf_operation): Update attribute.
2645         (mtcrfsi): Update attribute.
2646         * config/rs6000/40x.md: New file.
2647         * config/rs6000/603.md: New file.
2648         * config/rs6000/6xx.md: New file.
2649         * config/rs6000/7450.md: New file.
2650         * config/rs6000/7xx.md: New file.
2651         * config/rs6000/mpc.md: New file.
2652         * config/rs6000/power4.md: New file.
2653         * config/rs6000/rios1.md: New file.
2654         * config/rs6000/rios2.md: New file.
2655         * config/rs6000/rs64.md: New file.
2656         [Some DFA descriptions based on work by Michael Hayes]
2658 2003-02-15  Richard Henderson  <rth@redhat.com>
2660         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
2661         successors with multiple predecessors.
2662         (connect_traces): Try harder to copy traces of length 1.
2664         * function.h (struct function): Add computed_goto_common_label,
2665         computed_goto_common_reg.
2666         * function.c (free_after_compilation): Zap them.
2667         * stmt.c (expand_computed_goto): Use them to produce one
2668         indirect branch per function.
2670 2003-02-15  Richard Henderson  <rth@redhat.com>
2672         * cfgcleanup.c: Include params.h.
2673         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
2674         too many outgoing edges from a block.
2675         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
2676         * params.def (max-crossjump-edges): New.
2677         * doc/invoke.texi: Document it.
2679 2003-02-15  Richard Henderson  <rth@redhat.com>
2681         * recog.c (split_all_insns): Include new blocks in life update;
2682         do a global life update.
2684 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
2686         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
2687         Update copyright.
2688         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
2689         -mno-cygwin case.
2691 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2693         PR optimization/7702
2694         * reload1.c (reload_cse_simplify_set): Honor
2695         CANNOT_CHANGE_MODE_CLASS.
2697 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
2699         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
2700         function.
2701         * config/mn10300/mn10300-protos.h: Declare it.
2702         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
2703         attribute cc of instructions that may use clr.
2705 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
2707         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
2708         (x - (x & y)) is found.
2710 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2712         * configure.in: Fix typo.
2713         * configure: Regenerate.
2715 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
2717         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
2719 2003-02-13  Adam Nemet  <anemet@lnxw.com>
2721         PR opt/2391
2722         * combine.c: Fix spelling in comment.
2723         (cached_nonzero_bits): New function.
2724         (cached_num_sign_bit_copies): New function.
2725         (nonzero_bits_with_known): New macro.
2726         (num_sign_bit_copies_with_known): New macro.
2727         (nonzero_bits1): Rename from nonzero_bits.  Add three new
2728         arguments.  Change calls from nonzero_bits to
2729         nonzero_bits_with_known.
2730         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
2731         three new arguments.  Change calls from num_sign_bit_copies to
2732         num_sign_bit_copies_with_known.
2733         (nonzero_bits): New macro.
2734         (num_sign_bit_copies): New macro.
2735         (update_table_tick): Don't traverse identical subexpression more
2736         than once.
2737         (get_last_value_validate): Likewise.
2739 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
2741         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
2742         * function.h (struct emit_status): Length of regno_pointer_align
2743         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
2744         not regno_pointer_align_length (i.e. length actually used, not
2745         length as allocated)
2747         * config/i386/i386.c (struct stack_local_entry): New.
2748         (struct machine_function): Replace huge array with alist.
2749         (assign_386_stack_local): Change to match.
2751 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
2753         * inclhack.def (hpux_long_double): Tighten select and add bypass
2754         regexp.
2755         * fixincl.x: Rebuilt.
2757 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
2759         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
2760         edge and block ends with a jump insn it must be simple jump.
2762 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
2764         * Makefile.in (PREPROCESSOR_DEFINES): Add
2765         @TARGET_SYSTEM_ROOT_DEFINE@.
2766         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
2767         is specified or if building a cross compiler.
2768         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
2769         if the sysroot is under $exec_prefix.
2770         * configure: Regenerated.
2771         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
2772         defined.
2773         (struct default_include): Add add_sysroot field.
2774         (cpp_SYSROOT): Declare.
2775         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
2776         field.
2777         (cpp_SYSROOT): New variable.
2778         * cppinit.c (cpp_create_reader): Initialize
2779         CPP_OPTION (pfile, sysroot).
2780         (init_standard_includes): Handle add_sysroot.  Do not
2781         add unrelocated copies of relocated directories.
2782         (COMMAND_LINE_OPTIONS): Add -isysroot.
2783         (cpp_handle_option): Handle -isysroot.
2784         * cpplib.h (struct cpp_options): Add sysroot member.
2785         * gcc.c (The Specs Language): Update description of %I.
2786         (target_system_root_changed): New variable.
2787         (process_command): Conditionalize make_relative_prefix call
2788         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
2789         target_system_root_changed.
2790         (do_spec_1): Add -isysroot to %I.
2791         * doc/invoke.texi (Spec Files): Update description of %I.
2792         * doc/install.texi (--with-sysroot): Update comment about
2793         relocation.
2795 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
2797         * config/h8300/h8300.md (a peephole2): New.
2799 2003-02-13  Robert Lipe <robertlipe@usa.net>
2800             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2802         * doc/install.texi (Specific): Update three SCO-related URLs.
2804 2003-02-13  Andreas Schwab  <schwab@suse.de>
2806         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
2807         Parenthesize properly.
2808         (NPREDECESORS): Parenthesize properly.
2810 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2812         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
2814 2003-02-12  Roger Sayle  <roger@eyesopen.com>
2816         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
2817         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
2819         * reg-stack.c (subst_stack_regs_pat): Add support for binary
2820         UNSPEC instructions (e.g. "fpatan").
2822 2003-02-12  Mike Stump  <mrs@apple.com>
2824         * varray.c (element_size): Remove.
2825         (uses_ggc): Remove.
2826         (element): Add.
2827         (varray_init): Use new interface.
2828         (varray_grow): Use new interface.
2829         (varray_clear): Use new interface.
2831 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
2833         * config/rs6000/spe.h: Add casts to the arguments of the following
2834         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
2835         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
2836         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
2837         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
2838         __ev_get_u16, __ev_get_s16.
2840 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2842         * config/h8300/h8300.md (a peephole2): New.
2844 Wed Feb 12 22:47:18 CET 2003  Jan Hubicka  <jh@suse.cz>
2846         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
2847         (OBJS): Add callgraph.o
2848         (callgraph.o): New.
2849         * c-decl.c (expand_body_1): Break out from ...
2850         (expand_body): This one;  change calling convention
2851         (finish_function): Move some of expand_body logic here.
2852         (c_expand_deferred_function): Update call of expand_body
2853         (c_expand_stmt): Use c_expand_body_1.
2854         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
2855         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
2856         * c-tree.h (c_expand_body): Declare.
2857         * callgraph.c: New file.
2858         * flags.h (flag_unit_at_a_time): Declare.
2859         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
2860         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
2861         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
2862         * langhooks.h (struct lang_hooks_for_callgraph): New.
2863         (struct lang_hooks): Add callgraph field.
2864         * toplev.c (flag_unit_at_a_time): New.
2865         (lang_independent_options): Add flag_unit_at_a_time.
2866         (process_options): Disable unit-at-a-time mode for frontends not
2867         supporting callgraph.
2868         * tree-inline.c (typedef struct inline_data): Add "decl"
2869         (expand_call_inline): Update callgraph.
2870         (optimize_inline_calls): Set id.decl.
2871         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
2872         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
2873         cgraph_calls_p): Declare.
2874         * invoke.texi (-funit-at-a-time): Document
2876 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
2878         * config/rs6000/spe.h: Fix misc formatting.
2879         (__ev_create_ufix32_fs): Cast ev argument.
2880         (__ev_create_sfix32_fs): Same.
2881         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
2882         (__ev_get_ufix32_fs_internal): Same.
2884 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
2886         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
2887         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
2889 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
2891         * cpplib.c (do_include_common): Move warnings for
2892         #include_next and #import out to callers.  Use early-return
2893         instead of nested ifs.  Don't do check_eol here.
2894         (parse_include): Do check_eol here with the rest of the
2895         parsing stuff.
2896         (do_include_next, do_import): Now handle warnings.
2898 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2900         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
2902 Wed Feb 12 15:19:42 CET 2003  Jan Hubicka  <jh@suse.cz>
2904         * predict.c (estimate_probability):  Fix roundoff error.
2906 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2908         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
2909         (two peephole2): New.
2911 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
2913         * config/h8300/h8300.md (several peephole2): Replace
2914         find_regno_note with peep2_reg_dead_p.
2916 2003-02-11  Richard Henderson  <rth@redhat.com>
2918         * gcse.c (lookup_set): Remove unused argument PAT.  Update
2919         both callers.
2921 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
2923         * diagnostic.c (real_abort): New.
2924         (diagnostic_report_diagnostic): Call real_abort on error.
2925         * diagnostic.h (diagnostic_abort_on_error): New.
2926         (struct diagnostic_context): Add abort_on_error field.
2927         * toplev.c (setup_core_dumping): New.
2928         (decode_d_option): Handle 'H' case.
2929         * doc/invoke.texi (Debugging Options): Document -dH.
2931 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
2933         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
2934         which refers to obsolete directories.
2936 2003-02-11  Richard Henderson  <rth@redhat.com>
2938         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
2940 Mon Oct 21 17:07:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
2942         * i386.c (contains_128bit_aligned_vector_p): New function.
2943         (ix86_function_arg_boundary): Properly align vector modes.
2945 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
2947         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
2948         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
2949         as a SET pattern.
2951 2003-02-11  Roger Sayle  <roger@eyesopen.com>
2953         * builtins.c:  Fix failure caused by commiting wrong patch.
2955 2003-02-11  Dale Johannesen  <dalej@apple.com>
2956         * ra-build.c (compare_and_free_webs):  Relax checking.
2957         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
2958         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
2960 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2962         PR optimization/9651
2963         * rtlanal.c (may_trap_p): Handle FIX.
2965 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
2967         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
2968         * doc/invoke.texi: Extra alias.
2970 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
2972         * config/rs6000/host-darwin.c: Fix comment.
2974 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
2976         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
2977         predicate for mod result.
2979 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2981         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
2982         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
2983         * fixincl.x: Rebuilt.
2984         * tests/base/stdlib.h: Update.
2985         * tests/base/ctype.h: New file.
2987 Tue Feb 11 20:44:45 CET 2003  Jan Hubicka  <jh@suse.cz>
2989         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
2991 2003-02-11  Richard Henderson  <rth@redhat.com>
2993         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
2994         appropriated as globals.
2995         (ix86_expand_clrstr): Similarly.
2996         * config/i386/i386.md (cmpstrsi): Similarly.
2998 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3000         * config/h8300/h8300.md (a peephole2): Add a case of 255.
3002 2003-02-11  Roger Sayle  <roger@eyesopen.com>
3004         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
3005         (pow_optab, atan2_optab): Define corresponding macros.
3006         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
3007         * genopinit.c (optabs): Implement pow_optab and atan2_optab
3008         using pow?f3 and atan2?f3 patterns.
3009         * builtins.c (expand_errno_check): New function to update errno
3010         if necessary, split out from expand_builtin_mathfn.
3011         (expand_builtin_mathfn): Use expand_errno_check.
3012         (expand_builtin_mathfn_2): New function to handle expanding binary
3013         math functions, reusing the code in expand_errno_check.
3014         (expand_builtin): Handle the pow and atan2 math built-ins,
3015         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
3016         expand_builtin_mathfn_2.
3018         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
3020 Tue Feb 11 19:03:22 MET 2003  Jan Hubicka  <jh@suse.cz>
3022         * combine.c (combine_simplify_rtx): Fix folding of
3023         nested float_truncates.
3025 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3027         * config/h8300/h8300.md (a peephole2): Fix a typo.
3029 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
3031         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
3032         register number.
3034 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3036         * config/h8300/h8300-protos.h: Add a prototype for
3037         gtuleu_operator.
3038         * config/h8300/h8300.c (gtuleu_operator): New.
3039         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
3040         * config/h8300/h8300.md (a peephole2): New.
3042 Tue Feb 11 13:32:12 CET 2003  Jan Hubicka  <jh@suse.cz>
3044         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
3046 Tue Feb 11 10:02:54 CET 2003  Jan Hubicka  <jh@suse.cz>
3048         * predict.c (choose_function_section): Choose sections correctly.
3050 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3052         * reload1.c (first_label_num): New.
3053         (reload): Index offsets_known_at and offsets_at using difference of
3054         label number and first label number.  Don't use offset pointers.
3055         (set_label_offsets, set_initial_label_offsets): Likewise.
3057 2003-02-10  Roger Sayle  <roger@eyesopen.com>
3059         * mips-tfile.c (init_file): Add missing initializers in the
3060         "#ifdef __alpha" case.
3061         (file_offset, max_file_offset): Declare as unsigned long.
3062         (write_varray): Cast to "unsigned long" in comparisons against
3063         either file_offset or max_file_offset.
3064         (write_object): Likewise.
3065         (read_seek): Likewise.
3066         (copy_object): Likewise. Declare "ifd" as int to match its use
3067         in add_ext_symbol, and avoid signed/unsigned conditional warning.
3069 2003-02-10  Nick Clifton  <nickc@redhat.com>
3070             Aldy Hernandez  <aldyh@redhat.com>
3072         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
3073         override options which have been specified on the command line.
3075 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
3077         * config/h8300/h8300.md (abssf2): New.
3078         (*abssf2_h8300): Likewise.
3079         (*abssf2_h8300hs): Likewise.
3081 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
3083         * tree.c (build_tree_list):  Fix parameter names in comment.
3085 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
3087         * config/rs6000/ppc64-fp.c: New file.
3088         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
3090 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
3092         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3093         * bb-reorder.c (make_reorder_chain): Deleted.
3094         (make_reorder_chain_1): Deleted.
3095         (find_traces): New function.
3096         (rotate_loop): New function.
3097         (mark_bb_visited): New function.
3098         (find_traces_1_round): New function.
3099         (copy_bb): New function.
3100         (bb_to_key): New function.
3101         (better_edge_p): New function.
3102         (connect_traces): New function.
3103         (copy_bb_p): New function.
3104         (get_uncond_jump_length): New function.
3105         (reorder_basic_blocks): Use new functions (Software Trace Cache).
3106         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
3107         boundaries.
3109 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
3111         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
3113 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
3115         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3116         (DECL_LIVE_RANGE_RTL): Remove.
3118 2003-02-10  Nick Clifton  <nickc@redhat.com>
3120         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
3121         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
3122         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
3123         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
3124         config/arm/freebsd.h, config/arm/linux-elf.h,
3125         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
3126         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
3127         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
3128         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
3129         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
3130         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
3131         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
3132         and reformat as appropriate.
3134 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
3136         * config/h8300/clzsi2.c: Remove.
3137         * config/h8300/ctzsi2.c: Likewise.
3138         * config/h8300/paritysi2.c: Likewise.
3139         * config/h8300/popcountsi2.c: Likewise.
3140         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
3141         ctzsi2, paritysi2, and popcountsi2.
3143 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3144             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
3146         PR c/7741
3147         * c-decl.c (duplicate_decls): Discard the initializer of the
3148         new decl when the types are conflicting.
3150 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
3152         * Makefile.in (sreal.o): Added.
3153         (predict.o): Depends on sreal.h instead of real.h.
3154         * sreal.c: New file.
3155         * sreal.h: New file.
3156         * predict.c: Use sreal.c instead of real.c.
3158 2003-02-10  Nick Clifton  <nickc@redhat.com>
3160         * Contributed support for the Cirrus EP9312 "Maverick"
3161         floating point co-processor.  Written by Aldy Hernandez
3162         <aldyh@redhat.com>.
3163         (config/arm/arm.c): Add Cirrus support.
3164         (config/arm/arm.h): Likewise.
3165         (config/arm/aout.h): Likewise.
3166         (config/arm/arm.md): Likewise.
3167         (config/arm/arm-protos.h): Likewise.
3168         (config.gcc): Likewise.
3169         (doc/invoke.texi): Describe new -mcpu value and new
3170         -mcirrus-fix-invalid-insns switch,
3171         (cirrus.md): New file.
3173 Mon Feb 10 11:40:18 CET 2003  Jan Hubicka  <jh@suse.cz>
3175         * combine.c (combine_simplify_rtx): Simplify using
3176         (float_truncate (float x)) is (float x)
3177         (float_extend (float_extend x)) is (float_extend x).
3179 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
3181         * calls.c (try_to_integrate): Tidy stack_usage_map access.
3182         (emit_library_call_value_1): Likewise.  Formatting.
3183         (store_one_arg): Likewise.
3185 2003-02-09  Nick Clifton  <nickc@redhat.com>
3186             Aldy Hernandez  <aldyh@redhat.com>
3188         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
3189         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
3190         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
3191         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
3192         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
3193         docs.  Add range test for immediate value.
3195 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
3197         Rename spe_evxor to xorv2si3.
3198         (xorv4hi3): New.
3199         (xorv1di3): New.
3201 2003-02-10  Glen Nakamura  <glen@imodulo.com>
3203         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
3204         tag.
3206 Mon Feb 10 00:29:17 CET 2003  Jan Hubicka  <jh@suse.cz>
3208         * i386.c (vector_move_operand): New predicate.
3209         (ix86_expand_vector_move): Be happy about 0.
3210         * i386.h (PREDICATE_CODES): Add sse-move_operand.
3211         * i386.md (mov*_internal): Add 'C' alternative.
3213 Sun Feb  9 23:58:33 CET 2003  Jan Hubicka  <jh@suse.cz>
3215         * i386.md (floathi*): Deal with SSE.
3217 Sun Feb  9 23:54:59 CET 2003  Jan Hubicka  <jh@suse.cz>
3219         * simplify-rtx.c (simplify_unary_operation,
3220         simplify_binary_operation):  Deal with vector modes
3221         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
3223 2002-02-09  Richard Sandiford  <rsandifo@redhat.com>
3225         * toplev.c (rest_of_compilation): Recompute register usage after
3226         split_all_insns.
3228 2003-02-09  Richard Henderson  <rth@redhat.com>
3230         * libgcc-std.ver (__clztf2): New.
3231         (__ctztf2, __popcounttf2, __paritytf2): New.
3232         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
3233         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
3234         adjust code to match the different type sizes.
3235         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
3236         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
3238         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
3239         TImode; select word_mode and twice that.
3240         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
3241         select the modes from float, double, and long double.
3242         (init_optabs): Remove duplicate initializations.
3244 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
3246         * doc/install.texi: Squeeze and streamline section on
3247         testing and regression checking.
3249 Sun Feb  9 13:33:34 CET 2003  Jan Hubicka  <jh@suse.cz>
3251         * i386.md (ahi?v*3): Set third operand type to TImode.
3252         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
3254         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
3255         integer mode.
3257         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
3258         Change code so they are arithmetic expressions now.
3259         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
3260         simplify_ternary_operation): Deal with VEC_* expressions.
3262         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
3264 Sat Feb  8 00:21:22 CET 2003  Jan Hubicka  <jh@suse.cz>
3266         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
3267         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
3268         possibly got duplicated.
3270 2003-02-08  Richard Henderson  <rth@redhat.com>
3272         * config/alpha/alpha.c (override_options): Turn off explicit
3273         relocs until post-peep2 code duplication resolved.
3275 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3277         * optabs.c (expand_unop): Widen clz properly when clz is done
3278         via libcall.
3280 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3282         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
3283         * config/h8300/crti.asm: Likewise.
3284         * config/h8300/crtn.asm: Likewise.
3285         * config/h8300/ctzsi2.c: Likewise.
3286         * config/h8300/fixunssfsi.c: Likewise.
3287         * config/h8300/h8300-protos.h: Likewise.
3288         * config/h8300/h8300.c: Likewise.
3289         * config/h8300/h8300.h: Likewise.
3290         * config/h8300/h8300.md: Likewise.
3291         * config/h8300/paritysi2.c: Likewise.
3292         * config/h8300/popcountsi2.c: Likewise.
3293         * config/h8300/rtems.h: Likewise.
3295 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3297         * doc/invoke.texi: Documentation for my previous commit.
3298         * doc/passes.texi: Ditto.
3300 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3302         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
3303         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3304         Declare.
3305         (DLTHE_FLAG_UPDATE_FREQ): New.
3306         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
3307         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
3308         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
3309         fix_bb_placement, fix_bb_placements, place_new_loop,
3310         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
3311         New static functions.
3312         (fix_loop_placement, can_duplicate_loop_p,
3313         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
3314         New functions.
3316         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
3317         unswitch_loops): Declare.
3318         * loop-init.c: New file.
3319         * loop-unswitch.c: New file.
3320         * Makefile.in (loop-init.o, loop-unswitch.o): New.
3321         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
3322         * toplev.c (DFI_loop2): New dump.
3323         (flag_unswitch_loops): New.
3324         (lang_independent_options): Add it.
3325         (rest_of_compilation): Call new loop optimizer.
3326         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
3328 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3330         * config/h8300/clzsi2.c: New.
3331         * config/h8300/ctzsi2.c: Likewise.
3332         * config/h8300/paritysi2.c: Likewise.
3333         * config/h8300/popcountsi2.c: Likewise.
3334         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
3336 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
3338         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
3339         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
3340         (ctzsi2): New pattern.
3341         (ffssi2): Use clz instead of unspec.
3342         (clzdi2): Rename from cntlzd2.
3343         (ctzdi2): New pattern.
3344         (ffsdi2): Use clz instead of unspec.
3346 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
3348         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
3349         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
3350         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
3351         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
3353 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
3355         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
3357 2003-02-07  Richard Henderson  <rth@redhat.com>
3359         PR 9226
3360         * gcse.c (local_cprop_find_used_regs): New.
3361         (local_cprop_pass): Use it.
3363 2003-02-07  Fred Fish  <fnf@intrinsity.com>
3365         * mips-tfile.c (parse_def): Parenthesize assignments to fix
3366         precedence bugs.
3368 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
3370         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
3372 2003-02-07  Roger Sayle  <roger@eyesopen.com>
3374         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
3375         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
3376         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
3377         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
3378         builtin functions (and their __builtin_* variants).
3379         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
3380         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
3381         when not optimizing.
3383         * doc/extend.texi: Document new pow and atan2 builtins, and
3384         their float and long double variants.  Realphabetize builtins.
3386 Fri Feb  7 23:24:28 CET 2003  Jan Hubicka  <jh@suse.cz>
3388         * i386.md (sse2_nandv2di3): Fix.
3390 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
3392         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
3393         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
3394         definition.
3395         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
3396         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
3398 Fri Feb  7 22:22:40 CET 2003  Jan Hubicka  <jh@suse.cz>
3400         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
3402 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
3404         * cfg.c (dump_flow_info): Add back accidently deleted line.
3406 2003-02-07  Andrey Petrov <petrov@netbsd.org>
3408         * optabs.c (expand_float): Search wider integer modes first.
3410 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
3412         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
3413         based on preprocessor flag.
3415 2003-02-07  Roger Sayle  <roger@eyesopen.com>
3416             Richard Henderson  <rth@redhat.com>
3418         * gcse.c (implicit_sets): New.
3419         (compute_hash_table_work): Include them in hash table.
3420         (find_implicit_sets, fis_get_condition): New.
3421         (one_cprop_pass): Allocate and free implicit_sets; call
3422         find_implicit_sets before building hash table.
3424 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
3426         * config/t-netbsd (USER_H): Revert previous change.
3428 2003-02-07  Gabor Greif  <ggreif@lucent.com>
3430         * doc/c-tree.texi (Namespaces): Fix typo.
3432 Fri Feb  7 02:18:57 CET 2003  Jan Hubicka  <jh@suse.cz>
3434         * regrename.c (do_replace, find_oldest_value_reg,
3435         copyprop_hardreg_forward_1): Update register attributes.
3437 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
3439         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
3440         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
3441         variables starting with underscore.
3442         (struct unit_usage): New structure.
3443         (unit_usages, cycle_alt_unit_usages): New global variables.
3444         (check_unit_distribution_in_reserv): Remove it.
3445         (store_alt_unit_usage): New function.
3446         (check_regexp_units_distribution): Rewrite it.
3448 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3450         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
3451         target_cpu_default.
3452         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
3453         if not MASK_NO_SPACE_REGS.
3454         (output_call): Adjust return pointer, don't load new space register
3455         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
3456         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
3457         TARGET_NO_SPACE_REGS is true.
3458         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
3459         conditions.
3460         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
3461         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
3462         true.  Use bve when TARGET_64BIT is true.
3464 2003-02-06  Richard Henderson  <rth@redhat.com>
3466         * combine.c (nonzero_bits): Fix double break.
3468 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
3469             Richard Henderson <rth@redhat.com>
3471         PR c/9530
3472         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
3473         from functions that return a float to functions that don't.
3475 Thu Feb  6 00:18:38 CET 2003  Jan Hubicka  <jh@suse.cz>
3477         * i386.c (x86_inter_unit_moves): New variable.
3478         (ix86_secondary_memory_needed): Fix 64bit case, honor
3479         TARGET_INTER_UNIT_MOVES
3480         * i386.h (x86_inter_unit_moves): Declare.
3481         (TARGET_INTER_UNIT_MOVES): New macro.
3482         * i386.md (movsi_1): Cleanup constraints; disable
3483         when not doing inter-unit moves.
3484         (movsi_1_nointernunit): New.
3485         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
3486         (movdi_1_rex64_nointerunit): New.
3487         (mivsf_1): disable when not doing inter-unit moves.
3488         (movsf_1_nointerunit): New.
3490         * basic-block.h (inside_basic_block_p):  Declare.
3491         * cfgbuild.c (inside_basic_block_p): Make global.
3492         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
3493         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
3494         update CFG.
3495         (fix_basic_block_boundaries, add_missing_bbs): New.
3496         (rank): Use profile.
3497         (scheudle_ebbs): Rely on CFG; update coments.
3499 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
3501         * Makefile.in (host_hook_obj): New.
3502         (OBJS): Add $(host_hook_obj).
3503         (host_default.o): New rule.
3504         * config.gcc (host_hook_obj): New, default to host-default.o.
3505         (powerpc-*-darwin*): Use host-darwin.o.
3506         (out_host_hook_obj): New.
3507         * configure: Regenerate.
3508         * configure.in: Print information about out_host_hook_obj, substitute
3509         into output files.
3510         * host-default.c: New file.
3511         * hosthooks.h: New file.
3512         * toplev.c (general_init): Call host_hooks.extra_signals.
3513         * config/rs6000/host-darwin.c: New file.
3514         * config/rs6000/x-darwin: New file.
3515         * doc/hostconfig.texi: Add documentation for new host hook.
3516         Rearrange existing documentation.
3518 2003-02-05  Roger Sayle  <roger@eyesopen.com>
3520         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
3521         with *targetm.delegitimize_address.
3522         (rtl_for_decl_location): Likewise.
3523         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
3524         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
3526         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3527         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
3528         prototype.
3529         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
3530         i386_simplify_dwarf_addr.  Made static.  Prototyped.
3531         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
3532         i386_simplify_dwarf_addr to ix86_delegitimize_address.
3533         (ix86_find_base_term): Likewise.
3534         (maybe_get_pool_constant): Likewise.
3536         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
3537         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
3538         prototype.
3539         * config/s390/s390.c (s390_delegitimize_address): Renamed from
3540         s390_simplify_dwarf_addr.  Made static.  Prototyped.
3541         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
3543 2003-02-05  Richard Henderson  <rth@redhat.com>
3545         PR c/8602
3546         * integrate.c (output_inline_function): Reset input_filename
3547         and lineno from the decl before rest_of_compilation.
3549 2003-02-05  Richard Henderson  <rth@redhat.com>
3551         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3552         (CTZ_DEFINED_VALUE_AT_ZERO): New.
3553         * doc/rtl.texi, doc/tm.texi: Document them.
3555         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
3556         of the value at zero properly.
3557         * fold-const.c (tree_expr_nonnegative_p): Likewise.
3558         * simplify-rtx.c (simplify_unary_operation): Likewise.
3560         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3561         (CTZ_DEFINED_VALUE_AT_ZERO): New.
3563         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
3564         (TARGET_EXPAND_BUILTIN): Remove.
3565         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
3566         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
3567         (enum arm_builtins): Remove.
3568         * config/arm/arm.md (UNSPEC_CLZ): Remove.
3569         (clzsi2): Rename from clz; use clz instead of unspec.
3570         (ctzsi2): New.
3571         * config/arm/arm-protos.h: Update.
3573 Wed Feb  5 23:12:57 CET 2003  Jan Hubicka  <jh@suse.cz>
3575         * i386-protos.h (x86_emit_floatuns):  Declare.
3576         * i386.c (x86_emit_floatuns): New global function.
3577         * i386.md (floatunssisf2, floatunsdisf2,
3578         floatunsdidf2):  New patterns.
3580 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3582         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
3584 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
3586         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
3587           config/ia64/linux.h
3589 2002-02-05  Roger Sayle  <roger@eyesopen.com>
3591         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
3593 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
3595         PR optimization/8555
3596         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
3597         instead of aborting.
3599 2003-02-04  Richard Henderson  <rth@redhat.com>
3601         * config/i386/i386.md (UNSPEC_BSF): Remove.
3602         (ffssi2): Split into cmove and no_cmove insns and splitters;
3603         lose pentium float trick for now.
3604         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
3605         (ctzsi2, clzsi2, bsr): New.
3607 2003-02-04  Richard Henderson  <rth@redhat.com>
3609         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
3610         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
3611         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
3612         (ffsdi2): Use popcount instead of unspec.
3613         (popcountdi2): Rename from *popcnt.
3614         (ctzdi2, clzdi2, getf_exp_tf): New.
3616 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
3618         * genconfig.c (main): Generate CC0_P.
3619         * rtl.h (CC0_P): Remove.
3621 2003-02-04  Richard Henderson  <rth@redhat.com>
3623         * libgcc2.h, libgcc2.c (__ffsSI2): New.
3624         (__ffsDI2): Rename from __ffsdi2.
3625         * mklibgcc.in (lib2funcs): Add _ffssi2.
3627 2003-02-04  Richard Henderson  <rth@redhat.com>
3629         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
3630         rounds with a "bit table" lookup.
3632 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
3634         * reload.c (find_reloads): Do not use the mode specified in the insn
3635         pattern as reload mode for address operands.  Do not generate optional
3636         reloads for operands where a mandatory reload was already pushed.
3638 2003-02-04  Richard Henderson  <rth@redhat.com>
3640         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
3641         builtins instead of inline assembly.
3643 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3645         PR c/9376
3646         * libgcc2.c (__subvdi3): Fix typo.
3648 Tue Feb  4 21:46:05 CET 2003  Jan Hubicka  <jh@suse.cz>
3650         * i386.md (movti_rex64):  Fix constraint.
3652 Tue Feb  4 18:40:42 CET 2003  Jan Hubicka  <jh@suse.cz>
3654         * i386.md (vector push splitters):  Fix typo in resolving conflict.
3656 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
3658         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
3660 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
3662         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
3663         for recent libstdc++.  Remove formatting cruft.
3665 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
3667         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
3668         attribute even if input file name is absolute, but one of the
3669         includes is relative.
3671 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3673         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
3674         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
3675         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
3677 2003-02-03  Richard Henderson  <rth@redhat.com>
3679         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3680         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
3681         return type to "int".  Shuffle declarations and undef int trap.
3682         * libgcc2.h: Remove their declarations.
3683         * optabs.c (expand_unop): Force outmode to int for bitops.
3685 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
3687         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
3688         coprocessor registers before floating-point registers.
3689         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
3690         to account for a previously removed register.
3691         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
3692         Delete unused macros.
3694 Mon Feb  3 21:19:11 CET 2003  Jan Hubicka  <jh@suse.cz>
3696         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
3697         (mov*_internal): Fix predicates; require one of operands to not be
3698         memory.
3699         (SSE?MMX move expanders):  Fix predicates; force one of operands to
3700         register.
3701         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
3702         (movups/movupd/movdqu patterns): Force one of operands to not be
3703         memory.
3705 2002-02-03  Roger Sayle  <roger@eyesopen.com>
3707         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
3708         takes a single rtx and returns it unmodified.
3709         * hooks.h (hook_rtx_rtx_identity): Prototype here.
3710         * target.h (struct gcc_target): Add "delegitimize_address"
3711         field to target structure.
3712         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
3713         for delegitimize_address target using hook_rtx_rtx_identity.
3714         (TARGET_INITIALIZER): Initialize delegitimize_address field
3715         using TARGET_DELEGITIMIZE_ADDRESS macro.
3716         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
3717         extensions of constant pool references.  Use delegitimize_address
3718         to undo the obfuscation of "-fpic".
3719         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
3721         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
3722         i386_simplify_dwarf_addr.
3723         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
3724         (maybe_get_pool_constant): Likewise.
3726 Mon Feb  3 16:01:17 CET 2003  Jan Hubicka  <jh@suse.cz>
3728         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
3730 Mon Feb  3 01:30:11 CET 2003  Jan Hubicka  <jh@suse.cz>
3732         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
3734 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3736         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
3737         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
3739 2003-02-02  Andreas Schwab  <schwab@suse.de>
3741         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
3743 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
3745         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
3746         (epilogue_insns): Likewise.
3748 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3750         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
3752 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3754         * pa-protos.h (attr_length_millicode_call): Remove second argument.
3755         (attr_length_indirect_call, attr_length_indirect_call,
3756         attr_length_save_restore_dltp): New prototypes.
3757         * pa.c (attr_length_millicode_call): Remove second argument.  Check
3758         INSN_ADDRESSES_SET_P in distance calculation.
3759         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
3760         INSN_ADDRESSES.
3761         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
3762         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
3763         Call attr_length_call directly.
3764         (attr_length_indirect_call, output_indirect_call,
3765         attr_length_save_restore_dltp): New functions.
3766         * pa.md (attr_length_millicode_call): Drop second argument from all
3767         patterns.
3768         (return_internal_pic): Delete.
3769         (return_external_pic): Remove use of PIC register and pic operand and
3770         flag checks.
3771         (epilogue): Use return_internal for both normal and pic code.
3772         (call, call_value): Emit new 32-bit pic patterns for symref and
3773         indirect calls.  Remove uses for arg pointer and pic register.
3774         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
3775         call_reg_pic_post_reload, call_val_symref_pic,
3776         call_val_symref_pic_post_reload, call_val_reg_pic,
3777         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
3778         Implement define_split and define_peephole2 patterns for pre reload
3779         patterns.
3780         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
3781         call_value_internal_reg_64bit): Shorten names.
3782         (all call patterns): Explicitly indicate registers used and clobbered.
3783         Use attr_length_indirect_call and attr_length_save_restore_dltp for
3784         attribute length calculation.  Move code generation for indirect calls
3785         to output_indirect_call.
3786         (sibcall, sibcall_value): Don't restore PIC register.
3787         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
3788         register retore.
3790 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3792         * doc/install.texi (Testing): Simplify and compress instructions
3793         concerning Dejagnu.
3795 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3797         * collect2.c (pexecute_pid): Rename to pid.
3798         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
3799         pid.
3801 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
3803         * doc/extend.texi (Function Attributes): Remove documentation
3804         for PowerPC Windows NT function attributes..
3806 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
3808         * dwarf2out.c (gen_type_die): Check for typedefs before calling
3809         for TYPE_MAIN_VARIANT.
3811 2003-02-01  Richard Henderson  <rth@redhat.com>
3813         * libgcc2.c: Include auto-host.h.
3814         (ATTRIBUTE_HIDDEN): New.
3815         (__clz_tab): Don't declare here for clz and ctz.
3816         (__clzsi2, __clzdi2): Use count_leading_zeros.
3817         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
3818         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
3819         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
3820         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
3822 2003-02-01  Richard Henderson  <rth@redhat.com>
3824         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
3825         to the conditional.
3826         (ashlsi3_1_zext splitter): Likewise.
3828 2003-02-01  Richard Henderson  <rth@redhat.com>
3830         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
3831         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3832         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
3833         return type to Wtype.
3835         * libgcc-std.ver (GCC_3.4): Fix inheritance.
3837         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
3838         expander input constraint.
3840 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3842         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
3843         OTI_parity.
3844         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
3845         * optabs.c (widen_clz, expand_parity): New.
3846         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
3847         for libcalls to clz, ctz, popcount, and parity.
3848         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
3849         parity_optab, and set up libfunc handlers.
3850         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
3851         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
3852         __popcount_tab): New.
3853         * libgcc2.h: Declare them.
3854         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
3855         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
3856         and parity_optab.
3857         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
3858         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
3859         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
3860         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
3861         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
3862         BUILT_IN_PARITYLL): New.
3863         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
3864         and add optab argument.
3865         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
3866         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
3867         * expr.c (expand_expr): Handle them.
3868         * fold-const.c (tree_expr_nonnegative_p): Likewise.
3869         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
3870         * reload1.c (eliminate_regs): Handle them.
3871         (elimination_effects): Likewise.
3872         * function.c (instantiate_virtual_regs_1): Likewise
3873         * genattrtab.c (check_attr_value): Likewise.
3874         * simplify-rtx.c (simplify_unary_operation): Likewise.
3875         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
3876         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
3877         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
3878         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
3879         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
3880         __builtin_arm_clz.
3881         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
3882         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
3883         * doc/extend.texi (Other Builtins): Add new builtins.
3884         * doc/md.texi (Standard Names): Add new patterns.
3886 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
3888         * reload.c: Revert 2003-01-31 change.
3890 Sat Feb  1 14:14:40 CET 2003  Jan Hubicka  <jh@suse.cz>
3892         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
3894 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
3896         * flags.h (flag_volatile): Remove declaration.
3897         (flag_volatile_global, flag_volatile_static): Likewise.
3898         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
3899         * toplev.c (flag_volatile): Remove definition.
3900         (flag_volatile_global, flag_volatile_static): Likewise.
3901         (f_options): Remove corresponding entries here.
3902         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
3903         or flag_volatile_static.
3904         * doc/invoke.texi: Remove documentation of -fvolatile,
3905         -fvolatile-global and -fvolatile-static.
3907 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3909         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
3910         updating of total_code_bytes from prologue to epilogue.
3912 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
3914         * reload.c (find_reloads): Do not use the mode specified in the insn
3915         pattern as reload mode for address operands.  Do not generate optional
3916         reloads for operands where a mandatory reload was already pushed.
3917         Generate optional reloads only in the final pass though find_reloads.
3918         (have_replacement_p): New function.
3920 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3922         * doc/install.texi (Testing): Remove a reference to our obsolete
3923         /testresults web pages and strip redundant information concerning
3924         test results.
3925         (Binaries): Refer to Microsoft Windows instead of listing all
3926         possible variants.
3928 Sat Feb  1 00:28:30 CET 2003  Jan Hubicka  <jh@suse.cz>
3930         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
3931         RTL chain.
3933         * combine.c (simplify_set): Reverse order of ragumetns to
3934         REG_CANNOT_CHANGE_MODE_P
3935         * df.c (df_def_record_1): Likewise.
3936         * recog.c (register_operand): Likewise.
3937         * simplify-rtx.c (simplify_subreg): Likewise.
3938         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
3939         CANNOT_CHANGE_MODE_CLASS.
3940         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
3941         Likewise.
3942         * reload.c (push_reload): Likewise.
3943         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3944         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3945         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3946         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
3947         * mips.c (mips_cannot_change_mode_class): Update.
3948         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3949         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3950         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3951         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
3952         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
3953         * sh.c (sh_cannot_change_mode_class): Update.
3954         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
3955         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
3957 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
3959         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
3960         change to LINK_COMMAND_SPEC in gcc.c.
3962 2003-01-31  Jan Hubicka  <jh@suse.cz>
3964         PR c/9506
3965         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
3967 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3969         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
3970         duplicated code.
3972 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
3974         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
3975         (BINFO_ELTS): New #define.
3976         * stor-layout.c (finalize_record_size): Don't set them.
3977         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
3978         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
3979         (BINFO_LANG_ELTS): New #define.
3980         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
3981         * java/class.c (make_class): Use BINFO_ELTS.
3982         (set_super_info): Likewse.
3983         (add_interface_do): Likewise.
3984         * objc/objc-act.c (start_class): Use BINFO_ELTS.
3986 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
3988         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
3989         (times): Don't ever declare if not HAVE_TIMES.
3990         (clock): Don't ever declare if not HAVE_CLOCK.
3992 2003-01-30  Richard Henderson  <rth@redhat.com>
3994         * flow.c (update_life_info): Zap life info after cleanup_cfg.
3995         (regno_uninitialized): Use correct live at function entry set.
3996         (regno_clobbered_at_setjmp): Likewise.
3998         * expr.c (store_expr): Promote all MEM intermediates to regs.
4000 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4002         * config/arm/arm.c: Fix comment typos.
4003         * config/arm/arm.h: Likewise.
4004         * config/arm/netbsd-elf.h: Likewise.
4005         * config/arm/netbsd.h: Likewise.
4007 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
4009         * gengtype.c (struct walk_type_data): Add needs_cast_p.
4010         (walk_type): Set needs_cast_p in walk_type_data.
4011         (write_types_process_field): Supply casts when required to suppress
4012         warnings.
4013         (write_root): Cast gt_pch_n_S to suppress warning.
4014         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
4015         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
4016         when they might exist.
4017         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
4018         insn-conditions.o, and rs6000.o.
4020 2003-01-30  Richard Henderson  <rth@redhat.com>
4022         * ggc-page.c (G.context_depth_allocations): New.
4023         (G.context_depth_collections): New.
4024         (alloc_page): Set G.context_depth_allocations.
4025         (ggc_collect): Set G.context_depth_collections.
4026         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
4027         (ggc_pop_context): Early exit for no allocations or collections.
4029 2003-01-30  Richard Henderson  <rth@redhat.com>
4031         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
4033 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
4035         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
4036         size, the link register is always saved if any other register is
4037         saved.
4039 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4041         * config/h8300/h8300-protos.h: Update the prototype for
4042         compute_plussi_cc.
4043         (cpp_reader): Declare before it is used.
4044         * config/h8300/h8300.c (compute_plussi_cc): Change the return
4045         type to int.
4046         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
4047         see an unknown H8 variant.
4049 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
4051         PR target/9316
4052         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
4053         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
4054         * config/rs6000/t-rtems: New file. multilib variants to match OS.
4055         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
4056         rs6000/t-ppcgas so we get the desired multilibs.
4058 2003-01-30  Nick Clifton  <nickc@redhat.com>
4060         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
4061         when popping saved IP register off the stack.
4063 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4065         * config/rs6000/aix43.h: Fix comment typos.
4066         * config/rs6000/aix51.h: Likewise.
4067         * config/rs6000/aix52.h: Likewise.
4068         * config/rs6000/altivec.h: Likewise.
4069         * config/rs6000/rs6000.c: Likewise.
4070         * config/rs6000/rs6000.h: Likewise.
4071         * config/rs6000/rs6000.md: Likewise.
4072         * config/rs6000/spe.md: Likewise.
4074 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
4076         * c-common.c (builtin_define_float_constants): Define
4077         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
4079 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4081         * config/sh/lib1funcs.asm: Fix comment typos.
4082         * config/sh/linux.h: Likewise.
4083         * config/sh/sh.c: Likewise.
4084         * config/sh/sh.md: Likewise.
4086 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
4088         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
4090 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
4092         * config/fp-bit.h (__make_dp): Declare if TMODES.
4094 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
4096         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
4097         general_operand_src and general_operand_dst.
4099 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
4101         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
4102         Return true for variable sized types.
4103         (rs6000_va_arg): Handle variable sized types passed by reference
4104         on non-SVR4 ABI.
4106 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
4108         * arm.c (arm_legtimize_address): New function.
4109         * arm-protos.h (arm_legtimize_address): Add prototype.
4110         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
4111         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
4112         do ... while (0)
4114 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4116         PR bootstrap/9296
4117         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
4118         depended on it being defined until now.
4120 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4122         PR target/9295
4123         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
4124         RTEMS code knows which C++ initialization style the toolset
4125         configuration is using.
4127 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4129         PR bootstrap/9293
4130         * config/m68k/t-crtstuff: Replace spaces with tabs, add
4131          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
4133 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4135         PR bootstrap/9292
4136         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
4137         RTEMS threads.
4138         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
4140 2003-01-29  Nick Clifton  <nickc@redhat.com>
4142         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
4143         not $(srcdir).
4145 2003-01-29  Andrew Haley  <aph@redhat.com>
4147         * tree-inline.c (walk_tree): Add CHAR_TYPE.
4149 Wed Jan 29 10:26:12 CET 2003  Jan Hubicka  <jh@suse.cz>
4151         * i386.md (subdi3_carry_rex64): Fix typo.
4153 2003-01-28  Stan Shebs  <shebs@apple.com>
4155         * coretypes.h (cpp_reader): Forward declare struct.
4156         * c-pragma.h (cpp_reader): Remove forward declaration.
4157         * hashtable.h (cpp_reader): Likewise.
4158         * scan.h (cpp_reader): Likewise.
4159         * tree.h (cpp_reader): Likewise.
4160         * config/darwin-protos.h (cpp_reader): Likewise.
4161         * config/arm/arm-protos.h (cpp_reader): Likewise.
4162         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
4163         struct cpp_reader in prototypes.
4165 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4167         * doc/install.texi: Add documentation for installation into
4168         tooldirs and with DESTDIR.
4170 2003-01-28  Richard Henderson  <rth@redhat.com>
4172         * config.gcc (ia64*-*-aix*): Remove.
4173         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
4174         * config/ia64/unwind-aix.c: Remove file.
4176 2003-01-28  Andreas Schwab  <schwab@suse.de>
4178         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
4179         register.
4180         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
4181         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
4182         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
4183         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4184         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
4185         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4186         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
4188 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
4190         * combine.c (nonzero_bits): Fix check for negative divide operands.
4192 2003-01-28  Richard Henderson  <rth@redhat.com>
4194         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
4195         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
4197 2003-01-28  Richard Henderson  <rth@redhat.com>
4199         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
4201         * config/cris/cris.c (cris_address_cost): Make static.
4202         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
4203         * config/cris/cris.h (ADDRESS_COST): Remove.
4204         * config/cris/cris-protos.h: Update.
4206 2003-01-23  Mike Stump  <mrs@apple.com>
4208         * regclass.c (init_reg_autoinc): New function.
4209         (regclass): Move initialization of forbidden_inc_dec_class from
4210         here...
4211         (init_regs): to here.  Avoids reinitialization for each function,
4212         saving compilation time.
4214 2003-01-28  Jason Merrill  <jason@redhat.com>
4216         * cpplib.h (struct cpp_options): Add warn_deprecated field.
4217         * cppinit.c (cpp_create_reader): Turn it on by default.
4218         * c-opts.c (c_common_decode_option): Set it.
4219         * cpplib.c (do_pragma_once): Only complain about #pragma once
4220         if warn_deprecated is set.
4222 2003-01-28  Dale Johannesen  <dalej@apple.com>
4224         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
4225         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
4226         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
4228 2003-01-28  Richard Henderson  <rth@redhat.com>
4230         * target.h (targetm.address_cost): New.
4231         * target-def.h (TARGET_ADDRESS_COST): New.
4232         (TARGET_RTX_COSTS): Uncomment.  Oops.
4233         * cse.c (address_cost): Use new target hook.
4234         (default_address_cost): New.
4235         * output.h (default_address_cost): Declare.
4236         * hooks.c (hook_int_rtx_0): New.
4237         * hooks.h (hook_int_rtx_0): Declare.
4238         * loop.c (combine_givs_p): Remove if 0 code.
4239         * system.h (ADDRESS_COST): Poison.
4241         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
4242         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
4243         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
4244         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
4245         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
4246         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
4247         config/xtensa/xtensa.c, config/xtensa/xtensa.h
4248         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
4249         (ADDRESS_COST): Remove.
4251         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
4252         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4253         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4254         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
4255         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
4256         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
4257         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
4258         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
4259         config/mips/mips.c, config/mips/mips.h,
4260         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4261         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
4262         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
4263         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
4264         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
4265         config/vax/vax.c, config/vax/vax.h
4266         (foo_address_cost): Make static.
4267         (TARGET_ADDRESS_COST): New.
4268         (ADDRESS_COST): Remove.
4270         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
4271         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
4272         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
4273         config/stormy16/stormy16.h
4274         (ADDRESS_COST): Move code ...
4275         (foo_address_cost): ... here.
4276         (TARGET_ADDRESS_COST): New.
4278         * config/m32r/m32r.c (m32r_address_cost): Remove.
4279         * config/m32r/m32r-protos.h: Update.
4281         * config/mmix/mmix.c (mmix_address_cost): Remove.
4282         * config/mmix/mmix-protos.h: Update.
4284         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
4285         mn10300_address_cost; move unsig allocation ...
4286         (mn10300_address_cost): ... here.
4287         (TARGET_ADDRESS_COST): New.
4288         * config/mn10300/mn10300-protos.h: Update.
4289         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
4291         * doc/tm.texi: Update.
4293 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
4295         * haifa-sched.c (schedule_insn): Return necessary cycle advance
4296         after issuing the insn.
4297         (rank_for_schedule): Make a insn with /S the highest priority
4298         insn.
4299         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
4300         (choose_ready): Check SCHED_GROUP_P.
4301         (schedule_block): Advance cycle after issuing insn if it is
4302         necessary.  Don't reorder insns if there is an insn with /S.
4303         (set_priorities): Ignore schedule groups.
4305         * sched-deps.c (remove_dependence, group_leader): Remove the
4306         functions.
4307         (add_dependence): Ignore schedule groups.
4308         (set_sched_group_p): Don't make copy of dependencies from previous
4309         insn of the schedule group.  Add anti-dependency to the previous
4310         insn of the schedule group.
4311         (compute_forward_dependences): Ignore schedule groups.
4313         * sched-ebb.c (init_ready_list): Ignore schedule groups.
4315         * sched-rgn.c (init_ready_list): Ditto.
4316         (can_schedule_ready_p): Ditto.
4318 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
4320         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
4321         register to another one.
4323 2003-01-28  Richard Henderson  <rth@redhat.com>
4325         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
4327 2003-01-28  Roger Sayle  <roger@eyesopen.com>
4329         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
4331 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
4333         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
4334         class contains a floating-point register, return the size of the
4335         mode in half words.
4337 Tue Jan 28 12:15:13 CET 2003  Jan Hubicka  <jh@suse.cz>
4339         * i386.c (ix86_carry_flag_operator):  New predicate.
4340         (fcmov_operator): Fix whitespace.
4341         (ix86_expand_carry_flag_compare):  Deal with floating point.
4342         (ix86_expand_int_movcc): Deal with fp; update insn expansion
4343         (ix86_expand_int_addcc): Likewise.
4344         (ix86_expand_strlensi_unroll_1): likewsie.
4345         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
4346         * i386.md (add?i_carry_rex64): Use new predicate.
4347         (sub?i3_carry_rex64): Likewise.
4348         (x86_mov?icc_0_m1*): Likewise.
4350 2003-01-28  Andreas Schwab  <schwab@suse.de>
4352         * cfgloopmanip.c (create_preheader): Initialize src to avoid
4353         warning.
4355         * expmed.c (emit_store_flag): Fix cast to avoid sign
4356         comparison warning.
4358         * combine.c (force_to_mode): Add cast to fix warning when
4359         STORE_FLAG_VALUE is negative.
4361 2003-01-27  Richard Henderson  <rth@redhat.com>
4363         * Makefile.in (cse.o): Depend on TARGET_H.
4364         * cse.c (rtx_cost): Use targetm.rtx_costs.
4365         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
4366         * doc/tm.texi: Update.
4368         * target.h (targetm.rtx_costs): New.
4369         * target-def.h (TARGET_RTX_COSTS): New.
4370         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
4371         * hooks.h: Update.
4373         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
4374         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
4375         * config/alpha/alpha.h (PROCESSOR_MAX): New.
4376         (CONST_COSTS, RTX_COSTS): Remove.
4378         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
4379         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
4380         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
4381         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
4382         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
4383         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
4384         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
4385         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
4386         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
4387         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
4388         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
4389         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
4390         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
4391         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
4392         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
4393         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
4394         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
4395         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
4396         config/v850/v850.c, config/v850/v850.h,
4397         config/xtensa/xtensa.c, config/xtensa/xtensa.h
4398         (CONST_COSTS, RTX_COSTS): Move code ...
4399         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
4401         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
4402         (arm_rtx_costs, TARGET_RTX_COSTS): New.
4403         * config/arm/arm-protos.h: Update.
4404         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
4406         * config/avr/avr.h (CONST_COSTS): Move code ...
4407         * config/avr/avr.c (avr_rtx_costs): ... here.
4408         (default_rtx_costs): Make static.
4409         * config/avr/avr-protos.h: Update.
4411         * config/h8300/h8300.c (const_costs): Make static.
4412         (h8300_and_costs, h8300_shift_costs): Likewise.
4413         * config/h8300/h8300-protos.h: Update.
4415         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
4416         (CONST_COSTS): Move code ...
4417         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
4418         default_rtx_costs; update for signature change.
4419         * config/ip2k/ip2k-protos.h: Update.
4421         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
4422         (CONST_COSTS): Move code ...
4423         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
4424         (TARGET_RTX_COSTS): New.
4425         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
4426         * config/m68hc11/m68hc11-protos.h: Update.
4428         * config/m68k/m68k.c (const_int_cost): Make static.
4429         * config/m68k/m68k-protos.h: Update.
4431         * config/mcore/mcore.c (mcore_const_costs): Make static.
4432         (mcore_and_cost, mcore_ior_cost): Likewise.
4433         * config/mcore/mcore-protos.h: Update.
4435         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
4436         (mmix_rtx_cost_recalculated): Remove.
4437         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
4438         * config/mmix/mmix-protos.h: Update.
4440         * config/sh/sh.c (shiftcosts): Make static.
4441         (addsubcosts, andcosts, multcosts): Likewise.
4442         * config/sh/sh-protos.h: Update.
4444         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
4445         (sparc_rtx_costs): Make static; update for change in signature.
4446         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
4447         * config/sparc/sparc-protos.h: Update.
4449         * config/v850/v850.c (const_costs): Make static.
4450         * config/v850/v850-protos.h: Update.
4452         * config/vax/vax.h (RTX_COSTS): Remove.
4453         (CONST_COSTS): Move code ...
4454         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
4455         from vax_rtx_cost.
4456         (vax_rtx_costs, TARGET_RTX_COSTS): New.
4458 2003-01-27  Richard Henderson  <rth@redhat.com>
4460         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
4461         * config/vax/vax-protos.h: Update.  Really.
4463 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
4465         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
4466         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
4467         zero if no hardware floating point.
4468         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
4469         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
4470         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
4471         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
4472         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
4473         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
4474         even FP registers on N32 and N64.
4475         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
4476         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
4477         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
4478         even-register-like alignment to 128-bit arguments.
4479         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
4480         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
4481         on N32 or N64.
4482         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
4483         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
4484         (TPBIT): Set to tp-bit.c.
4485         (tp-bit.c): Create out of fp-bit.c.
4487 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4489         * c-parse.in: Remove '%expect 32' directive in objc mode.
4491 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
4493         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
4494         (LIBGCOV): New variable.
4495         (libgcc.mk): Add LIBGCOV.
4496         (LIBGCC_DEPS): Add libgcov.c.
4497         (libgcov.a): New target.
4498         (clean): Remove libgcov.a.
4499         (install-libgcc): Do libgcov too.
4500         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
4501         with libgcov.a.
4502         * libgcc2.c (L_gcov): Move into ...
4503         * libgcov.c: ... here. New file.
4504         * mklibgcc.in: Add libgcov rules.
4505         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
4507         * doc/invoke.texi (profile-arcs, test-coverage): Update and
4508         clarify.
4510         * profile.c (index_counts_file): Remove duplicate check for open file.
4512 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
4514         * gcc/doc/invoke.texi (Optimization Options): Group together
4515         optional and experimental flags.  Move trapv and bounds-check
4516         out of this section.  Group floating point flags together.
4517         (Code Gen Options): Move trapv and bounds-check to here.
4519 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
4521         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
4523 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
4525         PR optimization/9090
4526         * function.c (purge_addressof_1): After pushing an addressed register
4527         onto the stack, simplify the result.
4529 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4531         * doc/extend.texi: Fix typo.
4533 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4535         * doc/cppopts.texi: Fix typo.
4536         * doc/objc.texi: Likewise.
4537         * doc/passes.texi: Likewise.
4539 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
4541         * real.c (ibm_extended_format): Add 53 to minimum exponent.
4542         (encode_ibm_extended): Adjust.
4544 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
4546         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
4547         timevar_id enumerations.
4549 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4551         * combine.c: Fix formatting.
4553 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4555         * doc/gccint.texi: Update the copyright.
4557 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4559         * doc/cpp.texi: Fix typos.
4560         * doc/extend.texi: Likewise.
4561         * doc/gty.texi: Likewise.
4562         * doc/install.texi: Likewise.
4563         * doc/passes.texi: Likewise.
4564         * doc/rtl.texi: Likewise.
4565         * doc/tm.texi: Likewise.
4567 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4569         * config/ia64/fde-glibc.c: Fix comment typos.
4570         * config/ia64/hpux.h: Likewise.
4571         * config/ia64/ia64.c: Likewise.
4572         * config/ia64/ia64.h: Likewise.
4573         * config/ia64/unwind-ia64.c: Likewise.
4575 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
4577         * config/i386/i386-modes.def: Fix comment typos.
4578         * config/i386/i386.c: Likewise.
4579         * config/i386/i386.md: Likewise.
4581 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4583         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
4584         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
4585         ASM_FINISH_DECLARE_OBJECT before defining it.
4586         * toplev.c (rest_of_decl_compilation):  Don't define
4587         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
4588         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
4589         parameters for DWARF2 targets because they _are_ used.
4591 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
4593         * fp-bit.h: Define macros for TFmode floating-point constants
4594         in IBM-extended TFmode types.
4595         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
4596         widths.
4597         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
4598         TFmode type.
4600         * config/fp-bit.h: Define macros for TFmode floating-point
4601         constants in IEEE quad TFmode type.  Declare functions according
4602         to L_ macros.
4603         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
4604         (TFtype, TItype, UTItype): Define if TMODES is defined.
4605         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
4606         (F_T_BITOFF, D_T_BITOFF): Define.
4607         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
4608         guaranteed to be wide enough.
4609         * config/fp-bit.c: Check for L_ macros for tf functions.
4610         (__thenan_tf): New.
4611         (nan): Adjust.
4612         (pack_d, unpack_d): Support IEEE 854 quad type.
4613         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
4614         from FRAC_NBITS, FRAC_BITS and NGARDS.
4615         (usi_to_float): Cast constants to be shifted to fractype
4616         instead of assuming long long is wide enough.
4617         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
4619 2003-01-26  Andreas Jaeger  <aj@suse.de>
4621         * df.c: Remove prototype of unused function df_regno_rtl_debug.
4623 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
4625         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
4626         (DBBIT_FUNCS): Added _df_to_tf.
4627         (TPBIT_FUNCS): New.
4628         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
4629         (LIBGCC_DEPS): Added TPBIT.
4630         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
4632         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
4633         been able to move the result to target.
4635         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
4636         for the appropriate mode.
4638         * calls.c (emit_library_call_value_1): Handle return values
4639         in a PARALLEL.
4641         * rtl.c (get_mode_alignment): Moved to...
4642         * stor-layout.c: ... here.
4644         * print-rtl.c (print_rtx): Don't print MEM details in
4645         GENERATOR_FILEs.
4647 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
4649         * df.h: Update comments, tidy formatting.
4650         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
4651         REVERSE, UNION, INTERSECTION.  All uses updated.
4652         (OLD_DF_INTERFACE): Remove.
4653         (struct insn_info): Remove commented out insn field.
4654         * df.c: Update comments, tidy formatting.
4655         (df_def_table_realloc): Remove.
4658 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
4660         * calls.c (save_fixed_argument_area): Tidy.
4661         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
4662         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
4663         call chain loop at 1 if !try_tail_call.  Formatting.
4664         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
4665         Use save_fixed_argument_area and restore_fixed_argument_area.
4667 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4669         * df.c (df_uses_record): Handle CC0.
4671 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
4673         * reload.c (maybe_memory_address_p): New function.
4674         (find_reloads_address): Use it instead of memory_address_p.
4676 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
4678         * final.c (shorten_branches): Align the address of code label
4679         when computing initial lengths and addresses.
4681 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4683         * config/m68hc11/m68hc11.md: Fix a comment typo.
4685 2003-01-25  Andreas Jaeger  <aj@suse.de>
4687         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
4688         TARGET_MACHO.
4690 2003-01-25  Roger Sayle  <roger@eyesopen.com>
4692         * gcse.c (bypass_last_basic_block): New global variable.
4693         (bypass_block):  Use redirect_edge_and_branch_force to redirect
4694         fall-through edges.  Use bypass_last_basic_block to determine
4695         which blocks have valid PRE information.
4696         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
4698 Sat Jan 25 22:31:59 CET 2003  Jan Hubicka  <jh@suse.cz>
4700         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
4702 Sat Jan 25 21:04:33 CET 2003  Jan Hubicka  <jh@suse.cz>
4703                               Eric Botcazou <ebotcazou@libertysurf.fr>
4704         PR opt/8492
4705         * gcse.c (one_cprop_pass): Delete unreachable blocks.
4707 2003-01-25  Richard Henderson  <rth@redhat.com>
4709         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
4710         from ia64_aix_select_rtx_section.
4711         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
4712         instead of saving and restoring flag_pic.
4713         (ia64_rwreloc_unique_section): Similarly.
4714         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
4715         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
4716         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
4717         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
4719 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4721         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
4722         comment.
4724 2002-01-25  Richard Henderson  <rth@redhat.com>
4726         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
4728 2002-01-25  Kelley Cook <kelleycook@comcast.net>
4730         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
4732 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
4734         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
4735         type for bitmaps.  Use unsigned long.
4736         (nBITMAP_WORD_BITS): New macro.
4737         (BITMAP_WORD_BITS): New macro.
4738         (rest of file): Use it.
4739         * bitmap.c: Use it.
4741 2003-01-25  Richard Henderson  <rth@redhat.com>
4743         2002-02-19  Robert Lipe  <robertlipe@usa.net>
4744         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
4746 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4748         * builtins.c (purge_builtin_constant_p): Scan insn stream
4749         sequentially rather than by basic block.
4750         * function.c (purge_addressof): Simplify test with INSN_P.
4752 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
4754         * combine.c (simplify_comparison, case AND): Remove a redundant test.
4756 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4758         * function.h (struct function): New field calls_constant_p.
4759         (current_function_calls_constant_p): New macro for above.
4760         * function.c (prepare_function_start): Initialize calls_eh_return
4761         and calls_constant_p.
4762         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
4763         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
4764         when the current_function_calls_constant_p.
4765         * integrate.c (expand_inline_function): Set calls_constant_p if
4766         the function being inlined has calls_constant_p set.
4768 2002-01-25  Roger Sayle  <roger@eyesopen.com>
4770         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
4771         optimizing, even if flag_gcse is true.
4772         * toplev.c (rest_of_compilation): purge_builtin_constant_p
4773         only needs to be called when "optimize > 0 && flag_gcse".
4775 2003-01-25  Roger Sayle  <roger@eyesopen.com>
4777         * stmt.c (emit_case_bit_tests): New routine to implement suitable
4778         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
4779         (case_bit_test_cmp): New comparison function for "qsort" to order
4780         case_bit_tests by decreasing number of destination nodes.
4781         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
4782         (expand_end_case_type): Use emit_case_bit_tests to implement
4783         suitable switch statments.
4784         (CASE_USE_BIT_TESTS): New target macro to disable the above.
4785         * Makefile.in (stmt.o): Add dependency on optab.h.
4786         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
4788 2003-01-23  Andreas Schwab  <schwab@suse.de>
4790         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
4791         __do_global_ctors_aux hidden global and don't put it in
4792         .init_array.
4793         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
4794         instead so that it comes first.
4796 Sat Jan 25 16:11:22 CET 2003  Jan Hubicka  <jh@suse.cz>
4798         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
4799         subreg is read/modify.
4801 Sat Jan 25 15:55:08 CET 2003  Jan Hubicka  <jh@suse.cz>
4803         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
4804         do libcall for large blocks.
4805         * i386.md (comi patterns): Set type to ssecomi.
4806         (sse2_unpck?pd): Fix mode of vec_select.
4808         * cse.c: Include except.h
4809         (cse_set_around_loop):  Do not create new basic blocks.
4810         * Makefile.in (cse.o): Add dependnecy on except.h
4812 Sat Jan 25 12:05:17 CET 2003  Jan Hubicka  <jh@suse.cz>
4814         * builtins.c (fold_trunc_transparent_mathfn): New function.
4815         (fold_builtin): Use it.
4816         * convert.c (convert_to_real): Re-enable code to convert
4817         math functions; add support for floor familly functions.
4819 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4821         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
4822         dependencies on coretypes.h and $(TM_H).
4824 Sat Jan 25 11:10:03 CET 2003  Jan Hubicka  <jh@suse.cz>
4826         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
4828 2002-01-24  Stuart Hastings  <stuart@apple.com>
4830         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
4832 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
4834         * config/c4x/c4x.md (UNSPEC_BU): New constants.
4835         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
4836         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
4837         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
4838         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
4839         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
4840         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
4841         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
4843 Fri Jan 24 23:44:12 CET 2003  Jan Hubicka  <jh@suse.cz>
4845         * emit-rtl.c (reg_attrs_htab): New static variable.
4846         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
4847         functions.
4848         (reg_rtx): Do not maintain regno_decl.
4849         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
4850         set_mem_attrs_from_reg): New global function.
4851         (init_emit): Do not initialize regno_decl.
4852         (init_emit_once): initialize reg_attrs_htab.
4853         * final.c (alter_subreg): Do not replace REG by SUBREG.
4854         (gen_mem_expr_from_op): Improve output.
4855         (output_asm_operands): Likewise.
4856         * function.c (assign_params): Do not set REGNO_DECL.
4857         * function.h (struct function): Kill regno_decl.
4858         (REGNO_DECL): Kill.
4859         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
4860         * print_rtl.c (print_rtx): Output REG information.
4861         * regclass.c (reg_scan_mark_refs): Update attrs.
4862         * reload1.c (alter_reg): Likewise.
4863         * simplify_rtx.c (simplify_subreg): Likewise.
4864         * stmt.c (expand_decl): Likewise.
4865         * rtl.def (REG): Add new field.
4866         * rtl.h (struct reg_attrs): New.
4867         (rtunion_def): At rtreg.
4868         (X0MEMATTR): Add checking.
4869         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
4870         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
4871         Declare.
4872         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
4874 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
4876         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
4877         (xtensa_emit_call, print_operand): Fix printf format strings
4878         to avoid compile warnings.
4879         (xtensa_function_prologue, xtensa_function_epilogue): Change type
4880         of "size" argument to HOST_WIDE_INT to fix compile warnings.
4881         * config/xtensa/xtensa-protos.h
4882         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
4884 Fri Jan 24 23:03:32 CET 2003  Jan Hubicka  <jh@suse.cz>
4886         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
4887         (implicit_built_in_decls): New global array.
4888         (mathfn_built_in): New global function.
4889         (fold_trunc_transparent_mathfn): New static function
4890         (expand_builtin_strstr, expand_bultin_strchr,
4891         expand_builtin_strpbrk, expand_builtin_strcpy,
4892         expand_builtin_strncpy, expand_bultin_strcmp,
4893         expand_bultin_strncat, expand_builtin_fputs): Use
4894         implicint_built_in_decls.
4895         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
4896         * builtins.def: Fix comments.
4897         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
4898         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
4899         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
4900         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
4901         (DEF_C99_C90RES_BULTIN): New.
4902         (*f, *l builtins): Update.
4903         * c-common.c (DEF_BUILTIN): Initialize implicit array.
4904         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
4905         * convert.c (strip_float_extensions): New global function.
4906         * tree.h (DEF_BUILTIN): Accept 10 arguments.
4907         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
4908         Declare.
4909         * java/builtins.c (define_builtin): Handle implicit.
4910         (DEF_BUILTIN): Update.
4911         * tm.texi (TARGET_C99_FUNCTIONS): Document.
4912         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
4913         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
4914         when using glibc2.
4916 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
4918         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
4919         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
4920         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
4921         * config/xtensa/crti.asm: New file.
4922         * config/xtensa/crtn.asm: New file.
4923         * config/xtensa/t-elf: New file.
4924         * config/xtensa/t-linux: New file.
4925         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
4926         Move various CFLAGS settings to new t-elf file.
4928 2003-01-24  Richard Henderson  <rth@redhat.com>
4930         PR optimization/4382
4931         * tree-inline.c (find_builtin_longjmp_call_1): New.
4932         (find_builtin_longjmp_call): New.
4933         (inlinable_function_p): Use it.
4935 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4937         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
4938         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
4939         * config/i386/i386.c (function_arg_pass_by_reference): New.
4940         (ix86_va_arg): Support arguments passed by reference.
4942 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4944         * cfgloopanal.c: New file.
4945         * cfgloopmanip.c: New file.
4946         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
4947         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
4948         cfglayout.o): Add dependency on cfgloop.h.
4949         (cfgloop.o): Add flags.h dependency.
4950         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
4951         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
4952         (struct loop, struct loops, flow_loops_find, flow_loops_update,
4953         flow_loops_free, flow_loops_dump, flow_loop_dump,
4954         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
4955         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
4956         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
4957         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
4958         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
4959         find_common_loop, verify_loop_structure): Declarations moved to ...
4960         * cfgloop.h: New file.
4961         * bb-reorder.c (reorder_basic_blocks): Modified.
4962         * cfglayout.c: Include cfgloop.h.
4963         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
4964         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
4965         (break_superblocks): New static function.
4966         (cfg_layout_finalize): Use it.
4967         (cfg_layout_split_block): New function.
4968         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
4969         fields.
4970         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
4971         changed.
4972         (cfg_layout_split_block): Declare.
4973         * cfgloop.c: Include cfgloop.h and flags.h.
4974         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
4975         get_loop_body): Avoid signed versus unsigned comparison warnings.
4976         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
4977         loop_latch_edge): Modified.
4978         (verify_loop_structure): Modified to use flags stored in loop structure;
4979         check irreducible loops.
4980         (cancel_loop, cancel_loop_tree): New functions.
4981         (estimate_probability): Use loop analysis code for predictions.
4982         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
4983         warnings.
4984         * doloop.c: Include cfgloop.h.
4985         * loop.c: Include cfgloop.h.
4986         * predict.c: Include cfgloop.h.
4987         * toplev.c: Include cfgloop.h.
4988         * unroll.c: Include cfgloop.h.
4989         * tracer.c (tracer): Modified.
4991 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
4993         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
4995 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
4997         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
4998         * configure: Regenerate.
5000         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
5001         (tls_symbolic_reference_mentioned_p): Add prototype.
5002         (s390_tls_get_offset): Add prototype.
5003         (emit_pic_move): Remove prototype, replace by ...
5004         (emit_symbolic_move): .. this new prototype.
5006         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
5007         (tls_model_chars): New global variable.
5008         (s390_encode_section_info): Encode TLS model.
5009         Use targetm.binds_local_p to check for local symbols.
5010         (s390_strip_name_encoding): New function.
5011         (TARGET_STRIP_NAME_ENCODING): Define.
5013         (get_thread_pointer): New function.
5014         (legitimize_tls_address): New function.
5015         (legitimize_address): Call it.
5016         (emit_pic_move): Remove, replace by ...
5017         (emit_symbolic_move): ... this new function.
5019         (larl_operand): Handle TLS operands.
5020         (legitimate_constant_p): Likewise.
5021         (s390_decompose_address): Likewise.
5022         (s390_cannot_force_const_mem): New function.
5023         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5025         (s390_output_symbolic_const): Handle TLS unspecs.
5026         (print_operand): New code 'J'.
5027         (machine_function): Add struct member 'some_ld_name'.
5028         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5030         (enum s390_builtin): New type.
5031         (code_for_builtin_64, code_for_builtin_31): New global variables.
5032         (s390_init_builtins, s390_expand_builtin): New functions.
5033         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5035         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
5036         (ASM_OUTPUT_LABELREF): Define.
5037         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
5039         * config/s390/s390.md: Define TLS UNSPEC constants.
5040         ("movdi", "movsi"): Handle TLS operands.
5041         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
5042         ("*tls_load_64", "*tls_load_31"): New insns.
5043         ("call_value_tls", "call_value_tls_exp"): New expanders.
5044         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
5045         "bas_tls_64", "bas_tls_31"): New insns.
5047 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
5049         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
5050         spe ABI is configured, if requested.
5052 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5054         * doc/passes.texi: Fix typo.
5056 2003-01-24  Andreas Schwab  <schwab@suse.de>
5058         * stor-layout.c (excess_unit_span): Only define if used.
5060 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
5062         * gcc/doc/invoke.texi (Optimization Options): List -O levels
5063         for each optimization flag.
5065 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
5067         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
5069 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5071         * doc/bugreport.texi: Use @command instead of @code for commands.
5072         * doc/collect2.texi: Likewise.
5073         * doc/headerdirs.texi: Likewise.
5074         * doc/invoke.texi: Likewise.
5075         * doc/standards.texi: Likewise.
5076         * doc/tm.texi: Likewise.
5077         * doc/trouble.texi: Likewise.
5079 2003-01-24  Nick Clifton  <nickc@redhat.com>
5081         * config/arm/arm.c (use_return_insn): Do not use a single return
5082         instruction for interrupt handelrs which have to create a stack
5083         frame.
5084         (arm_expand_prologue): Do not pre-bias the return address of
5085         interrupt handlers which create a stack frame.
5087 2003-01-24  Nick Clifton  <nickc@redhat.com>
5089         * Add sh2e support:
5091         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
5093                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
5094                 med_cbranches.  Fix logic in short_cbranches.
5096         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
5098                 * config/sh/sh.md (delay for cbranch): Don't annul delay
5099                 slots on SH2e.
5100                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
5101                 cbranch with unfilled delay slot on SH2e.
5102                 (output_branch): Fill with a nop the delay slot of a
5103                 branch that required a delay slot but didn't get one.
5105         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
5107                 * doc/invoke.texi (SH options): Document -m2e.
5108                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
5109                 * config/sh/lib1funcs.asm: Likewise.
5110                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
5111                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
5112                 not __sh1__.
5113                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
5114                 SH2E up.
5115                 (SH3E_BIT): Renamed to...
5116                 (SH_E_BIT): ... this.  Replace all uses.
5117                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
5118                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
5119                 (TARGET_SWITCHES): Added 2e.
5120                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
5121                 (processor_type): Added PROCESSOR_SH2E.
5122                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
5123                 TARGET_SH2E, except in sqrtsf2_i.
5124                 (attribute cpu): Added sh2e.
5125                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
5126                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
5127                 * config.gcc: Add sh2e target support.
5129 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
5131         Rename -W to -Wextra.
5132         * c-decl.c:  Update comments.
5133         * c-typeck.c:  Likewise.
5134         * flags.h:  Likewise.
5135         * function.c:  Likewise.
5136         * stmt.c:  Likewise.
5137         * toplev.c:  Update comments.
5138         (W_options):  Add 'extra'.
5139         (display_help):  Remove '-W'.
5140         (decode_W_option):  Special warn_uninitialized treatment in the case
5141         of -Wextra.
5142         * doc/invoke.texi:  Update with new entries.
5144 2003-01-23  Richard Henderson  <rth@redhat.com>
5146         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
5147         in no-else-block case.  Add commentary.
5149 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5151         * configure.in: Revert last change.
5153 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5155         * configure.in: Don't include ansidecl.h in tconfig.h.
5156         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
5157         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
5158         ATTRIBUTE_UNUSED.
5160         * configure: Regenerate.
5162 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5164         PR java/6748
5165         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
5166         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
5167         kernels.
5169 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5171         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
5173 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
5175         * genattrtab.c (write_attr_get): Mark 'insn' paramter
5176         as ATTRIBUTE_UNUSED.
5178 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
5180         * arm.c (thumb_base_register_rtx_p): New function.
5181         (thumb_index_register_rtx_p): New function.
5182         (thumb_legitimate_address_p): New function.
5183         (thumb_legitimate_offset_p): New function.
5184         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
5185         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
5186         definitions.
5187         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
5188         (THUMB_LEGITIMATE_OFFSET): Delte.
5189         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
5190         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
5191         (thumb_legitimate_offset_p): Likewise.
5193 2003-01-23  Andreas Schwab  <schwab@suse.de>
5195         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
5197 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5199         * fixinc/Makefile.in (FL_LIST): Revert last change.
5201 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5203         PR other/7341
5204         * invoke.texi (ftest-coverage): Fix broken cross-reference.
5205         Change @code to @command for gcov command.
5207         * gcc.texi: Adjust title of gcov section.
5208         Adjust copyright.
5209         * gcov.texi: Likewise.
5211 2003-01-22  Roger Sayle  <roger@eyesopen.com>
5213         PR optimization/8423
5214         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
5215         its argument is constant, or 0 if !flag_gcse.
5216         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
5217         if it's argument is constant.
5218         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
5219         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
5220         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
5221         * builtins.c (purge_builtin_constant_p): New function to force
5222         instantiation of any remaining CONSTANT_P_RTX nodes.
5223         * rtl.h (purge_builtin_constant_p): Prototype here.
5224         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
5225         pass after GCSE and before loop.
5226         (flag_gcse): No longer static.
5227         * flags.h (flag_gcse): Prototype here.
5229 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
5231         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
5232         introduced by last change.
5234 2003-01-22  Andreas Schwab  <schwab@suse.de>
5236         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
5238 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
5240         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
5241         request a scratch reg on H8S when the shift count is 8.
5243 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
5245         * config/s390/s390-protos.h (preferred_la_operand_p):
5246         Remove second parameter.
5247         * config/s390/s390.c (preferred_la_operand_p): Likewise.
5248         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
5249         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
5250         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
5251         Add peepholes to transform ADD to LOAD ADDRESS.
5253 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
5255         * arm.c (arm_address_register_rtx_p): New function.
5256         (arm_legitimate_address_p): New function.
5257         (arm_legitimate_index_p): New function.
5258         (legitimize_pic_address): Use arm_legitimate_index_p.
5259         * arm-protos.h (arm_legtimate_address_p): Add prototype.
5260         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
5261         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
5263 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
5265         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
5266         * config/s390/2064.md (define_bypass): Correct 'Load' and
5267         'Load-address' bypass values.
5269 2003-01-22  Andreas Schwab  <schwab@suse.de>
5271         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
5273 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5275         * genautomata.c (output_internal_insn_latency_func,
5276         output_print_reservation_func): Short circuit when there is no
5277         automaton to generate code for.
5279 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5281         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
5282         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
5284 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
5286         * config/rs6000/rs6000.md: Remove warning.
5287         (builtin_setjmp_receiver): Likewise.
5288         * config/darwin.c (update_stubs): Slightly improve terrible hack
5289         with identifiers.  Add comment pointing out problems with it.
5290         (update_non_lazy_ptrs): Likewise.
5292 2003-01-21  Richard Henderson  <rth@redhat.com>
5294         * dwarf2out.c (lookup_filename): Fix printf format warning.
5295         * system.h (fread_unlocked, fwrite_unlocked): Undef.
5297         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
5298         (fixincl.o-warn, gnu-regex.o-warn): New.
5299         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
5300         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
5301         * fixinc/fixincl.c (process): Fix printf format warning.
5303 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
5305         * dwarf2out (output_file_names): Don't crash if called
5306         with empty file_table.
5308 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5310         * genautomata.c (output_internal_insn_latency_func): Add
5311         missing break statement to generated code.
5313 2003-01-21  Roger Sayle  <roger@eyesopen.com>
5315         * stmt.c (same_case_target_p): New function to determine whether
5316         two case labels branch to the same target.  Split out from...
5317         (group_case_nodes): ... here.  Use same_case_target_p instead.
5318         (strip_default_case_nodes): Remove explicit case nodes
5319         that branch to the default destination.
5320         (expand_end_case_type): Call strip_default_case_nodes after
5321         group_case_nodes, to simplify the case-list before we count it.
5322         Only generate table_label RTX when actually needed.  Try to share
5323         thiscase->exit_label and thiscase->data.case_stmt.default_label
5324         when a switch has no explicit default case.  Simplify test for
5325         constant index.
5327 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
5329         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
5330         \t.
5331         (*negsf2_h8300hs): Likewise.
5332         (*addsi3_lshiftrt_16_zexthi): Likewise.
5333         (*iorhi3_lshiftrt_8): Likewise.
5335 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
5337         * dwarf2out.c (fde_table_in_use): Mark GTY.
5338         (dwarf2out_cfi_label_num): New variable, marked GTY.
5339         (dwarf2out_cfi_label): Use it instead of static label_num.
5340         * emit-rtl.c (label_num): Mark GTY.
5342 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
5344         * config/h8300/h8300.c (output_plussi): Support H8/300.
5345         (compute_plussi_length): Likewise.
5346         (compute_plussi_cc): Likewise.
5347         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
5348         output assembly instructions.
5350 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5352         * calls.c (fix_unsafe_tree): Prototype.
5354         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
5355         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
5356         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
5357         c-parse.o-warn): Add -Wno-error.
5358         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
5360         * configure.in (--enable-werror): Add new flag.
5361         * doc/install.texi (--enable-werror): Document.
5362         * configure: Regenerate.
5364         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
5366 2003-01-21  Andreas Schwab  <schwab@suse.de>
5368         * genautomata.c (output_internal_insn_latency_func): Fix missing
5369         close paren in output.
5371 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5373         * genautomata.c: Space savings in generated code:
5374         (output_dfa_insn_code_func): Split out the table-enlargement
5375         path to an out-of-line static function, dfa_insn_code_enlarge.
5376         (output_internal_insn_latency_func): Use a lookup table for the
5377         default latencies.
5378         (output_print_reservation_func): Use a lookup table for the
5379         strings.
5381 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
5383         PR opt/7507
5384         * calls.c (fix_unsafe_tree): Split out from ...
5385         (expand_call): ... here.  Use it on the function address too.
5387 2003-01-20  Richard Henderson  <rth@redhat.com>
5389         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
5391 2003-01-20  Richard Henderson  <rth@redhat.com>
5393         PR opt/7154
5394         * stmt.c (expand_asm_operands): Validize memory operands.
5396 2003-01-20  Richard Henderson  <rth@redhat.com>
5398         PR opt/8848
5399         * ifcvt.c (noce_process_if_block): Correct arguments to
5400         modified_between_p for no-else-block case.
5402 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5404         * config/h8300/h8300.c (const_costs): Remove a warning.
5405         (output_plussi): Likewise.
5406         (compute_plussi_length): Likewise.
5407         (compute_plussi_cc): Likewise.
5409 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5411         * config/h8300/h8300.md (addsi_h8300): Remove the last
5412         alternative.
5414 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5416         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
5418 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5420         * system.h (__NO_STRING_INLINES): Define.
5422 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5424         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
5425         is not a scalar int mode.
5427 2003-01-20  Roger Sayle  <roger@eyesopen.com>
5429         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
5430         insn's notes following a substitution inside a libcall.
5432 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
5434         * configure.in: Check for system-provided 'uchar' type.
5435         * configure, config.in: Regenerate.
5436         * cpphash.h: Only typedef 'uchar' if the system doesn't.
5438 2003-01-20  Richard Henderson  <rth@redhat.com>
5440         * expr.h (MUST_PASS_IN_STACK): Move implementation...
5441         * calls.c (default_must_pass_in_stack): ... here.
5443 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
5445         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
5447         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
5449         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
5450         Wrap up definition of `insn_alts'.
5452         * genattrtab.c (main): Wrap up `insn_alts'.
5454 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5456         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
5457         prototyping.
5458         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
5460         * config.in, configure: Regenerate.
5462 2003-01-20  Nick Clifton  <nickc@redhat.com>
5464         * config/arm/arm.md (sibcall_epilogue): Add an
5465         UNSPEC_PROLOGUE_USE to prevent the link register from being
5466         considered dead.
5468 Mon Jan 20 14:36:23 CET 2003  Jan Hubicka  <jh@suse.cz>
5470         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
5472 2003-01-20  Andreas Schwab  <schwab@suse.de>
5474         * system.h: Don't declare strsignal if the decl test hasn't been
5475         run yet.
5477 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
5479         * config/h8300/h8300.c (notice_update_cc): Don't assume that
5480         recog_data.operands[0] is always associated with cc0.
5482 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
5484         * collect2.c (ldgetname): Expand declaration to prototype.
5485         * read-rtl.c (atoll): Add prototype.
5486         * system.h (strsignal): Also declare if no declaration found.
5488 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
5490         * config.gcc (mips64*-*-linux*): Added.
5491         * config/mips/linux64.h, config/mips/t-linux64: New file.
5492         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
5493         * config/mips/mips.c (override_options): Use it.
5494         * config/mips/mips.h (TARGET_SWITCHES): Added...
5495         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
5496         * Makefile.in (SPECS): New.
5497         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
5498         * gcc.c (process_command): Move self-spec processing past spec
5499         file loading.
5500         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
5501         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
5502         CRTSTUFF_T_CFLAGS.
5503         (SPECS): Document.
5504         * doc/invoke.texi (-mabi-fake-default): Document.
5506 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
5508         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
5509         z_reg, z_reg_qi): Declare static and GTY().
5510         (da_reg): Remove.
5511         (create_regs_rtx): Don't create da_reg.
5512         ("gt-m68hc11.h"): Include for GTY roots.
5513         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
5514         and GTY() here.
5515         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
5516         (m68hc11_soft_tmp_reg): Likewise.
5517         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
5519 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
5521         * basic-block.h: Fix comment formatting.
5522         * calls.c: Likewise.
5523         * combine.c: Likewise.
5524         * convert.c: Likewise.
5525         * gcov.c: Likewise.
5526         * haifa-sched.c: Likewise.
5527         * libgcc2.c: Likewise.
5528         * loop.c: Likewise.
5529         * profile.c: Likewise.
5530         * system.h: Likewise.
5532 2003-01-18  Roger Sayle  <roger@eyesopen.com>
5534         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
5536 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5538         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
5540 2003-01-17  Dale Johannesen  <dalej@apple.com>
5542         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
5543           (*floatunssidf2_internal):  Ditto.
5545 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
5547         * alias.c: Fix comment typos.
5548         * basic-block.h: Likewise.
5549         * c-common.c: Likewise.
5550         * c-common.h: Likewise.
5551         * c-decl.c: Likewise.
5552         * c-opts.c: Likewise.
5553         * c-pragma.c: Likewise.
5554         * c-pretty-print.h: Likewise.
5555         * cfg.c: Likewise.
5556         * cfganal.c: Likewise.
5557         * cfgbuild.c: Likewise.
5558         * cfgcleanup.c: Likewise.
5559         * cfglayout.c: Likewise.
5560         * cfgrtl.c: Likewise.
5561         * convert.c: Likewise.
5562         * cpphash.h: Likewise.
5563         * cpplex.c: Likewise.
5564         * cpplib.h: Likewise.
5565         * df.h: Likewise.
5566         * diagnostic.c: Likewise.
5567         * diagnostic.h: Likewise.
5568         * dwarf2.h: Likewise.
5570 2003-01-17  Stan Shebs  <shebs@apple.com>
5572         * config/darwin-protos.h: Forward-declare struct cpp_reader.
5574 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
5576         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
5577         mistake in last checkin.
5579 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
5581         * et-forest.c: Fix comment typos.
5582         * et-forest.h: Likewise.
5583         * except.c: Likewise.
5584         * expr.c: Likewise.
5585         * flags.h: Likewise.
5586         * flow.c: Likewise.
5587         * gcc.c: Likewise.
5588         * gcse.c: Likewise.
5589         * genattrtab.c: Likewise.
5590         * genautomata.c: Likewise.
5591         * gengtype.c: Likewise.
5592         * genrecog.c: Likewise.
5593         * global.c: Likewise.
5594         * gthr-rtems.h: Likewise.
5596 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5598         * i386.c (x86_function_profiler): Fix format specifier.
5600 2003-01-17  Richard Henderson  <rth@redhat.com>
5602         * gengtype.c (walk_type): Allow paramN_is.
5604 2003-01-17  Nick Clifton  <nickc@redhat.com>
5606         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
5608 2003-01-16  Richard Henderson  <rth@redhat.com>
5610         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
5612 2003-01-16  Richard Henderson  <rth@redhat.com>
5614         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
5615         (alpha_next_sequence_number): Likewise.
5616         (alpha_this_literal_sequence_number): Likewise.
5617         (alpha_this_gpdisp_sequence_number): Likewise.
5618         (struct alpha_funcs, alpha_funcs_num): Likewise.
5619         (struct alpha_links): Fix branch merge error.
5620         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
5622 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
5624         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
5625         R. Ghazi.
5627 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
5629         * ifcvt.c: Fix comment typos.
5630         * lcm.c: Likewise.
5631         * libgcc2.c: Likewise.
5632         * local-alloc.c: Likewise.
5633         * loop.c: Likewise.
5634         * predict.c: Likewise.
5635         * ra-build.c: Likewise.
5636         * ra.c: Likewise.
5637         * ra-colorize.c: Likewise.
5638         * ra.h: Likewise.
5639         * ra-rewrite.c: Likewise.
5640         * regmove.c: Likewise.
5641         * reload.h: Likewise.
5642         * rtlanal.c: Likewise.
5643         * toplev.c: Likewise.
5644         * tree.h: Likewise.
5645         * unwind-dw2-fde-glibc.c: Likewise.
5646         * vmsdbgout.c: Likewise.
5648 2003-01-16  Richard Henderson  <rth@redhat.com>
5650         * dwarf2out.c (struct file_table): Remove.
5651         (FILE_TABLE_INCREMENT): Remove.
5652         (file_table): Make a varray; mark for GC.  Update all users.
5653         (file_table_last_lookup_index): Extract from struct file_table.
5654         (output_file_names): Fix unsigned compare warnings.
5655         (add_name_attribute): Remove inline marker.
5656         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
5657         (lookup_filename): Don't manage size of file_table.
5658         (init_file_table): Allocate file_table with GC.
5659         (dwarf2out_init): Don't record main_input_filename here.
5660         (dwarf2out_finish): Do it here instead.
5662 2003-01-16  Bruce Korb  <bkorb@gnu.org>
5664         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
5666 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
5668         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
5669         instead of rotldi3_mextr.
5671 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
5673         * haifa-sched.c (move_insn): Restore moving all schedule group.
5674         (set_priorities): Restore taking SCHED_GROUP_P into account.
5676         * sched-deps.c (add_dependence): Restore processing the last group
5677         insn.
5678         (remove_dependence, group_leader): Restore the functions.
5679         (set_sched_group_p): Restore adding dependencies from previous insn
5680         in the group.
5681         (compute_forward_dependences): Restore usage of group_leader.
5683         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
5684         account.
5686         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
5687         account.
5688         (can_schedule_ready_p): Ditto.
5689         (add_branch_dependences): Restore skipping over the group insns.
5691 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5693         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
5694         68HC12 pre/post inc/dec side effects.
5696 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5698         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
5700 Thu Jan 16 21:50:25 2003  J"orn Rennecke <amylaar@onetel.net.uk>
5702         * sh.md (mshflo_w_x): Fix description of operation.
5704 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
5706         * config/rs6000/rs6000.h: Mention Altivec registers in
5707         commentary.  Fix typo.
5709 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
5711         * config/rs6000/rs6000.md (movti_string): Remove clobber.
5712         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
5713         generate PARALLEL with clobber for TARGET_POWER.
5715 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5717         * ra-colorize.c (colorize_one_web): Initialize variable.
5718         * regmove.c (fixup_match_1): Likewise.
5719         * reload1.c (reload_as_needed): Likewise.
5720         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
5722 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5724         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
5726 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5728         * dbxout.c (lastfile, cwd): Fix `unused' warning.
5729         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
5730         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
5731         is_main_source, file_table, decl_die_table_in_use,
5732         abbrev_die_table_in_use, line_info_table_in_use,
5733         separate_line_info_table_in_use, pubname_table_in_use,
5734         arange_table_in_use, ranges_table_in_use,
5735         current_function_has_inlines): Likewise.
5736         * flow.c (life_analysis): Likewise.
5737         * genemit.c (gen_insn): Likewise.
5738         * protoize.c (cplus_suffix): Likewise.
5740         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
5741         * arm.h (ROUND_UP_WORD): Likewise.
5743         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
5744         warning.
5745         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
5746         init_emit_once): Likewise.
5747         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
5748         Likewise.
5749         * function.c (assign_stack_temp_for_type): Likewise.
5750         * loop.c (loop_invariant_p): Likewise.
5751         * recog.c (push_operand): Likewise.
5752         * regclass.c (init_reg_sets_1): Likewise.
5753         * reload.c (update_auto_inc_notes): Likewise.
5754         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
5755         * stmt.c (expand_asm_operands): Likewise.
5756         * stor-layout.c (start_record_layout): Likewise.
5758 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5760         * config/c4x/c4x.md (epilogue): Correct last patch.
5762 2003-01-15  Richard Henderson  <rth@redhat.com>
5764         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
5765         also check that GP is being used.
5766         (alpha_find_lo_sum_using_gp): New.
5767         (alpha_does_function_need_gp): Use get_attr_usegp.
5768         * config/alpha/alpha-protos.h: Update.
5769         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
5770         as needed.
5772 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5774         * gcse.c (one_cprop_pass): Change function arguments to take both
5775         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
5776         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
5777         (bypass_jumps): New function to perform separate jump bypassing pass.
5778         * rtl.h (bypass_jumps): Add function prototype.
5779         * timevar.def (TV_BYPASS): New timing variable.
5780         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
5781         (dump_file): New entry for the bypass RTL dump file.
5782         (rest_of_compilation): Insert new jump bypassing optimization
5783         pass after loop.
5784         * doc/passes.texi: Document new pass.
5786 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5788         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
5789         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
5790         * pa.h (TARGET_SOM_SDEF): Define.
5791         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
5793 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
5795         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
5796         allocate 4-bytes of locals on 68HC11.
5797         (expand_epilogue): Likewise.
5798         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
5800 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
5802         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
5803         and -mshort-double to the assembler to specify the ABI.
5804         (LINK_SPEC): Likewise.
5805         (CPP_SPEC): Pass HCS12 specific define.
5806         (MASK_M68S12): New define.
5807         (TARGET_M68S12): Likewise.
5808         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
5809         (TARGET_VERSION): Update.
5810         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
5811         (LINK_SPEC): Update.
5812         (ASM_SPEC): Update.
5813         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
5814         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
5816 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
5818         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
5819         the return code.
5821 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
5823         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
5824         flag before setting it.
5826 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5828         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
5829         when loop condition is known true, i.e.  "while (1) { ... }".
5830         (genrtl_for_stmt): Similarly for "for" statements.
5832 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5834         * real.c (real_sqrt): Return a bool result indicating whether
5835         a floating point exception or trap should be raised.
5836         * real.h (real_sqrt): Update function prototype.
5837         * builtins.c (fold_builtin): Only fold non-trapping square
5838         roots unless we're ignoring errno and trapping math.
5840 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
5842         * expr.h (emit_conditional_add): Add PARAMS to declaration.
5843         * gengtype-lex.l (malloc, realloc): Move defines after include of
5844         system.h.  Remove duplicate include of system.h.
5846 2003-01-15  Roger Sayle  <roger@eyesopen.com>
5848         PR middle-end/9009
5849         * optabs.c (expand_unop):  When manipulating the FP sign bit
5850         using integer operations, account for targets with different
5851         integer and FP word orders.
5852         (expand_abs): Likewise.
5854 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
5856         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
5857         file extension in section name.
5859 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
5861         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
5862         constant offset.
5864 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
5866         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
5867         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
5868         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
5869         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5871 Wed Jan 15 12:23:21 CET 2003  Jan Hubicka  <jh@suse.cz>
5873         PR f/9258
5874         * global.c (struct allocno): Add no_stack_reg.
5875         (global_conflicts): Set no_stack_reg.
5876         (find_reg): Use it.
5878         * convert.c (convert_to_real): Fold - and abs only when profitable.
5879         * fold-const.c (fold): Fold truncates in - and abs.
5881 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
5883         Segher Boessenkool  <segher@koffie.nl>
5885         * predict.c (real_inv_br_prob_base): New variable.
5886         (propagate_freq): Use multiply by reciprocal instead of
5887         division.  Don't divide by 1.0 at all.
5888         (estimate_bb_frequencies): Similar.
5890 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
5892         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
5893         * configure: Rebuilt.
5895 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
5897         * config/s390/s390.c (s390_safe_attr_type): New function.
5898         (s390_use_dfa_pipeline_interface): New function, return true for z900.
5899         (s390_issue_rate): New function.
5900         (s390_agen_dep_p): New function.
5901         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
5902         (s390_adjust_cost): Return 'cost' if new DFA is used.
5903         (s390_adjust_priority): Delete function.
5904         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
5905         * config/s390/s390.md (atype attribute): Attribute 'atype' default
5906         determined by 'op_type'.
5907         (type attribute): Added more type attributes.
5908         * config/s390/2064.md: New DFA description for z900 pipeline.
5910 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
5912         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
5913         forced to memory.  Fixes PR bootstrap/9036.
5915         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
5916         to set $gp before the call.
5918 2003-01-14  Richard Henderson  <rth@redhat.com>
5920         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
5921         for force_const_mem.
5923 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5925         * genattr.c (main): Rearrange output to avoid prototype warning.
5926         * genautomata.c (transform_3): Fix ambiguous-else warning.
5927         * local-alloc.c (requires_inout): Add parentheses around
5928         assignment used as truth-value.
5929         * timevar.c: Move system includes above local includes.  Include
5930         toplev.h
5931         * Makefile.in (timevar.o): Depend on toplev.h.
5933 2003-01-14  Denis Chertykov  <denisc@overta.ru>
5935         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
5936         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
5938         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
5939         attributes.
5940         (TARGET_ATTRIBUTE_TABLE): New macro.
5941         (valid_machine_type_attribute): Remove.
5942         (valid_machine_decl_attribute): Remove.
5943         (ip2k_handle_progmem_attribute): New function.
5944         (ip2k_handle_fndecl_attribute): New function.
5946 2003-01-10  Andrew Haley  <aph@redhat.com>
5948         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
5949         registers to be in correct order.  Add rip.
5951 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
5953         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
5954         (*iorsi3_and_lshiftrt_9_sb): Likewise.
5956 Tue Jan 14 00:45:33 CET 2003  Jan Hubicka  <jh@suse.cz>
5958         * convert.c (strip_float_extensions):  Look for narrowest type handling
5959         FP constants.
5961         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
5962         float1 CMP float2.
5963         * convert.c (strip_float_extensions): Make global.
5964         * tree.h (strip_float_extensions): Declare.
5966 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5968         * timevar.def: define TV_NAME_LOOKUP.
5969         * timevar.c (timevar_pop): Be verbose when aborting.
5971 2003-01-13  Andreas Schwab  <schwab@suse.de>
5973         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
5974         $(parsedir), just move the temporary file at the end.
5975         ($(parsedir)/gengtype-yacc.c): Likewise.
5977 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
5979         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
5980         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
5981         splitting.
5982         * configure: Rebuilt.
5984 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5986         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
5987         internal_mcount): Don't use PARAMS.
5988         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
5989         ISO C style.
5990         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
5992 2003-01-13  Andreas Schwab  <schwab@suse.de>
5994         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
5995         directive.
5997 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
5999         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
6000         (*iorsi3_and_lshiftrt_n_sb): Likewise.
6002 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
6004         PR c++/9264
6005         * c-lex.c (c_lex): Set the token value to error_mark_node for
6006         invalid numeric constants.
6008 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6010         * c-pch.c (asm_file_startpos): Change to `long'.
6011         (pch_init): Use ftell, not ftello.
6012         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
6013         Use `long' instead of `off_t'.
6014         (c_common_read_pch): Likewise.
6015         * ggc-common.c (gt_pch_save): Use long/ftell instead of
6016         off_t/ftello.
6018 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
6020         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
6022 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
6024         * arm-protos.h (struct cpp_reader): Add declaration.
6026 Sat Jan 11 11:02:58 CET 2003  Jan Hubicka  <jh@suse.cz>
6028         PR target/9068
6029         * i386.c (output_fp_compare): Fix typo.
6031 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
6033         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
6035 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
6037         * Makefile.in (parsedir): New variable.
6038         (docobjdir): New variable.
6039         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
6040         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
6041         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
6042         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
6043         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
6044         Use docobjdir.
6045         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
6046         objc.maintainer-clean): Use parsedir.
6048         * varasm.c (struct constant_descriptor_rtx): Remove unused
6049         `label' field.
6051         * toplev.c (documented_lang_options): Document -Winvalid-pch.
6053 2003-01-10  Richard Henderson  <rth@redhat.com>
6055         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
6056         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
6058 2003-01-10  Richard Henderson  <rth@redhat.com>
6060         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
6061         not INTEGRAL_MODE_P when widening extensions.
6063 2003-01-10  Richard Henderson  <rth@redhat.com>
6065         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
6067 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
6069         * ggc-page.c (ggc_collect): Avoid overflow computing
6070         min_expand.
6072         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
6073         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
6074         Remove calls.
6075         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
6077 Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>
6079         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
6080         with weird operands.
6082 2003-01-10  Dale Johannesen <dalej@apple.com>
6084         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
6085         parameters.  Call check_sibcall_argument_overlap if indicated.
6086         (check_sibcall_argument_overlap):  Add mark_stored_args_map
6087         parameter.  Don't mark parameter area as clobbered if not set.
6088         (expand_call):  Adjust calls to above.
6090 2003-01-10 Kelley Cook <kelleycook@comcast.net>
6092         * configure.in (linker read-only and read-write section mixing):
6093         Squelch some assembler warnings.
6094         * configure: Likewise.
6096 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
6098         * doc/invoke.texi: Document -mtune, delete -mcpu
6099         option for S/390 and zSeries.
6100         * config/s390/s390.c (s390_tune_string) New variable.
6101         (s390_cpu_string) Delete variable.
6102         (override_options): Use s390_tune_string instead of
6103         s390_cpu_string.
6104         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
6106 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
6108         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
6110 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
6112         * jump.c (next_nonnote_insn_in_loop): New function.
6113         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
6114         next_nonnote_insn.
6115         (duplicate_loop_exit_test). Likewise.
6117 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
6119         Merge from pch-branch:
6121         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
6123         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
6124         load.
6126         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
6128         * cpplib.c (count_registered_pragmas): New function.
6129         (save_registered_pragmas): New function.
6130         (_cpp_save_pragma_names): New function.
6131         (restore_registered_pragmas): New function.
6132         (_cpp_restore_pragma_names): New function.
6133         * cpphash.h (_cpp_save_pragma_names): Prototype.
6134         (_cpp_restore_pragma_names): Likewise.
6135         * cpppch.c (struct save_macro_item): Split from save_macro_data.
6136         (struct save_macro_data): New field 'saved_pragmas'.
6137         (save_macros): Update for changes to struct save_macro_data.
6138         (cpp_prepare_state): Call _cpp_save_pragma_names, update
6139         for changes to struct save_macro_data.
6140         (cpp_read_state): Call _cpp_restore_pragma_names, update
6141         for changes to struct save_macro_data.
6143         * cpppch.c (cpp_read_state): Restore the hashtable references
6144         in the cpp_reader.
6146         * tree.h (built_in_decls): Mark for PCH.
6148         * dbxout.c (lastfile): Don't mark for PCH.
6150         * ggc.h: Document PCH calls into memory managers.
6152         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
6154         * doc/invoke.texi (Precompiled Headers): Document the
6155         directory form of PCH.
6156         * cppfiles.c (validate_pch): New function.
6157         (open_file_pch): Search suitably-named directories for PCH files.
6159         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
6161         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
6162         reorder options.
6163         (Type Information): Mention that the information is also
6164         used to implement PCH.
6165         * doc/passes.texi (Passes): Improve documentation of
6166         language-specific files.
6168         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
6170         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
6171         (struct walk_type_data): Add reorder_fn field.
6172         (walk_type): Process 'reorder' option.
6173         (write_types_process_field): Reorder parameters to gt_pch_note_object,
6174         call reorder_note_routine.
6175         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
6176         (ggc_wtd): Update for change to struct write_types_data.
6177         (pch_wtd): Likewise.
6178         * ggc.h (gt_pch_note_object): Reorder parameters.
6179         (gt_handle_reorder): New definition.
6180         (gt_pch_note_reorder): New prototype.
6181         * ggc-common.c (struct ptr_data): Add reorder_fn.
6182         (gt_pch_note_object): Reorder parameters.
6183         (gt_pch_note_reorder): New.
6184         (gt_pch_save): Call reorder_fn.
6185         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
6187         * dbxout.c (cwd): Don't mark for PCH.
6189         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
6191         * gengtype.c (finish_root_table): Fix some warnings.
6192         (write_root): Handle TYPE_STRING.
6193         * ggc.h (gt_ggc_m_S): Add prototype.
6194         * stringpool.c (gt_ggc_m_S): New function.
6196         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
6198         * dwarf2out.c (dw2_string_counter): New.
6199         (AT_string_form): Use it.
6200         (same_dw_val_p): Update for removal of hashtable.h hash tables.
6202         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
6204         * dbxout.c: Include gt-dbxout.h.
6205         (lastfile): Mark for PCH/GGC.
6206         (cwd): Likewise.
6207         (struct typeinfo): Likewise.
6208         (typevec): Likewise.
6209         (typevec_len): Likewise.
6210         (next_type_number): Likewise.
6211         (struct dbx_file): Likewise.
6212         (current_file): Likewise.
6213         (next_file_number): Likewise.
6214         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
6215         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
6216         (dbxout_end_source_file): Don't free struct dbx_file.
6217         (dbxout_type): Use GGC to allocate typevec.
6218         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
6219         (GTFILES): Add dbxout.c.
6220         (gt-dbxout.h): New rule.
6222         * Makefile.in (c-pch.o): Add debug.h as dependency.
6223         * c-pch.c: Include debug.h.
6224         (pch_init): Call start_source_file to keep nesting right.
6225         (c_common_read_pch): Add orig_name parameter.  Call
6226         start_source_file debug hook.  Call end_source_file debug hook.
6227         * c-common.h (c_common_read_pch): Update prototype.
6228         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
6229         callback.
6230         * cppfiles.c (struct include_file): Add new field `header_name'.
6231         (find_or_create_entry): Default it to `name'.
6232         (open_file_pch): Set it to the original header file searched for.
6233         (stack_include_file): Don't stack an empty buffer, just handle
6234         PCH files immediately.  Pass header_name field to read_pch callback.
6236         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
6238         * function.c (funcdef_no): Mark to be saved in a PCH.
6240         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
6242         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
6244         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
6246         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
6248         * optabs.h (code_to_optab): Add GTY marker.
6250         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
6252         * Makefile.in (GTFILES): Add cpplib.h.
6253         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
6254         * c-decl.c (build_compound_literal): Don't use var_labelno.
6255         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
6256         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
6257         * varasm.c (const_labelno): Use gengtype to mark.
6258         (var_labelno): Likewise.
6259         (in_section): Likewise.
6260         (in_named_name): Likewise.
6261         (struct in_named_entry): Likewise.
6262         (in_named_htab): Likewise.
6263         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
6264         (init_varasm_once): Use GGC to allocate in_named_htab.
6265         * config/darwin.c (current_pic_label_num): Mark for PCH.
6267         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
6269         * ggc-simple.c (init_ggc_pch): New stub procedure.
6270         (ggc_pch_count_object): Likewise.
6271         (ggc_pch_total_size): Likewise.
6272         (ggc_pch_this_base): Likewise.
6273         (ggc_pch_alloc_object): Likewise.
6274         (ggc_pch_prepare_write): Likewise.
6275         (ggc_pch_write_object): Likewise
6276         (ggc_pch_finish): Likewise.
6277         (ggc_pch_read): Likewise.
6279         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
6281         * c-pch.c (c_common_write_pch): Write the macro definitions after
6282         the GCed data.
6283         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
6284         definitions after the GCed data.
6285         * cpplib.c (save_macros): New.
6286         (reset_ht): New.
6287         (cpp_write_pch_deps): Split out of cpp_write_pch.
6288         (cpp_write_pch_state): Split out of cpp_write_pch.
6289         (cpp_write_pch): Delete.
6290         (struct save_macro_data): Delete.
6291         (cpp_prepare_state): New.
6292         (cpp_read_state): Erase and restore initial macro definitions.
6293         * cpplib.h (struct save_macro_data): Forward-declare.
6294         (cpp_write_pch_deps): Prototype.
6295         (cpp_write_pch_state): Prototype.
6296         (cpp_write_pch): Delete prototype.
6297         (cpp_prepare_state): Prototype.
6298         (cpp_read_state): Add fourth argument.
6300         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
6302         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
6303         (write_array): Remove warning.
6305         * gengtype.c (contains_scalar_p): New.
6306         (finish_root_table): Add the table to all languages, even if it's
6307         empty.
6308         (write_roots): Output gt_pch_scalar_rtab.
6309         * ggc-common.c (gt_pch_save): Write out scalars.
6310         (gt_pch_restore): Read scalars back.
6312         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
6313         (struct page_entry): Delete pch_page field.
6314         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
6315         (clear_marks): Likewise.
6316         (sweep_pages): Likewise.
6317         (poison_pages): Likewise.
6318         (ggc_print_statistics): Likewise.
6319         (ggc_pch_read): Don't free objects read from a PCH.
6320         Properly set up in_use_p and page_tails.
6322         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
6324         * gengtype.c (struct write_types_data): New.
6325         (struct walk_type_data): Make `cookie' const; add extra
6326         prev_val item; add `orig_s' field.
6327         (walk_type): Update prev_val[3].
6328         (write_types_process_field): New.
6329         (write_func_for_structure): Take write_types_data structure.
6330         (write_types): New.
6331         (ggc_wtd): New.
6332         (pch_wtd): New.
6333         (write_types_local_process_field): New.
6334         (gc_mark_process_field): Delete.
6335         (write_local_func_for_structure): New.
6336         (gc_mark_func_name): Delete.
6337         (write_gc_types): Delete.
6338         (write_local): New.
6339         (finish_root_table): Don't include 'ggc_' in PFX.
6340         (write_root): Rename from write_root.  Fill pchw field of structures.
6341         (write_array): New.
6342         (write_roots): Rename from write_gc_roots.  Split out to write_array.
6343         Update to changes to other routines.  Write gt_pch_cache_rtab table.
6344         (main): Write PCH walking routines.
6345         * ggc-common.c: Include toplev.h, sys/mman.h.
6346         (ggc_mark_roots): For cache hashtables, also mark the hash table
6347         and the array of entries.
6348         (saving_htab): New.
6349         (struct ptr_data): New.
6350         (POINTER_HASH): New.
6351         (gt_pch_note_object): New.
6352         (saving_htab_hash): New.
6353         (saving_htab_eq): New.
6354         (struct traversal_state): New.
6355         (call_count): New.
6356         (call_alloc): New.
6357         (compare_ptr_data): New.
6358         (relocate_ptrs): New.
6359         (write_pch_globals): New.
6360         (struct mmap_info): New.
6361         (gt_pch_save): New.
6362         (gt_pch_restore): New.
6363         * ggc-page.c (ROUND_UP_VALUE): New.
6364         (ROUND_UP): New.
6365         (struct page_entry): Add field `pch_page'.
6366         (init_ggc): Use ROUND_UP.
6367         (struct ggc_pch_data): Declare.
6368         (init_ggc_pch): New.
6369         (ggc_pch_count_object): New.
6370         (ggc_pch_total_size): New.
6371         (ggc_pch_this_base): New.
6372         (ggc_pch_alloc_object): New.
6373         (ggc_pch_prepare_write): New.
6374         (ggc_pch_write_object): New.
6375         (ggc_pch_finish): New.
6376         (ggc_pch_read): New.
6377         * ggc.h (gt_pointer_operator): New.
6378         (gt_note_pointers): New.
6379         (gt_pch_note_object): New prototype.
6380         (gt_pointer_walker): New.
6381         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
6382         (LAST_GGC_ROOT_TAB): Update.
6383         (gt_pch_cache_rtab): Declare.
6384         (gt_pch_scalar_rtab): Declare.
6385         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
6386         (LAST_GGC_CACHE_TAB): Update.
6387         (gt_pch_save_stringpool): Declare.
6388         (gt_pch_restore_stringpool): Declare.
6389         (gt_pch_p_S): Declare.
6390         (gt_pch_n_S): Declare.
6391         (struct ggc_pch_data): Forward-declare.
6392         (init_ggc_pch): Declare.
6393         (ggc_pch_count_object): Declare.
6394         (ggc_pch_total_size): Declare.
6395         (ggc_pch_this_base): Declare.
6396         (ggc_pch_alloc_object): Declare.
6397         (ggc_pch_prepare_write): Declare.
6398         (ggc_pch_write_object): Declare.
6399         (ggc_pch_finish): Declare.
6400         (ggc_pch_read): Declare.
6401         (gt_pch_save): Declare.
6402         (gt_pch_restore): Declare.
6403         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
6404         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
6405         const_double_htab, mem_attrs_htab using GGC.
6406         * c-pch.c: Include ggc.h.
6407         (pch_init): Allow reading PCH file back.
6408         (c_common_write_pch): Call gt_pch_save.
6409         (c_common_read_pch): Call gt_pch_restore.
6410         * c-parse.in (init_reswords): Delete now-untrue comment.
6411         Allocate ridpointers using GGC.
6412         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
6413         calling expand_deferred_fns.
6414         * c-common.h (ridpointers): Mark for GTY machinery.
6415         * Makefile.in (stringpool.o): Update dependencies.
6416         (c-pch.o): Update dependencies.
6417         (ggc-common.o): Update dependencies.
6418         * stringpool.c: Include gt-stringpool.h.
6419         (gt_pch_p_S): New.
6420         (gt_pch_n_S): New.
6421         (struct string_pool_data): New.
6422         (spd): New.
6423         (gt_pch_save_stringpool): New.
6424         (gt_pch_restore_stringpool): New.
6425         * tree.c (init_ttree): Make type_hash_table allocated using GC.
6427         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
6429         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
6430         (output_mangled_typename): Don't pass size_t to printf.
6432         * tree.h (union tree_type_symtab): Add tag to `address' field.
6433         (union tree_decl_u2): Add tag to 'i' field.
6434         * varasm.c (union rtx_const_un): Add tags to all fields.
6435         * gengtype.c (struct walk_type_data): New.
6436         (output_escaped_param): Take struct walk_type_data parameter.
6437         (write_gc_structure_fields): Delete.
6438         (walk_type): New.
6439         (write_gc_marker_routine_for_structure): Delete.
6440         (write_func_for_structure): New.
6441         (gc_mark_process_field): New.
6442         (gc_mark_func_name): New.
6443         (gc_counter): Delete.
6444         (write_gc_types): Use write_func_for_structure.
6445         (write_gc_roots): Use walk_type.
6447         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
6449         * ggc-common.c (ggc_mark_roots): Delete 'x'.
6450         (ggc_splay_dont_free): Fix warning about unused 'x'.
6451         (ggc_print_common_statistics): Remove warnings.
6453         2002-10-01  Mike Stump  <mrs@apple.com>
6455         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
6456         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
6458         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
6459             Catherine Moore  <clm@redhat.com>
6461         * Makefile (c-pch.o): Update dependencies.
6462         (LIBCPP_OBJS): Add cpppch.o.
6463         (cpppch.o): New.
6464         * c-common.c (c_common_init): Don't call pch_init here.
6465         * c-common.h (c_common_read_pch): Update prototype.
6466         * c-lex.c (c_common_parse_file): Call pch_init here.
6467         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
6468         (c_common_decode_option): Handle them.
6469         * c-pch.c: Include c-pragma.h.
6470         (save_asm_offset): Delete.
6471         (pch_init): Move contents of save_asm_offset into here, call
6472         cpp_save_state.
6473         (c_common_write_pch): Call cpp_write_pch.
6474         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
6475         cpp_valid_state.
6476         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
6477         * cppfiles.c (stack_include_file): Update for change to
6478         parameters of cb.read_pch.
6479         * cpphash.h (struct cpp_reader): Add `savedstate' field.
6480         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
6481         `restore_pch_deps' fields.
6482         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
6483         (cpp_save_state): Prototype.
6484         (cpp_write_pch): Prototype.
6485         (cpp_valid_state): Prototype.
6486         (cpp_read_state): Prototype.
6487         * cpppch.c: New file.
6488         * flags.h (version_flag): Remove prototype.
6489         * mkdeps.c (deps_save): New.
6490         (deps_restore): New.
6491         * mkdeps.h (deps_save): Prototype.
6492         (deps_restore): Prototype.
6493         * toplev.c (late_init_hook): Delete.
6494         (version_flag): Make static again.
6495         (compile_file): Don't call late_init_hook.
6496         * toplev.h (late_init_hook): Delete.
6497         * doc/cppopts.texi: Document -fpch-deps.
6498         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
6500         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
6502         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
6503         callers.
6504         (c_common_valid_pch): Rename from c_valid_pch, change callers.
6505         (c_common_read_pch): Rename from c_read_pch, change callers.
6507         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
6508         a space between it and its argument.
6510         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
6512         * c-pch.c: New file.
6513         * toplev.h (late_init_hook): Declare.
6514         * toplev.c (late_init_hook): Define.
6515         (version_flag): Make globally visible.
6516         (compile_file): Call late_init_hook.
6517         (init_asm_output): Make output file seekable.
6518         * gcc.c (default_compilers): Update c-header rule.
6519         * flags.h (version_flag): Declare.
6520         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
6521         fields.
6522         * cppfiles.c (struct include_file): Add 'pch' field.
6523         (INCLUDE_PCH_P): New.
6524         (open_file_pch): New.
6525         (stack_include_file): Handle PCH files specially.
6526         (find_include_file): Call open_file_pch instead of open_file.
6527         (_cpp_read_file): Explain why open_file is used instead of
6528         open_file_pch.
6529         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
6530         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
6531         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
6532         in cpplib callbacks.
6533         * c-common.c (pch_file): Correct comment.
6534         (allow_pch): Define.
6535         (c_common_init): Call pch_init.
6536         * c-common.h (allow_pch): Declare.
6537         (pch_init): Declare.
6538         (c_valid_pch): Declare.
6539         (c_read_pch): Declare.
6540         (c_write_pch): Declare.
6541         * Makefile.in (c-pch.o): New.
6542         (C_AND_OBJC_OBJS): Add c-pch.o.
6543         * doc/invoke.texi (Precompiled Headers): Add index entries,
6544         complete truncated paragraph.
6546         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
6548         * c-common.c: (pch_file): Define.
6549         * c-common.h (pch_file): Declare.
6550         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
6551         (missing_arg): Require --output-pch= to have an argument.
6552         (c_common_decode_option): Handle --output-pch=.
6553         * gcc.c: Document new %V.
6554         (default_compilers): Handle compiling C header files.
6555         (do_spec_1): Implement %V.
6556         (main): Handle "gcc foo.h" without trying to run linker.
6557         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
6558         (Overall Options): Document what the driver does with header files,
6559         document new -x option possibilities.
6560         (Invoking G++): More documentation for PCH.
6561         (Precompiled Headers): New.
6563         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
6565         * ggc.h: Don't include varray.h.  Rearrange functions to be more
6566         organized.
6567         (ggc_add_root): Delete.
6568         (ggc_mark_rtx): Delete.
6569         (ggc_mark_tree): Delete.
6570         (struct ggc_statistics): Remove contents.
6571         * ggc-common.c: Remove unneeded includes.
6572         (struct ggc_root): Delete.
6573         (roots): Delete.
6574         (ggc_add_root): Delete.
6575         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
6576         (ggc_print_common_statistics): Remove most of the contents.
6577         * Makefile.in (GGC_H): No longer uses varray.h.
6578         (ggc-common.o): Update dependencies.
6579         (c-parse.o): Add varray.h to dependencies.
6580         (c-common.o): Add varray.h.
6581         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
6582         (mark_ident_hash): Rename to ggc_mark_stringpool.
6583         (init_stringpool): Don't use ggc_add_root.
6584         * c-parse.in: Include varray.h.
6585         * c-common.c: Include varray.h.
6586         * objc/Make-lang.in (objc-act.o): Add varray.h.
6587         * objc/objc-act.c: Include varray.h.
6589         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
6591         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
6592         (dw_cfi_oprnd1_desc): Likewise.
6594         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
6596         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
6597         move out of ifdef.
6598         (alpha_links): Use gengtype to mark; move out of ifdef.
6599         (mark_alpha_links_node): Delete.
6600         (mark_alpha_links): Delete.
6601         (alpha_need_linkage): Use GGC to allocate splay tree, struct
6602         alpha_links, strings.  Don't use ggc_add_root.
6603         * ggc-common.c (ggc_splay_alloc): New.
6604         (ggc_splay_dont_free): New.
6605         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
6606         (ggc_mark_tree): Likewise.
6607         (splay_tree_new_ggc): New.
6608         (ggc_splay_alloc): Declare.
6609         (ggc_splay_dont_free): Declare.
6610         * dwarf2asm.c: Include gt-dwarf2asm.h.
6611         (mark_indirect_pool_entry): Delete.
6612         (mark_indirect_pool): Delete.
6613         (indirect_pool): Use gengtype to mark.
6614         (dw2_force_const_mem): Don't use ggc_add_root.
6615         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
6616         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
6617         (gt-dwarf2asm.h): Depend on s-gtype.
6619         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
6621         * tree.h (union tree_type_symtab): Mark `die' field.
6622         * Makefile.in (dwarf2out.o): Update dependencies.
6623         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
6624         hash tables.
6625         (dw_cfi_oprnd1_desc): New function.
6626         (dw_cfi_oprnd2_desc): New function.
6627         (indirect_string_alloc): Delete.
6628         (debug_str_do_hash): New function.
6629         (debug_str_eq): New function.
6630         (mark_limbo_die_list): Delete.
6631         (dwarf2out_init): Don't call ggc_add_root.
6633 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
6635         The following changes are merged from itanium-sched-branch:
6637         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
6639         * doc/md.texi: Clarify assignment of units to automata description.
6641         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
6643         * genautomata.c (unit_decl): Remove members
6644         `the_same_automaton_unit' and
6645         `the_same_automaton_message_reported_p'.
6646         (process_unit_to_form_the_same_automaton_unit_lists,
6647         form_the_same_automaton_unit_lists_from_regexp,
6648         form_the_same_automaton_unit_lists, the_same_automaton_lists):
6649         Remove them.
6650         (annotation_message_reported_p): New global variable.
6651         (check_unit_distribution_in_reserv,
6652         check_regexp_units_distribution): New functions.
6653         (check_unit_distributions_to_automata): Rewrite it.
6655         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
6657         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
6658         Use continue instead of break if cycle is too big.
6660         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
6662         * genautomata.c (check_unit_distributions_to_automata): Output at
6663         most one message for a unit.
6664         (process_unit_to_form_the_same_automaton_unit_lists): Check
6665         automaton of units instead of units themself.
6667         * doc/md.texi: Describe the constraint about assigning unit to
6668         automata.
6670         2002-12-20  Jan Hubicka  <jH@suse.cz>
6671                     Vladimir Makarov  <vmakarov@redhat.com>
6673         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
6674         and `in_set_p'.
6675         (gen_cpu_unit): Initialize the new members.
6676         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
6677         up `min_occ_cycle_num'.
6678         (evaluate_max_reserv_cycles): Change the function call.
6679         (CLEAR_BIT): New macro.
6680         (states_union, state_shift): Use the mask.
6681         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
6682         (form_reservs_matter): New function.
6683         (make_automaton): Call the function and use the mask.
6684         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
6685         account.
6687         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6689         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
6691         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6693         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
6694         for Itanium.
6696         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6698         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
6699         default cpu.
6701         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6702                 2002-10-31  Dale Johannesen <dalej@apple.com>
6704         * haifa-sched.c (find_set_reg_weight): New function.
6705         (find_insn_reg_weight): Use the new function.
6706         (schedule_block): Do sorting ready queue always
6707         after insn issue.
6709         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
6711         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
6713         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
6715         * haifa-sched.c (choice_entry): New structure.
6716         (choice_stack, cycle_issued_insns): New variables.
6717         (max_issue): Rewrite it.
6718         (choose_ready): Set up ready_try for unknown insns too.
6719         (schedule_block): Allocate and free choice_stack.  Set up
6720         and modify cycle_issued_insns.
6722         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
6723         with and without filling the bundle.
6724         (bundling): Combine calls of issue_nops_and_insn.
6726         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
6728         * config/ia64/itanium1.md: New file.
6730         * config/ia64/itanium2.md: New file.
6732         * config/ia64/ia64.md: Move DFA descriptions into the new files.
6733         Remove the old pipeline description.
6735         * config/ia64/ia64.c (ia64_override_options): Add aliases of
6736         itanium processor names.
6738         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
6740         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
6741         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
6743         * config/ia64/ia64.md: Add descriptions for Itanium2.
6745         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
6747         * config/ia64/ia64.h (processor_type): New enumeration.
6748         (ia64_tune, ia64_tune_string): New external declarations.
6749         (TARGET_OPTIONS): Add option `tune='.
6751         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
6752         variables.
6753         (ia64_override_options): Set up `ia64_tune'.
6754         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
6755         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
6756         (bundling): Add nops for MM-insns only for Itanium.
6757         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
6758         Itanium.
6760         * config/ia64/ia64.md (cpu): New attribute.
6761         (DFA description): Enable it only for Itanium.
6763         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
6764                     Richard Henderson  <rth@redhat.com>
6766         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
6767         MASK_EARLY_STOP_BITS.
6768         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
6769         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
6770         `early-stop-bits'.
6772         * config/ia64/ia64.c (ia64_dfa_new_cycle,
6773         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
6774         instead of TARGET_TUNE_STOP_BITS.
6776         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
6777         `-mearly-stop-bits'.
6779         * config/ia64/ia64.c (automata_option "v"): Comment it.
6781         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
6783         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
6784         New macros.
6785         (TARGET_SWITCHES): Add entries for the new option.
6787         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
6788         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
6789         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
6790         global variables.
6791         (ia64_sched_reorder2): Set up `clocks'.
6792         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
6793         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
6794         queue when TARGET_TUNE_STOP_BITS.
6795         (bundling): Insert additional nops for MM-insns.
6796         (final_emit_insn_group_barriers): Add insertion of stop bits
6797         according `stops_p'.
6798         (ia64_reorg): Initiate the new varibales.
6800         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
6802         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
6804         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
6805         insns at the end of block insn scheduling.
6807         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
6809         * sched-deps.c (remove_dependence, group_leader): Remove it.
6810         (add_dependence): Add dependence to group leader to.
6811         (set_sched_group_p): Add dependence to the first insn of the
6812         schedule group too.
6813         (sched_analyze_insn): Make dependence to jump as anti-dependence.
6814         Change true dependence by anti-dependence when
6815         `reg_pending_barrier'.
6817         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
6818         add_branch_dependences): Ignore schedule groups.
6820         * sched-ebb.c (init_ready_list): Ditto.
6822         * (move_insn, set_priorities): Ditto.
6824         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
6825         flag is clear after reload.
6826         (adjust_cost): Change cost only for output dependencies.
6828         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
6830         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
6832         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
6834         * target.h (gcc_target): Add member
6835         `dependencies_evaluation_hook'.
6837         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
6838         macro.
6839         (TARGET_SCHED): Add initiatialization of the new member.
6841         * sched-ebb.c: Include `target.h'.
6842         (schedule_ebb): Call `dependencies_evaluation_hook'.
6844         * sched-rgn.c (schedule_region): Call
6845         `dependencies_evaluation_hook'.
6847         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
6848         New macro.
6849         (ia64_dependencies_evaluation_hook): New function.
6851         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
6852         Describe the new hook.
6854         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
6856         * target.h (gcc_target): Add members
6857         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
6859         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
6860         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
6861         macros.
6862         (TARGET_SCHED): Add initiatialization of the new members.
6864         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
6865         insn scheduling too.
6866         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
6867         initialize `ready_try'.
6868         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
6869         `dfa_new_cycle' says not to do it.
6871         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
6872         bundling.
6874         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
6876         * config/ia64/ia64.c: Include `hashtab.h'.
6877         (ia64_first_cycle_multipass_dfa_lookahead_guard,
6878         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
6879         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
6880         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
6881         bundle_state_eq_p, insert_bundle_state,
6882         initiate_bundle_state_table, finish_bundle_state_table,
6883         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
6884         get_template, get_next_important_insn, bundling): New functions.
6885         (ia64_internal_sched_reorder): Remove it.
6886         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
6887         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
6888         (ia64_safe_itanium_requires_unit0): Remove it.
6889         (group_barrier_needed_p): Place group barrier right before a real
6890         insn.
6891         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
6892         Remove them.
6893         (bundle_name): New variable.
6894         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
6895         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
6896         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
6897         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
6898         temp_dfa_state, prev_cycle_state): New global variables.
6899         (insn_matches_slot, maybe_rotate, finish_last_head,
6900         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
6901         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
6902         find_best_packet, itanium_reorder, dump_current_packet,
6903         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
6904         (sched_data, sched_ready, sched_types): Remove them.
6905         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
6906         `init_insn_group_barriers'.
6907         (ia64_sched_reorder, ia64_sched_reorder2): Call
6908         ia64_dfa_sched_reorder.
6909         (ia64_variable_issue): Rewrite it.
6910         (bundle_state): New structure.
6911         (index_to_bundle_states, bundle_states_num,
6912         allocated_bundle_states_chain, free_bundle_state_chain): New
6913         global variables.
6914         (ia64_sched_finish): Add stop bits and call `bundling' after the
6915         2nd insn scheduling.
6916         (ia64_use_dfa_pipeline_interface): Return zero always.
6917         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
6918         insn scheduling.
6919         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
6920         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
6921         (ia64_reorg): Add bundling insns.
6923         * doc/tm.texi
6924         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
6925         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
6927         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
6929         * config/ia64/ia64.md: Add Itanium1 DFA description.
6930         (itanium_class): Add `nop' and `pre_cycle'.  Add
6931         define_function_unit for `nop'.
6932         (nop): Change attribute `itanium_class'.
6933         (pre_cycle): New define_insn.
6935         * config/ia64/ia64-protos.h (bundling_p): New external variable.
6936         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
6937         ia64_produce_address_p): New function prototypes.
6939         * config/ia64/ia64.c (bundling_p): New global variable.
6940         (ia64_use_dfa_pipeline_interface,
6941         ia64_first_cycle_multipass_dfa_lookahead,
6942         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
6943         functions.
6944         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
6945         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
6946         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
6947         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
6948         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
6949         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
6950         (dfa_pre_cycle_insn): New variable.
6952         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6954         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
6955         constructions.
6957         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
6958         New function prototypes.
6960         * genattrtab.c (main): Process the new constructions.
6962         * genautomata.c (gen_presence_absence_set,
6963         process_presence_absence_names, process_presence_absence_patterns,
6964         add_presence_absence, check_absence_pattern_sets): Add parameter
6965         `final_p'.
6966         (unit_decl): Add new members `final_presence_list' and
6967         `final_absence_list'.
6968         (unit_pattern_rel_decl): Add new member `final_p'.
6969         (gen_final_presence_set, gen_final_absence_set): New functions.
6970         (process_decls): Use member `final_p'.
6971         (temp_reserv): New global variable.
6972         (reserv_sets_are_intersected): Add processing `final_presence_set'
6973         and `final_absence_set'.
6974         (initiate_states): Allocate `temp_reserv'.
6975         (unit_final_presence_set_table, unit_final_absence_set_table): New
6976         gloabal variables.
6977         (initiate_presence_absence_pattern_sets): Initiate them.
6978         (NDFA_to_DFA): Fix typo.
6979         (output_description): Output `final_presence_set' and
6980         `final_absence_set'.
6982         * doc/md.texi (final_presence_set, final_absence_set): Describe
6983         them.
6985         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6987         * genautomata.c (transform_3): Process a missing case (nothing on
6988         unit place).
6990         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6992         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
6993         comments about queried units and the minimization.
6995         * doc/md.texi: Ditto.
6997         * genautomata.c (create_composed_state): Return nonzero if the new
6998         state has been created.
6999         (first_cycle_unit_presence): New function.
7000         (state_is_differed): Add new parameter.  Use the new function.
7001         Take queried units into account.
7002         (partition_equiv_class): Pass additional parameter to
7003         `state_is_differed'.
7004         (merge_states): Process composed states too.
7005         (build_automaton, create_automata, output_min_issue_delay_table,
7006         output_tables, output_statistics): Output more information.
7007         (output_reserved_units_table): Use function
7008         `first_cycle_unit_presence'.
7009         (output_tables): Output table of queried units even if the
7010         minimization is switched on.
7011         (write_automata): Output code for querying units even if the
7012         minimization is switched on.
7014         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
7016         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
7017         syntax of the constructions.
7019         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
7020         extended syntax of the constructions.
7022         * genautomata.c (unit_rel_decl): Rename it to
7023         `unit_pattern_rel_decl'.
7024         (pattern_set_el, pattern_reserv): New structures.
7025         (pattern_set_el_t, pattern_reserv_t): New types.
7026         (gen_presence_absence_set): New function.
7027         (process_presence_absence): Remove it.
7028         (process_presence_absence_names,
7029         process_presence_absence_patterns): New functions.
7030         (get_presence_absence_set): Remove it.
7031         (initiate_presence_absence_sets): Rename it on
7032         `initiate_presence_absence_pattern_sets'.  Use new function
7033         `form_reserv_sets_list'.
7034         (form_reserv_sets_list, check_presence_pattern_sets,
7035         check_absence_pattern_sets, output_pattern_set_el_list): New
7036         functions.
7037         (unit_decl): Change types of members `presence_list' and
7038         `absence_list'.
7039         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
7040         (decl): Change types of members `excl', `presence', and `absence'.
7041         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
7042         at the end of the vector.
7043         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7044         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
7045         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
7046         (gen_presence_set, gen_absence_set): Use new function
7047         `gen_presence_absence_set'.
7048         (add_presence_absence): Process `pattern_list' instead of
7049         `source_list'.
7050         (process_decls): USe new functions
7051         `process_presence_absence_names' and
7052         `process_presence_absence_patterns'.
7053         (reserv_sets_are_intersected): Use new function
7054         `check_presence_pattern_sets'.
7055         (presence_set, absence_set): Remove them.
7056         (unit_presence_set_table, unit_absence_set_table): New global
7057         variables.
7058         (output_description): Use new function
7059         `output_pattern_set_el_list'.
7060         (generate): Use `initiate_presence_absence_pattern_sets'.
7062         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
7064         * genattr.c (main): Add output of prototype of new interface
7065         function `dfa_clean_insn_cache'.
7067         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
7068         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
7069         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
7070         the generated code.
7071         (write_automata): Call the new function.
7073 Thu Jan  9 22:47:38 CET 2003  Jan Hubicka  <jh@suse.cz>
7075         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
7076         correctly.
7078 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
7080         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
7082 Thu Jan  9 17:26:40 2003  J"orn Rennecke <joern.rennecke@superh.com>
7084         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
7085         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
7086         (CONSTRAINT_LEN): Provide default definition.
7087         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7088         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
7089         (EXTRA_CONSTRAINT_STR): Likewise.
7090         (REG_CLASS_FROM_CONSTRAINT): Define.
7091         * genoutput.c (check_constraint_len, constraint_len): New functions.
7092         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
7093         constraint / modifier.
7094         (gen_insn): Call check_constraint_len.
7095         * local-alloc.c (block_alloc): Update to use new macros / pass
7096         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
7097         * ra-build.c (handle_asm_insn): Likewise.
7098         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7099         (constrain_operands, peep2_find_free_register): Likewise.
7100         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
7101         * regmove.c (find_matches): Likewise.
7102         * reload.c (push_secondary_reload, find_reloads): Likewise.
7103         (alternative_allows_memconst): Likewise.
7104         * reload1.c (maybe_fix_stack_asms): Likewise.
7105         (reload_cse_simplify_operands): Likewise.
7106         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7107         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
7108         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7109         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
7110         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
7111         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
7113         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
7115 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
7117         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
7118         length.
7119         (*extzv_1_r_h8300hs): Likewise.
7120         (*extzv_1_r_inv_h8300): Likewise.
7121         (*extzv_1_r_inv_h8300hs): Likewise.
7123 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
7125         * config/h8300/h8300.h (PREDICATE_CODES): New.
7127 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
7129         * config/h8300/h8300.md (*addsi3_upper): New.
7130         (*iorsi3_shift): Likewise.
7131         (two splitters): Likewise.
7132         (*addsi3_shift): Likewise.
7133         (two splitters): Likewise.
7135 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7137         * Makefile.in (optabs.o): Add dependency on basic-block.h.
7138         * basic-block.h (control_flow_insn_p): Fuction was exported.
7139         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
7140         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
7141         notes only when the region is contained in a single basic block.
7143 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7145         PR inline-asm/8832
7146         * tree.h (expand_asm): New prototype.
7147         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
7148         to do so.
7149         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
7150         down to expand_asm.
7151         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
7152         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
7153         (volatile_refs_p) [ASM_INPUT]: Likewise.
7154         (side_effects_p) [ASM_INPUT]: Likewise.
7156 Thu Jan  9 12:00:36 CET 2003  Jan Hubicka  <jh@suse.cz>
7158         * i386.md (*mul*): FIx constraints; remove confused comment; fix
7159         athlon_decode attributes
7160         (imul/k8 optimization peep2s): New.
7162         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
7163         * i386.md (type attribute): Add ssecomi.
7164         (unit, memory, prefix attributes): Handle ssecomi.
7165         (cvt?2? patterns): Fix athlon_decode attribute
7166         (comi patterns): Set attribute to ssecomi.
7168         PR target/8343
7169         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
7171 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
7173         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
7174         that match register_operands.
7175         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
7176         register_operand the default case.
7178 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7180         PR c/8032
7181         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
7182         an empty element, do not advance the pointer to unfilled
7183         fields if there are pending initializers.
7185 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
7187         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
7188         (install-gcc-tooldir, install-cpp, installdirs,
7189         install-common, install-driver, install-info, install-man,
7190         install-headers, install-include-dir, install-headers-tar,
7191         install-headers-cpio, install-headers-cp, install-mkheaders,
7192         install-collect2, uninstall): Prepend $(DESTDIR) to
7193         destination paths in all (un)installation commands.
7194         (install-driver): Rewrite $(LN) commands to support DESTDIR
7195         with "ln" as well as with "ln -s".
7196         (installdirs): Simply use mkinstalldirs.
7197         (install-libgcc, install-multilib): Also pass DESTDIR.
7198         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
7199         installation destination variable ldir.
7200         * config/alpha/t-osf4, config/arm/t-netbsd,
7201         config/ia64/t-hpux, config/mips/t-iris5-6,
7202         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
7203         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
7204         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
7205         in the definition of SHLIB_INSTALL.
7206         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
7207         $(libsubdir) in the installation commands.
7209 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7211         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
7212         non-optimizing compile.
7213         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
7214         compile.
7216 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
7218         * config/i386/i386.c (ix86_attribute_table): Add new attributes
7219         ms_struct and gcc_struct.
7220         (ix86_handle_struct_attribute): New function.
7221         (ix86_ms_bitfield_layout_p): Update to take new attributes
7222         into account.
7223         * doc/extend.texi: Document new attributes.
7224         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
7226 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
7228         PR optimization/8750
7229         * config/i386/i386.c (ix86_expand_prologue): Don't allow
7230         scheduling pass to move insns across __alloca call.
7232 2003-01-08  Dale Johannesen  <dalej@apple.com>
7234         * config/rs6000/rs6000.md:  Replace *store_multiple_string
7235         with *stmsi[3-8].
7237 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
7239         PR target/9210
7240         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
7241         Set SYMBOL_REF_FLAG on local data sym_ref.
7243 2003-01-08  Dale Johannesen  <dalej@apple.com>
7245         * function.c (assign_parms):  Don't set pretend_args_size if
7246           REG_PARM_STACK_SPACE.
7247           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
7248           pretend_args_size.
7250 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
7252         * gcc.hlp: Delete.
7254 Thu Jan  9 00:57:15 CET 2003  Jan Hubicka  <jh@suse.cz>
7256         * i386.c  (ix86_expand_int_addcc): Fix thinko.
7258 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
7260         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
7261         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
7262         as hook_bool_tree_hwi_hwi_tree_true.
7263         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
7264         (rs6000_emit_epilogue): Same.
7265         (rs6000_output_mi_thunk): Re-implement as RTL.
7266         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
7267         xcoffout_declare_function if any debugging enabled.
7269 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
7271         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
7272         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
7273         * config/mips/mips.h (enum processor_type): Rename
7274         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
7275         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
7276         Add PROCESSOR_M4K.
7277         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
7278         (ISA_MIPS32R2): New define.
7279         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
7280         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
7281         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
7282         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
7283         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
7284         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
7285         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
7286         compiling MIPS16 code.
7287         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
7288         comment.
7289         (ISA_HAS_SEB_SEH): New define.
7290         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
7291         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
7292         processor_type value renaming.  Add support for MIPS32R2.
7293         Clean up comments, and move "sb1" entry with other MIPS64 CPU
7294         entries.
7295         (override_options): Reimplement -mipsN option handling so that
7296         it will work correctly for -mips32r2.  Avoid branch-likely
7297         instructions on MIPS32R2.
7298         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
7299         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
7300         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
7301         (extendhisi2_hw, extendqisi2_hw): New.
7302         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
7303         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
7304         MIPS32R2, and MIPS64.
7305         (LINK_SPEC): Pass -mips32r2 to linker.
7306         * config/mips/t-isa3264: Built -mips32r2 multilibs.
7307         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
7308         for mips32r2 in the -march description.  Alphabetically sort
7309         CPU names in the -march description.  Add long-missed -mips32
7310         and -mips64 to MIPS option summary.
7312         * config.gcc: Update copyright years to include 2003.
7313         * config/mips/mips.c: Likewise.
7314         * config/mips/mips.h: Likewise.
7315         * config/mips/mips.md: Likewise.
7316         * config/mips/netbsd.h: Likewise.
7317         * doc/invoke.texi: Likewise.
7319 2003-01-08  Andreas Schwab  <schwab@suse.de>
7321         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
7322         variable.
7323         * configure: Regenerated.
7325 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
7327         * config/h8300/h8300.c (output_logical_op): Replace byte/word
7328         extraction of det with b0, b1, w0, w2, etc.
7329         (compute_logical_op_length): Likewise.
7330         (compute_logical_op_cc): Likewise.
7332 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
7334         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
7335         HIGH on all variants.
7337 Wed Jan  8 14:06:34 CET 2003  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
7339         * Makefile.in (PARTITION_H): New.
7340         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
7341         * basic-block.h: Include hard-reg-set.h.
7343 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
7345         * arm.h (ENABLE_XF_PATTERNS): Delete.
7346         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
7347         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
7348         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
7349         (cmpxf_trap): Delete.
7350         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
7352 Wed Jan  8 12:10:57 CET 2003  Jan Hubicka  <jh@suse.cz>
7354         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
7355         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
7356         (add??cc): New expanders.
7357         * i386.c (expand_int_addcc): New function.
7358         * i386-protos.h (expand_int_addcc): Declare.
7360         * alias.c (memory_modified_1): New static function.
7361         (memory_modified): New static varaible.
7362         (memory_modified_in_insn_p): New global function.
7363         * rtl.h (memory_modified_in_insn_p): Declare.
7364         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
7365         references.
7367         * expr.h (emit_conditional_add): Declare.
7369 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
7371         PR other/8947
7372         * doc/invoke.texi (-malign-double): Explain that the option breaks
7373         binary compatibility.
7375 2003-01-08  Andreas Schwab  <schwab@suse.de>
7377         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
7378         should come from the generic *-*-linux* entry.
7380 Tue Jan  7 22:29:56 CET 2003  Jan Hubicka  <jh@suse.cz>
7382         * cselib.c (cselib_current_insn_in_libcall): New static variable.
7383         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
7384         we are inside libcall.
7385         * cselib.h (elt_loc_list): Add in_libcall.
7386         * gcse.c (do_local_cprop): Do not copy propagate using insns
7387         in libcalls.
7389 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
7391         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
7392         not normally affect to issue rate.
7394 Tue Jan  7 21:46:57 CET 2003  Jan Hubicka  <jh@suse.cz>
7396         * genopinit.c (optabs): Add addc_optab.
7397         * ifcvt.c (noce_try_store_flag): Rename to ...
7398         (noce_try_addcc): ... this one; handle generic conditional increment.
7399         (noce_process_if_block): Update noce_try_addcc call.
7400         * optabs.c (emit_conditional_add): New.
7401         (init_obtabs): Initialize addc_optab.
7402         * optabs.h (optab_index): Add OTI_addcc.
7403         (addcc_optab): New macro.
7404         * md.texi: Document addMcc
7406         PR target/8322
7407         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
7408         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7409         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
7411         * reload1.c (delete_output_reload): Avoid repeated attempts
7412         to delete insn.
7414 2003-01-07  Andreas Schwab  <schwab@suse.de>
7416         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
7417         Move --enable-initfini-array check ...
7418         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
7419         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
7420         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
7421         * configure: Rebuild.
7423 2003-01-07  Richard Henderson  <rth@redhat.com>
7425         * alias.c (find_base_value): Only use new_reg_base_value shortcut
7426         if the register is set once.
7428 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
7430         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
7431         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
7432         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
7434 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
7435             Sunil Davasam  <sunil.k.davasam@intel.com>
7437         PR libstdc++/9076
7438         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
7439         DW_CFA_same_value, read next and ignore.
7441 2003-01-07  Richard Henderson  <rth@redhat.com>
7443         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
7445 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
7447         * cfg.c: Include alloc-pool.h
7448         (edge_pool): New pool.
7449         (bb_pool): New pool.
7450         (first_deleted_edge): Remove.
7451         (first_deleted_block): Remove.
7452         (init_flow): Alloc/free the pools.
7453         (free_edge): Use pools.
7454         (alloc_block): Ditto.
7455         (expunge_block): Ditto.
7456         (cached_make_edge): Ditto.
7458         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
7460 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
7462         * et-forest.c: Include alloc-pool.h.
7463         (struct et_forest): Add node_pool and occur_pool.
7464         (et_forest_create): Create the new pools.
7465         (et_forest_delete): Delete them.
7466         (et_forest_add_node): Allocate and free using pools.
7467         (et_forest_add_edge): Ditto.
7468         (et_forest_remove_node): Ditto.
7469         (et_forest_remove_edge): Ditto.
7471         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
7473 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
7475         * config/h8300/h8300.c (output_logical_op): Simplify and
7476         optimize the handling of SImode.
7477         * config/h8300/h8300.c (compute_logical_op_length): Update
7478         accordingly.
7479         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
7481 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
7483         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
7484         big-endian correction to indirect arguments too.
7486 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
7488         Segher Boessenkool  <segher@koffie.nl>
7490         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
7491         (alt_reg_names): Ditto, fix formatting.
7492         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
7494 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
7496         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
7497         (output_logical_op): Constify intval and det.
7498         (compute_logical_length): Likewise.
7499         (compute_logical_cc): Likewise.
7500         (output_a_shift): Constify mask.
7501         (h8300_encode_label): Constify len.
7503 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
7505         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
7506         (h8300_expand_epilogue): Likewise.
7508 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
7510         Segher Boessenkool  <segher@koffie.nl>
7512         * config/rs6000/altivec.md: Remove spaces from assembler
7513         instruction argument lists.
7515 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7517         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
7518         c4x_assembler_function_p.
7519         (c4x_null_epilogue_p): Complement return value, all uses updated.
7520         (c4x_insert_attributes): Add naked.
7521         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
7522         * doc/extend.texi: Update C4x function attributes.
7524 2003-01-06  Richard Henderson  <rth@redhat.com>
7526         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
7527         properly when changing "local-ness".
7528         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
7530 2003-01-06  Dale Johannesen  <dalej@apple.com>
7532         * config/darwin-protos.h:  Add prototypes for new section functions.
7534 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
7536         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
7537         to EABI.
7539 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
7541         * hwint.h: If the current compiler has no 64-bit type at all,
7542         make HOST_WIDEST_INT 32 bits.
7544 2003-01-06  Eric Christopher  <echristo@redhat.com>
7546         * config/mips/mips.md (movdf_internal2): Fix constraints.
7548 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
7550         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
7552 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
7554         * config/mips/mips.md (leadi): Use dla rather than la.
7556 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
7558         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
7559         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
7561 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
7563         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
7564         redefinition.
7566 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
7568         * config/h8300/h8300.md (*extzv_8_23): New.
7570 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7572         * pa64-hpux.h (JCR_SECTION_NAME): Define.
7573         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
7574         USE_EH_FRAME_REGISTRY when defining.
7576 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
7578         * config/h8300/h8300.c (output_a_shift): Do not output a
7579         variable shift.
7580         * config/h8300/h8300.md (two splitters): New.
7582 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
7584         * config/mips/mips.md: Disable the movstrsi define_split.
7586 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7588         * alloc-pool.c: Don't include "libiberty.h".
7589         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
7590         * convert.c (convert_to_real): Hide unused variable.
7592 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7594         * Makefile.in (gtyp-gen.h): Const-ify.
7595         * gcov-dump.c (tag_table): Likewise.
7597 2003-01-04  Bruce Korb  <bkorb@gnu.org>
7599         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
7600         of *both* the file name and the fix name.
7602 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
7604         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
7605         collect2.
7606         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
7607         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
7608         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
7609         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
7610         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
7611         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
7612         elfos.h.
7613         (EH_FRAME_IN_DATA_SECTION): Delete define.
7614         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
7615         (STARTFILE_SPEC): Use crtbegin.o.
7616         (ENDFILE_SPEC): Use crtend.o.
7617         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
7618         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
7619         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
7620         DTOR_LIST_BEGIN): Define.
7621         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
7622         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
7623         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
7625 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
7627         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
7628         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
7629         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
7630         Cleanup handling of replacement text.
7631         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
7633 2003-01-04  Bruce Korb  <bkorb@gnu.org>
7635         * fixinc/tests/base/math.h: removed obsolete results
7636         * fixinc/tests/base/stdlib.h: ditto
7637         * fixinc/tests/base/sys/param.h: ditto
7638         * fixinc/tests/base/sys/stat.h: ditto
7639         * fixinc/tests/base/time.h: ditto
7640         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
7641         * fixinc/tests/base/sys/byteorder.h: ditto
7642         * fixinc/inclhack.def: Remove superfluous backslashes
7644 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
7646         * config/h8300/h8300-protos.h: Add prototypes for
7647         the new functions defined below.
7648         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
7649         define.
7650         (dosize): Emit RTL instead of assembly code.
7651         (push): Likewise.
7652         (pop): Likewise.
7653         (h8300_output_function_prologue): Remove.
7654         (h8300_expand_prologue): New.
7655         (h8300_expand_epilogue): New.
7656         (h8300_output_function_epilogue): Do only the reset of
7657         pragma_saveall.
7658         * config/h8300/h8300.md (push_h8300): New.
7659         (push_h8300hs): Likewise.
7660         (pop_h8300): Likewise.
7661         (pop_h8300hs): Likewise.
7662         (*stm_h8300s_2): Change the name to stm_h8300s_2.
7663         (*stm_h8300s_3): Change the name to stm_h8300s_3.
7664         (*stm_h8300s_4): Change the name to stm_h8300s_4.
7665         (*ldm_h8300s_2): New.
7666         (*ldm_h8300s_3): Likewise.
7667         (*ldm_h8300s_4): Likewise.
7668         (return): Likewise.
7669         (*return_1): Likewise.
7670         (prologue): Likewise.
7671         (epilogue): Likewise.
7672         (monitor_prologue): Likewise.
7674 2003-01-03  Dale Johannesen  <dalej@apple.com>
7676         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
7677           machopic_picsymbol_stub1.
7678           (EXTRA_SECTION_FUNCTIONS):  Ditto.
7679         * rs6000/rs6000.c:  Update copyright.
7680           (machopic_output_stub):  Use them.  Remove an insn from stub code.
7682 2003-01-02  Jason Merrill  <jason@redhat.com>
7684         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
7686         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
7687         static/external decls.
7689         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
7690         outermost scope.
7691         * c-decl.c (c_make_fname_decl): Push the decls there, too.
7693 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
7695         * config/h8300/h8300-protos.h: Add a prototype for
7696         h8300_current_function_interrupt_function_p.
7697         * config/h8300/h8300.c (interrupt_handler): Remove.
7698         (os_task): Likewise.
7699         (monitor): Likewise.
7700         (pragma_interrupt): New.
7701         (WORD_REG_USED): Use
7702         h8300_current_function_interrupt_function_p.
7703         (dosize): Likewise.
7704         (h8300_output_function_prologue): Likewise.
7705         Do not set interrupt_handler, os_task, monitor.
7706         (h8300_output_function_prologue): Use
7707         h8300_current_function_interrupt_function_p.
7708         Do not set interrupt_handler, os_task, monitor.
7709         (h8300_current_function_interrupt_function_p): New.
7710         (h8300_pr_interrupt): Set pragma_interrupt.
7711         (h8300_insert_attributes): Reset pragma_interrupt.
7713 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7715         * doc/install.texi (Configuration): Fix markup for reference to
7716         gcc/config.gcc.
7718 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
7720         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
7721         (*iorhi3_two_qi): Likewise.
7722         (*iorsi3_zexthi): Likewise.
7723         (*xorhi3_zextqi): Likewise.
7724         (*xorsi3_zexthi): Likewise.
7725         (*xorsi3_zextqi): Likewise.
7727 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
7729         * config/h8300/h8300.c (stack_pointer_operand): New.
7730         (const_int_gt_2_operand): Likewise.
7731         (const_int_ge_8_operand): Likewise.
7732         * config/h8300/h8300.md (a splitter): Likewise.
7733         (a peephole2): Likewise.
7734         * config/h8300/h8300-protos.h: Add prototypes for the new
7735         functions above.
7737 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
7739         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
7740         objc/objc-act.h: Fix copyright years.
7742 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7744         * doc/passes.texi: Fix documentation for -fssa-ccp
7746 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
7748         * gccbug.in: Update for new categories.
7750 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7752         * config/h8300/h8300.md: Reorder some patterns.
7754 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7756         * config/h8300/h8300.c (output_logical_op): Fix a warning.
7758 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7760         * config/darwin-protos.h, config/c4x/c4x-protos.h,
7761         config/cris/cris-protos.h, config/i370/i370-protos.h,
7762         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
7763         config/v850/v850-protos.h: Use struct, and don't conditionally
7764         compile on GCC_C_PRAGMA_H.
7766 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7768         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
7769         * config/h8300/h8300-protos.h: Likewise.
7770         * config/sh/sh-protos.h: Likewise.
7772 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7774         * config/arm/arm-protos.h: Use struct cpp_reader instead of
7775         cpp_reader.
7776         * config/h8300/h8300-protos.h: Likewise.
7777         * config/sh/sh-protos.h: Likewise.
7779 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7781         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
7782         arm_pr_long_calls_off): Use struct.
7783         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
7784         : Similarly.
7785         Don't include cpplib.h.
7786         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
7787         sh_pr_nosave_low_regs): Similarly.
7789 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
7791         * config/h8300/h8300.c: Include cpplib.h.
7793 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
7795         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
7796           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
7797           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
7798           "GCC" in the copyright header.
7800 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
7802         * c-pragma.c (c_register_pragma): New.
7803         (init_pragma): Use it.
7804         * c-pragma.h (cpp_register_pragma): Don't declare.
7805         (c_register_pragma): New.
7806         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
7807         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
7808         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
7809         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
7810         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
7811         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
7812         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
7813         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
7814         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
7815         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
7816         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
7817         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
7819 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7821         * config/h8300/h8300-protos.h: Update the prototypes.
7822         * config/h8300/h8300.c (const_le_2_operand): Change to
7823         const_int_le_2_operand.
7824         (const_int_le_6_operand): Change to const_int_le_6_operand.
7825         * config/h8300/h8300.md (two peepholes): Update the function
7826         names.
7828 2002-12-31  Tom Tromey  <tromey@redhat.com>
7830         * doc/install.texi (Testing): Fixed typo.
7832 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7834         * config/h8300/h8300.h (TRAMPOLINE_TEMPLATE): Remove.
7835         (TRAMPOLINE_SIZE): Support the normal mode.
7836         (INITIALIZE_TRAMPOLINE): Emit the entire trampoline.
7838 2002-12-31  Mark Mitchell  <mark@codesourcery.com>
7840         * c-common.h (pending_lang_change): Declare.
7842 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
7844         * gcc/doc/invoke.texi (Optimization Options): Clean up -O flag
7845         descriptions.
7847 2002-12-31  Jerry Quinn  <jlquinn@optonline.net>
7849         * gcc/doc/invoke.texi (Optimization Options): List the options
7850         enabled by each -O flag.
7852 2002-12-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7854         * doc/install.texi (Configuration): Explicitly refer
7855         gcc/config.gcc for a list of cpu models.
7857 2002-12-31  Kazu Hirata  <kazu@cs.umass.edu>
7859         * config/h8300/h8300.h: Fix comment typos.
7861 2002-12-30  David Edelsohn  <edelsohn@gnu.org>
7863         * config/rs6000/rs6000.h (WIDEST_HARDWARE_FP_SIZE): Define.
7865 2002-12-30  Tom Tromey  <tromey@redhat.com>
7867         * doc/install.texi (Testing): Mention Jacks.
7869 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7871         * doc/gcc.texi, doc/gccint.texi: Update last modification dates.
7873 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7875         * config/h8300/h8300.c (output_logical_op): Use extu.w in more
7876         cases.
7877         (compute_logical_op_length): Update to reflect the change in
7878         output_logical_op.
7879         (compute_logical_op_cc): Likewise.
7881 2002-12-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7883         * doc/service.texi: Uncomment and update FAQ link.
7885 2002-12-30  Andreas Jaeger  <aj@suse.de>
7887         * unwind-dw2-fde.h (last_fde): Add unused attribute for obj.
7889 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7891         * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): New.
7893 2002-12-30  Kazu Hirata  <kazu@cs.umass.edu>
7895         * config/h8300/h8300.c (output_logical_op): Use extu.w if we
7896         are clearing the most significant byte.
7897         (compute_logical_op_length): Update to reflect the change in
7898         output_logical_op.
7899         (compute_logical_op_cc): Likewise.
7901 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7903         * config/h8300/h8300.md: Give internal names to anonymous
7904         insns.
7906 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7908         * config/h8300/h8300.md: Reorder some insns.
7910 2002-12-29  Kazu Hirata  <kazu@cs.umass.edu>
7912         * config/h8300/h8300-protos.h: Add prototypes for
7913         const_int_qi_operand and const_int_hi_operand.
7914         * config/h8300/h8300.c (const_int_qi_operand): New.
7915         (const_int_hi_operand): Likewise.
7916         * config/h8300/h8300.md (three peepholes): New.
7918 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7920         * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi:
7921         Use @copying.
7923 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7925         * configure.in: Increase makeinfo version requirement to 4.[2-9].
7926         * configure: Regenerate.
7927         * doc/install.texi: Update Texinfo version requirement.
7929 2002-12-28  Andreas Jaeger  <aj@suse.de>
7931         * config/i386/i386.c (x86_function_profiler): Mark labelno as
7932         possibly unused.
7934         * c-parse.in (yyprint): Use HOST_WIDE_INT_PRINT_DOUBLE_HEX for
7935         correct format.
7937 2002-12-27  Kazu Hirata  <kazu@cs.umass.edu>
7939         * config/h8300/h8300.md (*iorhi_shift_8): Change the name to
7940         *iorhi_ashift_8.
7941         (*iorhi_lshiftrt_8): New.
7943 2002-12-27  Joseph S. Myers  <jsm@polyomino.org.uk>
7945         * doc/include/texinfo.tex: Update to version 2002-12-26.16.
7947 2002-12-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7949         * doc/contrib.texi (Contributors): Add Abramo and Roberto Bagnara.
7951 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7953         * config/h8300/h8300-protos.h: Fix comment typos.
7954         Update copyright.
7955         * config/h8300/h8300.c: Fix comment typos.
7957 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7959         * config/h8300/h8300.h (IDENT_ASM_OP): End with a tab.
7961 2002-12-26  Kazu Hirata  <kazu@cs.umass.edu>
7963         * config/i386/athlon.md: Fix comment typos.
7964         * config/i386/crtdll.h: Likewise.
7965         * config/i386/djgpp.h: Likewise.
7966         * config/i386/i386-interix.h: Likewise.
7967         * config/i386/i386.c: Likewise.
7968         * config/i386/i386.h: Likewise.
7969         * config/i386/i386.md: Likewise.
7970         * config/i386/k6.md: Likewise.
7971         * config/i386/mingw32.h: Likewise.
7972         * config/i386/pentium.md: Likewise.
7973         * config/i386/sco5.h: Likewise.
7974         * config/i386/winnt.c: Likewise.
7975         * config/i386/xmmintrin.h: Likewise.
7977 2002-12-26  Jose Renau <renau@cs.uiuc.edu>
7979         * ssa-dce.c (EXECUTE_IF_UNNECESSARY): Verify INSN is an
7980         INSN_P before checking to see if it is dead.
7981         (mark_all_insn_unnecessary): Similarly.
7982         (ssa_eliminate_dead_code): Similarly.
7983         * rtl.h (struct rtx_def): Update comments for in_struct usage
7984         in dead code elimination pass.
7985         (INSN_DEAD_CODE_P): Allow JUMP_INSN and CALL_INSN as well.
7987 2002-12-26  Andreas Schwab  <schwab@suse.de>
7989         * config.gcc (powerpc*-*-*, rs6000-*-*): Fix assignment syntax.
7991 2002-12-25  David Edelsohn  <edelsohn@gnu.org>
7993         * config/rs6000/rs6000.c (rs6000_override_options): Convert to
7994         tartet_flags_explicit.
7995         * config/rs6000/rs6000.h (MASK_MULTIPLE_SET, MASK_STRING_SET): Delete.
7996         Compact target_flags bits.
7997         (TARGET_MULTIPLE_SET, TARGET_STRING_SET): Delete.
7998         (TARGET_SWITCHES): Delete references to *_SET flags.
8000 Wed Dec 25 20:30:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8002         * i386.md (memory attribute): Fix setcc attribute.
8004 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
8006         * output.h: Fix comment typos.
8007         * predict.c: Likewise.
8008         * print-tree.c: Likewise.
8009         * profile.c: Likewise.
8010         * ra-build.c: Likewise.
8011         * ra-colorize.c: Likewise.
8012         * ra-debug.c: Likewise.
8013         * ra-rewrite.c: Likewise.
8014         * ra.c: Likewise.
8015         * ra.h: Likewise.
8016         * real.c: Likewise.
8017         * recog.c: Likewise.
8018         * reg-stack.c: Likewise.
8019         * regclass.c: Likewise.
8021 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
8023         * config/h8300/h8300.c (print_operand_address): Do not negate
8024         a negative number when printing one.
8026 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
8028         * config/h8300/h8300-protos.h: Add prototypes for
8029         output_plussi, compute_plussi_length, and compute_plussi_cc.
8030         * config/h8300/h8300.c (output_plussi): New.
8031         (compute_plussi_length): Likewise.
8032         (compute_plussi_cc): Likewise.
8033         * config/h8300/h8300.md (addsi_h8300h): Call
8034         output_plussi, compute_plussi_length, and compute_plussi_cc.
8036 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
8038         * config/h8300/h8300.md (two peepholes): Use match_dup instead
8039         of match_operand in the new patterns.
8041 2002-12-24  Joseph S. Myers  <jsm@polyomino.org.uk>
8043         * doc/include/texinfo.tex: Update to version 2002-11-25.11.
8045 2002-12-24  Nathan Sidwell  <nathan@codesourcery.com>
8047         * configure.in (enable-coverage): Add SELF_COVERAGE.
8048         * profile.c (end_branch_prob): Use SELF_COVERAGE.
8050 2002-12-24  Jim Wilson  <wilson@redhat.com>
8052         * alias.c (record_set): Handle multi-reg hard registers.
8054 2002-12-24  Kazu Hirata  <kazu@cs.umass.edu>
8056         * regmove.c: Fix comment typos.
8057         * reload.c: Likewise.
8058         * reload1.c: Likewise.
8059         * resource.c: Likewise.
8060         * rtl.def: Likewise.
8061         * rtl.h: Likewise.
8062         * rtlanal.c: Likewise.
8063         * sched-deps.c: Likewise.
8064         * sched-rgn.c: Likewise.
8065         * sibcall.c: Likewise.
8066         * simplify-rtx.c: Likewise.
8067         * ssa-ccp.c: Likewise.
8068         * ssa.c: Likewise.
8069         * stmt.c: Likewise.
8070         * stor-layout.c: Likewise.
8071         * system.h: Likewise.
8072         * tlink.c: Likewise.
8073         * toplev.c: Likewise.
8074         * tracer.c: Likewise.
8075         * tree-inline.c: Likewise.
8076         * tree.c: Likewise.
8077         * tree.h: Likewise.
8078         * unroll.c: Likewise.
8079         * varasm.c: Likewise.
8081 2002-12-23  Larin Hennessy  <larin@science.oregonstate.edu>
8083         * doc/install.texi: Remove i386-*-isc, i860-*-bsd,
8084         m68k-altos-sysv, m68k-isi-bsd, m68k-sony-bsd entries.
8085         * doc/invoke.texi: Remove AMD 29K, ARM RISC/iX, Clipper, Convex,
8086         DG/UX entries.
8087         * doc/md.texi: Remove AMD 29K entries.
8088         * doc/trouble.texi: Remove Alliant, DG/UX, Iris 4.0.5F, GAS
8089         1.38.1, NewsOS, RT PC, WE32K entries.
8091 2002-12-23  Aldy Hernandez  <aldyh@redhat.com>
8093         PR/8763
8094         * config/rs6000/altivec.md (mulv4sf3): Rewrite to add -0.0 vector.
8095         (altivec_vspltisw_v4sf): Name pattern.
8096         (altivec_vslw_v4sf): New pattern.
8098 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
8100         * doc/include/gcc-common.texi: Define DEVELOPMENT.
8102 2002-12-23  Mark Mitchell  <mark@codesourcery.com>
8104         * stor-layout.c (update_alignment_for_field): Correct handling of
8105         unnamed bitfields on PCC_BITFIELD_TYPE_MATTERS machines.
8106         * doc/tm.texi (PCC_BITFIELD_TYPE_MATTERS): Note that an unnamed
8107         bitfield does not affect alignment.
8109 2002-12-23  David Edelsohn  <edelsohn@gnu.org>
8111         * expr.c (expand_assignment): Apply special treatment to
8112         ARRAY_TYPE.
8114 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
8116         * config/h8300/h8300-protos.h: Update the prototype of
8117         expand_a_shift.
8118         * config/h8300/h8300.c (expand_a_shift): Change the return
8119         type to void.
8120         * config/h8300/h8300.md: Update all the uses of
8121         expand_a_shift.
8123 2002-12-22  Nathan Sidwell  <nathan@codesourcery.com>
8125         * tree.c (save_expr): Allow either side of a dyadic operand to be
8126         constant.
8128         * doc/portability.texi (portability): Update portability goals.
8130 2002-12-23  Kazu Hirata  <kazu@cs.umass.edu>
8132         * config/h8300/h8300.c (output_a_shift): Remove unused code.
8134 2002-12-22  Mark Mitchell  <mark@codesourcery.com>
8136         * stor-layout.c (update_alignment_for_field): Guard use of
8137         ADJUST_FIELD_ALIGN with #ifdef.
8139         * stor-layout.c (update_alignment_for_field): Use
8140         ADJUST_FIELD_ALIGN when computing the alignment for a zero-width
8141         bitfield when PCC_BITFIELD_TYPE_MATTERS.
8143 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
8145         * genautomata.c: Fix comment typos.
8147 Sun Dec 22 18:23:44 CET 2002  Jan Hubicka  <jh@suse.cz>
8149         * params.def (tracer-min-branch-probability-feedback): Fix default.
8150         * final.c (compute_alignments): Use profile to avoid code bloat.
8152 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
8154         * config/h8300/h8300.c (get_shift_alg): Make shift insn
8155         sequences end with a valid cc0 whenever possible.
8157 2002-12-22  Kazu Hirata  <kazu@cs.umass.edu>
8159         * config/h8300/h8300.md (negsf2): New.
8160         (*negsf2_h8300): Likewise.
8161         (*negsf2_h8300hs): Likewise.
8163 2002-12-21  Geoffrey Keating  <geoffk@apple.com>
8165         * integrate.c (output_inline_function): Don't hold private
8166         pointers to 'struct function' over GC calls.
8168 2002-12-21  Kaz kojima  <kkojima@gcc.gnu.org>
8170         * config/sh/lib1funcs.asm (__fpscr_values): Conditionalize with
8171         NO_FPSCR_VALUES.
8172         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Add -DNO_FPSCR_VALUES.
8174 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
8176         * config/h8300/h8300.md (zero_extendqisi2): Correct the
8177         length.
8179 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
8181         * config/h8300/h8300.md (*zero_extendqihi2_h8300): Make the
8182         second alternative "#".
8183         (*zero_extendqihi2_h8300hs): Likewise.
8184         (a define_split): New.
8186 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
8188         * config/h8300/h8300-protos.h: Update the prototype for
8189         split_adds_subs.
8190         Add prototypes for const_le_2_operand and const_le_6_operand.
8191         * config/h8300/h8300.c (split_adds_subs): Add an argument to
8192         specify whether inc/dec should be used when possible.
8193         (const_le_2_operand): New.
8194         (const_le_6_operand): Likewise.
8195         * config/h8300/h8300.md (two peepholes): New.
8197 2002-12-21  Kazu Hirata  <kazu@cs.umass.edu>
8199         * config/fr30/fr30.md: Fix a comment typo.
8200         * config/i386/i386.c: Likewise.
8201         * config/ip2k/ip2k.h: Likewise.
8203 2002-12-20  Jim Wilson  <wilson@redhat.com>
8205         * config/rs6000/spe.h (__ev_subifw): Reverse arguments.
8206         (__ev_subw, __ev_subiw): New.
8207         (ev_mwlssf, ev_mwlsmf, ev_mwlssfa, ev_mwlsmfa, ev_mwlssfaaw,
8208         ev_mwlsmfaaw, ev_mwlssfanw, ev_mwlsmfanw): Delete.
8210 2002-12-20  John David Anglin  <dave.anglin@nrc.gc.ca>
8212         * pa-linux.h (TARGET_HAS_STUBS_AND_ELF_SECTIONS): Delete define.
8213         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete define.
8214         * pa.c (pa_function_ok_for_sibcall): Allow non indirect sibcalls on
8215         TARGET_ELF32.  Add comment on sibcall issues for TARGET_64BIT.
8217 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
8219         * config/h8300/h8300-protos.h: Add prototypes for
8220         incdec_operand and eqne_operator.
8221         * config/h8300/h8300.c (incdec_operand): New.
8222         (eqne_operator): Likewise.
8223         * config/h8300/h8300.h (CONST_OK_FOR_M): Likewise.
8224         (CONST_OK_FOR_O): Likewise.
8225         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_M and
8226         CONST_OK_FOR_O.
8227         * config/h8300/h8300.md (UNSPEC_INCDEC): New.
8228         (addhi3_incdec): New.
8229         (addsi3_incdec): Likewise.
8230         (two peepholes): Likewise.
8232 2002-12-20  Kazu Hirata  <kazu@cs.umass.edu>
8234         * config/h8300/h8300.c (dosize): Remove warnings.
8235         (print_operand): Likewise.
8237 2002-12-20  Richard Henderson  <rth@redhat.com>
8239         * config/alpha/alpha.c (decl_has_samegp): New.
8240         (samegp_function_operand): Use it.  Rename from
8241         current_file_function_operand.
8242         (direct_call_operand): Handle -msmall-text via symbol->jump.
8243         (tls_symbolic_operand_1): Use T for tprel64, t for smaller tprel.
8244         (tls_symbolic_operand_type): Likewise.
8245         (alpha_encode_section_info): Likewise.  Handle -msmall-text.
8246         (alpha_function_ok_for_sibcall): Use decl_has_samegp.
8247         (alpha_end_function): Set symbol->jump for functions defined in
8248         the text section.
8249         * config/alpha/alpha-protos.h: Update.
8250         * config/alpha/alpha.h (MASK_SMALL_TEXT, TARGET_SMALL_TEXT): New.
8251         (TARGET_SWITCHES): Add -msmall-text and -mlarge-text.
8252         (PREDICATE_CODES): Update.
8253         * config/alpha/alpha.md (call patterns): Update for
8254         samegp_function_operand rename; use !samegp reloc if
8255         TARGET_EXPLICIT_RELOCS.
8256         * doc/invoke.text: Document -msmall-text and -mlarge-text.
8258 2002-12-20  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
8260         * config/ns32k/ns32k.md (movdi): Use "l" instead of "f" to match
8261         all registers capable of holding a double float.
8262         (*rcond): change name of "reverse branch" insns to
8263         something more meaningful.
8264         (*rbgt, *rblt, *rbge, *rble): Reverse branches to handle IEEE
8265         comparisons properly.
8266         (*ffs): Change operand 0 from write to read-modify-write.
8267         (*ffsssi2): Drop constraints from define_expand.
8269         * config/ns32k/ns32k.h (STORE_RATIO, STORE_BY_PIECES): Avoid using
8270         MOVE_RATIO as default for store operations.
8272         * config/ns32k/ns32k.h (enum reg_class, REG_CLASS_NAMES): Add
8273         LONG_REGS class.
8274         (CANNOT_CHANGE_MODE_CLASS): Can't subreg LONG_REGS.
8275         (GO_IF_LEGITIMATE_ADDRESS): Remove spurious abort().
8276         * config/ns32k/ns32k.c (regclass_map): Add LONG_REGS class.
8278         * config/ns32k/STATUS: New File
8279         * config/ns32k/NOTES: New file.
8281 2002-12-20  Hartmut Penner  <hpenner@de.ibm.com>
8283         * doc/invoke.texi: Document -mzarch, -mesa, -mcpu= and -march=
8284         option for S/390 and zSeries.
8285         * config/s390/s390.c (s390_cpu, s390_cpu_string, s390_arch,
8286         s390_arch_string): New variables.
8287         (override_options): Checking for options and setting of
8288         appropriate target_flags, cpu and arch flags.
8289         * config/s390/s390.h: (processor_type): New enum.
8290         (TARGET_SWITCHES): New switches -mesa/zarch.
8291         * config/s390/s390.md: New attribute 'cpu'.
8293 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8295         * c-pretty-print.h: Fix comment typos.
8296         * integrate.c: Likewise.
8297         * varasm.c: Likewise.
8298         * config/c4x/c4x.h: Likewise.
8299         * config/c4x/c4x.md: Likewise.
8300         * config/fr30/fr30.md: Likewise.
8301         * config/frv/frv.c: Likewise.
8302         * config/h8300/h8300.c: Likewise.
8303         * config/i386/i386.c: Likewise.
8304         * config/i386/i386.h: Likewise.
8305         * config/ia64/ia64.c: Likewise.
8306         * config/ia64/ia64.h: Likewise.
8307         * config/ip2k/ip2k.md: Likewise.
8308         * config/m68hc11/m68hc11-crt0.S: Likewise.
8309         * config/m68hc11/m68hc11.h: Likewise.
8310         * config/m68hc11/m68hc11.md: Likewise.
8311         * config/m68hc11/m68hc12.h: Likewise.
8312         * config/mcore/mcore.md: Likewise.
8313         * config/mips/mips.c: Likewise.
8314         * config/mips/mips.md: Likewise.
8315         * config/mmix/mmix-modes.def: Likewise.
8316         * config/pa/pa.c: Likewise.
8317         * config/rs6000/rs6000.c: Likewise.
8318         * config/rs6000/rs6000.h: Likewise.
8319         * config/rs6000/rs6000.md: Likewise.
8321 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8323         * config/h8300/h8300.md (output_a_shift): Clean up the code to
8324         output shifts using rotation.
8326 2002-12-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8328         * flow.c (allocate_reg_life_data): Reset REG_FREQ.
8330 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8332         * config/h8300/h8300.md (pushqi_h8300): Don't push the stack
8333         pointer.
8334         (pushqi_h8300hs): Likewise.
8335         (pushhi_h8300): Likewise.
8336         (pushhi_h8300hs): Likewise.
8338 Thu Dec 19 23:44:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
8340         * sched-rgn.c (init_regions): Update comment.
8342 2002-12-19  David Edelsohn  <edelsohn@gnu.org>
8344         * config/rs6000/rs6000.md (define_attr type): Remove altivec.
8345         * config/rs6000/altivec.md (movv4si_internal): Set correct instruction
8346         attributes.
8347         (movv8hi_internal,movv16qi_internal,movv4sf_internal): Same.
8348         (get_vrsave_internal,set_vrsave_internal): Same.
8349         (altivec_vspltisb,altivec_vspltish,altivec_vspltisw): Same.
8350         (absv16qi2,absv8hi2,absv4si2,absv4sf2): Same
8351         (altivec_abss_v16qi,altivec_abss_v8hi,altivec_abss_v4si): Same.
8353 2002-12-19  Casper S. Hornstrup  <chorns@users.sourceforge.net>
8354             Danny Smith  <dannysmith@users.sourceforge.net>
8355             Eric Kohl  <ekohl@rz-online.de>
8357         * config/i386/i386.c (ix86_handle_cdecl_attribute): Check for
8358         attributes incompatible with fastcall attribute.
8359         (ix86_handle_regparm_attribute): Likewise.
8361         * config/i386/i386.c (ix86_comp_type_attributes): Check for mismatched
8362         fastcall types.
8364         * config/i386/cygwin.h (TARGET_OS_CPP_BUILTINS): Add fastcall
8365         attributes.
8366         (ASM_OUTPUT_LABELREF): Define as i386_pe_output_labelref.
8367         * config/i386/i386-protos.h (i386_pe_output_labelref): Declare.
8368         * config/i386/winnt.c (i386_pe_mark_dllimport). Add __imp_ prefix in
8369         i386_pe_output_labelref rather than here.
8370         (gen_fastcall_suffix): New function. Decorates a label name with the
8371         fastcall prefix (@) and the stdcall suffix.
8372         (i386_pe_encode_section_info): Call gen_fastcall_suffix() if a symbol
8373         has a fastcall attribute.
8374         (i386_pe_output_labelref): New function. Outputs a label reference.
8375         * config/i386/i386.c (ix86_attribute_table): Accept 'fastcall' as a
8376         valid attribute.
8377         (ix86_return_pops_args): Fastcall functions pop the stack.
8378         (init_cumulative_args): Reserve registers ECX and EDX if function has
8379         fastcall attribute.
8380         (function_arg): Use registers ECX and EDX if function has fastcall
8381         attribute.
8382         * config/i386/i386.h (CUMULATIVE_ARGS): Add fastcall attribute flag.
8383         (DLL_IMPORT_EXPORT_PREFIX): Redefine as '#'.
8384         (FASTCALL_PREFIX): Define as '@'.
8385         * config/i386/mingw32.h (TARGET_OS_CPP_BUILTINS): Add fastcall
8386         attributes.
8387         * doc/extend.texi: Add documentation of fastcall attribute.
8389 2002-12-19  Nathanael Nerode  <neroden@gcc.gnu.org>
8391         * configure.in: FORBUILD when build!=host changed from
8392         ../$build-alias to ../build-$build_alias to match change made
8393         in top directory.
8394         * configure: Regenerated.
8396 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
8398         PR optimization/8988
8399         * loop.c (maybe_eliminate_biv): Kill REG_EQUAL notes mentioning
8400         the biv when eliminating.
8402 2002-12-19  Devang Patel  <dpatel@apple.com>
8403         * gcc.c (struct default_compiler): Recognizes input file name with
8404         .CPP extension as C++ source files
8405         * cp/lang-spec.h: Same
8406         * doc/invoke.texi:  Add documentation for .CPP support.
8408 2002-12-19  Aldy Hernandez  <aldyh@redhat.com>
8410         PR 8553
8411         * config/rs6000/altivec.md ("absv8hi2"): Add & to clobbered
8412         registers.
8413         ("absv16qi2"): Same.
8414         ("absv4si2"): Same.
8415         ("absv4sf2"): Same.
8416         ("altivec_abss_v16qi"): Same.
8417         ("altivec_abss_v8hi"): Same.
8418         ("altivec_abss_v4si"): Same.
8420 2002-12-19  Ulrich Weigand  <uweigand@de.ibm.com>
8422         * config/s390/s390.md ("*tsthiCCT", "*tsthiCCT_cconly",
8423         "*tstqiCCT", "*tstqiCCT_cconly"): New insns.
8425 2002-12-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
8427         PR target/8340
8428         * stmt.c (expand_asm_operands): Produce an error when
8429         the PIC register is clobbered.
8431 2002-12-18  Daniel Berlin  <dberlin@dberlin.org>
8433         * Makefile.in (OBJS): Add alloc-pool.o
8434         (alloc-pool.o): New object.
8436         * alloc-pool.c: New file.
8437         * alloc-pool.h: New file.
8439 2002-12-18  Loren James Rittle  <ljrittle@acm.org>
8441         * gcc.c (validate_switches): Robustify against skipping past '\0'.
8443 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
8445         * config.gcc: Set extra_objs in the generic Darwin rule,
8446         not in the machine-specific rules.
8448 2002-12-19  Kazu Hirata  <kazu@cs.umass.edu>
8450         * ChangeLog: Follow spelling conventions.
8451         * ChangeLog.2: Likewise.
8452         * ChangeLog.4: Likewise.
8453         * ChangeLog.5: Likewise.
8454         * cppexp.c: Likewise.
8455         * df.c: Likewise.
8456         * gcov.c: Likewise.
8457         * gengtype.c: Likewise.
8458         * reload1.c: Likewise.
8459         * sched-rgn.c: Likewise.
8460         * stmt.c: Likewise.
8461         * stor-layout.c: Likewise.
8462         * timevar.c: Likewise.
8463         * toplev.c: Likewise.
8464         * tree.h: Likewise.
8465         * varasm.c: Likewise.
8466         * config/fr30/fr30.md: Likewise.
8467         * config/i386/i386.c: Likewise.
8468         * config/ia64/ia64.c: Likewise.
8469         * config/pa/pa.c: Likewise.
8471 2002-12-18  Roger Sayle  <roger@eyesopen.com>
8473         * basic-block.h (flow_bb_inside_loop_p): Correct prototype.
8475 2002-12-18  Aldy Hernandez  <aldyh@redhat.com>
8477         PR 8551
8478         * config/rs6000/altivec.h (vec_cmplt macro): Reverse arguments in
8479         macro.
8480         (vec_cmplt C++ functions): Reverse arguments.
8482 2002-12-18  Geoffrey Keating  <geoffk@apple.com>
8484         * config/rs6000/t-rs6000: Move contents to t-fprules,
8485         add rules for dependencies of rs6000.o and to build rs6000-c.o
8486         * config/rs6000/t-fprules: New file from t-rs6000.
8487         * config/rs6000/t-beos: Remove soft-fp rules.
8488         * config/rs6000/t-ppccomm: Likewise.
8489         * config/rs6000/t-newas: Likewise.
8490         * config/rs6000/t-rs6000-c-rule: Delete.
8491         * config.gcc: Use t-fprules for rs6000/ ports when appropriate.
8492         Use t-rs6000 for all rs6000/ ports instead of t-rs6000-c-rule.
8493         Create generic Darwin rules.
8495         * gengenrtl.c (gencode): Delete unnecessary rtl_obstack declaration.
8497 2002-12-18  Doug Evans  <dje@sebabeach.org>
8499         * m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
8500         and LIT_NAME_P.
8501         (move_src_operand): Remove compile-time warning.
8502         * m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
8504 2002-12-18  Jason Merrill  <jason@redhat.com>
8506         * unwind-dw2-fde.c (frame_downheap): Split out from...
8507         (frame_heapsort): Here.
8509 2002-12-17  Jason Merrill  <jason@redhat.com>
8511         * tree.c (make_node): Don't set TREE_TYPE on 's' class nodes.
8512         (build1): Always set TREE_SIDE_EFFECTS on 's' class nodes.
8514         * gcc.c (do_spec_1) ['W']: End any pending argument from the braces.
8516         * calls.c (expand_call): Don't try to be clever about expanding
8517         the return slot address.
8519 2002-12-18  Kaz kojima  <kkojima@gcc.gnu.org>
8521         * config/sh/linux.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC):
8522         Define.
8524 2002-12-17  Jason Merrill  <jason@redhat.com>
8526         * genmultilib: Use 'cd ./foo'.
8528 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
8530         * doc/c-tree.texi: Restore deliberate spelling mistakes.
8532 2002-12-17  Kazu Hirata  <kazu@cs.umass.edu>
8534         * doc/c-tree.texi: Fix typos and follow spelling conventions.
8535         * doc/cpp.texi: Likewise.
8536         * doc/extend.texi: Likewise.
8537         * doc/gty.texi: Likewise.
8538         * doc/install.texi: Likewise.
8539         * doc/invoke.texi: Likewise.
8540         * doc/md.texi: Likewise.
8541         * doc/passes.texi: Likewise.
8542         * doc/rtl.texi: Likewise.
8543         * doc/sourcebuild.texi: Likewise.
8544         * doc/tm.texi: Likewise.
8546 2002-12-17  Jerry Quinn  <jlquinn@optonline.net>
8548         * doc/invoke.texi: Minor spelling and grammar fixes.
8550 2002-12-17  Ulrich Weigand  <uweigand@de.ibm.com>
8552         * config/s390/s390.c (s390_output_constant_pool): Replace
8553         ASM_OUTPUT_INTERNAL_LABEL by (*targetm.asm_out.internal_label).
8555 Tue Dec 17 09:47:57 CET 2002  Jan Hubicka  <jh@suse.cz>
8557         * convert.c (convert_to_real): Disable function transformation for
8558         now.
8560 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
8562         * gcc.c (handle_braces): Allow '@' as a switch name.
8564 2002-12-16  Jason Merrill  <jason@redhat.com>
8566         * calls.c (expand_call): Handle CALL_EXPR_HAS_RETURN_SLOT_ADDR
8567         with special struct-return ABIs.
8569         * c-semantics.c (add_scope_stmt): Abort if the end SCOPE_STMT
8570         doesn't match the begin SCOPE_STMT in partialness.
8572 2002-12-16  Geoffrey Keating  <geoffk@apple.com>
8574         * genmultilib: Create temporary files in unique subdirectory.
8576         * gcc.c (validate_switches): Allow '@' as a switch name.
8578 2002-12-16  Loren J. Rittle  <ljrittle@acm.org>
8580         * Makefile.in (gcov-iov.h): Improve portability.
8582 Mon Dec 16 23:39:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8584         * mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not use qpword on API_N32/not
8585         gas
8586         * mips.md (tablejump insn): Likewise.
8588 2002-12-16  Mark Mitchell  <mark@codesourcery.com>
8590         * doc/include/gcc-common.texi: Change version number to 3.4.
8592 2002-12-16  Bruce Korb  <bkorb@gnu.org>
8594         * fixinc/fixlib.h: add: #include <signal.h>
8595         * fixinc/fixincl.c: remove: #include <signal.h>
8597 Mon Dec 16 17:20:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
8599         * sh.h (EXTRA_CONSTRAINT_Z): New macro.
8600         (EXTRA_CONSTRAINT): Use it.
8601         * sh.md (anddi3): Use 'Z' constraint for alternative 2.
8603 2002-12-15  Zack Weinberg  <zack@codesourcery.com>
8605         * config.gcc (need_64bit_hwint): New variable.
8606         (alpha*-*-*, x86_64-*-*, ia64-*-*, mips*-*-*, powerpc*-*-*,
8607         mmix-knuth-mmixware, rs6000*-*-*, sparc64*-*-*, s390*-*-*,
8608         sh*-*-*, hppa*64*-*-linux, parisc*64*-*-linux, hppa*64*-*-hpux11*,
8609         sparcv9-*-solaris2*, sparc*-*-solaris2.[789], ultrasparc-*-freebsd*):
8610         Set it.
8611         (powerpc*-*-darwin*): Unset it.
8612         (alpha-*-interix, alpha64-dec-*vms*, i?86-*-interix3*,
8613         i?86-*-interix*, sparc64-*-openbsd*): Remove references to
8614         deleted/nonexistent xm-*.h headers.
8615         * configure.in: AC_DEFINE NEED_64BIT_HOST_WIDE_INT if the
8616         target set need_64bit_hwint in config.gcc.
8617         * configure, config.in: Regenerate.
8619         * hwint.h: Overhaul.  Don't bother trying int for
8620         HOST_WIDE_INT.  Do try __int64 if long is not enough.  Base
8621         decision to force 64-bit HOST_WIDE_INT on
8622         NEED_64BIT_HOST_WIDE_INT, not (MAX_)LONG_TYPE_SIZE which is
8623         not visible at this point.  Don't allow prior definition of
8624         any macro defined by this file.
8626         * config/alpha/xm-vms.h: Don't define HOST_WIDE_INT or
8627         HOST_BITS_PER_WIDE_INT.
8628         * config/c4x/c4x.h: Adjust redefinition of
8629         HOST_WIDE_INT_PRINT_HEX to match changes to hwint.h.
8630         * config/alpha/xm-alpha-interix.h, config/alpha/xm-vms64.h,
8631         config/i386/xm-i386-interix.h: Delete file.
8633 2002-12-14  Rodney Brown  <rbrown64@csc.com.au>
8634             John David Anglin  <dave@hiauly1.hia.nrc.ca>
8636         * pa.c (output_millicode_call): Convert ASM_OUTPUT_INTERNAL_LABEL.
8637         * pa64-hpux.h (ASM_OUTPUT_INTERNAL_LABEL): Delete define.
8639 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
8641         * mkconfig.sh: Correct comment.  Add copyright boilerplate.
8643 2002-12-14  Zack Weinberg  <zack@codesourcery.com>
8645         * config/t-darwin, config/arm/t-pe, config/arm/t-strongarm-pe,
8646         config/c4x/t-c4x, config/i370/t-i370, config/i386/t-cygwin,
8647         config/i386/t-interix, config/i960/t-960bare, config/ia64/t-ia64,
8648         config/rs6000/t-rs6000-c-rule, config/sparc/t-sol2,
8649         config/v850/t-v850:  Correct dependencies and normalize
8650         compilation commands for files that include coretypes.h and tm.h.
8652         * config/sparc/gmon-sol2.c: Include tconfig.h and tsystem.h,
8653         not config.h and system.h.
8655 Sat Dec 14 20:43:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8657         * i386.c (flags_reg_operand):  New function.
8658         * i386.h (PREDICATE_CODES): Add flags_reg_operand.
8659         * i386.md (cmov splitter, movqicc): Use new predicate.
8661 Sat Dec 14 17:03:17 CET 2002  Jan Hubicka  <jh@suse.cz>
8663         * i386.md (movqicc splitter): Fix template.
8665 2002-12-13  Jason Merrill  <jason@redhat.com>
8667         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): New macro.
8668         * calls.c (expand_call): Handle it.
8669         * tree-inline.c (struct inline_data): Remove target_exprs field.
8670         (optimize_inline_calls): Don't initialize it.
8671         (expand_call_inline): Don't modify it.  Handle
8672         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
8673         (declare_return_variable): Take return slot addr.
8674         * langhooks.h (copy_res_decl_for_inlining): Change target_exprs parm
8675         to return_slot_addr.
8676         * langhooks-def.h, langhooks.c: Adjust.
8677         * explow.c (maybe_set_unchanging): Don't set RTX_UNCHANGING_P for
8678         a decl with no DECL_INITIAL.
8680         * expr.c (expand_expr): Don't discard the target of a call which
8681         returns in memory.
8683 2002-12-13  Neil Booth  <neil@daikokuya.co.uk>
8685         * cppinit.c (path_include): Take an environment variable name.
8686         Tidy up.
8687         (init_standard_includes): Simplify environment handling, and
8688         move to ...
8689         (cpp_read_main_file): ...here as -nostdinc should not affect
8690         environment variable paths.
8692 2002-12-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8694         * pa.c (output_millicode_call): Correct typo.
8695         (output_call): Likewise.
8697 Fri Dec 13 21:07:18 2002  Alexandre Oliva  <aoliva@redhat.com>
8699         * config/mn10300/mn10300.c (print_operand) <case N>: Check
8700         operand's range.  Print value directly, without aid from
8701         output_address.
8702         <case U>: New.
8703         <case S>: Make sure argument to fprintf has the right type.
8704         * config/mn10300/mn10300.h (OK_FOR_T): New macro.
8705         (EXTRA_CONSTRAINT): Adjust.
8706         * config/mn10300/mn10300.md: Add new all-QImode pattern for
8707         bclr.  Use %U for immediate operands of bset and bclr.
8708         (iorqi3): New expand, with insns for AM33 and mn10300.
8710 Fri Dec 13 16:02:27 2002  J"orn Rennecke <joern.rennecke@superh.com>
8712         * sh.c (sh_register_operand): New function.
8713         (prepare_move_operands): Use it.
8714         * sh.h (PREDICATE_CODES): Add entry for sh_register_operand.
8715         * sh.md (movsi_media, movsi_media_nofpu): Allow stores of 0.
8716         (movqi_media, movhi_media, movdi_media, movdi_media_nofpu): Likewise.
8717         (movdf_media, movdf_media_nofpu, movv4sf_i, movsf_media): Likewise.
8718         (movsf_media_nofpu, movv2hi_i, movv4hi_i, movv8qi_i): Likewise.
8719         (movv2si_i): Likewise.
8721 2002-12-13  Jim Wilson  <wilson@redhat.com>
8723         * doc/extend.texi (Complex Numbers): Update info on debug info.
8725 2002-12-13  Kazu Hirata  <kazu@cs.umass.edu>
8727         * config/h8300/h8300.md (addhi3_h8300): Remove the last
8728         alternative.
8730 2002-12-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8732         * hooks.h (hook_tree_tree_bool_false): Declare
8733         hook_bool_tree_tree_false instead.
8735 2002-12-12  Devang Patel  <dpatel@apple.com>
8737         * doc/invoke.texi: Document Darwin linker options, -bundle
8738         -bind_at_load, -all_load and -arch_errors_fatal
8740 2002-12-12  Jim Wilson  <wilson@redhat.com>
8742         * dbxout.c (dbxout_fptype_value): New.
8743         (dbxout_type, case COMPLEX_TYPE): Call it.  Use 'R' instead of 'r'.
8745 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8747         * c-decl.c: Fix a comment typo.
8748         * cfg.c: Likewise.
8749         * cfgcleanup.c: Likewise.
8750         * cfglayout.c: Likewise.
8751         * cfgrtl.c: Likewise.
8752         * c-typeck.c: Likewise.
8753         * dominance.c: Likewise.
8754         * dwarf2asm.c: Likewise.
8755         * dwarfout.c: Likewise.
8756         * expmed.c: Likewise.
8757         * expr.c: Likewise.
8758         * final.c: Likewise.
8759         * flow.c: Likewise.
8760         * function.c: Likewise.
8761         * gcc.c: Likewise.
8762         * genautomata.c: Likewise.
8763         * integrate.c: Likewise.
8764         * loop.c: Likewise.
8765         * loop.h: Likewise.
8766         * output.h: Likewise.
8767         * profile.c: Likewise.
8768         * ra.h: Likewise.
8769         * reload1.c: Likewise.
8770         * reload.c: Likewise.
8771         * sched-rgn.c: Likewise.
8772         * stmt.c: Likewise.
8773         * tree.h: Likewise.
8774         * vmsdbgout.c: Likewise.
8776 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8778         * config/h8300/h8300.md: Add a new peephole2.
8780 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8782         * config/h8300/h8300.md (a peephole2): Accept a constant
8783         that's accepted by CONST_OK_FOR_J.
8785 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8787         * config/h8300/h8300.h (CONST_OK_FOR_J): New.
8788         (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
8789         * config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
8790         (*addhi_h8300hs): Likewise.
8792 Thu Dec 12 16:24:59 2002  J"orn Rennecke <joern.rennecke@superh.com>
8794         * sh.c (reg_class_from_letter): No longer const.  Add 'e' entry.
8795         (sh_register_move_cost): Add clause for SImode fp-fp moves.
8796         Increase cost for moves involving multiple general purpose registers.
8797         * sh.h (OVERRIDE_OPTIONS): Set reg_class_from_letter['e'] according to
8798         TARGET_FMOVD.
8799         (HARD_REGNO_MODE_OK): Allow V2SFmode and V4SFmode in general purpose
8800         registers, and SImode in fp registers, for ! TARGET_SHMEDIA.
8801         (enum reg_class reg_class_from_letter): No longer const.
8802         (SECONDARY_OUTPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG /
8803         REGCLASS_HAS_GENERAL_REG.
8804         Handle SImode moves from/to fp registers.
8805         ! TARGET_SHMEDIA && TARGET_FMOVD.
8806         (SECONDARY_INPUT_RELOAD_CLASS): Use REGCLASS_HAS_FP_REG.
8807         * sh.md (movsi_ie): Add alternatives to move from / to fp regisyters.
8809 2002-12-12  Andreas Schwab  <schwab@suse.de>
8811         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Fix typo in last
8812         change and some warnings.
8814 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
8816         * doc/md.texi (pushm): Fix a typo.
8818 2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
8820         * config/mips/mips.c (mips_output_conditional_branch): Support
8821         PIC-safe out-of-range branch and branch-likely.
8822         * config/mips/mips.md (attr length): PIC-safe out-of-range
8823         branches are longer.
8824         ("jump"): Support PIC-safe out-of-range-for-branch jumps.  Remove
8825         unused code to support indirect jumps.
8827 2002-12-11  Zack Weinberg  <zack@codesourcery.com>
8829         * Makefile.in (GTFILES): Add $(host_xm_file_list) and
8830         $(tm_file_list).
8832 2002-12-11  David Edelsohn  <edelsohn@gnu.org>
8834         * config/rs6000/t-rs6000-c-rule: Add coretypes.h $(TM_H) dependencies.
8836 Wed Dec 11 15:20:45 CET 2002  Jan Hubicka  <jh@suse.cz>
8838         * i386.md (cmove splitters): Avoid creation of unnecesary subregs.
8840 2002-12-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8842         * pa.h (BIGGEST_ALIGNMENT): Change 32-bit value to 64 bits.
8843         (MAX_PARM_BOUNDARY, STACK_BOUNDARY): Express in terms of
8844         BIGGEST_ALIGNMENT.
8845         (PREFERRED_STACK_BOUNDARY): Express in terms of STACK_BOUNDARY.
8846         (FUNCTION_BOUNDARY): Express in terms of BITS_PER_WORD.
8848 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8850         * doc/invoke.texi: Correct dump file names.
8852 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8854         * config/ia64/ia64.c (ia64_hpux_asm_file_end): Don't send stripped
8855         name to globalize_label or assemble_name.
8857 Wed Dec 11 20:15:19 2002  J"orn Rennecke <joern.rennecke@superh.com>
8859         * sh.h (REG_CLASS_HAS_GENERAL_REG): Only true for SIBCALL_REGS
8860         if not TARGET_SHMEDIA.
8862 Wed Dec 11 19:05:05 2002  J"orn Rennecke <joern.rennecke@superh.com>
8864         * sh.h (REG_CLASS_HAS_FP_REG): New.
8865         (REGISTER_MOVE_COST) Use it.  Put body into a function and
8866         move it into:
8867         * sh.c (sh_register_move_cost).
8868         * sh-protos.h (sh_register_move_cost): Declare.
8870         * sh.c (sh_expand_builtin): Abort for unexpected nop values.
8871         (sh_adjust_cost): Always return a value.
8873 Wed Dec 11 18:39:52 2002  J"orn Rennecke <joern.rennecke@superh.com>
8875         * sh.h (REG_CLASS_HAS_GENERAL_REG): New.
8876         (REGISTER_MOVE_COST): Use it.
8878 2002-12-11  Richard Henderson  <rth@redhat.com>
8880         * tree.h (MODULE_LOCAL_P): Kill.
8881         * varasm.c (default_binds_local_p_1): Use decl_visibility instead.
8883 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8885         * config/h8300/h8300.md (two define_peephole2): New.
8887 2002-12-11  Kazu Hirata  <kazu@cs.umass.edu>
8889         * config/h8300/h8300.h (CONST_OK_FOR_J): Remove.
8890         (CONST_OK_FOR_K): Likewise.
8891         (CONST_OK_FOR_M): Likewise.
8892         (CONST_OK_FOR_LETTER_P): Do not use the above macros.
8894 2002-12-11  Neil Booth  <neil@daikokuya.co.uk>
8896         * c-common.c (builtin_define_type_max): Handle unsigned
8897         types too.
8899 2002-12-10  David Edelsohn  <edelsohn@gnu.org>
8901         * haifa-sched.c (rank_for_schedule): Correct style.
8903 2002-12-10  Per Bothner  <pbothner@apple.com>
8905         * cpplib.h (struct cpp_hashnode):  Split a non-portably-signed field
8906         directive_index into an unsigned field and a new is_directive field.
8907         * cppinit.c (mark_named_operators):  Update to set new fields.
8908         * cpplex.c (_cpp_lex_direct):  Now directive_field is unsigned.
8909         * cpplib.c [_cpp_handle_directive]:   Test is_directive field.
8910         No longer need to subtract 1 from directive_index.
8911         (_cpp_init_directives):  No longer need to add 1 to directive_index.
8912         * cpptrad.c (scan_out_logical_line):  Use is_directive field.
8914 2002-12-10  Roger Sayle  <roger@eyesopen.com>
8916         * builtins.c (fold_builtin): Remove -funsafe-math-optimizations
8917         check for evaluating sqrt of a constant at compile time.
8918         * simplify-rtx.c (simplify_unary_operation): Likewise.
8920 2002-12-10  Janis Johnson  <janis187@us.ibm.com>
8922         PR other/8882
8923         * doc/tm.texi (PUSH_ARGS): Remove misplaced line.
8925 2002-12-10  Devang Patel  <dpatel@appple.com>
8927         * config/darwin.h(LINK_SPEC): Add darwin specific linker options.
8928         * doc/invoke.texi: Add new "Darwin Options" section.
8930 2002-12-10  Jim Wilson  <wilson@redhat.com>
8932         * rs6000.h (RETURN_IN_MEMORY): If ABI_V4, then TFmode is returned in
8933         memory.
8935 2002-12-10  Andrew Haley  <aph@redhat.com>
8937         * cse.c (cse_insn): Don't cse past a basic block boundary.
8939 2002-12-10  Jakub Jelinek  <jakub@redhat.com>
8941         * config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
8942         -shared.
8943         * config/alpha/linux-elf.h (LIB_SPEC): Likewise.
8944         * config/alpha/linux.h (LIB_SPEC): Likewise.
8945         * config/arm/linux-elf.h (LIB_SPEC): Likewise.
8946         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
8947         * config/sparc/linux.h (LIB_SPEC): Likewise.
8948         * config/sparc/linux64.h (LIB_SPEC): Likewise.
8950 2002-12-09  Larin Hennessy  <larin@science.oregonstate.edu>
8952         * doc/invoke.texi: Document UltraSparc III option.
8954 2002-12-09  Richard Henderson  <rth@redhat.com>
8956         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
8957         __tune_pentium2__ and __tune_pentium3__ as necessary.
8959 2002-12-09  Richard Henderson  <rth@redhat.com>
8961         * target.h (gcc_target): Add cannot_force_const_mem.
8962         * target-def.h (TARGET_CANNOT_FORCE_CONST_MEM): New.
8963         (TARGET_INITIALIZER): Add it.
8964         * varasm.c (force_const_mem): Fail if cannot_force_const_mem.
8965         * expr.c (emit_move_insn): Be prepared for force_const_mem to fail.
8966         * reload1.c (reload): Likewise.
8967         * hooks.c (hook_bool_rtx_false): New.
8968         * hooks.h: Declare it.
8970         * config/i386/i386.c (ix86_cannot_force_const_mem): New.
8971         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8972         (ix86_expand_move): Remove de-const-pooling hack.
8974 Mon Dec  9 21:33:38 CET 2002  Jan Hubicka  <jh@suse.cz>
8976         * toplev.c (dump_file): Fix order to match reality.
8978 2002-12-08  Geoffrey Keating  <geoffk@apple.com>
8980         * config/rs6000/rs6000.md (load_multiple): Use adjust_address_nv.
8981         (store_multiple): Likewise.
8983 2002-12-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8985         * pa/fptr.c (__canonicalize_funcptr_for_compare): Don't canonicalize
8986         function pointers in page 0.
8988 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8990         * config/ia64/hpux.h (TARGET_STRUCT_ARG_REG_LITTLE_ENDIAN): Remove
8991         definition
8992         (MEMBER_TYPE_FORCES_BLK): Move.
8993         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL to pass
8994         aggregate arguments.
8995         (ia64_function_value): Use PARALLEL to return aggregate values.
8997 2002-12-09  Steve Ellcey  <sje@cup.hp.com>
8999         * doc/tm.texi (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
9000         * defaults.h (FUNCTION_ARG_REG_LITTLE_ENDIAN): Remove definition.
9001         * calls.c (store_unaligned_arguments_into_pseudos) Remove
9002         FUNCTION_ARG_REG_LITTLE_ENDIAN.
9003         * stmt.c (expand_return): Ditto.
9004         * expr.c (move_block_from_reg): Ditto.
9005         (copy_blkmode_from_reg): Ditto.
9006         * expmed.c (store_bit_field): Ditto.
9008 2002-12-09  Svein E. Seldal  <Svein.Seldal@solidas.com>
9010         * config.gcc: Added tic4x-* target as an alias to c4x-*
9012 Sun Dec  8 14:57:39 CET 2002  Jan Hubicka  <jh@suse.cz>
9014         * i386.c (ix86_expand_int_movcc): Use force_operand instead of
9015         constructing insn directly.
9017 2002-12-06  Per Bothner  <pbothner@apple.com>
9019         * cpplib.h (struct cpp_hashnode):  Change field directive_index from
9020         char to an int bit-field, for hosts where char is unsigned.
9022 2002-12-07  Roger Sayle  <roger@eyesopen.com>
9023             Richard Henderson <rth@redhat.com>
9025         * real.c (ieee_extended_motorola_format,
9026         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
9027         ieee_quad_format, vax_d_format, vax_g_format, i370_double_format):
9028         Provide appropriate values for new signbit field.
9030 2002-12-07  Roger Sayle  <roger@eyesopen.com>
9032         * real.h (real_format): Add signbit field.
9033         * real.c (ieee_single_format, ieee_double_format,
9034         ieee_extended_motorola_format, ieee_extended_intel_96_format,
9035         ieee_extended_intel_128_format, ibm_extended_format,
9036         ieee_quad_format, vax_f_format, vax_d_format,
9037         vax_g_format, i370_single_format, i370_double_format,
9038         c4x_single_format, c4x_extended_format, real_internal_format):
9039         Provide suitable signbit value, or -1 to avoid bit twiddling.
9041         * optabs.c (expand_unop): Try implementing negation of
9042         floating point modes by flipping the sign bit.
9043         (expand_abs): Try implementing abs of floating point modes
9044         by clearing the sign bit.
9046 Sat Dec  7 22:29:47 CET 2002  Jan Hubicka  <jh@suse.cz>
9048         * i386.c (ix86_expand_int_movcc):  Use force_operand instead
9049         of constructing insn directly.
9051 2002-12-07  Kazu Hirata  <kazu@cs.umass.edu>
9053         * config/h8300/h8300.md (*iorhi_shift_8): New.
9055 2002-12-06  Bernd Schmidt  <bernds@redhat.com>
9057         * doc/invoke.texi: Document FRV port options.
9058         * doc/md.texi: Document FRV register classes.
9060 2002-12-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9062         * doc/install.texi (Configuration): Improve description of cases
9063         where `make distclean` may fail; clarify --with-gnu-as; fix grammar.
9065 2002-12-06  Per Bothner  <pbothner@apple.com>
9067         * cpplib.h (NODE_MACRO_ARG):  New flag.
9068         (struct cpp_hashnode):  Give _cpp_hashnode_value tag to value union.
9069         Remove value.operator field.  Move arg_index field to value union.
9070         (directive_index):  Make signed, since also used for C++ operators.
9071         * cppmacro.c (_cpp_save_parameter):  Use NODE_MACRO_ARG flag to
9072         check for duplicate parameter.  Set NODE_MACRO_ARG flag.
9073         Save node->value, and set node->value.arg_index.
9074         (_cpp_create_definition):  For each paramater, restore node->value.
9075         (lex_expansion_token):  Use NODE_MACRO_ARG flag, and moved arg_index.
9076         * cpptrad.c (scan_out_logical_line): Likewise.
9077         (scan_out_logical_line): Check for directive > 0.
9078         * cpplib.c (cpp_handle_directive):  Likewise.
9079         * cpplex.c (_cpp_lex_direct):  Update as value.operator is replaced
9080         by negative of directive_index.
9081         * cppinit.c (mark_named_operators):  Likewise.
9083         * hashtable.h (struct ht_identifier):  Swap fields, for better packing.
9085 2002-12-06 Dhananjay Deshpande <dhananjayd@kpit.com>
9087         * gcc/config/sh/sh.c (calc_live_regs): Save fpscr only if target has
9088         FPU.
9089         (push): Generate push_fpscr.
9090         (pop): Generate pop_fpscr.
9091         * gcc/config/sh/sh.md : Add define_expand "push_fpscr", "pop_fpscr".
9092         (fpu_switch): Add alternative to push fpscr.  Enable for TARGET_SH3E.
9094 Fri Dec  6 19:36:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9096         * sh.c (dump_table): DImode pool constants need only 32 bit alignment.
9097         DFmode alignment depends on TARGET_FMOVD && TARGET_ALIGN_DOUBLE.
9099 Fri Dec  6 19:17:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
9101         * sh.md (movdi_i): Name.  Remove inappropriate comment.
9103 Fri Dec  6 15:44:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
9104         Merged from basic improvements branch (excerpt):
9106         2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9107         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
9109 2002-12-06  Jakub Jelinek  <jakub@redhat.com>
9111         * expr.c (expand_expr) <case COND_EXPR>: Never modify exp in place.
9113 Thu Dec  5 16:58:25 CET 2002  Jan Hubicka  <jh@suse.cz>
9115         * i386.md (dimode peep2s): Re-add "&& 1".
9117 Thu Dec  5 14:10:15 CET 2002  Jan Hubicka  <jh@suse.cz>
9119         * i386.c (ix86_expand_prologue):  Add comment, do not use
9120         fast prologues for cold and normal functions.
9122 Thu Dec  5 00:52:37 CET 2002  Jan Hubicka  <jh@suse.cz>
9124         * i386.c (x86_rep_movl_optimal): New variable.
9125         (ix86_expand_movstr, ix86_expand_clrstr): Use TARGET_REP_MOVL_OPTIMAL
9126         * i386.h (TARGET_REP_MOVL_OPTIMAL): New macro.
9128         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
9129         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
9130         neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
9131         generate unnecesary subregs.
9133 2002-12-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9135         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): Move define.
9136         * pa.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL): To here.
9138 2002-12-05  Dale Johannesen  <dalej@apple.com>
9140         * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.
9142 2002-12-05  Danny Smith  <dannysmith@users.sourceforge.net>
9144         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
9145         PROFILE_HOOK.
9146         * config/i386/mingw32.h (SUBTARGET_PROLOGUE): Don't undef.
9148 2002-12-05  Aldy Hernandez  <aldyh@redhat.com>
9150         * config/rs6000/spe.h (__ev_mwlufi): Remove.
9151         (__ev_mwlufia): Remove.
9152         (__ev_mwlumfaaw): Remove.
9153         (__ev_mwlusfaaw): Remove.
9154         (__ev_mwlumfanw): Remove.
9155         (__ev_mwlusfanw): Remove.
9157 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
9159         * config/h8300/h8300.md (*andorsi3_shift_8): New.
9161 2002-12-05  Kazu Hirata  <kazu@cs.umass.edu>
9163         * config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and
9164         lshiftrt:SI by 28, 29, and 30 bits when !TARGET_H8300.
9165         (get_shift_alg): Return optimal assembly instructions for the
9166         shifts mentioned above.
9168 Wed Dec  4 11:53:07 CET 2002  Jan Hubicka  <jh@suse.cz>
9170         * i386.c (ix86_expand_int_movcc): Force operand into register for QImode
9171         condtiional moves.
9173 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
9175         * config/h8300/h8300.c (h8300_init_once): Do not use loop to
9176         implement ashiftrt:HI by 13 bits on H8S.
9178 2002-12-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9180         * pa/fptr.c (__canonicalize_funcptr_for_compare): New file and function.
9181         * pa.md (canonicalize_funcptr_for_compare): Output library call to
9182         canonicalize_funcptr_for_compare_libfunc on TARGET_ELF32.
9183         * pa32-linux.h (CANONICALIZE_FUNCPTR_FOR_COMPARE_LIBCALL,
9184         CTOR_LIST_BEGIN): New defines.
9185         * pa/t-linux (LIB2FUNCS_EXTRA): New define.
9186         (fptr.c): Add make rules.
9188 2002-12-04  Geoffrey Keating  <geoffk@apple.com>
9190         * combine.c (combine_simplify_rtx): Add new canonicalizations.
9191         * doc/md.texi (Insn Canonicalizations): Document new
9192         canonicalizations for multiply/add combinations.
9193         * config/rs6000/rs6000.md: Add and modify floating add/multiply
9194         patterns to ensure they're used whenever they can be.
9196 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
9198         * config/h8300/h8300.c: Update the comments related to shifts.
9200 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
9202         * config/mips/mips.md (get_fnaddr): Correct length attribute.
9204 2002-12-04  Kazu Hirata  <kazu@cs.umass.edu>
9206         * config/h8300/h8300.md (*extzv_8_8): New.
9207         (*extzv_8_16): Likewise.
9209 2002-12-04  Jason Merrill  <jason@redhat.com>
9211         PR c++/8461, c++/8625
9212         * integrate.c (copy_decl_for_inlining): Handle explicit invisible
9213         references.
9214         * tree-inline.c (initialize_inlined_parameters): Likewise.
9216         * tree.c (variably_modified_type_p): Just return an error_mark_node.
9218 2002-12-04  Chris Demetriou  <cgd@broadcom.com>
9220         * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
9221         macro instruction in a branch delay slot, to avoid assembler
9222         warnings.
9224 2002-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9226         PR c/7622
9227         * c-semantics (genrtl_scope_stmt): Do not output inlined
9228         nested functions that contain no code.
9230 Wed Dec  4 15:20:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9232         * cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
9233         to be forced into nonfallthru.
9235 2002-12-03  Jason Thorpe  <thorpej@wasabisystems.com>
9237         * config/t-netbsd (USER_H): Set to $(EXTRA_HEADERS).
9239 2002-12-03  Aldy Hernandez  <aldyh@redhat.com>
9241         * config/rs6000/spe.md (*movv1di_const0): New pattern.
9243 2002-12-03  Richard Henderson  <rth@redhat.com>
9245         * libgcc-std.ver: Inherit GCC_3.3 from GCC_3.0.
9247 2002-12-03  Hans-Peter Nilsson  <hp@bitrange.com>
9249         * bitmap.c (bitmap_ior_and_compl, bitmap_union_of_diff):
9250         Initialize tmp.using_obstack to 0.
9252 2002-12-03  Andreas Schwab  <schwab@suse.de>
9254         * config/m68k/m68k.h (EH_RETURN_DATA_REGNO): Define.
9255         (EH_RETURN_STACKADJ_RTX): Define.
9256         (EH_RETURN_HANDLER_RTX): Define.
9257         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9258         * config/m68k/m68k.c (m68k_save_reg): New function.  Handle eh
9259         registers and don't save fixed registers.
9260         (m68k_output_function_prologue): Use it.
9261         (use_return_insn): Likewise.
9262         (m68k_output_function_epilogue): Likewise.
9264 2002-12-03  Kazu Hirata  <kazu@cs.umass.edu>
9266         * config/h8300/h8300.c (single_one_operand): Fix a warning.
9267         (single_zero_operand): Likewise.
9269 2002-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
9271         * Makefile.in configure configure.in dummy-conditions.c fix-header.c
9272         gcov-iov.c gen-protos.c genattr.c genattrtab.c genautomata.c
9273         gencheck.c gencodes.c genconditions.c genconfig.c genconstants.c
9274         genemit.c genextract.c genflags.c gengenrtl.c gengtype-lex.l
9275         gengtype-yacc.y gengtype.c genopinit.c genoutput.c genpeep.c
9276         genpreds.c genrecog.c gensupport.c mkconfig.sh read-rtl.c
9277         scan-decls.c scan.c config/sh/sh.h doc/configfiles.texi
9278         doc/install-old.texi: Replace hconfig.h with bconfig.h.
9279         * Makefile.in: Replace HCONFIG_H with BCONFIG_H.
9281 2002-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
9283         * config/rs6000/rs6000.md (ffssi): Convert to expander.
9284         (ffsdi): Likewise.
9285         (cntlzw2, cntlzd2): New patterns.
9287 2002-12-02  H.J. Lu <hjl@gnu.org>
9289         * config.gcc (mips*-*-netbsd*): Remove mips/t-netbsd.
9290         (mips*-*-linux*): Remove mips/t-linux.
9292 Mon Dec  2 19:26:30 CET 2002  Jan Hubicka  <jh@suse.cz>
9294         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
9296 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9298         * config/h8300/h8300.c (dosize): Replace argument op with
9299         sign.
9300         (h8300_output_function_prologue): Update the call to dosize.
9301         (h8300_output_function_epilogue): Likewise.
9303 2002-12-02  Bob Wilson  <bob.wilson@acm.org>
9305         * config/xtensa/xtensa.h: Delete ifndefs with nothing inside them.
9307 2002-12-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9309         * configure.in: Use "missing" script to generate warning if
9310         flex or bison programs not found, instead of invoking "false".
9311         * configure: Rebuilt.
9313 Mon Dec  2 20:28:48 CET 2002  Jan Hubicka  <jh@suse.cz>
9315         * unroll.c (copy_loop_body): Copy CONST_OR_PURE_CALL_P.
9317 Mon Dec  2 19:42:52 CET 2002  Jan Hubicka  <jh@suse.cz>
9319         * i386.c (ix86_expand_int_movcc):  Avoid overflow.
9321 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9323         * config/h8300/h8300.c (dosize): Output r7/er7 instead of sp.
9324         (push): Likewise.
9325         (pop): Likewise.
9326         (h8300_output_function_prologue): Likewise.
9327         (h8300_output_function_epilogue): Likewise.
9329 Mon Dec  2 14:43:22 2002  J"orn Rennecke <joern.rennecke@superh.com>
9331         * expmed.c (store_bit_field): Use int_mode_for_mode to find
9332         corresponding mode of non-integer mode, unless it is VOIDmode.
9334 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9336         * config/h8300/h8300.md (stm_h8300s_2): New.
9337         (stm_h8300s_3): Likewise.
9338         (stm_h8300s_4): Likewise.
9339         (five define_peephole2): Likewise.
9341 2002-12-02  Kazu Hirata  <kazu@cs.umass.edu>
9343         * ra-build.c: Fix a comment typo.
9345 Sun Dec  1 16:50:47 CET 2002  Jan Hubicka  <jh@suse.cz>
9347         * i386.c (ix86_expand_int_movcc): fix
9348         reversed BRANCH_COST test; be curefull about infinite recursion.
9350 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
9352         * config/h8300/h8300.c (h8300_output_function_prologue):
9353         Remove variable idx.
9354         (h8300_output_function_epilogue): Likewise.
9356 2002-12-01  Zack Weinberg  <zack@codesourcery.com>
9358         * config/frv/xm-frv.h: Delete, unnecessary.
9360 2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
9362         * config/h8300/h8300.md: Add comments for define_peephole2.
9364 2002-12-01  Mark Mitchell  <mark@codesourcery.com>
9366         * builtin-types.def (BT_SIZE): Use size_type_node.
9367         * builtins.c (fold_builtin): Make the builtin strlen returns a
9368         size_t, not a sizetype.
9369         * c-common.c (c_sizeof_or_alignof_type): Use size_type_node, not
9370         c_size_type_node.
9371         (c_alignof_expr): Likewise.
9372         (c_common_nodes_and_builtins): Likewise.
9373         * c-common.h (CTI_C_SIZE_TYPE): Remove.
9374         (c_size_type_node): Likewise.
9375         * c-format.c (T_ST): Use size_type_node, not c_size_type_node.
9376         * tree.h (TI_SIZE_TYPE): New enumeral.
9377         (size_type_node): Likewise.
9379 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
9381         * configure.in: Don't put ${tm_file} into host_xm_file,
9382         build_xm_file, or xm_file.  Do put tm-preds.h into tm_p_file.
9383         Take location of tm-preds.h into account when calculating
9384         tm_p_file_list.
9385         * configure: Regenerate.
9386         * mkconfig.sh: No need for separate TM_DEFINES and XM_DEFINES
9387         arguments.  Do not provide rtx, rtvec, tree, or GTY here.
9388         Remove special case code for tm_p.h and *config.h; add new
9389         special case code for tm.h and tconfig.h. Clean up a bit.
9391         * Makefile.in (tm_file, tm_file_list): New variables set from
9392         @-substitutions.
9393         (GCONFIG_H): Deleted.
9394         (GTM_H, TM_H): New.
9395         (CONFIG_H): Is now just config.h $(host_xm_file_list).
9396         (TM_P_H): Move up with the other mkconfig.sh-generated
9397         headers; don't mention tm-preds.h explicitly.
9398         (tm.h, cs-tm.h): New rule.
9399         (cs-config.h, cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): Adjust
9400         invocations of mkconfig.sh for changes to that program.
9401         (mostlyclean): Delete print-rtl1.c.
9402         (clean): Delete tm.h.
9403         Update dependencies for the files listed below.
9405         * mklibgcc.in:  Add 'coretypes.h $(TM_H)' to libgcc2_c_dep.
9407         * coretypes.h: New file.
9408         * system.h: #define malloc to xmalloc and realloc to xrealloc
9409         when FLEX_SCANNER or YYBISON is defined, independent of the
9410         value of GCC_VERSION.
9411         * alias.c, attribs.c, bb-reorder.c, bitmap.c, builtins.c,
9412         c-aux-info.c, c-common.c, c-convert.c, c-decl.c, c-dump.c,
9413         c-errors.c, c-format.c, c-lang.c, c-lex.c, c-objc-common.c,
9414         c-opts.c, c-parse.in, c-pragma.c, c-pretty-print.c,
9415         c-semantics.c, c-typeck.c, caller-save.c, calls.c, cfg.c,
9416         cfganal.c, cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c,
9417         cfgrtl.c, collect2.c, combine.c, conflict.c, convert.c,
9418         cppdefault.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c,
9419         cppinit.c, cpplex.c, cpplib.c, cppmacro.c, cppmain.c,
9420         cppspec.c, cpptrad.c, crtstuff.c, cse.c, cselib.c, dbxout.c,
9421         debug.c, df.c, diagnostic.c, doloop.c, dominance.c,
9422         dummy-conditions.c, dwarf2asm.c, dwarf2out.c, dwarfout.c,
9423         emit-rtl.c, errors.c, et-forest.c, except.c, explow.c,
9424         expmed.c, expr.c, final.c, fix-header.c, flow.c, fold-const.c,
9425         function.c, gcc.c, gccspec.c, gcov-dump.c, gcov-iov.c, gcov.c,
9426         gcse.c, gen-protos.c, genattr.c, genattrtab.c, genautomata.c,
9427         gencheck.c, gencodes.c, genconditions.c, genconfig.c,
9428         genconstants.c, genemit.c, genextract.c, genflags.c,
9429         gengenrtl.c, gengtype-lex.l, gengtype-yacc.y, gengtype.c,
9430         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
9431         gensupport.c, ggc-common.c, ggc-none.c, ggc-page.c,
9432         ggc-simple.c, global.c, graph.c, haifa-sched.c, hashtable.c,
9433         hooks.c, ifcvt.c, integrate.c, intl.c, jump.c, langhooks.c,
9434         lcm.c, libgcc2.c, line-map.c, lists.c, local-alloc.c, loop.c,
9435         main.c, mbchar.c, mips-tdump.c, mips-tfile.c, mkdeps.c,
9436         optabs.c, params.c, predict.c, prefix.c, print-rtl.c,
9437         print-tree.c, profile.c, protoize.c, ra-build.c,
9438         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, read-rtl.c,
9439         real.c, recog.c, reg-stack.c, regclass.c, regmove.c,
9440         regrename.c, reload.c, reload1.c, reorg.c, resource.c,
9441         rtl-error.c, rtl.c, rtlanal.c, sbitmap.c, scan-decls.c,
9442         scan.c, sched-deps.c, sched-ebb.c, sched-rgn.c, sched-vis.c,
9443         sdbout.c, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c,
9444         ssa.c, stmt.c, stor-layout.c, stringpool.c, timevar.c,
9445         tlink.c, toplev.c, tracer.c, tree-dump.c, tree-inline.c,
9446         tree.c, unroll.c, varasm.c, varray.c, varray.h, vmsdbgout.c,
9447         xcoffout.c, config/darwin-c.c, config/darwin.c,
9448         config/fp-bit.c, config/alpha/alpha.c, config/alpha/vms-cc.c,
9449         config/alpha/vms-ld.c, config/arc/arc.c, config/arm/arm.c,
9450         config/arm/pe.c, config/avr/avr.c, config/c4x/c4x-c.c,
9451         config/c4x/c4x.c, config/cris/cris.c, config/d30v/d30v.c,
9452         config/dsp16xx/dsp16xx.c, config/fr30/fr30.c,
9453         config/frv/frv.c, config/h8300/h8300.c, config/i370/i370-c.c,
9454         config/i370/i370.c, config/i386/i386.c, config/i386/winnt.c,
9455         config/i960/i960-c.c, config/i960/i960.c,
9456         config/ia64/ia64-c.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
9457         config/m32r/m32r.c, config/m68hc11/m68hc11.c,
9458         config/m68k/m68k.c, config/m88k/m88k.c, config/mcore/mcore.c,
9459         config/mips/irix6-libc-compat.c, config/mips/mips.c,
9460         config/mmix/mmix.c, config/mn10200/mn10200.c,
9461         config/mn10300/mn10300.c, config/ns32k/ns32k.c,
9462         config/pa/pa.c, config/pdp11/pdp11.c, config/romp/romp.c,
9463         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
9464         config/s390/s390.c, config/sh/sh.c, config/sparc/gmon-sol2.c,
9465         config/sparc/sparc.c, config/stormy16/stormy16.c,
9466         config/v850/v850-c.c, config/v850/v850.c, config/vax/vax.c,
9467         config/xtensa/xtensa.c, objc/objc-act.c, objc/objc-lang.c:
9468         Include coretypes.h and tm.h.
9470         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
9471         gengenrtl.c, gengtype.c, genopinit.c, genoutput.c, genpeep.c,
9472         genrecog.c: Include coretypes.h and tm.h from the file
9473         generated by this program.
9475         * unwind-dw2-fde-darwin.c, unwind-dw2-fde-glibc.c,
9476         unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c: Include
9477         coretypes.h and tm.h, and tsystem.h when not already included.
9478         No need to include stddef.h nor stdlib.h.
9480         * fixinc/fixlib.h: Include coretypes.h and tm.h.  Do not
9481         include auto-host.h or ansidecl.h/
9482         * fixinc/server.h: Do not include stdio.h, unistd.h, or fixlib.h.
9483         * fixinc/procopen.c: Include server.h after fixlib.h.  Do not
9484         include auto-host.h, ansidecl.h, or system.h.
9485         * fixinc/server.c: Likewise.  Also, do not include signal.h,
9486         and do not redefine volatile.
9488 Sat Nov 30 17:16:46 CET 2002  Jan Hubicka  <jh@suse.cz>
9490         * i386.md (movdf_integer):  Always enable in 64bit.
9491         (movdf_nointeger): Always disable in 64bit.
9493 2002-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9495         * cfg.c (dump_flow_info): Use max_reg_num () to determine the largest
9496         pseudo register number plus 1.
9498 Fri Nov 29 20:10:56 2002  J"orn Rennecke <joern.rennecke@superh.com>
9500         * expmed.c (store_bit_field): Use int_mode_for_mode to find
9501         corresponding mode of non-integer mode, unless it is VOIDmode.
9503 2002-11-29  Hans-Peter Nilsson  <hp@bitrange.com>
9505         * cpplib.c (_cpp_test_assertion): Default *value to 0.
9507         * cppexp.c (num_part_mul): Initialize result.unsignedp, to 1.
9509 2002-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
9511         * config/s390/t-crtstuff: New target makefile fragment.
9512         * config.gcc [s390-*-linux, s390x-*-linux]: Use it.
9514 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
9516         * config/h8300/h8300.md (movsi_h8300hs): Change the order of
9517         alternatives to correct the length when the memory operand is
9518         either pre_dec or post_inc.
9520 2002-11-29  Kazu Hirata  <kazu@cs.umass.edu>
9522         * config/h8300/h8300.md (an anonymous pattern): Give an
9523         internal name *tst_extzv_bitqi_1_n.
9524         Accept bit_operand instead of bit_memory_operand.
9525         Do not accept bit tests with the MSB.
9526         (*tst_extzv_memqi_1_n): New.
9528 Thu Nov 28 23:56:24 CET 2002  Jan Hubicka  <jh@suse.cz>
9530         * i386.c (ix86_expand_int_movcc): Add copy_rtx to avoid invalid RTX
9531         sharing when operand is SUBREG.
9533 Thu Nov 28 08:57:26 CET 2002  Jan Hubicka  <jh@suse.cz>
9535         * athlon.md (athlon-decodev): New reservation unit.
9536         (athlon-direct0): New reservation.
9537         (athlon-vector): New use athlon-decodev.
9538         (athlon-double, athlon-direct): Better model.
9539         (athlon_imul_k8): Use athlon-direct0.
9540         (athlon_movlpd_load): New insn reservation.
9542 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
9544         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
9545         Fix a comment typo.
9546         (h8300_tiny_constant_address_p): Likewise.
9548 2002-11-28  Michael Matz  <matz@suse.de>
9550         * doc/passes.texi: Mention the other register allocator.
9552 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
9554         * config/h8300/h8300.md (6 new peephole2 patterns): New.
9556 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
9558         * config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
9559         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
9560         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.
9562 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
9564         * config/h8300/h8300.c (h8300_and_costs): New.
9565         * config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
9566         * config/h8300/h8300-protos.h: Add a prototype for
9567         h8300_and_costs.
9569 Wed Nov 27 20:34:13 CET 2002  Jan Hubicka  <jh@suse.cz>
9571         * i386.c (x86_sse_partial_regs_for_cvtsd2ss): New.
9572         * i386.h (x86_sse_partial_regs_for_cvtsd2ss): Declare.
9573         (TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS): New macro.
9574         * i386.md (truncdfsf patterns and splitters): Use
9575         TARGET_SSE_PARTIAL_REGS_FOR_CVTSD2SS
9577 2002-11-27  Zack Weinberg  <zack@codesourcery.com>
9579         * config/rs6000/rs6000.c (altivec_init_builtins): Make the
9580         pointer argument in the prototypes of the following builtins
9581         be (const TYPE *) rather than (TYPE *):
9582          + __builtin_altivec_ld_internal_4sf
9583          + __builtin_altivec_ld_internal_4si
9584          + __builtin_altivec_ld_internal_8hi
9585          + __builtin_altivec_ld_internal_16qi
9586          + __builtin_altivec_lvsl
9587          + __builtin_altivec_lvsr
9588          + __builtin_altivec_lvebx
9589          + __builtin_altivec_lvehx
9590          + __builtin_altivec_lvewx
9591          + __builtin_altivec_lvxl
9592          + __builtin_altivec_lvx
9593          + __builtin_altivec_dst
9594          + __builtin_altivec_dstt
9595          + __builtin_altivec_dstst
9596          + __builtin_altivec_dststt
9598 2002-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9600         * except.c (default_exception_section): Move variable into the
9601         scope where it is used.
9603 2002-11-27  Krister Walfridsson  <cato@df.lth.se>
9605         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
9606         correct version.
9608 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
9610         * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
9612 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
9614         * config/h8300/h8300.c (h8300_shift_costs): New.
9615         * config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
9616         * config/h8300/h8300-protos.h: Add a prototype for
9617         h8300_shift_costs.
9619 2002-11-27  Jim Wilson  <wilson@redhat.com>
9621         * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
9622         in output template.
9624 2002-11-27  Casper S. Hornstrup  <chorns@users.sourceforge.net>
9626         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
9627         * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
9628         DLL_IMPORT_EXPORT_PREFIX, not '@'.
9629         (i386_pe_dllimport_name_p): Likewise.
9630         (i386_pe_mark_dllexport): Likewise.
9631         (i386_pe_mark_dllimport): Likewise.
9632         (i386_pe_encode_section_info): Likewise.
9633         (i386_pe_strip_name_encoding): Likewise.
9635 2002-11-27  Richard Henderson  <rth@redhat.com>
9637         * mkmap-symver.awk (BEGIN): Set sawsymbol false.
9638         (nm && NF == 3): Set sawsymbol true.
9639         (END): Exit if no symbols seen.
9640         (output): Fix map syntax error if no globals for the version.
9642 Wed Nov 27 14:45:46 CET 2002  Jan Hubicka  <jh@suse.cz>
9644         * builtins.def (DEF_C99_BUILTIN): Fix.
9646 2002-11-26  Kaz Kojima  <kkojima@gcc.gnu.org>
9648         * config/sh/lib1funcs.asm (FUNC, ENDFUNC0, ENDFUNC): New macros.
9649         (all): Add .size and .type information.
9651 Tue Nov 26 22:43:50 CET 2002  Jan Hubicka  <jh@suse.cz>
9653         * i386.c (ix86_expand_int_movcc):  Do not emit lea for short mode on
9654         partial_reg_stall target.
9656 Tue Nov 26 22:27:47 CET 2002  Jan Hubicka  <jh@suse.cz>
9658         * i386.md (movhicc): Allow general operand.
9659         (movqicc): New expander.
9660         (movqicc_noc): New pattern.
9661         * i386.c (ix86_expand_carry_flag_compare): New function.
9662         (ix86_expand_int_movcc): Optimize harder using sbb; support more
9663         HImode conversion; support QImode conditional moves
9665 Tue Nov 26 16:30:59 CET 2002  Jan Hubicka  <jh@suse.cz>
9667         * i386.c (FAST_PROLOGUE_INSN_COUNT): Set to 20.
9668         (ix86_expand_prologue): Multiply the count by amount of registers to be
9669         pushed.
9671 Tue Nov 26 15:55:27 CET 2002  Jan Hubicka  <jh@suse.cz>
9673         * i386.c (override_options): Error about wrong -mcpu on x86-64
9674         compilation.
9676 2002-11-26  NIIBE Yutaka  <gniibe@m17n.org>
9678         * config/sh/linux.h (FUNCTION_PROFILER): Implemented.
9680 Tue Nov 26 00:14:20 CET 2002  Jan Hubicka  <jh@suse.cz>
9682         * i386-protos.h (x86_extended_QIreg_mentioned_p,
9683         x86_extended_reg_mentioned_p): Declare.
9684         * i386.c (extended_reg_mentioned_1): New static function.
9685         (x86_extended_QIreg_mentioned_p,
9686         x86_extended_reg_mentioned_p): New global functions.
9687         * i386.h (REX_SSE_REGNO_P): New macro.
9688         * i386.md (prefix_rex): New attribute.
9689         (length attribute): Add rex.
9691 2002-11-26  Andrew Haley  <aph@redhat.com>
9693         * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
9694         from_Unwind_Find_Enclosing_Function.
9695         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
9696         * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
9697         * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
9698         _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
9699         * unwind.h (_Unwind_FindEnclosingFunction): Add.
9701 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
9703         * config/s390/s390.c (390_output_constant_pool): Set alignment
9704         before label in 64 bit mode, behind otherwise.
9706 2002-11-26  Richard Henderson  <rth@redhat.com>
9708         * c-common.c (handle_visibility_attribute): Accept "default".
9709         * tree.h (enum symbol_visibility): New.
9710         (decl_visibility): Declare.
9711         * target.h (gcc_target.visibility): Take visibility arg as integer.
9712         * varasm.c (default_assemble_visibility): Likewise.
9713         (decl_visibility): New.
9714         (maybe_assemble_visibility): Use it.
9715         * output.h (default_assemble_visibility): Update prototype.
9716         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
9717         visibility arg as integer.
9718         * doc/extend.texi: Document default visibility.
9720 2002-11-26  Kazu Hirata  <kazu@cs.umass.edu>
9722         * config/h8300/h8300.c: Adjust spacing.
9723         * config/h8300/h8300.h: Likewise.
9725 2002-11-26  Richard Henderson  <rth@redhat.com>
9727         * hooks.c (hook_bool_void_false, hook_void_tree_int,
9728         hook_void_FILEptr_constcharptr): Rename so that the return
9729         type is first.
9730         (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
9731         hook_bool_tree_false): New.
9732         * hooks.h: Update.
9733         * langhooks-def.h: Update for renames.
9734         * target-def.h: Likewise.
9735         * tree.c (default_comp_type_attributes,
9736         default_set_default_type_attributes, default_insert_attributes,
9737         default_function_attribute_inlinable_p,
9738         default_ms_bitfield_layout_p): Remove.
9739         * tree.h: Update.
9741 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9743         * pa-protos.h (function_value): New prototype.
9744         * pa.c (function_value): Use a PARALLEL to return small aggregates on
9745         TARGET_64BIT.
9746         * pa.h (FUNCTION_VALUE): Use function_value.
9747         * pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
9748         call_value_internal_reg, sibcall_value_internal_symref,
9749         sibcall_value_internal_symref_64bit): Remove =rf constraint on return
9750         value.
9752 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9754         * expr.c (gen_group_rtx, emit_group_move): New functions.
9755         * expr.h (gen_group_rtx, emit_group_move): Prototype.
9756         * function.c (expand_function_start): Use gen_group_rtx to create a
9757         PARALLEL rtx to hold the return value when the real return rtx is a
9758         PARALLEL.
9759         (expand_function_end): Use emit_group_move to move the return value
9760         from a PARALLEL to the real return registers.
9761         * rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
9762         in PARALLELs.
9764 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
9766         * config/t-libc-ok: Fix typo.
9768 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9770         * configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
9771         before AC_PROG_CC.
9772         * configure: Rebuilt.
9774 2002-11-26  Nathan Sidwell  <nathan@codesourcery.com>
9776         * c-decl.c: (start_struct): Commonize flag setting.
9778 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
9780         * config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
9781         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
9782         RS6000_CPU_CPP_ENDIAN_BUILTINS.
9783         * config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.
9785 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
9787         * config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
9788         insns.
9789         * config/s390/s390.c (struct machine_function): Introduction of
9790         struct machine_function.
9791         (s390_output_symbolic_const): Use of cfun.
9792         (s390_optimize_prolog): Likewise.
9793         (s390_fixup_clobbered_return_reg): Likewise.
9794         (s390_frame_info): Likewise.
9795         (s390_emit_prologue, s390_emit_epilogue): Likewise.
9796         (s390_init_machine_status): New function.
9797         (override_options): call s390_init_machine_status.
9798         * config/s390/s390-protos.h (s390_output_constant_pool): Changed
9799         prototype.
9801 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9803         * varasm.c (output_constant_pool): For pool constants in mergeable
9804         section ensure each constant is padded to multiple of entity size.
9806 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
9808         * varasm.c (default_exception_section): Move to...
9809         * except.c (default_exception_section): ... here. Make
9810         .gcc_except_table read-only if it is not expected to have any
9811         dynamic relocations and linker handles it.
9812         * dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
9813         if it is not expected to have any dynamic relocations and linker
9814         handles it.
9815         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
9816         when linking read-only and read-write sections together.
9817         * configure, config.in: Rebuilt.
9818         * crtstuff.c (EH_FRAME_SECTION_CONST): Define.
9819         (__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
9821 Mon Nov 25 18:32:37 CET 2002  Jan Hubicka  <jh@suse.cz>
9823         * i386.md (pushsf_rex64): Fix typo.
9825 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
9827         * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
9828         new function.
9829         (__ev_create_ufix32_fs): Same.
9830         (__ev_get_sfix32_fs_internal): New.
9831         (__ev_get_sfix32_fs): Define to use function.
9832         (__ev_get_ufix32_fs_internal): New.
9833         (__ev_get_ufix32_fs): Define to use function.
9834         (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
9835         (__ev_get_lower_ufix32_fs): Same.
9836         (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
9837         (__ev_get_lower_sfix32_fs): Same.
9838         (__ev_set_sfix32_fs_internal): New.
9839         (__ev_set_ufix32_fs_internal): New.
9840         (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
9841         (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
9842         (__ev_set_upper_sfix32_fs): Call function.
9843         (__ev_set_lower_sfix32_fs): Same.
9844         (__ev_set_upper_ufix32_fs): Same.
9845         (__ev_set_lower_ufix32_fs): Same.
9847 2002-11-25  Douglas B Rupp  <rupp@gnat.com>
9849         * gcc.c (do_spec_1): Reset delete_this_arg to zero.
9851 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9853         * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
9854         * config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
9855         * config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9856         * config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
9857         * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
9858         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
9859         * config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
9860         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
9861         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
9862         * config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9863         * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
9864         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
9865         * config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
9866         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
9867         * config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
9868         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
9869         * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
9870         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
9871         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
9872         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
9873         * config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
9874         * config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
9875         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
9876         * config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
9877         defining.
9878         * config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
9879         * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
9881 2002-11-25  Dave Pitts  <dpitts@cozx.com>
9883         * gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
9885 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
9887         * config/h8300/h8300.md (an anonymous pattern): New.
9889 2002-11-25  Richard Henderson  <rth@redhat.com>
9891         * alias.c (find_base_value): Use new_reg_base_value if it's live.
9892         (copying_arguments): Make boolean.
9894 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9896         * gcc.c (static_spec_functions): Add if-exists-else spec
9897         function.
9898         (if_exists_else_spec_function): New function.
9899         * doc/invoke.texi: Document the if-exists-else spec function.
9901         * config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
9902         "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
9904 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
9906         * config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
9907         "netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
9908         "${tmake_file} rs6000/t-netbsd".
9909         * config/rs6000/netbsd.h: Rewrite.
9910         * config/rs6000/t-netbsd: New file.
9912 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
9914         * config/h8300/h8300.md (an anonymous pattern): Relax the
9915         condition for the pattern.
9917 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
9919         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
9920         evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
9921         evmwlssfanw, evmwlsmfanw.
9923         * config/rs6000/rs6000.c (bdesc_2arg): Same.
9925         * config/rs6000/spe.md: Same for patterns.
9927 2002-11-25  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
9929         PR c/8639
9930         * fold-const.c (extract_muldiv): Don't propagate division unless
9931         both arguments are multiples of C.
9933 2002-11-25  Andrew Haley  <aph@redhat.com>
9935         * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
9936         * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
9937         * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
9938         * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
9940 Sun Nov 24 10:38:04 CET 2002  Jan Hubicka  <jh@suse.cz>
9942         * i386.c (x86_use_ffreep): New global variable.
9943         * i386.h (x86_use_frfeep): Declare
9944         (TARGET_USE_FFREEP): New macro
9945         * i386.md  (movs?f*): Use freep when asked for.
9946         (push?f): Remove dead code.
9948 2002-11-24  Kazu Hirata  <kazu@cs.umass.edu>
9950         * config/h8300/h8300.c (h8300_init_once): Fix a typo in the
9951         target help message.
9953 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9955         * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
9956         extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
9957         crtbeginT.o".
9958         (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
9959         (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
9960         to "" for a.out configurations.
9961         * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
9963 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9965         * config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
9966         NETBSD_CPP_SPEC directly.
9967         (SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec.  Add
9968         netbsd_endfile_spec.
9969         (ENDFILE_SPEC): Use %(netbsd_endfile_spec).
9971 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
9973         * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
9974         NETBSD_STARTFILE_SPEC.
9975         (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
9976         (ENDFILE_SPEC): Likewise.
9977         * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
9979 2002-11-24  Andreas Schwab  <schwab@suse.de>
9981         * Makefile.in (install-driver): Remove versioned link before
9982         trying to create it.
9984         * config/m68k/m68k.c: Fix typo in last change defining
9985         TARGET_ASM_CAN_OUTPUT_MI_THUNK.
9987 2002-11-23  H.J. Lu <hjl@gnu.org>
9989         * aclocal.m4: Include ../config/accross.m4.
9990         (gcc_AC_COMPILE_CHECK_SIZEOF): Removed.
9991         (gcc_AC_C_COMPILE_ENDIAN): Removed.
9992         (gcc_AC_C_FLOAT_FORMAT): Check $ac_cv_c_bigendian
9993         instead of $ac_cv_c_compile_endian.
9995         * configure.in: Replace gcc_AC_COMPILE_CHECK_SIZEOF with
9996         AC_COMPILE_CHECK_SIZEOF.
9997         Replace gcc_AC_C_COMPILE_ENDIAN with AC_C_BIGENDIAN_CROSS.
9998         * configure: Rebuild.
10000 2002-11-23  Kazu Hirata  <kazu@cs.umass.edu>
10002         * config/h8300/h8300.c (print_operand): Update the use of
10003         h8300_tiny_constant_address_p.
10004         (h8300_adjust_insn_length): Likewise.
10005         (h8300_tiny_constant_address_p): Check if the given rtx is a
10006         variable declared with __attribute__ ((tiny_data)).
10008 2002-11-22  Dale Johannesen  <dalej@apple.com>
10010         * toplev.c (rest_of_compilation):  Fix comments.
10012 2002-11-22  Geoffrey Keating  <geoffk@apple.com>
10014         * aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
10015         allow mmap from /dev/zero.  Don't make decisions for the host
10016         based on presence or absence of /dev/zero on the build machine.
10017         (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
10018         (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
10019         * configure: Regenerate.
10021 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
10023         * gcc.c (make_relative_prefix, split_directories)
10024         (free_split_directories): Removed.
10026 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
10028         * configure.in: Set insn=nop for DWARF-2 tests on ARM.
10029         * configure: Regenerated.
10031 2002-11-22  Kazu Hirata  <kazu@cs.umass.edu>
10033         * config/h8300/h8300.c (compute_a_shift_length): Fix the insn
10034         length computation when xor.l is output.
10036 2002-11-21  Douglas B Rupp  <rupp@gnat.com>
10038         * alpha.md (movstrdi, clrstrdi): New VMS patterns.
10039         (call_vms_1, call_value_vms_1): Cleanup syntax.
10041 Thu Nov 21 19:20:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10043         * athlon.md (define_atuomaton): Add athlon_load.
10044         (athlon-double): New reservation.
10045         (athlon-ieu0): New CPU unit.
10046         (athlon-load?): Use athlon_load automaton.
10047         (*_k8 reservations): New.
10048         (other insn revervations): Activate for K8.
10050 Thu Nov 21 15:07:42 CET 2002  Jan Hubicka  <jh@suse.cz>
10052         * cfgrtl.c (verify_flow_info):  Accept EDGE_CAN_FALLTHRU flag.
10054 2002-11-21  Jim Wilson  <wilson@redhat.com>
10056         * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
10057         vectors to SI.
10059 2002-11-21  Bob Wilson  <bob.wilson@acm.org>
10061         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
10062         * config/xtensa/xtensa.c (struct machine_function): Add
10063         incoming_a7_copied flag.
10064         (xtensa_copy_incoming_a7): Define.
10065         (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
10066         * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.
10068 Thu Nov 21 23:52:04 CET 2002  Jan Hubicka  <jH@suse.cz>
10070         * i386-protos.h (x86_64_sign_extended_value): Fix prototype.
10071         * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
10072         x86_64_nonmemory_operand, x86_64_movabs_operand,
10073         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
10074         ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
10075         (local_symbolic_operand): Do not care the 64bit limits.
10076         (x86_64_sign_extended_value): Remove allow_rip support.
10077         (legitimate_pic_address_disp_p): Handle all cases allowed
10078         with RIP addressing.
10079         (legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
10080         (legitimize_pic_address): Reorganize.
10081         * i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.
10083 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
10085         * config.gcc (arm*-*-netbsdelf*): Enable configuration.
10086         * config/arm/netbsd-elf.h: New file.
10088 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
10090         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
10091         subtarget_asm_float_spec.
10092         (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
10093         defaults from...
10094         (ASM_SPEC): ...here.  Use subtarget_asm_float_spec.
10096 2002-11-21  Nick Clifton  <nickc@redhat.com>
10098         * config/fr30/fr30.md (movsf_constant_store): Move code to
10099         detect 0.0 into fr30.c.
10100         * config/fr30/fr30-protos.h (fr30_const_double_is_zero):
10101         Prototype.
10102         * config/fr30/fr30.c (fr30_const_double_is_zero): New
10103         function.  Return true if the rtx is 0.0.
10105 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
10107         * config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
10108         if -mlittle-endian is specified.
10110 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
10112         PR optimization/2903
10113         * arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
10114         (anddi_notsesidi_di): Likewise.
10116 2002-11-21  Kazu Hirata  <kazu@cs.umass.edu>
10118         * config/h8300/h8300.c (print_operand): Use
10119         h8300_eightbit_constant_address_p and
10120         h8300_tiny_constant_address_p.
10121         (h8300_adjust_insn_length): Likewise.
10122         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
10123         (TINY_CONSTANT_ADDRESS_P): Likewise.
10124         (OK_FOR_U): Use eightbit_constant_address_p.
10126 2002-11-21  Ulrich Weigand  <uweigand@de.ibm.com>
10128         * config/s390/libgcc-libc.ver: Add multilib support.
10129         * config/s390/linux.h (MULTILIB_DEFAULT): Define.
10130         * config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10131         MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
10132         EXTRA_MULTILIB_PARTS): Define.
10134 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
10136         * arm.c (arm_get_frame_size): A leaf function does not need its
10137         stack padding to an aligned boundary if it has no frame.
10138         (thumb_get_frame_size): Likewise.
10140 Wed Nov 20 22:25:53 CET 2002  Jan Hubicka  <jh@suse.cz>
10142         * x86-64.h (MCOUNT_NAME): Fix typo in my previous patch.
10143         (override_options): Likewise.
10145 Wed Nov 20 19:07:17 CET 2002  Jan Hubicka  <jh@suse.cz>
10147         * config.gcc: Add k8 target alias support
10148         * i386.c (_cost): Declare costs for various variants of divides and
10149         multiplies.
10150         (k8_cost): New.
10151         (m_K8, m_ATHLON_K8): New macros.
10152         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
10153         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_fiop,
10154         x86_promote_QImode, x86_sub_esp_?, x86_add_esp_?,
10155         x86_integer_DFmode_moves, x86_partial_reg_dependency,
10156         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
10157         x86_prologue_using_move, x86_epilogue_using_move,
10158         x86_arch_always_fancy_math_387, x86_sse_partial_regs,
10159         x86_sse_typeless_stores): Set for K8
10160         (override_options): Add k8 support; fix athlon alignment;
10161         complain about non-x86-64 capable CPU being used in x86-64 compilation.
10162         (ix86_issue_rate): Set for K8.
10163         (ix86_adjust_cost, ia32_use_dfa_pipeline_interface,
10164         x86_machine_dependent_reorg): Handle K8 like
10165         * i386.h
10166         (x86_costs):  Change mult_init and divide into array.
10167         (TARGET_K8, TARGET_ATHLON): New macros.
10168         (MODE_INDEX): New macro.
10169         (RTX_COST): Use new costs.
10170         (TARGET_CPU_CPP_BUILTINS):  Define __k8__ and __tune_k8__.
10171         (TARGET_CPU_DEFAULT_NAMES): Add k8
10172         (TARGET_CPU_DEFAULT_k8): New constant
10173         (enum processor_type): Add PROCESSOR_K8.
10174         * i386.md (cpu attribute): Add k8.
10176         * invoke.texi: Document -march=k8.
10178         * i386.md (type attribute): Add leave
10179         (mode attribute): Remove unknownfp.
10180         (length_immediate, modrm, memory attributes): Handle leave correctly.
10181         (fp comparison patterns): Determine FP mode.
10182         (leave, leave_rex64): Remove special cases.
10183         * ppro.md (ppro_uops, ppro_p2): Add leave
10184         * pentiun.md (pent_pop): Handle leave too.
10185         * k6.md (k6_load): Handle leave.
10186         * athlon.md (athlon_leave, athlon_pop): Fix.
10187         (athlon_decode): Handle leave.
10189 2002-11-20  Steve Ellcey  <sje@cup.hp.com>
10191         * emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
10192         to component type using GET_MODE_INNER.
10193         * expr.c (emit_move_insn_1): Ditto.
10194         * optabs.c (expand_binop): Ditto.
10195         (expand_unop): Ditto.
10196         (expand_complex_abs): Ditto.
10198 2002-11-20  Douglas B Rupp  <rupp@gnat.com>
10200         * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
10202 2002-11-20  DJ Delorie  <dj@redhat.com>
10204         * config/stormy16/stormy16.c (s16builtins,
10205         xstormy16_init_builtins, xstormy16_expand_builtin): New.
10206         * config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.
10208 2002-11-20  Hans-Peter Nilsson  <hp@bitrange.com>
10210         * Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
10211         (DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
10212         (executing gencheck, genconfigs, genconditions, genflags,
10213         gencodes, genconstants, genemit, genrecog, genopinit, genextract,
10214         genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
10215         gengtype, genprotos): Prepend $(RUN_GEN).
10216         * configure.in: Move host compiler tests before --enable-checking
10217         tests.
10218         (--enable-checking=valgrind): New.
10219         * config.in, configure: Regenerate.
10220         * cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
10221         Define as empty.
10222         (read_include_file): When doing the mmap+1 trick,
10223         valgrind-annotate the byte after the mmap:ed area as readable.
10224         (purge_cache): Remove above annotation.
10225         * gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
10226         VALGRIND_PATH -q to each command.
10228         * ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
10229         Define as empty.
10230         (ggc_realloc): Update valgrind annotations.
10231         * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
10232         Define as empty.
10233         (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
10234         valgrind-annotate memory.
10236 2002-11-20  Ulrich Weigand  <uweigand@de.ibm.com>
10238         * recog.c (constrain_operands): Prefer exact match over reloadable
10239         EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
10241         * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
10242         operands in Pmode.
10244 2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
10246         PR c/8518
10247         * c-decl.c (duplicate_decls): Outline the second definition
10248         of an extern inline function in all cases.
10250 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
10252         * stor-layout.c (place_field): Update rli->offset as well as
10253         rli->bitpos.
10255 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
10257         * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
10259 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
10261         * config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
10262         into a libcall block.
10263         (divsi3): Likewise divsi3_i4_media.
10265 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
10267         * global.c (find_reg): Check HARD_REGNO_NREGS before kicking
10268         out another register.
10270 2002-11-20  Jakub Jelinek  <jakub@redhat.com>
10272         * combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
10273         (not just mask) are set in C.
10275 2002-11-19  Steven Bosscher <steven.bosscher@usafa.af.mil>
10277         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %{<mgp32} to %<mgp32.
10279 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10281         * profile.c (index_counts_file): Fix obvious mistake.
10283 2002-11-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10285         * Makefile.in (profile.o): Add hashtab.h dependency.
10286         * gcov-io.h (GCOV_SUMMARY_LENGTH): New.
10287         * profile.c: Include hashtab.h.
10288         (htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del,
10289         cleanup_counts_index, index_counts_file, struct section_reference,
10290         struct da_index_entry, counts_file_name, counts_file_index): New.
10291         (get_exec_counts, init_branch_prob): Modified.
10293 2002-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10295         * config.gcc (sh*-*-linux*): Add t-slibgcc-elf-ver and t-linux
10296         to tmake_file. Remove setting gas and gnu_ld here.
10297         * config/sh/libgcc-glibc.ver: New file.
10298         * config/sh/t-linux (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
10299         (SHLIB_MAPFILES): New.
10300         * config/sh/linux.h (MD_EXEC_PREFIX): Undefine.
10301         (MD_STARTFILE_PREFIX): Likewise.
10302         (HANDLE_PRAGMA_PACK_PACK_PUSH_POP): Define.
10303         (DWARF2_UNWIND_INFO): Redefine.
10304         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10305         (LINK_EH_SPEC): Redefine.
10306         (MD_FALLBACK_FRAME_STATE_FOR): Define except for SH-media.
10307         (SH_FALLBACK_FRAME_FLOAT_STATE): Define.
10308         (SH_DWARF_FRAME_GP0, SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_XD0,
10309         SH_DWARF_FRAME_BT0, SH_DWARF_FRAME_PR, SH_DWARF_FRAME_PR_MEDIA,
10310         SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_MACL,
10311         SH_DWARF_FRAME_PC, SH_DWARF_FRAME_SR, SH_DWARF_FRAME_FPUL,
10312         SH_DWARF_FRAME_FPSCR): Likewise.
10313         * config/sh/sh-protos.h (sh_set_return_address): Declare.
10314         * config/sh/sh.c (calc_live_regs): Count EH_RETURN_DATA_REGNO
10315         registers if the current function calls EH return.
10316         (sh_expand_epilogue): Handle EH stack adjustments.
10317         (sh_set_return_address): New function.
10318         * config/sh/sh.h (SH_DBX_REGISTER_NUMBER): Handle PR_MEDIA_REG.
10319         Don't abort even if the number is mapped to -1.
10320         (EH_RETURN_DATA_REGNO): Define.
10321         (EH_RETURN_STACKADJ_RTX): Define.
10322         * config/sh/sh.md (UNSPEC_EH_RETURN): New.
10323         (eh_return): New pattern.
10324         (eh_set_ra_di, eh_set_ra_si): Likewise.
10325         Add splitter to perform EH return after reload.
10327 Tue Nov 19 12:52:07 2002  J"orn Rennecke <joern.rennecke@superh.com>
10329         * stor-layout.c (excess_unit_span): New function.
10330         (place_field): Use it.
10332 2002-11-19  Andreas Schwab  <schwab@suse.de>
10334         * unwind.h (_Unwind_GetTextRelBase): Revert last change, this is
10335         not valid in C++.
10337 2002-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
10339         * configure.in, Makefile.in: Correct BUILD/HOST confusion.
10340         * configure: Regenerate.
10342 Tue Nov 19 00:11:44 CET 2002  Jan Hubicka  <jh@suse.cz>
10344         * convert.c (strip_float_extensions): New function.
10345         (convert_to_real): Optimize some cases.
10347 2002-11-19  Andreas Jaeger  <aj@suse.de>
10349         * loop.c (record_giv): Initialize not_replaceable.
10350         (check_final_value): Likewise.
10352 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10354         * config/h8300/h8300.c (h8300_init_once): Replace 1 with
10355         MASK_H8300S.
10357 2002-11-19  Vijay L. Khuspe  <vijayk1@kpit.com>
10359         * config/h8300/h8300.c (h8300_init_once): Allow -mn switch
10360         only if -mh or -ms present.
10361         (h8300_eightbit_constant_address_p): Support the normal mode.
10362         (h8300_tiny_constant_address_p): Likewise.
10363         * config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
10364         (POINTER_SIZE): Add 16 bit pointer for the normal mode.
10365         (Pmode): Evaluate to HImode for the normal mode.
10366         (SIZE_TYPE): Evaluate to unsigned int for normal mode.
10367         (PTRDIFF_TYPE): Evaluate to int for the normal mode.
10368         (ASM_WORD_OP): Evaluate to word for the normal mode.
10369         * config/h8300/h8300.md (tablejump_normal_mode): New.
10370         (indirect_jump_normal_mode): New.
10371         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
10372         directory.
10373         (MULTILIB_DIRNAMES): Create target dependent directory
10374         'normal'.
10375         (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
10376         * doc/invoke.texi (gccoptlist): Describe the new switch -mn.
10378 Tue Nov 19 23:50:56 CET 2002  Jan Hubicka  <jh@suse.cz>
10380         * i386.md (length_immediate): Do not refer to insn address.
10381         (jcc*, jmp patterns):  Compute length explicitly.
10383 2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
10385         PR c/8588
10386         * optabs.c (expand_binop): Convert CONST_INTs in shift
10387         operations too.
10389 2002-11-19  Roger Sayle  <roger@eyesopen.com>
10391         * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
10393 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10395         * config/h8300/h8300.md (an anonymous pattern): Relax the
10396         condition to accept the same operands and/or subregs.
10398 2002-11-19  Daniel Jacobowitz  <drow@mvista.com>
10400         * config/sh/sh.c (gen_shl_and): Revert previous patch.
10401         * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
10402         reload_completed.
10404 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10406         * config/h8300/h8300.c (print_operand): Update the use of
10407         EIGHTBIT_CONSTANT_ADDRESS_P.
10408         (h8300_adjust_insn_length): Likewise.
10409         (h8300_eightbit_constant_address_p): Check if the given rtx is
10410         a variable with __attribute__((eightbit_data)).
10411         * config/h8300/h8300.h (OK_FOR_U): Update the use of
10412         EIGHTBIT_CONSTANT_ADDRESS_P.
10414 2002-11-19  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10416         * doc/contrib.texi (Contributors): Add self as second contact in
10417         addition to Jeff Law.
10419 2002-11-19  Andreas Jaeger  <aj@suse.de>
10421         * tree-inline.c: Move prototpyes of find_alloca_call_1 and
10422         find_alloca_call to right place.
10424 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
10426         * cppfiles.c: Fix formatting.
10428 2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>
10430         * gcc.c (The Specs Language): Document spec functions.
10431         (static_spec_functions, lookup_spec_function)
10432         (eval_spec_function, handle_spec_function)
10433         (if_exists_spec_function, alloc_args): New.
10434         (execute): Abort if processing_spec_function is true.
10435         (do_spec_1): Hand off spec to handle_spec_function if %:
10436         is encountered.  If processing_spec_function is true,
10437         end any pending argument when the end of the string is reached.
10438         (main): Use alloc_args to allocate the initial argument vector.
10439         * gcc.h (struct spec_function): New.
10440         (lang_specific_spec_functions): New extern.
10442         * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
10443         (ENDFILE_SPEC): Add if-exists(crtn%O%s).
10444         * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
10446         * doc/invoke.texi: Document spec functions.
10448         * cppspec.c (lang_specific_spec_functions): New.
10449         * gccspec.c: Likewise.
10451 2002-11-18  Steve Ellcey  <sje@cup.hp.com>
10453         * config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
10454         (FIXUNS_TRUNCTFDI2_LIBCALL): New.
10455         (fixunstfsi_libfunc): Change.
10456         (fixunstfdi_libfunc): Change.
10457         (sdiv_optab): Don't zero out SImode handler.
10458         (udiv_optab): Don't zero out SImode handler.
10459         (smod_optab): Don't zero out SImode handler.
10460         (umod_optab): Don't zero out SImode handler.
10462 2002-11-18  Neil Booth  <neil@daikokuya.co.uk>
10464         PR preprocessor/8524
10465         * cpplib.c (run_directive): Remove previous kludge to _Pragma.
10466         Add a new one in its place, which hopefully works.
10467         (skip_rest_of_line): Change test for bottom-of-context-stack.
10469 Mon Nov 18 21:29:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10471         * i386.md (addqi_1_slp): Fix output template.
10472         (subqi_1_slp): Fix type.
10474 Sun Nov 17 00:01:28 CET 2002  Jan Hubicka  <jh@suse.cz>
10476         * calls.c (alloca_call_p): New global function.
10477         * tree.h (alloca_call_p): New.
10478         * tree-inline.c (inlinable_function_p):  Do not inline when
10479         function calls alloca.
10480         (find_alloca_call, find_alloca_call_1): New functions.
10482 2002-11-18  Kazu Hirata  <kazu@cs.umass.edu>
10484         * config/h8300/h8300.md (*andorqi3): Use bor between bld and
10485         bst.  Update the insn length.
10486         (*andorhi3): Likewise.
10487         (*andorsi3): Likewise.
10489 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10491         * config/sh/sh-protos.h (sh_mark_label): Declare.
10492         * config/sh/sh.c (sh_mark_label): New function, taken from
10493         movdi_const, but fixing the case when the address has an addend.
10494         * config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.
10496 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10498         * config/sh/sh.c (pool_node): New field: part_of_sequence_p.
10499         (add_constant): Set it.
10500         (dump_table): Don't reorder a constant if part_of_sequence_p.
10501         (machine_dependent_reorg): Assume that float constants will
10502         stay in their original order if used as a sequence.
10504 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10506         * config/sh/sh.c (calc_live_regs): Update check for PIC liveness
10507         in compact code.
10509 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
10511         * config/sh/sh.md (initialize_trampoline): Do not force the
10512         trampoline address into R0_REGS here.
10514 Sun Nov 17 14:01:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10516         * i386.md (negsf2_ifs, negdf2_ifs, negdf2_ifs_rex64, abssf2_ifs,
10517         absdf2_ifs, absdf2_ifs_rex64): Fix constraints.
10518         (neg?f2_ifs, abs?f2_ifs splitters): Refuse memory operand; do not
10519         generate unnecesary subregs.
10521 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
10523         * df.c: Fix formatting.
10525 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
10527         * config/h8300/h8300.md (two anonymous patterns): Fix insn
10528         lengths.
10530 2002-11-17  Daniel Jacobowitz  <drow@mvista.com>
10532         * sh.c (gen_shl_and): Don't create a zero_extend if the operand
10533         is not an arith_reg_operand.
10535 2002-11-17  Graham Stott  <graham.stott@btinternet.com>
10537         * real.c (real_to_decimal): Fix buffer overrun when buffer size
10538         is smaller than representation.
10540 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
10542         * builtins.c: Fix formatting.
10544 Sat Nov 16 16:49:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10546         * i386.md (truncdfsf2_1_sse, truncdfsf2_1_sse_nooverlap, truncdfsf2_2,
10547         floats?dff2_i387):
10548         Work around regclass stupidity.
10549         (truncdfsf_2_1_sse splitter):  Accept !TARGET_PARTIAL_SSE_REGS
10551 Sat Nov 16 02:17:48 CET 2002  Jan Hubicka  <jh@suse.cz>
10553         * i386.md (fop_df_6): New pattern.
10554         (fop_xf_4, fop_xf_5): Handle both SF and DFmode extensions.
10555         (fop_xf_6): Rewrite
10556         (fop_xf_7): Delete.
10557         (fop_tf_4, fop_tf_5): Handle both SF and DFmode extensions.
10558         (fop_tf_6): Rewrite
10559         (fop_tf_7): Delete.
10561 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10563         * config/h8300/h8300.md (two anonymous patterns): Fix typos.
10565 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10567         * config/h8300/h8300.md: Fix formatting.
10569 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10571         * config/h8300/h8300.md: Replace spaces with tabs.
10572         * config/h8300/t-h8300: Remove a trailing empty line.
10574 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10576         * tlink.c: Fix formatting.
10578 2002-11-16  David Edelsohn  <edelsohn@gnu.org>
10580         PR 8362
10581         * config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
10582         * config/rs6000/rs6000.md (movti_string): Remove output modifier
10583         when scratch register never needed.
10584         (ldmsi[3-8]): New patterns.
10586 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10588         * hard-reg-set.h: Follow spelling conventions.
10589         * real.c: Likewise.
10590         * target.h: Likewise.
10592 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
10594         * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
10596 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
10598         * optabs.c: Fix formatting.
10600 Sat Nov 16 02:06:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10602         * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
10603         * i386.md (attribute type): Add type shift1 and rotate1.
10604         (*_slp): Rewrite to have just two operands to avoid reload problems.
10606 2002-11-15  Kazu Hirata  <kazu@cs.umass.edu>
10608         * config/h8300/h8300.md (4 anonymous patterns): New.
10610 2002-11-15  Geoffrey Keating  <geoffk@apple.com>
10612         * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
10613         * doc/invoke.texi: Correct description of what needs to be done to
10614         force collection at every ggc_collect call.
10616 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
10618         * config/s390/s390.c (optimization_options): Set
10619         flag_asynchronous_unwind_tables to 1 by default.
10621 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
10623         * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10625 Fri Nov 15 14:54:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10627         * i386-protos.h (x86_function_profiler): New function
10628         * i386.h (MCOUNT_NAME): New.
10629         (PROFILE_COUNT_REGISTER): New.
10630         (FUNCTION_PROFILER): Move offline to ...
10631         * i386.c (x86_function_profiler) ... here; fix 64bit support
10632         * beos-elf.h (FUNCTION_PROFILER): Kill.
10633         (MCOUNT_NAME): New.
10634         * freebsd-aout.h (FUNCTION_PROFILER): Kill.
10635         (MCOUNT_NAME): New.
10636         (PROFILE_COUNT_REGISTER): New.
10637         * linux.h (FUNCTION_PROFILER): Kill.
10638         (MCOUNT_NAME): New.
10639         * x86-64.h (FUNCTION_PROFILER): Kill.
10640         (MCOUNT_NAME): New.
10641         * freebsd.h (FUNCTION_PROFILER): Kill.
10642         (MCOUNT_NAME): New.
10644 2002-11-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10646         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG,
10647         FUNCTION_ARG_PASS_BY_REFERENCE): Define.
10648         * config/arm/arm.c (arm_va_arg,
10649         arm_function_arg_pass_by_reference): New.
10650         * config/arm/arm-protos.h: Add prototypes.
10652 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
10654         * gthr-single.h: Fix formatting.
10656 2002-11-14  Zack Weinberg  <zack@codesourcery.com>
10658         * tree.c (tree_vec_elt_check_failed): New function.
10659         * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
10660         (TREE_VEC_ELT): Use it.
10662         * tree-inline.c (optimize_inline_calls): Don't copy a
10663         zero-length vector.
10665 2002-11-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10667         * diagnostic.c (sorry): Don't repeat "sorry, unimplemented" text.
10669 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
10671         * varasm.c (output_addressed_constants) [MINUS_EXPR]: Clear reloc if
10672         both operands contain local relocations.
10673         (categorize_decl_for_section): Don't use mergeable sections if
10674         initializer has any relocations.
10676 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
10678         * gthr-vxworks.h: Fix formatting.
10680 2002-11-13  Janis Johnson  <janis187@us.ibm.com>
10682         * doc/install.texi (Testing): Document extra Java testing.
10683         * doc/sourcebuild.texi (Test Suites): Document libgcj testing.
10685 2002-11-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10687         * pa64-hpux.h (LINK_SPEC): Move "+Accept TypeMismatch" switch to the
10688         beginning of the spec.
10689         (LDD_SUFFIX, PARSE_LDD_OUTPUT): Delete.
10690         (LD_INIT_SWITCH, LD_FINI_SWITCH): Define but don't enable.  Add comment
10691         regarding problems with global constructors when using GNU ld.
10693 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
10695         * gthr-solaris.h: Fix formatting.
10697 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
10699         * gthr-posix.h: Fix formatting.
10701 2002-11-12  Devang Patel <dpatel@apple.com>
10702         * gcc.c (display_help): Two new options -Xpreprocessor and -Xassembler.
10703         (process_command): Same.
10704         * doc/invoke.texi: Info about these two new options.
10706 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10708         * config/h8300/h8300.md (*andorsi3): New.
10710 2002-11-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10712         * doc/install.texi (powerpc-*-linux-gnu*): Update binutils requirement.
10714 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10716         * config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
10717         expressions appropriately.
10719 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10721         * gthr-win32.h: Fix formatting.
10723 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
10725         * config/h8300/h8300.c (single_one_operand): Correctly compute
10726         mask when mode is SImode.
10727         (single_zero_operand): Likewise.
10728         * config/h8300/h8300.md (two new anonymous insns): New.
10730 2002-11-12  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10732         * doc/contrib.texi (Contributors): Use GCJ instead of gcj to refer
10733         to that entire project.
10735 2002-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10737         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Restore old
10738         directories.
10740 2002-11-11  Zack Weinberg  <zack@codesourcery.com>
10742         * params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
10743         * doc/invoke.texi: Document them.
10745         * ggc-page.c: Include params.h.  Remove definitions of
10746         GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED.  Replace
10747         GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define.
10748         (init_gcc): Don't set G.allocated_last_gc here.
10749         (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and
10750         PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to
10751         perform collection.
10752         * ggc-simple.c: Similarly.
10753         * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to
10754         dependencies.
10756 2002-11-11  Kazu Hirata  <kazu@cs.umass.edu>
10758         * gthr-dce.h: Fix formatting.
10760 2002-11-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10762         PR c/8467
10763         * stmt.c (tail_recursion_args): Handle DECL_MODE differing from the
10764         mode of DECL_RTL case.
10766 2002-11-11  Janis Johnson  <janis187@us.ibm.com>
10768         * doc/contrib.texi: Merge in the list from the libstdc++ web pages.
10770 Mon Nov 11 12:06:08 CET 2002  Jan Hubicka  <jh@suse.cz>
10772         * i386.c (construct_container): Fix handling of SSE_CLASS.
10774 2002-11-10  Joel Sherrill <joel@gcc.gnu.org>
10776         * config/m68k/t-crtstuff (crti.o): Use this...
10777         ($(T)crti.o): ... instead.
10778         (crtn.o): Use this...
10779         ($(T)crtn.o): ... instead.
10781 2002-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
10783         PR c/8439
10784         * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
10785         if there is something new to be simplified.
10787 2002-11-10  H.J. Lu <hjl@gnu.org>
10789         * calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
10790         * expr.c (PUSH_ARGS_REVERSED): Likewise.
10792         * config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
10794 2002-11-10  Zack Weinberg  <zack@codesourcery.com>
10796         * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
10797         * config/rs6000/linux.h, config/rs6000/linux64.h,
10798         config/rs6000/windiss.h: ... not here.
10800 2002-11-10  Jason Thorpe  <thorpej@wasabisystems.com>
10802         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define
10803         __ABICALLS__ if TARGET_ABICALLS.
10805 Sun Nov 10 18:49:21 CET 2002  Jan Hubicka  <jh@suse.cz>
10807         * i386.h (MIN_UNITS_PER_WORD): Define to 8 for x86-64 libgcc.
10809 2002-11-10  Joseph S. Myers  <jsm@polyomino.org.uk>
10811         * c-decl.c (grokdeclarator): Make error for duplicate type
10812         qualifiers into a pedwarn, disabled for C99.
10814 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
10816         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
10817         as FUNCTION_ARG_PASS_BY_REFERENCE.
10819 2002-11-09  Zack Weinberg  <zack@codesourcery.com>
10821         * doc/install.texi: Add *-*-vxworks* specific installation
10822         instructions.
10824         * config/vxlib.c: Rewrite using generation numbers to identify
10825         valid TSD keys.
10827 Sat Nov  9 00:10:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10829         * i386.c (x86_machine_dependent_reorg): Fix even more side cases.
10831 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10833         * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16.
10835         * config.gcc (hppa*64*-*-linux*): Shorten lines in tm_file define.
10836         (hppa*64*-*-hpux11*): Likewise.  Use elfos.h with gas.
10837         * pa.c (output_millicode_call): Use symbol difference rather than
10838         $PIC_pcrel$0 when using HP assembler.
10839         * pa64-hpux.h (TARGET_GAS): Define to 1 or 0 depending on whether or
10840         not elfos.h (i.e., gas) is being used.
10841         (ASM_FILE_START, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
10842         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON,
10843         ASM_OUTPUT_ALIGNED_LOCAL, GLOBAL_ASM_OP, ASM_DECLARE_FUNCTION_NAME,
10844         ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL,
10845         ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Define when
10846         using elfos.h.
10847         (TARGET_ASM_GLOBALIZE_LABEL): Undefine when using elfos.h.
10848         (DWARF2_ASM_LINE_DEBUG_INFO): Delete.
10849         (ASM_FILE_START): Add standard .SPACE and .SUBSPA defines when not
10850         using elfos.h.
10851         (TEXT_SECTION_ASM_OP, READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
10852         BSS_SECTION_ASM_OP): New HP style defines when not using elfos.h.
10853         (TARGET_ASM_NAMED_SECTION, MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL):
10854         Don't define when not using elfos.h.
10855         (ASM_DECLARE_RESULT): Don't define.
10856         * doc/install.texi (hppa*-hp-hpux*): Remove statement that HP assembler
10857         doesn't work on hppa64-hp-hpux11.
10858         (hppa*-hp-hpux11): Update.
10860 2002-11-09  Jason Thorpe  <thorpej@wasabisystems.com>
10862         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
10863         to the assembler if -mno-abicalls was specified.
10865 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10867         * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
10868         ASM_OUTPUT_DEF): Delete.
10870 2002-11-09  Neil Booth  <neil@daikokuya.co.uk>
10872         * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
10874 2002-11-08  Roger Sayle  <roger@eyesopen.com>
10876         * real.c (real_sqrt): Update comment with bibliographic reference.
10878 Fri Nov  8 13:33:58 CET 2002  Jan Hubicka  <jh@suse.cz>
10880         * i386.md (sse_loadss, sse2_loadsd): Fix expander.
10882 Fri Nov  8 13:25:41 CET 2002  Jan Hubicka  <jh@suse.cz>
10884         * i386.c (x86_machine_dependent_reorg): Fix handling of empty functions.
10886 Fri Nov  8 13:01:42 CET 2002  Jan Hubicka  <jh@suse.cz>
10888         * builtins.c (expand_builtin_mathfn): Handle floor/ceil/trunc/round/nearbyint
10889         (expand_builtin): Likewise.
10890         * builtins.def: Add
10891         __builtin_floor, __builtin_floorf, __builtin_floorl
10892         __builtin_ceil, __builtin_ceilf, __builtin_ceill
10893         __builtin_round, __builtin_roundf, __builtin_roundl
10894         __builtin_trunc, __builtin_truncf, __builtin_truncl
10895         __builtin_nearbyint, __builtin_nearbyintf, __builtin_nearbyintl.
10896         * genopinit.c (optabs): Initialize the new optabs.
10897         * optab.c (init_optabs): Likewise.
10898         * optabs.h (optab_index): Add OTI_floor, OTI_ceil, OTI_trunc,
10899         OTI_round, OTI_nearbyint.
10900         (floor_optab, ceil_optab, trunc_optab, round_optab, nearbyint_optab): New.
10901         * doc/md.texi: Document new named patterns.
10902         * doc/extend.texi (builtin functions)  Document
10903         floor, floorf, floorl, ceil, ceilf,
10904         ceill, round, roundf, roundl, trunc,
10905         truncf, truncl, nearbyint, nearbyintf, nearbyintl.
10907 Fri Nov  8 11:36:11 CET 2002  Jan Hubicka  <jh@suse.cz>
10909         * i386.md (sse_movdfcc, sse_movsfcc): Fix typo in previous patch.
10911 2002-11-08  Dale Johannesen  <dalej@apple.com>
10913         * dbxout.c (dbxout_type):  Fix stabs info for vector types.
10915 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
10917         PR preprocessor/8497
10918         PR preprocessor/8501
10919         * cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
10920         start a directive.  In assembler, #NUM is not a line directive.
10922 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
10924         * cppmain.c (cpp_preprocess_file): Loop to pop any -included
10925         buffers.
10927 2002-11-08  Kazu Hirata  <kazu@cs.umass.edu>
10929         * config/h8300/h8300.md (two anonymous test insns): New.
10931 Fri Nov  8 11:20:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10933         * jump.c (mark_jump_label): Handle subregs of label_refs.
10935 Thu Nov  7 21:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
10937         * i386.md (sse_movdfcc, sse_movsfcc): Avoid overactive matching.
10938         * i386.c (ix86_expand_fp_movcc): Match the reversed cases.
10940 2002-11-07  David Mosberger  <davidm@hpl.hp.com>
10942         * config/ia64/crtend.asm: Include "auto-host.h".
10943         [HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
10944         * config/ia64/crtbegin.asm: Similarly.
10945         * config/ia64/t-ia64 (crtbegin.o): Include from current directory.
10946         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
10948         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
10949         * configure.in: Use it if --enable-initfini-array not specified.
10950         * doc/install.texi (Configuration): Document --enable-initfini-array.
10951         * configure, config.in: Rebuild.
10953 2002-11-07  Jason Thorpe  <thorpej@wasabisystems.com>
10955         * config/arm/arm-protos.h (arm_get_frame_size)
10956         (thumb_get_frame_size): New prototypes.
10957         * config/arm/arm.c (arm_get_frame_size)
10958         (thumb_get_frame_size): New functions.
10959         (use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
10960         (arm_compute_initial_elimination_offset, arm_expand_prologue): Use
10961         arm_get_frame_size.
10962         (thumb_expand_prologue, thumb_expand_epilogue): Use
10963         thumb_get_frame_size.
10964         * config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
10965         (machine_function): Add frame_size member.
10966         (THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
10968 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
10970         * arm.c (bit_count): Make argument unsigned long.  Return unsigned.
10971         Adjust code to use portable unsigned bit manipulation.
10972         (insn_flags, tune_flags): Change type to unsigned.
10973         (struct processors): Make flags unsigned long.
10974         (arm_override_options): Change type of count and current_bit_count
10975         to unsigned.
10977 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
10979         * arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
10981 Thu Nov  7 15:50:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
10983         * sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
10985 Thu Nov  7 11:18:01 CET 2002  Jan Hubicka  <jh@suse.cz>
10987         * reg-stack.c (compensate_edge): Fix sanity check.
10989 2002-11-05  Geoffrey Keating  <geoffk@apple.com>
10991         * config.gcc: Don't create crtbegin, crtend on Darwin; do create
10992         crt2.o.  Rearrange t-darwin makefiles.
10993         * crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
10994         * unwind-dw2-fde-darwin.c: New.
10995         * unwind-dw2-fde-glibc.c: Correct comment.
10996         * unwind-dw2-fde.c (__register_frame_info_bases)
10997         [DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
10998         (classify_object_over_fdes): Use last_fde.
10999         (add_fdes): Likewise.
11000         (linear_search_fdes): Likewise.
11001         * unwind-dw2-fde.h (struct object)
11002         [DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
11003         (last_fde): New.
11004         * config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
11005         (ENDFILE_SPEC): No crtend.o.
11006         * config/t-darwin: New.
11007         * config/i386/t-darwin: Delete.
11008         * config/darwin-crt2.c: New.
11009         * config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
11010         or config/t-darwin.
11012 2002-11-06  Douglas B Rupp  <rupp@gnat.com>
11014         * config/i386/i386-interix.h (TARGET_SUBTARGET_DEFAULT): Or
11015         MASK_MS_BITFIELD_LAYOUT
11016         (SUBTARGET_OVERRIDE_OPTIONS): Warn about and turn off
11017         MS bitfields for Objective-C.
11018         (PCC_BIT_FIELD_TYPE_TEST, GROUP_BITFIELDS_BY_ALIGN): Remove
11019         defines.
11021         * config/i386/i386.c (ix86_ms_bitfield_layout): New function.
11022         (TARGET_MS_BITFIELD_LAYOUT_P): Define to above function.
11023         (TARGET_USE_MS_BITFIELD_LAYOUT): Define.
11025         * config/i386/i386.h (MASK_MS_BITFIELD_LAYOUT: New mask.
11026         TARGET_USE_MS_BITFIELD_LAYOUT): New macro.
11027         (TARGET_SWITCHES): Add above mask.
11029         * testsuite/gcc.dg/bf-ms-layout.c: New test case.
11030         * testsuite/gcc.dg/bf-no-ms-layout.c: New test case.
11031         * testsuite/gcc.dg/i386-bitfield1.c (dg-options): Add appropriate
11032         flags for interix.
11034 Wed Nov  6 18:54:47 2002  Alexandre Oliva  <aoliva@redhat.com>
11036         * config/mips/mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output
11037         .gpword/.gpdword for ABI_N32 and ABI_64 too, if using the GNU
11038         assembler.
11039         * config/mips/mips.md (tablejump_internal3): Output .cpadd
11040         before jump on ABI_N32 too.
11041         (tablejump_internal4): Ditto on ABI_64.  Increase maximum
11042         length to match.
11044 Wed Nov  6 17:16:48 CET 2002  Jan Hubicka  <jh@.suse.cz>
11046         * i386.md (negsf splitter): Accept memory operand in second register.
11047         (abssf/absdf splitters): Simplify
11048         (sse_loadss, sse_loadsd): Turn into expander.
11050 2002-11-06  David Edelsohn  <edelsohn@gnu.org>
11052         PR target/8480
11053         * config/rs6000/rs6000.md (movdi_internal64): Discourage
11054         FPR to FPR moves.
11056 2002-11-06  Janis Johnson  <janis187@us.ibm.com>
11058         * doc/contrib.texi: Merge in the list from the Java web pages.
11060 2002-11-06  David O'Brien  <obrien@FreeBSD.org>
11062         * config/sparc/freebsd: Fix typo.
11064 2002-11-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11066         * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
11068 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
11070         * config/mips/mips.md (call_value_multiple_internal2): Use dla for
11071         non-SImode addresses.
11073 Tue Nov  5 14:34:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11075         * i386.md (float_truncate SSE splitter): Ensure that operand is not
11076         stack register.
11077         (float SSE splitters): Reorder conditional.
11079 2002-11-05  Bob Wilson  <bob.wilson@acm.org>
11081         * config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
11083 2002-11-05  John David Anglin  <dave2hiauly1.hia.nrc.ca>
11085         * pa64-hpux.h (LIB_SPEC): Fix p and pg options.
11086         (STARTFILE_SPEC): Remove p and pg options.
11088 2002-11-05  Andrew Haley  <aph@redhat.com>
11090         * fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
11091         to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
11093 2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
11095         * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
11096         * config/mips/mips.c (mips_cannot_change_mode_class): ...here.
11098 2002-11-04  Zack Weinberg  <zack@codesourcery.com>
11100         * gthr-vxworks.h: Rewritten from scratch.
11101         * config/vxlib.c: New file.
11102         * config/t-vxworks: Add config/vxlib.c to LIB2FUNCS_EXTRA.
11103         * config/rs6000/t-vxworks: Add config/vxlib.c to
11104         LIB2FUNCS_EXTRA here too, because of clash with
11105         config/rs6000/t-ppccomm.
11107 2002-11-04  Dale Johannesen  <dalej@apple.com>
11109         * doloop.c (doloop_modify_runtime):  Fix loop count computation
11110         for unrolled loops.
11111         * loop.c (loop_invariant_p):  Support calling from unroller.
11113 2002-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
11115         * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
11116         for comparison.
11118 2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
11120         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
11122         * config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
11123         (CLASS_CANNOT_CHANGE_MODE): Remove.
11124         (CANNOT_CHANGE_MODE_CLASS): New.
11126         * config/alpha/alpha.h: Same.
11128         * config/ia64/ia64.h: Same.
11130         * config/mips/mips.h: Same.
11132         * config/s390/s390.h: Same.
11134         * config/sh/sh.h: Same.
11136         * config/pa/pa64-regs.h: Same.
11138         * config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
11140         * config/sh/sh.c (sh_cannot_change_mode_class): New.
11142         * config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
11143         prototype.
11145         * config/mips/mips.c (mips_cannot_change_mode_class): New.
11147         * doc/tm.texi (Register Classes): Remove
11148         CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
11149         Document CANNOT_CHANGE_MODE_CLASS.
11151         * reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
11152         (push_reload): Same.
11154         * simplify-rtx.c (simplify_subreg): Same.
11156         * reload1.c (choose_reload_regs): Same.
11158         * recog.c (register_operand): Same.
11160         * regrename.c (mode_change_ok): Change to use new
11161         CANNOT_CHANGE_MODE_CLASS infrastructure.
11163         * regclass.c (cannot_change_mode_set_regs): New.
11164         Declare subregs_of_mode.
11165         (regclass): Use subregs_of_mode.
11166         Remove references to reg_changes_mode.
11167         (init_reg_sets_1): Remove class_can_change_mode and
11168         reg_changes_mode code.
11169         (invalid_mode_change_p): New.
11170         (dump_regclass): Use invalid_mode_change_p instead of
11171         class_can_change_mode.
11172         (regclass): Same.
11173         (record_operand_costs): Do not set reg_changes_mode.
11175         * local-alloc.c (struct qty): Remove changes_mode field.
11176         (alloc_qty): Remove changes_mode initialization.
11177         (update_qty_class): Remove set of changes_mode.
11178         (find_free_reg): Use subregs_of_mode.
11180         * global.c (find_reg): Use subregs_of_mode info.
11182         * rtl.h (cannot_change_mode_set_regs): New prototype.
11183         (invalid_mode_change_p): Same.
11184         (REG_CANNOT_CHANGE_MODE_P): New macro.
11186         * flow.c (mark_used_regs): Calculate subregs_of_mode.  Remove
11187         REG_CHANGES_MODE.
11188         (life_analysis): Clear subregs_of_mode.
11190         * combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
11191         Remove use of CLASS_CANNOT_CHANGE_MODE.
11192         (simplify_set): Same.
11193         (gen_lowpart_for_combine): Calculate subregs_of_mode.  Remove
11194         REG_CHANGES_MODE.
11196         * regs.h: Add extern for subregs_of_mode;
11197         Include hard-reg-set and basic-block.
11198         (REG_CHANGES_MODE): Delete.
11200 2002-11-03  Roger Sayle  <roger@eyesopen.com>
11202         * real.c (real_sqrt): New function to calculate square roots.
11203         * real.h (real_sqrt): Add function prototype.
11204         * builtins.c (fold_builtin): Fold sqrt of constant argument.
11205         * simplify-rtx.c (simplify_unary_operation): Simplify sqrt
11206         of constant argument.
11208 2002-11-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11210         * jump.c (never_reached_warning): Don't set contains_insn until the
11211         first line note is seen.
11213 2002-11-03  David Edelsohn  <edelsohn@gnu.org>
11215         * config/rs6000/rs6000.md (movti_string): Use string instructions.
11217 2002-11-03  Roger Sayle  <roger@eyesopen.com>
11219         PR c/7128
11220         * c-typeck.c (c_expand_asm_operands): Defend against
11221         error_mark_nodes in the output argument to avoid ICE.
11223 2002-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
11225         PR middle-end/8408
11226         * genrecog.c (preds): Handle ADDRESSOF.
11227         (validate_pattern): Mark it as an lvalue.
11229 2002-11-02  David Edelsohn  <edelsohn@gnu.org>
11231         * config/rs6000/rs6000.c (rs6000_override_options): Use string
11232         instructions when optimizing for size.
11234 2002-11-02  Kazu Hirata  <kazu@cs.umass.edu>
11236         * config/h8300/h8300.h: Fix comment typos.
11237         * config/h8300/h8300.md: Likewise.
11238         * config/h8300/lib1funcs.asm: Likewise.
11240 2002-11-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11242         Revert this change:
11244         *doc/install.texi (Installing GCC: Configuration): Clarify
11245         the only supported ways to configure gcc.
11247 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
11249         * config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
11250         instead of 'O' for the constraint for the second operand.
11252 2002-11-01  Mark Mitchell  <mark@codesourcery.com>
11254         PR c++/8391
11255         * toplev.c (rest_of_compilation): Do not refuse to output code for
11256         an inline function in a local class.
11258 2002-11-01  David O'Brien  <obrien@FreeBSD.org>
11260         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
11261         (TRANSFER_FROM_TRAMPOLINE): Reformat.
11262         Add comment.
11264 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
11266         * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
11268 2002-11-01  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11270         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
11272 2002-11-01  Steve Ellcey  <sje@cup.hp.com>
11274         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
11275         (MASK_INLINE_DIV_THR): Remove.
11276         (TARGET_INLINE_DIV_LAT): Remove.
11277         (TARGET_INLINE_DIV_THR): Remove.
11278         (TARGET_INLINE_DIV): Remove.
11279         (MASK_INLINE_FLOAT_DIV_LAT): New macro.
11280         (MASK_INLINE_FLOAT_DIV_THR): New macro.
11281         (MASK_INLINE_INT_DIV_LAT): New macro.
11282         (MASK_INLINE_INT_DIV_THR): New macro.
11283         (TARGET_INLINE_FLOAT_DIV_LAT): New macro.
11284         (TARGET_INLINE_FLOAT_DIV_THR): New macro.
11285         (TARGET_INLINE_INT_DIV_LAT): New macro.
11286         (TARGET_INLINE_INT_DIV_THR): New macro.
11287         (TARGET_INLINE_FLOAT_DIV): New macro.
11288         (TARGET_INLINE_INT_DIV): New macro.
11289         * config/ia64/ia64.md (divsi3): Change to use new macros.
11290         (modsi3): Ditto.
11291         (udivsi3): Ditto.
11292         (umodsi3): Ditto.
11293         (divsi3_internal): Ditto.
11294         (divdi3): Ditto.
11295         (moddi3): Ditto.
11296         (udivdi3): Ditto.
11297         (umoddi3): Ditto.
11298         (divdi3_internal_lat): Ditto.
11299         (divdi3_internal_thr): Ditto.
11300         (divsf3): Ditto.
11301         (divsf3_internal_lat): Ditto.
11302         (divsf3_internal_thr): Ditto.
11303         (divdf3): Ditto.
11304         (divdf3_internal_lat): Ditto.
11305         (divdf3_internal_thr): Ditto.
11306         (divtf3): Ditto.
11307         (divtf3_internal_lat): Ditto.
11308         (divtf3_internal_thr): Ditto.
11309         * config/ia64/ia64.c (ia64_override_options): Change
11310         to check new macros for conflicts in settings.
11311         * doc/invoke.texi (-minline-divide-min-latency): Remove.
11312         (-minline-divide-max-throughput): Remove.
11313         (-minline-float-divide-min-latency): New.
11314         (-minline-float-divide-max-throughput): New.
11315         (-minline-int-divide-min-latency): New.
11316         (-minline-int-divide-max-throughput): New.
11318 2002-11-01  Richard Earnshaw  (rearnsha@arm.com)
11320         PR target/7856
11321         * arm.c (use_return_insn): Don't use a return insn if there are
11322         saved integer regs, but LR is not one of them.
11324 Fri Nov  1 10:33:15 CET 2002  Jan Hubicka  <jh@suse.cz>
11326         * expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
11327         * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
11329 Thu Oct 31 18:20:50 CET 2002  Jan Hubicka  <jh@suse.cz>
11331         * i386.md (sse_loadss, sse_loadsd):  Canonicalize; add expander
11332         (movps, movpd splitters): Use canonical form.
11333         (movv2di): Fix merge problem.
11335 Thu Oct 31 16:22:31 CET 2002  Jan Hubicka  <jh@suse.cz>
11337         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
11339 2002-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
11341         PR optimization/6162
11342         * doc/md.texi: Document restriction on commutative operand
11343         specification.
11345 2002-10-31  Eric Christopher  <echristo@redhat.com>
11347         * explow.c (convert_memory_address): Use shallow_copy_rtx.
11349 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
11351         * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
11353 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
11355         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
11357 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
11359         * config/rs6000/darwin.h:  Correct formatting in previous.
11361 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
11363         * config/rs6000/darwin.h:  Enable -falign-xxx options.
11365 Thu Oct 31 18:08:00 CET 2002  Jan Hubicka  <jh@suse.cz>
11367         * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
11368         flag_asynchronous_unwind_tables, flag_pcc_struct_return.
11369         * i386.c (optimization_options): Set flag_omit_frame_pointer,
11370         flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
11371         Do not clear -momit-leaf-frame-pointer when profiling.
11372         (ix86_frame_pointer_required): Frame pointer is always required when
11373         profiling.
11375 Thu Oct 31 16:09:44 CET 2002  Jan Hubicka  <jh@suse.cz>
11377         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
11379 Thu Oct 31 12:45:55 2002  J"orn Rennecke <joern.rennecke@superh.com>
11381         * sh.h (binary_logical_operator): Declare.
11382         * sh.c (binary_logical_operator): New function.
11383         * sh.md (xordi3+1): New combiner splitter pattern.
11385 2002-10-31  David O'Brien  <obrien@FreeBSD.org>
11387         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
11388         __enable_execute_stack function.
11390 2002-10-30  Zack Weinberg  <zack@codesourcery.com>
11392         * gthr.h, gthr-dce.h, gthr-posix.h, gthr-rtems.h,
11393         gthr-solaris.h, gthr-win32.h: Remove __gthread_key_dtor.
11394         * unwind-sjlj.c (fc_key_dtor): Delete.
11395         (fc_key_init): Adjust __gthread_key_create call to match.
11397 2002-10-30  Aldy Hernandez  <aldyh@redhat.com>
11399         * c-common.c: Add GTY to vector_type_node_list.
11401 2002-10-30  John David Anglin  <dave@hiauly.hia.nrc.ca>
11403         * pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
11404         * pa-protos.h (attr_length_millicode_call, attr_length_call,
11405         pa_init_machine_status): Declare new global functions.
11406         * pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
11407         implement new functions.
11408         (attr_length_millicode_call, attr_length_call): Implement.
11409         (total_code_bytes): Change type to long.
11410         (pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
11411         Reset counter if flag_function_sections.
11412         (output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
11413         (output_cbranch): Move call to gen_label_rtx.
11414         (output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
11415         delay slot in all variants, shorten pc-relative calls.
11416         (output_call): Rewrite adding long TARGET_64BIT call, improved delay
11417         slot usage and exposure, various new call variants, and shortened
11418         sequences for some variants on TARGET_PA_20.
11419         Miscellaneous format changes.
11420         * pa.h (total_code_bytes): Change type to long.
11421         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
11422         TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
11423         (TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
11424         (EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
11425         LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
11426         stores on TARGET_ELF32.
11427         *pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
11428         (unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
11429         canonicalize_funcptr_for_compare expanders): Calculate attribute length
11430         attr_length_millicode_call().
11431         (call_internal_symref, call_value_internal_symref): Clobber register 1.
11432         Calculate attribute length using attr_length_call().
11433         (call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
11434         to delay slot.
11435         (sibcall, sibcall_value): Rewrite.
11436         (sibcall_internal_symref, sibcall_value_internal_symref): Clobber
11437         register 1.  Use attr_length_call().
11438         (sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
11439         New patterns.
11440         (unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
11441         * som.h (MEMBER_TYPE_FORCES_BLK): Define.
11442         * t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
11443         * doc/invoke.texi (mlong-calls): Document.
11445 2002-10-30  Roger Sayle  <roger@eyesopen.com>
11447         * fold-const.c (fold_binary_op_with_conditional_arg):  Improve
11448         handling of cases where one or both branches of the conditional
11449         have void type, i.e. throw an exception or don't return.
11450         (fold): Only apply (and undo) type conversion to the non-void
11451         branches of a COND_EXPR.
11453 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
11455         PR c++/8333
11456         * varasm.c (asm_output_aligned_bss): Do not call
11457         ASM_GLOBALIZE_LABEL.
11459 2002-10-30  David Edelsohn  <edelsohn@gnu.org>
11460             Torbjorn Granlund  <tege@swox.com>
11462         * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
11463         for addressibility.
11464         (load_toc_v4_PIC_1b): Same.
11466 2002-10-30  Kazu Hirata  <kazu@cs.umass.edu>
11468         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
11469         Truncate the addresses for H8/300 using HImode.
11471 Tue Oct 29 23:28:10 CET 2002  Jan Hubicka  <jh@suse.cz>
11473         * i386.md (negdf splitter): Fix construction of the constant.
11475 Tue Oct 29 20:47:06 CET 2002  Jan Hubicka  <jh@suse.cz>
11477         * i386.md (negsf, negdf): Reorganize to use vector modes
11478         for SSE variants.
11479         (abssf, absdf): Use force_reg.
11480         (movv4sf, movv2df): New splitters.
11481         * i386.h (PREDICATE_CODES): add zero_extended_scalar_load_operand
11482         * i386.c (zero_extended_scalar_load_operand
11484         * i386-protos.h (ix86_expand_call): Update prototype.
11485         * i386.c (ix86_function_ok_for_sibcall): Handle 64bit
11486         (ix86_expand_call): Use r11 for indirect sibcalls.
11487         * i386.md (call, call_value, untyped_call, call_value_pop):
11488         update x86_expand_call call.
11489         (sibcall, sibcall_value): new patterns
11490         (call_rex64, call_value_rex64): Do not accept sibcalls.
11491         (sibcall_rex64, sibcall_value_rex64,
11492         sibcall_rex64_v, sibcall_value_rex64_v): New.
11494 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
11496         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
11497         before final pass.
11499 2002-10-29  Hans-Peter Nilsson  <hp@bitrange.com>
11501         * toplev.c (rest_of_type_compilation): Return early in case of
11502         errors.
11503         (check_global_declarations): Don't call debug_hooks->global_decl
11504         in case of errors.
11506 2002-10-28  Andreas Bauer  <baueran@in.tum.de>
11508         * doc/c-tree.texi (Tree overview): Fix typos.
11510 2002-10-29  Phil Edwards  <pme@gcc.gnu.org>
11512         * Makefile.in (gnucompare*):  Only record bad comparisons
11513         if there really was a bad comparison.
11515 Tue Oct 29 19:32:16 CET 2002  Jan Hubicka  <jh@suse.cz>
11517         * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
11518         * i386.md (movsf*, movdf*): Use 'C' instead of 'H'
11519         * md.texi (machine dependent constraints): Document 'C'
11521         * simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
11523         * i386.c (ix86_expand_vector_move): Fix.
11525         * i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
11526         * i386.md (sse2_maskmovdqu_rex64): New pattern
11528         PR target/8322
11529         * xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
11530         (ix86_init_mmx_sse_builtins): Fix type.
11532 2002-10-29  Jason Thorpe  <thorpej@wasabisystems.com>
11534         * gthr-posix.h: Include <unistd.h> for feature tests.
11535         (sched_get_priority_max, sched_get_priority_min)
11536         (pthread_getschedparam, pthread_setschedparam): Only use
11537         if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
11538         (__gthread_objc_thread_set_priority): Don't treat all nonzero
11539         returns from sched_get_priority_max and sched_get_priority_min
11540         as an error.
11542 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11544         * config/h8300/h8300.h (TARGET_DEFAULT): Make it
11545         MASK_QUICKCALL.
11547 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11549         * config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
11550         (h8300_tiny_constant_address_p): Likewise.
11551         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
11552         h8300_eightbit_constant_address_p.
11553         (TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
11554         * config/h8300/h8300-protos.h: Add the prototypes for the two
11555         new functions.
11557 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11559         * reload1.c (update_eliminables): Unconditionally check if
11560         frame_pointer_needed has changed.
11562 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
11564         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
11565         before final pass.
11567 2002-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
11569         PR optimization/8334
11570         * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
11571         check for zero operands explicitly.
11573 2002-10-29  Richard Sandiford  <rsandifo@redhat.com>
11575         * config/mips/mips.md (extv, extzv, insv): Set size of referenced
11576         memory after adjusting to BLKmode.
11578 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
11580         * config/h8300/h8300.h (MASK_*): New.
11581         (TARGET_*): Use MASK_*.
11583 2002-10-28  Zack Weinberg  <zack@codesourcery.com>
11585         * config.gcc (*-*-vxworks, powerpc-wrs-vxworks*): New stanzas.
11586         * config/t-vxworks, config/vxworks.h, config/rs6000/t-vxworks,
11587         config/rs6000/vxworks.h: New files.
11588         * config/rs6000/sysv4.h: Rip out -mvxworks and all related code.
11590         * config.gcc (alpha*-*-vxworks*, arm-*-vxworks*,
11591         i?86-wrs-vxworks*, i960-wrs-vxworks* [all],
11592         m68k-wrs-vxworks*, mips-wrs-vxworks, powerpc-wrs-vxworks*,
11593         powerpcle-wrs-vxworks*, sparc*-wrs-vxworks* [all],
11594         sparc-*-vxsim*): Delete stanzas.
11595         * gthr-vxworks.h: Rip out all substantive code and just
11596         include gthr-single.h.
11598         * config/alpha/vxworks.h, config/arm/vxarm.h,
11599         config/i386/vxi386.h, config/i960/t-vxworks960,
11600         config/i960/vx960-coff.h, config/i960/vx960.h,
11601         config/m68k/t-vxworks68, config/m68k/vxm68k.h,
11602         config/mips/vxworks.h, config/rs6000/vxppc.h,
11603         config/sparc/t-vxsparc, config/sparc/t-vxsparc64,
11604         config/sparc/vxsim.h, config/sparc/vxsparc.h,
11605         config/sparc/vxsparc64.h: Delete files.
11607 2002-10-28  Jason Thorpe  <thorpej@wasabisystems.com>
11609         * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
11610         tm_defines if pthreads are enabled.
11611         * config/netbsd.h (LIB_SPEC): Only support the -pthread option
11612         if NETBSD_ENABLE_PTHREADS is defined.
11614 2002-10-28  Kazu Hirata  <kazu@cs.umass.edu>
11616         * ChangeLog.1: Fix typos.
11617         * cse.c: Fix a comment typo.
11618         * reload1.c: Likewise.
11620 2002-10-27  Hans-Peter Nilsson  <hp@bitrange.com>
11622         * fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
11623         * fixinc/tests/base/_G_config.h: New file.
11625 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
11627         * combine.c: Fix comment formatting.
11628         * loop.c: Likewise.
11629         * real.c: Likewise.
11630         * regclass.c: Likewise.
11631         * regmove.c: Likewise.
11632         * regrename.c: Likewise.
11633         * reg-stack.c: Likewise.
11634         * reload1.c: Likewise.
11635         * reload.c: Likewise.
11636         * reload.h: Likewise.
11637         * unroll.c: Likewise.
11639 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
11641         * reload1.c (reload): Fix a comment typo.
11643 Sun Oct 27 10:15:24 CET 2002  Jan Hubicka  <jh@suse.cz>
11645         * linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.
11647 2002-10-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11649         * Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
11650         * dwarf2out.c: Include hashtab.h.
11651         (is_main_source): New static variable.
11652         (attr_checksum, die_checksum): Modified to handle die references.
11653         (same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
11654         unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
11655         record_comdat_symbol_number): New static functions.
11656         (output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
11657         mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
11658         * toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
11659         declarations added.
11661 2002-10-26  Kazu Hirata  <kazu@cs.umass.edu>
11663         * config/h8300/h8300.c (initial_offset): Change to
11664         h8300_initial_elimination_offset.
11665         * config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
11666         h8300_initial_elimination_offset.
11667         * config/h8300/h8300-protos.h: Update the prototype.
11669 2002-10-26  Hans-Peter Nilsson  <hp@bitrange.com>
11671         * config/mmix/mmix.h (LIBCALL_VALUE): Use
11672         MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
11673         (FUNCTION_VALUE_REGNO_P): Similar, but move code to...
11674         * config/mmix/mmix.c (mmix_function_value_regno_p): New.
11675         * config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
11676         and RTX_CODE.
11677         (mmix_function_value_regno_p): Declare.
11679         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
11680         invalid for floating point mode result, with fix.
11682 Fri Oct 25 00:04:21 2002  Alexandre Oliva  <aoliva@redhat.com>
11684         * Makefile.in (GCC_FOR_TARGET): Add -L$(objdir)/../ld.
11685         (STAGE2_FLAGS_TO_PASS): Pass GCC_FOR_TARGET.
11686         (stage1_build): Likewise.
11688 2002-10-25  Mike Stump  <mrs@apple.com>
11690         Fixes gcc.dg/warn-1.c.
11691         * c-typeck.c (warn_for_assignment): Don't print argument number,
11692         if zero.
11694 Sat Oct 26 01:44:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
11696         * toplev.c (dump_file_index): Add DFI_ce3.
11697         (dump_file_info): Likewise.
11698         (rest_of_compilation): Run first ifcvt pass before tracer.
11700 2002-10-25  Steve Ellcey  <sje@cup.hp.com>
11702         * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
11704 2002-10-25  Richard Henderson  <rth@redhat.com>
11706         * real.c (real_to_decimal): If the >1 tens reduction loop results
11707         in a negative exponent, fall into the <1 pten computation.
11709 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
11711         PR middle-end/6994
11712         * c-objc-common.c (inline_forbidden_p): Can not inline
11713         functions containing structures or unions containing VLAs.
11714         * tree-inline.c (walk_tree): For all class 't' nodes, walk
11715         TYPE_SIZE and TYPE_SIZE_UNIT.
11716         (copy_tree_r): Copy types if they are variably modified.
11718 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
11720         * config/s390/s390.md: Remove old-style peepholes.
11722 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
11724         * config/s390/s390.c (s390_decompose_address): Do not range check the
11725         displacement if base or index is the argument pointer register.
11727 2002-10-24  Hans-Peter Nilsson  <hp@bitrange.com>
11729         PR other/3337
11730         PR bootstrap/6763
11731         PR bootstrap/8122
11732         * fixinc/inclhack.def (libc1_G_va_list): New fix.
11733         * fixinc/fixincl.x: Regenerate.
11734         * config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
11735         ifndef IN_LIBGCC2.  Wrap it together with signal.h and
11736         sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
11737         * configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
11738         * config.in, configure: Regenerate.
11740 2002-10-24  Igor Shevlyakov <igor@microunity.com>
11742         * varasm.c (struct rtx_const): Array size 16 for V16QImode.
11744 2002-10-24  Richard Henderson  <rth@redhat.com>
11746         * config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
11748 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11750         * config/h8300/h8300.c (initial_offset): Simplify by using
11751         round_frame_size.
11753 2002-10-24  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11755         * doc/install.texi (avr): Update required binutils version.
11757 2002-10-24  Theodore A. Roth  <troth@openavr.org>
11759         * doc/install.texi: Point avr users at more up-to-date information.
11761 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
11763         * config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
11764         to pull operands out of the literal pool where possible.
11766 2002-10-24  Denis Chertykov  <denisc@overta.ru>
11768         * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
11770 2002-10-24  Steve Ellcey  <sje@cup.hp.com>
11772         * expr.c (convert_move): If unsignedp is less then zero there
11773         is no equivalent code.
11775 2002-10-24  Zack Weinberg  <zack@codesourcery.com>
11777         * tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
11779 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
11781         * config/s390/s390.h: Rework comments; re-sort target macro definitions
11782         according to the sequence they are defined in the manual.
11783         (POINTER_BOUNDARY): Remove.
11785 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11787         * config/h8300/h8300.c (round_frame_size): Replace 8 with
11788         BITS_PER_UNIT.
11790 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
11792         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
11793         64-bit safe.
11794         (TINY_CONSTANT_ADDRESS_P): Likewise.
11796 2002-10-24  Richard Henderson  <rth@redhat.com>
11798         * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
11799         (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
11800         vcall offset.
11802 2002-10-24  Richard Henderson  <rth@redhat.com>
11804         PR opt/7944
11805         * reload.c (find_reloads_toplev): Mode of X is not important
11806         when simplifying subregs of constants.
11808 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
11810         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
11811         MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
11812         * config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
11813         (override_options): Base default setting of MASK_SOFT_FLOAT on -march
11814         if MIPS_MARCH_CONTROLS_SOFT_FLOAT.
11816 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
11818         * optabs.c (expand_binop): Don't reuse the shift target in the
11819         middle of shift sequences.
11821 Wed Oct 23 22:48:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
11823         * i386.md (abs splitters): Do not produce nested subregs.
11825 Wed Oct 23 12:42:32 CEST 2002  Jan Hubicka  <jh@suse.cz>
11827         * i386.md (movti_rex64): Fix constraints.
11829 Wed Oct 23 12:01:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
11831         * i386.md (abssf,absdf): Use vector operands for SSE
11832         (abssf2_ifs, absdf2_ifs, absdf2_ifs_rex64 and splitters): Update for
11833         vector operand.
11835 2002-10-23  Ziemowit Laski <zlaski@apple.com>
11837         * objc/objc-act.c (get_static_reference): Remove unneeded
11838         TYPE_BINFO initialization.
11839         (get_object-reference): Likewise.
11840         (build_constructor): Tighten precondition check.
11841         (finish_message_expr): Likewise.
11843 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
11845         * config/i386/i386.c (local_symbolic_operand): Move LABEL_REF test
11846         after CONST test.
11848 2002-10-23  Steve Ellcey  <sje@cup.hp.com>
11850         * config/ia64/ia64.c (hfa_element_mode): Don't allow 128 bit floats
11851         in HFAs.
11853 2002-10-23  Richard Henderson  <rth@redhat.com>
11855         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
11856         (alpha_output_mi_thunk_osf): Handle vcall_offset.
11858 2002-10-23  Zack Weinberg  <zack@codesourcery.com>
11860         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
11861         var_mod_type_p.
11862         * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
11863         hook_tree_bool_false.
11865         * tree.c (variably_modified_type_p): Moved here from
11866         cp/tree.c.  Use lang_hooks.tree_inlining.var_mod_type_p for
11867         language-specific cases.  Due to this, must weaken some 'if
11868         and only if' checks to merely 'if'.
11869         * tree.h: Prototype variably_modified_type_p.
11871         * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end.
11873 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
11875         * config/s390/linux.h (CC1_SPEC, CC1PLUS_SPEC): Remove.
11876         * config/s390/s390.c (optimization_options): Disable -fcaller-saves.
11878         * config/s390/s390-protos.h (fp_operand): Remove.
11879         * config/s390/s390.c (fp_operand): Remove.
11880         * config/s390/s390.md ("movdi"): Replace fp_operand by FP_REG_P.
11881         ("*movdi_lhi", "*movdi_lli", "*movdi_larl"): Likewise.
11882         ("movsi", "*movsi_lhi", "*movsi_lli"): Likewise.
11883         (movdi_31, movdf_31 splitters): Likewise.
11885         * config/s390/s390.h (IEEE_FLOAT): Remove.
11886         (TARGET_FLOAT_FORMAT): Define in terms of TARGET_IEEE_FLOAT.
11887         (INT_REGNO_P): Rename to ...
11888         (GENERAL_REGNO_P): ... this.
11889         (FLOAT_REGNO_P): Rename to ...
11890         (FP_REGNO_P): ... this.
11891         (ADDR_REGNO_P): New macro.
11892         (GENERAL_REG_P, ADDR_REG_P, FP_REG_P, CC_REG_P): New macros.
11893         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
11894         (DATA_REG_P, FP_REG_P, ADDRESS_REG_P): Likewise.
11895         (HARD_REGNO_NREGS): Adapt to macro renaming.
11896         (HARD_REGNO_MODE_OK): Likewise.
11898 2002-10-23  David Edelsohn  <edelsohn@gnu.org>
11899             Geoff Keating  <geoffk@apple.com>
11901         * config/rs6000/rs6000.c (rs6000_register_move_cost): New function.
11902         (rs6000_memory_move_cost): New function.
11903         * config/rs6000/rs6000-protos.h: Declare them.
11904         * config/rs6000/rs6000.h: Use them.
11906 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
11908         * libgcc2.c (__udiv_w_sdiv): Use attribute ((always_inline)) when
11909         inlining it into other libgcc2 routines.
11910         (__udivmoddi4): Likewise.
11912 2002-10-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11914         * doc/sourcebuild.texi (Test Suites): Improve.
11916 2002-10-22  Stan Shebs  <shebs@apple.com>
11918         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Add missing
11919         case for Darwin.
11921 2002-10-22  Jim Wilson  <wilson@redhat.com>
11923         * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
11925 Wed Oct 23 01:52:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
11927         PR other/8289
11928         * xmmintrin.h: Add const to the argument of loads.
11930         * i386.md (pushv2di): New pattern.
11931         PR target/6890
11932         * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
11934 2002-10-22  Richard Henderson  <rth@redhat.com>
11936         * target.h (gcc_target.asm_out): Merge output_mi_thunk and
11937         output_mi_vcall_thunk into a single hook.  Add can_output_mi_thunk.
11938         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
11939         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
11940         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11941         (TARGET_ASM_OUT): Update.
11942         * hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
11943         (hook_bool_tree_hwi_hwi_tree_true): New.
11944         (default_can_output_mi_thunk_no_vcall): New.
11945         * hooks.h: Declare them.
11946         * system.h (ASM_OUTPUT_MI_THUNK): Poison.
11948         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11949         (alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
11950         * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
11951         config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
11952         config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
11953         config/stormy16/stormy16.c: Similarly.
11955         * config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
11956         Handle 64-bit properly.  Streamline.
11957         (x86_output_mi_vcall_thunk): Remove.
11958         (x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
11959         (x86_can_output_mi_thunk): New.
11960         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
11961         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11962         (override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.
11964         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
11965         output_mi_thunk; make static; always use function_section.
11966         (TARGET_ASM_OUTPUT_MI_THUNK): New.
11967         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11968         (rs6000_ra_ever_killed): Test no_new_pseudos not
11969         targetm.asm_out.output_mi_thunk in conjunction with thunks.
11970         * config/rs6000/rs6000-protos.h: Update.
11971         * config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11972         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
11973         xcoffout_declare_function when using rs6000_output_mi_thunk.
11975         * config/s390/s390.c (s390_output_mi_thunk): Rename from
11976         s390_output_mi_vcall_thunk.
11977         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
11978         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11980         * config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
11981         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
11982         * config/vax/vax-protos.h: Update.
11983         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.
11985 Wed Oct 23 00:33:11 CEST 2002  Jan Hubicka  <jh@suse,cz>
11987         * i386.c (standard_sse_constant_p): Accept vector and integer zeros too.
11988         * i386.h (EXTRA_CONSTRAINT): Recognize 'C'
11989         * i386.md (movti_internal): Use 'C'
11991         * xmmintrin.h (_mm_cmplt_epi*): New.
11993 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
11995         * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
11996         ("*movdf_64"): Likewise.
11997         ("*lshrdi3_64"): Likewise.
11998         ("blockage"): Add length attribute.
11999         ("lit"): Likewise.
12001 Tue Oct 22 23:51:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
12003         * i386.md: FIx typo.
12004         (sse2_cvtsi2sd, sse2_pslrdq): Fix template.
12005         (sse2_umulv2siv2di3): Fix predicate.
12006         (sse2_psadbw, ashrv8hi3, ashrv4si3, lshrv8hi3 lshrv4si3,
12007         lshrv2di3, ashlv8hi3, ashlv4si3, ashlv2di3): Likewise.
12008         * xmmintrin.h (_mm_mul_epu16): Rename to...
12009         (_mm_mul_epu32): This one.
12010         (_mm_cvtsi32_si128, _mm_cvtsi128_si32): New.
12012         (contains_128bit_aligned_vector_p): Undo accidental checkin.
12014 2002-10-22  Eric Christopher  <echristo@redhat.com>
12016         * config/sparc/sparc.h: Add #error.
12018 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
12020         * config.gcc [s390-*-linux]: Remove s390/t-linux from tmake_file.
12021         [s390x-*-linux*]: Likewise.
12022         * config/s390/t-linux: Remove.
12023         * config/s390/s390.h: Include fixdfdi.h when building libgcc2.
12025 Tue Oct 22 19:07:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
12027         * i386.c (builtin_description): Add IX86_BUILTIN_PUNPCKHQDQ128.
12028         (ix86_expand_builtin): Fix MASKMOVDQU expasion.
12029         * i386.h (ix86_builtins): Add IX86_BUILTIN_PUNPCKHQDQ128.
12030         * i386.md (mmx_punpck?dq): Simplify.
12031         (sse2_pubpcklqdq): Fix.
12032         (sse2_pubpckhqdq): New.
12033         * xmmintrin.h (_mm_unpackhi_epi32): New.
12035         * xmmintrin.h (_mm_cvt*, _mm_stream_pd): Fix prototypes.
12036         (_mm_shufflehi_epi16, _mm_shufflelo_epi16): Fix typo.
12038 2002-10-22  Nathan Sidwell  <nathan@codesourcery.com>
12040         PR c++/7209
12041         * fold_const.c (fold_binary_op_with_conditional_arg): Always
12042         build compound_expr if we used save_expr.
12044 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
12046         * output.h (SECTION_NOTYPE): Define.
12047         * varasm.c (default_section_type_flags_1): Set SECTION_NOTYPE for
12048         init array sections.
12049         (default_elf_asm_named_section): Mind SECTION_NOTYPE.
12050         * config/arm/arm.c (arm_elf_asm_named_section): Likewise.  Also
12051         merge TLS support.
12053 2002-10-21  Richard Henderson  <rth@redhat.com>
12055         * config/i386/i386.c (ix86_function_ok_for_sibcall): Look at
12056         the function type, not the return type.
12058 2002-10-21  Richard Henderson  <rth@redhat.com>
12060         * real.c (sticky_rshift_significand): Return inexact, don't
12061         or it in immediately.
12062         (sub_significands): Accept incomming carry.
12063         (div_significands, rtd_divmod): Update for sub_significands change.
12064         (round_for_format): Update for sticky_rshift_significand change.
12065         (do_add): Don't involve the inexact bit in addition, do give the
12066         inexact bit as the subtraction carry-in.
12067         (encode_internal, decode_internal, real_internal_format): New.
12068         * real.h (real_internal_format): Declare.
12070 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
12072         * libgcc2.c: Fix __udiv_w_sdiv breakage on platforms that
12073         don't define sdiv_qrnnd.
12075 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
12077         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
12078         using IN_RANGE.
12079         (TINY_CONSTANT_ADDRESS_P): Likewise.
12081 Tue Oct 22 00:04:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
12083         * i386.c (builtin_description): Add punpcklqdq and movdq2q
12084         (ix86_init_mmx_sse_builtins): Add v2di_ftype_void, di_ftype_v2di,
12085         v16qi_ftype_pchar, void_ftype_pchar_v16qi, v4si_ftype_pchar,
12086         void_ftype_pchar_v4si; Initialize __builtin_ia32_movdq2q,
12087         __builtin_ia32_loaddqa, __builtin_ia32_loaddqu, __builtin_ia32_loadd
12088         __builtin_ia32_storedqa, __builtin_ia32_storedqu, __builtin_ia32_stored
12089         __builtin_ia32_setzero128.
12090         (ix86_expand_builtin): Handle IX86_BUILTIN_CLRTI, IX86_BUILTIN_LOADDQA,
12091         IX86_BUILTIN_LOADDQU, IX86_BUILTIN_LOADD, IX86_BUILTIN_STOREDQA,
12092         IX86_BUILTIN_STOREDQU, IX86_BUILTIN_STORED, Ix86_BUILTIN_MOVQ.
12093         * i386.h (ix86_builtins): Add IX86_BUILTIN_LOADDQA, IX86_BUILTIN_LOADDQU,
12094         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_STOREDQU, IX86_BUILTIN_LOADD,
12095         IX86_BUILTIN_STORED, IX86_BUILTIN_CLRTI, IX86_BUILTIN_MOVDQ2Q,
12096         IX86_BUILTIN_PUNPCKLQDQ128, Ix86_BUILTIN_MOVQ.
12097         * i386.md (sse2_punpcklqdq, sse2_movqsse2_loadd, sse2_stored,
12098         sse2_movq): New patterns.
12099         (sse2_movdqa, sse2_movdqu, sse2_movdq2q): Fix.
12100         * xmmintrin.h (_mm_load_si128, _mm_loadu_si128, _mm_loadl_epi64,
12101         _mm_store_si128, _mm_storeu_si128, _mm_storel_epi64,
12102         _mm_setzero_si128, _mm_set_epi64, _mm_set_epi32, _mm_set_epi16,
12103         _mm_set_epi8, _mm_set1_epi64, _mm_set1_epi32, _mm_set1_epi16,
12104         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
12105         _mm_setr_epi8, _mm_unpacklo_epi64,_mm_set_moveq): New functions.
12106         (_mm_insert_epi16): Fix.
12108 2002-10-21  Dale Johannesen  <dalej@apple.com>
12110         * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
12111             unsafe math reversals correctly for RTL generation.
12112           (output_cbranch):  Replace rs6000_reverse_condition call
12113             by its former definition.
12115 2002-10-21  Jakub Jelinek  <jakub@redhat.com>
12117         * config/i386/i386.c (x86_64_sign_extended_value): Add allow_rip
12118         argument.  In CM_SMALL_PIC model consider SYMBOL_REFs binding locally or
12119         from constant pool or LABEL_REFs as sign extended if allow_rip.
12120         Change all +-1GB limits to +-16MB.
12121         (x86_64_general_operand, x86_64_szext_general_operand,
12122         x86_64_nonmemory_operand, x86_64_movabs_operand,
12123         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
12124         legitimate_address_p, ix86_expand_int_movcc): Update callers.
12125         (local_symbolic_operand): Don't allow offsets bigger than +-16MB
12126         in CM_SMALL_PIC model.
12127         (legitimate_pic_address_disp_p): Don't check offsets before
12128         calling local_symbolic_operand.
12129         (legitimize_pic_address): Force offsets bigger than +-16MB into
12130         register.
12131         * config/i386/i386.h (EXTRA_CONSTRAINT, CONST_COSTS): Likewise.
12132         * config/i386/i386-protos.h (x86_64_sign_extended_value): Update
12133         prototype.
12135         * configure.in: Test for @GOTNTPOFF and @INDNTPOFF on IA-32 too.
12136         Add x86-64 test.  Set tls_first_minor to 14 on IA-32 and x86-64.
12137         * configure: Rebuilt.
12138         * config/i386/i386.c (x86_64_sign_extended_value): Don't allow TLS
12139         SYMBOL_REFs unless enclosed in UNSPEC.  Handle UNSPEC_DTPOFF,
12140         UNSPEC_GOTNTPOFF and UNSPEC_NTPOFF.
12141         (legitimate_address_p): Allow foo@dtpoff(base) even on TARGET_64BIT
12142         -fpic.
12143         (ix86_encode_section_info): Don't ever generate TLSGD or TLSLD for
12144         non-pic code if TARGET_64BIT.
12145         (legitimize_address): Generate 64-bit TLS sequences.
12146         (output_pic_addr_const): Support x86-64 TLS operators.
12147         (i386_output_dwarf_dtprel): Output 64-bit DTPOFF as .long f@DTPOFF, 0.
12148         (print_operand_address): Use %fs instead of %gs on TARGET_64BIT.
12149         Don't append (%rip) in 64-bit TLSGD and TLSLD sequences.
12150         (output_addr_const_extra): Support x86-64 TLS operators.
12151         (maybe_get_pool_constant): Handle TARGET_64BIT -fpic.
12152         (ix86_tls_get_addr): Use __tls_get_addr on TARGET_64BIT
12153         unconditionally.
12154         * config/i386/i386.md (*tls_global_dynamic_gnu): Renamed to...
12155         (*tls_global_dynamic_32_gnu): ..., add !TARGET_64BIT.
12156         (*tls_global_dynamic_sun): Renamed to...
12157         (*tls_global_dynamic_32_sun): ..., add !TARGET_64BIT.
12158         (tls_global_dynamic): Renamed to...
12159         (tls_global_dynamic_32): ... this.
12160         (tls_global_dynamic_64, *tls_global_dynamic_64): New.
12161         (*tls_local_dynamic_base_dynamic_gnu): Renamed to...
12162         (*tls_local_dynamic_base_dynamic_32_gnu): ..., add !TARGET_64BIT.
12163         (*tls_local_dynamic_base_dynamic_sun): Renamed to...
12164         (*tls_local_dynamic_base_dynamic_32_sun): ..., add !TARGET_64BIT.
12165         (tls_local_dynamic_base_dynamic): Renamed to...
12166         (tls_local_dynamic_base_dynamic_32): ... this.
12167         (tls_local_dynamic_base_dynamic_64,
12168         *tls_local_dynamic_base_dynamic_64): New.
12169         (*tls_local_dynamic_once): Renamed to...
12170         (*tls_local_dynamic_32_once): ... this.
12172 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
12174         * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
12175         __divdi3, __umoddi3, or __moddi3.
12177 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
12179         * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
12180         instead of just opt_index as switch expression.
12182         * calls.c (store_one_arg): Change type of 'excess_align'
12183         to unsigned int.
12185         * profile.c (output_gcov_string): Change type of 'temp'
12186         to size_t.
12188 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
12190         * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
12191         (__fixunssfdi, __fixsfdi): Likewise.
12192         * config/s390/s390.c (s390_single_hi): Initialize 'value'.
12193         (s390_single_qi): Likewise.
12194         (s390_emit_epilogue): Initialize 'offset'.  Remove signed vs.
12195         unsigned comparison warning.
12196         (s390_return_addr_rtx): New function.
12197         * config/s390/s390-protos.h (s390_return_addr_rtx): Declare it.
12198         * config/s390/s390.h (RETURN_ADDR_RTX): Use it.
12199         (HARD_REGNO_MODE_OK): Rewrite condition to silence warnings.
12201 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
12203         * config/s390/s390.c (s390_output_mi_vcall_thunk): New function.
12204         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define target hook.
12205         (s390_output_mi_thunk): Remove.
12206         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
12208 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
12210         * config/h8300/h8300.h (N_REG_CLASSES): Parenthesize.
12212 2002-10-20  Zack Weinberg  <zack@codesourcery.com>
12214         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix an
12215         inverted test in the conditional determining the possibility
12216         of sibcalls in PIC mode.
12218 2002-10-20  Richard Henderson  <rth@redhat.com>
12220         * target.h (struct gcc_target): Line wrap.
12222         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Static.
12223         (TARGET_ASM_OUTPUT_MI_THUNK): Define here...
12224         * config/alpha/alpha.h: ... not here.
12225         * config/alpha/alpha-protos.h: Update.
12227         * config/arm/arm.c, config/arm/arm.h, config/arm/arm-protos.h
12228         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
12229         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
12230         config/i386/i386-protos.h, config/i386/i386.c, config/i386/openbsd.h,
12231         config/i386/unix.h, config/i960/i960-protos.h, config/i960/i960.c,
12232         config/i960/i960.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
12233         config/ia64/ia64.h, config/m68k/linux.h, config/m68k/m68k-protos.h,
12234         config/m68k/m68k.c, config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
12235         config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h,
12236         config/pa/pa-protos.h, config/pa/pa.c, config/pa/pa.h,
12237         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
12238         config/sparc/openbsd.h, config/sparc/sparc-protos.h,
12239         config/sparc/sparc.c, config/sparc/sparc.h,
12240         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
12241         config/stormy16/stormy16.h: Similarly.
12243         * config/m68k/m68k.c (m68k_output_mi_thunk): Replicate mnemonic
12244         selection logic from call patterns.
12246 2002-10-20  Mark Mitchell  <mark@codesourcery.com>
12248         * config/m68k/m68k.c (m68k_output_mi_thunk): Fix typo.
12250 2002-10-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12252         PR other/8202
12253         * i386.c (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Define and
12254         expand __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128.
12255         * i386.h (IX86_BUILTIN_PSLLDQI128, IX86_BUILTIN_PSRLDQI128): New.
12256         * xmmintrin.h (_mm_srli_si128, _mm_slli_si128): New.
12258 2002-10-20  Roger Sayle  <roger@eyesopen.com>
12260         PR c/761
12261         * toplev.c (flag_unsafe_profile_arcs): Remove.
12262         (flag_bounded_pointers): Remove.
12263         (flag_bounds_check): Correct comments.
12264         (lang_independent_options): Remove -funsafe-profile-arcs and
12265         -fbounded-pointers.  Correct -fbounds-check comments.
12267         * flags.h: Correct flag_schedule_interblock comments.
12268         (flag_bounded_pointers): Remove prototype.
12269         (flag_bounds_check): Correct comments.
12271         * c-opts.c (c_common_init_options): No need to mark
12272         flag_bounds_check as unspecified.
12273         (c_common_post_options): And no need to set it from
12274         flag_bounded_pointers if its still unspecified.
12276         * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
12277         Document --version, -feliminate-dwarf-2-dups, -fno-sched-interblock,
12278         -fno-sched-spec, -fsched-spec-load, -fsched-spec-load-dangerous,
12279         -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
12281 Sat Oct 19 22:02:28 2002  Alexandre Oliva  <aoliva@redhat.com>
12282         Angela Marie Thomas  <angela@releasedominatrix.com>
12283         Brendan Kehoe  <brendan@zen.org>
12284         Nick Clifton  <nickc@redhat.com>
12285         Andrew Haley  <aph@redhat.com>
12287         * configure.in (--with-sysroot): New.  Don't inhibit libc if
12288         given.  AC_SUBST TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE
12289         and CROSS_SYSTEM_HEADER_DIR.
12290         * configure: Rebuilt.
12291         * Makefile.in (CROSS_SYSTEM_HEADER_DIR): Set in configure.
12292         (TARGET_SYSTEM_ROOT): New.
12293         (DRIVER_DEFINES): Define CROSS_INCLUDE_DIR from
12294         CROSS_SYSTEM_HEADER_DIR.
12295         (install-gcc-tooldir): New target.
12296         (stmp-fixinc): Do not create $(libsubdir), but rather bail out
12297         if SYSTEM_HEADER_DIR does not exist and it's not the default
12298         sys-include directory.
12299         (deduced.h, stmp-fixproto): Quote SYSTEM_HEADER_DIR properly.
12300         (install-mkheaders): Likewise.
12301         * gcc.c (target_system_root): New variable.
12302         (add_sysrooted_prefix): New function.
12303         (process_command): Recompute run-time target_system_root from
12304         gcc_exec_prefix, keeping it unchanged if the relocated sysroot
12305         does not exist.
12306         (do_spec_1): Process 'R' spec.
12307         (main): Add md_exec_prefix to exec_prefixes regardless of
12308         startfile_prefix_spec.  Use add_sysrooted_prefix for
12309         startfile_prefixes, and don't skip the default ones when cross
12310         compiling with sysroot enabled.  Removed unused case of
12311         non-absolute standard_startfile_prefix.
12312         * config/interix.h: Remove the only potential, yet disabled,
12313         occurrence of non-absolute (empty) standard_startfile_prefix.
12314         * config/sh/linux.h (LIB_SPEC): Add -rpath-link in non-static
12315         linking.
12316         * config/mips/linux.h (LIB_SPEC): Define as in sh/linux.h.
12317         * doc/install.texi (--with-sysroot): Document.
12318         (--with-headers, --with-libs): Deprecate.
12320 2002-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12321             Mark Mitchell  <mark@codesourcery.com>
12323         * alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to
12324         match target.h.
12325         * arm-protos.h, arm.c (arm_output_mi_thunk): Likewise.
12326         * cris-protos.h, cris.c (cris_asm_output_mi_thunk): Likewise.
12327         * frv-protos.h, frv.c (frv_asm_output_mi_thunk): Likewise.
12328         * i386-protos.h, i386.c (x86_output_mi_vcall_thunk,
12329         x86_output_mi_thunk): Likewise.
12330         * i960-protos.h, i960.c (i960_output_mi_thunk): Likewise.
12331         * ia64-protos.h, ia64.c (ia64_output_mi_thunk): Likewise.
12332         * m68k-protos.h, m68k.c (m68k_output_mi_thunk): Likewise.
12333         * mmix-protos.h, mmix.c (mmix_asm_output_mi_thunk): Likewise.
12334         * rs6000-protos.h, rs6000.c (output_mi_thunk): Likewise.
12335         * s390-protos.h, s390.c (s390_output_mi_thunk): Likewise.
12336         * stormy16-protos.h, stormy16.c (xstormy16_asm_output_mi_thunk):
12337         Likewise.
12338         * vax-protos.h, vax.c (vax_output_mi_thunk): Likewise.
12340         * target.h (gcc_target): Update output_mi_thunk and
12341         output_mi_vcall_thunk to take a HOST_WIDE_INT delta and
12342         vcall_index.
12344         * config/alpha/alpha.c: Replace ASM_OUTPUT_MI_THUNK with
12345         TARGET_ASM_OUTPUT_MI_THUNK in comments.
12346         * config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): Don't #undef it.
12347         (TARGET_ASM_OUTPUT_MI_THUNK): #undef it.
12348         * config/frv/frv.h (DEFAULT_VTABLE_THUNKS): Remove definition.
12349         * config/i386/i386-protos.h (x86_output_mi_vcall_thunk): Update
12350         signature.
12351         * config/i386/i386.c (x86_output_mi_vcall_thunk): Likewise.
12352         * config/i386/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
12353         TARGET_ASM_OUTPUT_MI_THUNK in comments.
12354         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Don't define.
12355         (TARGET_ASM_OUTPUT_MI_THUNK): Do define.
12356         * config/m68k/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
12357         TARGET_ASM_OUTPUT_MI_THUNK in comments.
12358         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Remove #ifdef
12359         ASM_OUTPUT_MI_THUNK and replace with check of targetm.
12361         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Update signature.
12362         (TARGET_ASM_OUTPU_MI_VCALL_THUNK): Likewise.
12364 2002-10-19  Brad Lucier  <lucier@math.purdue.edu>
12366         * real.c (do_add): Fix 0+0 sign corner case.
12367         (do_divide): Fix Inf/0 corner case.
12369 Sun Oct 20 00:31:31 CEST 2002  Jan Hubicka  <jh@suse.cz>
12371         * i386.c (classify_argument): Pass MMX arguments in memory
12372         (ix86_expand_builtin): Expand proper address mode for cflush.
12373         * i386.md (movdqa): Fix typo.
12374         (sse2_cflush): Accept DImode addresses.
12376         * xmmintrin.h (_mm_sqrt_sd): Accept two arguments.
12377         (_mm_max_sd): Fix pasto.
12378         (_mm_storeh_pd, _mm_storel_pd): Fix.
12380         * i386.c (bdesc_comi): Fix to match specification.
12381         (ix86_expand_sse_comi): Emit the comparison properly.
12382         * i386.md (sse_comi, sse2_comi, sse_ucomi, sse2_ucomi):
12383         Do not use comparison operator.
12384         (vnmaskcmp): Fix template.
12386         * xmmintrin.h (_mm_cvtps_pi16): Fix.
12388 2002-10-19  Sebastian Pop  <s.pop@laposte.net>
12390         * dependence.c : Removed.
12391         * Makefile.in : Remove dependence.o.
12393 Sat Oct 19 10:46:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
12395         * mmintrin.h (__m64): typedef it to v2si.
12396         (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
12397         _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
12398         _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
12399         _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
12400         _mm_or_si64, _mm_xor_si64): Add neccesary casts.
12401         * xmmintrin.h (_mm_setzero_si64): Likewise.
12403         * i386.h (ALIGN_MODE_128): Update comment; add missing modes
12404         (SSE_REG_MODE_P, MMX_REG_MODE_P): New macros.
12406         PR target/7693
12407         Patch by Shawn Wagner
12408         * mmintrin.h: Replace pi64 by si64.
12410 2002-10-18  David Edelsohn  <edelsohn@gnu.org>
12412         * rs6000.md (movdf_hardfloat32): Order alternatives consistently.
12413         Use length of 4 not *.
12414         (movdf_hardfloat64): Same.  Support DFmode moves to/from CTR/LR.
12415         (movdf_softfloat64): Likewise.
12416         (movdi_internal32): Use length of 4 not *.
12417         (movti_power): Same.
12418         (ctrsi, ctrdi): Same.
12420 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
12422         * c-decl.c (start_decl): Point users of the old initialized-
12423         typedef extension at __typeof__.
12425 2002-10-18  Richard Henderson  <rth@redhat.com>
12427         * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
12428         (real_to_decimal): Re-implement using the logic from the
12429         gcc 3.2 etoasc.  Comment heavily.
12430         (div_significands): Simplify loop startup and comparison logic.
12432 2002-10-18  Mark Mitchell  <mark@codesourcery.com>
12434         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Default to NULL.
12435         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Likewise.
12436         (TARGET_ASM_OUT): Add them.
12437         * target.h (asm_out): Add output_mi_thunk and
12438         output_mi_vcall_thunk.
12439         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12440         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12441         * config/arm/arm-protos.h (arm_output_mi_thunk): Declare.
12442         * config/arm/arm.c (arm_output_mi_thunk): Define.
12443         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12444         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12445         * config/cris/cris.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12446         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12447         * config/frv/frv.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12448         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12449         * config/i386/i386-protos.h (x86_output_mi_thunk): Adjust
12450         prototype.
12451         (x86_output_mi_vcall_thunk): Declare.
12452         * config/i386/i386.c (override_options): Clear
12453         output_mi_vcall_thunk in 64-bit mode.
12454         (ix86_fntype_regparm): New function.
12455         (ix86_return_pops_args): Use it.
12456         (ia32_this_parameter): New function.
12457         (x86_output_mi_vcall_thunk): New function.
12458         (x86_output_mi_thunk): Use it
12459         * config/i386/unix.h (TARGET_ASM_OUTPUT_MI_THUNK): Adjust.
12460         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define.
12461         * config/i960/i960-protos.h (i960_output_mi_thunk): Declare.
12462         * config/i960/i960.c (i960_output_mi_thunk): New function.
12463         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Adjust.
12464         * config/ia64/ia64-protos.h (ia64_output_mi_thunk): Declare.
12465         * config/ia64/ia64.c (ia64_output_mi_thunk): Define.
12466         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12467         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12468         * config/m68k/m68k-protos.h (m68k_output_mi_thunk): New function.
12469         * config/m68k/linux.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12470         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12471         * config/m68k/netbsd-elf.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12472         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12473         * config/mmix/mmix.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12474         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12475         * config/pa/pa.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12476         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12477         * config/rs6000/sysv4.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12478         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12479         * config/s390/s390-protos.h (s390_output_mi_thunk): Declare.
12480         * config/s390/s390.c (s390_output_mi_thunk): Define.
12481         * config/s390/s390.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12482         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12483         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12484         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12485         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12486         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12487         * config/vax/vax-protos.h (vax_output_mi_thunk): Declare.
12488         * config/vax/vax.c (vax_output_mi_thunk): Define.
12489         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
12490         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
12491         * doc/tm.texi: Adjust documentation.
12493 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
12495         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
12496         __enable_execute_stack function.
12497         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
12498         as NETBSD_ENABLE_EXECUTE_STACK.
12499         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12500         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12501         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12502         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12503         * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
12505 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
12507         * config/i386/i386.c (x86_initialize_trampoline): Emit a call
12508         to __enable_execute_stack with the address of the trampoline
12509         if TRANSFER_FROM_TRAMPOLINE is defined.
12510         * config/i386/i386.h (TARGET_64BIT): Expand to a compile-time
12511         constant if building libgcc2.
12513 Thu Oct 17 17:40:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
12515         * i386.c (pentium4_cost): Fix according to Intel recommendations.
12516         (ix86_memory_move_cost): Fix for 64bit compilation.
12518 2002-10-17  Roger Sayle  <roger@eyesopen.com>
12520         * doc/c-tree.texi: Update description of COND_EXPR tree nodes.
12522 2002-10-17  Geoffrey Keating  <geoffk@apple.com>
12524         * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Allow arbitrary modes
12525         in CTR/LR/MQ.
12526         * config/rs6000/rs6000.md (movcc_internal1): Support CCmode moves
12527         to/from CTR/LR/MQ.
12528         (movsf_hardfloat): Support SFmode moves to/from CTR/LR/MQ.
12529         (movsf_softfloat): Likewise.
12531 2002-10-17  Janis Johnson  <janis187@us.ibm.com>
12533         * Makefile.in (site.exp): Add ALT_CXX_UNDER_TEST and COMPAT_OPTIONS.
12535 2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>
12537         * config/alpha/alpha.c (alpha_initialize_trampoline): Use
12538         tramp, not addr, to pass the trampoline address to
12539         __enable_execute_stack.
12541 Thu Oct 17 18:40:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
12543         * mmintrin.h: Guard by __MMX__
12544         * xmmintrin.h: Guard by __SSE__
12546         PR other/8062
12547         * xmmintrin.h (_MM_SHUFFLE2): New macro.
12548         (_mm_load*_?d): New functions.
12549         (_mm_set*_?d): New functions.
12550         (_mm_store*_?d): New functions.
12552 Wed Oct 16 15:01:29 CEST 2002  Jan Hubicka  <jh@suse.cz>
12554         Really commit patch announced at Oct 14
12555         PR c/7344
12556         * predict.c (can_predict_insn_p): New function.
12557         (estimate_probability): Avoid unnecesary work.
12558         (process_note_prediction): Likewise.
12559         * toplev.c (rest_of_compilation): Account early branch prediction pass
12560         as TV_BRANCH_PROB.
12562         PR other/8048
12563         Found by Ian Ollmann
12564         * xmmintrin.h (_mm_shuffle_pd): Fix typo.
12565         (_mm_load?_pd): Likewise.
12566         (_mm_store?_pd): Likewise.
12568         PR target/7386
12569         * i386.c (builtin_description):Drop cmpg[te]s[sd].
12570         * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
12571         swapped alternative.
12573         PR opt/7630
12574         * reload1.c (reload_inner_reg_of_subreg): New argument output;
12575         (push_reload): Update call.
12577 2002-10-17  Richard Sandiford  <rsandifo@redhat.com>
12579         * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
12580         if using mips/elf.h or mips/elf64.h.
12581         * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
12582         * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
12584 2002-10-16  Aldy Hernandez  <aldyh@redhat.com>
12586         * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
12587         SI.
12589 2002-10-16  Ulrich Weigand  <uweigand@de.ibm.com>
12591         * config/s390/linux.h (ASM_DOUBLE, _ASM_OUTPUT_LONG): Remove.
12592         (LPREFIX): Likewise.
12593         (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, ASM_FORMAT_PRIVATE_NAME,
12594         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
12595         ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_BSS,
12596         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
12597         GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
12599         * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
12600         ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
12601         ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
12602         BSS_SECTION_ASM_OP): Move from linux.h.
12603         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12604         Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
12606         * config/s390/s390.c (s390_function_profiler): Use
12607         ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
12609 2002-10-15  Eric Christopher  <echristo@redhat.com>
12611         * stor-layout.c (layout_type): Call GET_MODE_BITSIZE once.
12612         * java/parse.y (obtain_incomplete_type): Make pointer
12613         ptr_mode.
12615 2002-10-15  Richard Henderson  <rth@redhat.com>
12617         * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
12618         as arguments.  Bound DIGITS by the available buffer size.
12619         (real_to_hexadecimal): Likewise.
12620         * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
12621         (REAL_VALUE_TO_DECIMAL): Remove.
12622         * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
12623         sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
12624         config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
12625         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
12626         config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
12627         config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
12628         config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
12629         use real_to_decimal directly, and with the proper arguments.
12630         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
12632 2002-10-15  Jim Wilson  <wilson@redhat.com>
12634         * reload1.c (merge_assigned_reloads): After converting overlapping
12635         reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
12637         * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
12639 Tue Oct 15 22:08:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
12641         * expr.c (do_tablejump): Fix typo in my previous commit.
12643 2002-10-15  Richard Sandiford  <rsandifo@redhat.com>
12645         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
12647 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
12649         * config/s390/s390.c (s390_split_branches): Add return
12650         value.  Add parameters TEMP_REG and TEMP_USED.  Use unspec 104.
12652         (find_base_register_in_addr): New function.
12653         (find_base_register_ref): New function.
12654         (replace_base_register_ref): New function.
12656         (struct constant_pool): Add members pool_insn, insns, and anchor.
12657         Remove member last_insn.
12658         (s390_start_pool): Initialize them.
12659         (s390_end_pool): Emit pool placeholder insn.
12660         (s390_add_pool_insn): New function.
12661         (s390_find_pool): Use insns bitmap instead of addresses.
12662         (s390_dump_pool): Replace placeholder insn.  Emit anchor.
12663         Replace unspec 104 by local-pool-relative references.
12664         (s390_output_constant_pool): Output anchor label if required.
12665         (s390_output_symbolic_const): Handle unspec 104 and 105.
12666         (s390_add_pool): Remove, replace by ...
12667         (s390_add_constant, s390_find_constant): ... these new functions.
12668         (s390_add_anchor): New function.
12670         (s390_chunkify_pool): Delete, replace by ...
12671         (s390_chunkify_start, s390_chunkify_finish,
12672         s390_chunkify_cancel): ... these new functions.
12673         (s390_optimize_prolog): Add parameter TEMP_REGNO.
12674         Recompute register live data for special registers.
12675         (s390_fixup_clobbered_return_reg): New function.
12676         (s390_machine_dependent_reorg): Rewrite to use new
12677         s390_chunkify_... routines.
12679         config/s390/s390.md ("reload_base"): Rename to ...
12680         ("reload_base_31"): ... this.
12681         ("reload_base_64"): New insn.
12682         ("reload_base2"): Remove.
12683         ("reload_anchor"): New insn.
12684         ("pool"): New insn.
12686         s390.c (s390_pool_overflow): Remove.
12687         s390.h (s390_pool_overflow): Likewise.
12688         s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
12690 Tue Oct 15 16:51:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
12692         * sh.md (movv8qi_i+2): Don't split if source is -1.
12694 2002-10-15  Janis Johnson  <janis187@us.ibm.com>
12696         * doc/install.texi: Formatting changes for conformance to HTML 4.01.
12698 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
12700         PR opt/7409
12701         * loop.c (loop_regs_scan): Mark registers used for function
12702         argument passing as MAY_NOT_OPTIMIZE.
12704 Mon Oct 14 19:22:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
12706         * gcov-io.h (gcov_info): Fix type.
12707         * profile.c (create_profiler): Fix type mismatch.
12709 Mon Oct 14 20:33:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
12711         * i386.md (movv2di_internal): New pattern.
12712         (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
12713         (movv2di): New expander.
12714         * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
12716         * i386.c (ix86_expand_timode_binop_builtin): Delete.
12717         (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
12718         (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
12719         (ix86_expand_builtin): Likewise.
12720         * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12721         sse_andti3,
12722         sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
12723         sse_andnti3,
12724         sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
12725         sse_orti3,
12726         sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
12727         sse_xorti3): Kill.
12728         (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
12729          sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
12730         (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
12731          *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12732         (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
12733          *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
12735         * xmmintrin.h (__m128i): Define as __v2di.
12737         PR c++/6419
12738         (expand_expr): Use DECL_RTL_SET_P.
12740 2002-10-14  Roger Sayle  <roger@eyesopen.com>
12742         * combine.c (simplify_set):  Treat MODE_CC registers like cc0.
12744 2002-10-14  Roger Sayle  <roger@eyesopen.com>
12745             Zack Weinberg <zack@codesourcery.com>
12747         * config/i386/i386.c (k6_cost): Correct typo.
12749 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
12751         PR optimization/6631
12752         * alias.c (objects_must_conflict_p): Check honor_readonly when
12753         examining TYPE_READONLY.
12754         * function.c (assign_stack_temp_for_type): Likewise.
12756 2002-10-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12758         * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
12759         Swap zero extension arguments.
12760         (umaxhi3): Fix instruction class.
12761         PR target/7211
12762         (prefetch): Fix prefetch instructions.
12763         PR target/7238
12764         (pkwb): Fix output constraint.
12766 2002-10-14  Alexandre Oliva  <aoliva@redhat.com>
12768         * config/mips/mips.c (print_operand): Increase buffer size for
12769         real numbers.
12771 2002-10-14  Richard Henderson  <rth@redhat.com>
12773         PR opt/8165
12774         * gcse.c (adjust_libcall_notes): Revert last change.
12775         * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
12777 2002-10-14  Andrew Haley  <aph@redhat.com>
12779         * tree-inline.c (remap_block): All local class initialization
12780         flags go in the outermost scope.
12781         (expand_call_inline): Call java_inlining_map_static_initializers.
12782         (expand_call_inline): Call java_inlining_merge_static_initializers.
12783         * java/lang.c (merge_init_test_initialization): New.
12784         (java_inlining_merge_static_initializers): New.
12785         (inline_init_test_initialization): New.
12786         (java_inlining_map_static_initializers): New.
12788         * tree-inline.c (expand_call_inline): Convert retvar to expected
12789         type.
12791 2002-10-14  Graham Stott  <graham.stott@btinternet.com>
12793         * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
12795 2002-10-14  Aldy Hernandez  <aldyh@redhat.com>
12797         * stmt.c: Fix typo in comment.
12799 Mon Oct 14 11:35:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
12801         * c-common.c (c_common_type_for_mode): Add V2HImode case.
12802         * tree.c (build_common_tree_nodes_2): Initialize
12803         unsigned_V2HI_type_node and V2HI_type_node.
12804         * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
12805         (unsigned_V2HI_type_node, V2HI_type_node): Define.
12807 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
12809         * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
12810         Handle TARGET_64BIT.
12812 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
12814         * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
12815         * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
12816         (MULTILIB_DIRNAMES): Remove long32.
12817         (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
12818         (MULTILIB_REDUNDANT_DIRS): Remove.
12820 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
12822         * doc/tm.texi (DRIVER_SELF_SPECS): Document.
12823         * gcc.c (driver_self_specs): New variable.
12824         (do_self_spec): New function.
12825         (main): Use it to process driver_self_specs.
12827 2002-10-13  Richard Henderson  <rth@redhat.com>
12829         * config/i386/i386.c (ix86_function_ok_for_sibcall): Reject
12830         indirect sibcalls when regparm >= 3.
12832         * config/i386/i386.c (sibcall_insn_operand): New.
12833         * config/i386/i386.h (PREDICATE_CODES): Update.
12834         * config/i386/i386-protos.h: Update.
12835         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
12837         * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
12839 2002-10-12  Roger Sayle  <roger@eyesopen.com>
12841         * simplify-rtx.c (simplify_binary_operation) [ASHIFTRT]: Optimize
12842         arithmetic right shifts of ~0 during RTL simplifications.
12844 2002-10-12  Neil Booth  <neil@daikokuya.co.uk>
12846         PR preprocessor/7862
12847         PR preprocessor/8190
12848         * gcc.c (cpp_unique_options): Don't delete .d files.
12849         Remove stray whitespace.
12851 2002-10-12  Naohiko Shimizu  <pshimizu@fa2.so-net.ne.jp>
12853         * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
12854         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
12855         * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
12856         (pdp11_output_function_epilogue, output_ascii): Likewise.
12857         (output_addr_const_pdp11): Likewise.
12858         * pdp11.md (movdi): Use offsetable memory for floating store.
12859         (lshrsi3, negsi2): Delete irrelevant comment.
12861 2002-10-11  Andreas Bauer  <baueran@in.tum.de>
12863         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12864         indirect calls to be sibcall optimized.
12865         * config/i386/i386.md (sibcall_1): New.
12866         (call_1): Add no-sibcalls condition.
12867         (sibcall_value_1): New.
12868         (call_value_1): Add no-sibcalls condition.
12870 2002-10-11  Eric Christopher  <echristo@redhat.com>
12872        * output.h (default_valid_pointer_mode): Declare.
12873        * varasm.c (default_valid_pointer_mode): Define.
12874        * target-def.h (TARGET_VALID_POINTER_MODE): Use.
12875        * target.h: Ditto.
12876        * tree.c (build_pointer_type_for_mode): New function.
12877        (build_pointer_type): Use.
12878        (build_reference_type_for_mode): New function.
12879        (build_reference_type): Use.
12880        * tree.h: Declare new functions.
12881        * c-common.c (handle_mode_attribute): Use new functions, check
12882        for type.
12883        * stor-layout.c (layout_type): Depend on machine mode for
12884        REFERENCE_TYPE and POINTER_TYPE.
12885        * dwarf2out.c (simple_type_size_in_bits): Move upward in file.
12886        (modified_type_die): Use instead of PTR_SIZE for POINTER_TYPE
12887        and REFERENCE_TYPE.
12888        * config/mips/mips.c (mips_valid_pointer_mode): New function.
12889        (TARGET_VALID_POINTER_MODE): Use and define.
12890        * config/mips/mips-protos.h (mips_valid_pointer_mode): Declare.
12892 2002-10-11  Geoffrey Keating  <geoffk@apple.com>
12894         * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
12895         not the address of the REG.
12896         (struct cse_reg_info): Make subreg_ticked unsigned.
12898 2002-10-11  Janis Johnson  <janis187@us.ibm.com>
12900         * doc/compat.texi: Add info about C++ libraries.
12902 2002-10-11  Richard Henderson  <rth@redhat.com>
12904         PR opt/8165
12905         * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
12907 2002-10-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12909         * cfganal.c (dfs_enumerate_from): Use PARAMS.
12910         * genautomata.c (output_insn_code_cases): Likewise.
12911         * real.c (real_format): Likewise.
12912         * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
12913         ensure value is promoted before doing subtraction.
12915 Fri Oct 11 22:22:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
12917         * calls.c (expand_call): Simplify noreturn call.
12919         PR c/7344
12920         * cfgbuild.c (make_edges): Create edge cache when we do have
12921         large jumptable.
12922         * expr.c (do_tablejump): Note size of maximal jumptable.
12923         * function.c (prepare_function_start): Zero out size.
12924         * function.h (function): Add max_jumptable_ents.
12926         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
12928 Fri Oct 11 12:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
12930         * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
12931         register for mperm_w operation.
12933 Fri Oct 11 10:56:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
12935         * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
12936         an integer, use simplify_gen_subreg.
12938 2002-10-10  Diego Novillo  <dnovillo@redhat.com>
12940         * calls.c (flags_from_decl_or_type): Make extern.
12941         (ECF_*): Move ...
12942         * rtl.h (ECF_*): ... here.
12943         (flags_from_decl_or_type): Declare.
12945 2002-10-10  Roger Sayle  <roger@eyesopen.com>
12946             Nathan Sidwell <nathan@codesourcery.com>
12948         * fold-const.c (fold) [RSHIFT_EXPR]: Optimize arithmetic right
12949         shifts of the form -1 >> x.
12951 Thu Oct 10 16:52:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
12953         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
12955 2002-10-10  Aldy Hernandez  <aldyh@redhat.com>
12957         * extend.texi (Vector Extensions): Remove comment about single
12958         element vectors.
12960 2002-10-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12962         * fold-const.c (size_htab_hash): Use htab_hash_pointer.
12963         * function.c (insns_for_mem_hash): Likewise.
12964         * varasm.c (STRHASH): Likewise.
12966 2002-10-10  Stuart Hastings  <stuart@apple.com>
12968         * cse.c (struct cse_reg_info): Add subreg_ticked.
12969         (SUBREG_TICKED): New.
12970         (get_cse_reg_info): Initialize SUBREG_TICKED.
12971         (mention_regs): Use it.
12972         (invalidate): Set SUBREG_TICKED.
12973         (invalidate_for_call): Likewise.
12974         (addr_affects_sp_p): Likewise.
12976 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
12978         * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
12979         into proper operand.
12981 2002-10-10  Denis Chertykov  <denisc@overta.ru>
12983         * config/ip2k/ip2k.c (function_epilogue): Optimize stack
12984         deallocation.
12985         * config/ip2k/libgcc.S: Combine routines used by function
12986         epilogue.
12988 2002-10-10  Jim Wilson  <wilson@redhat.com>
12990         * cse.c (fold_rtx): Don't perform associative optimization for DIV and
12991         UDIV.
12993 2002-10-10  David Edelsohn  <edelsohn@gnu.org>
12995         * config/rs6000/aix52.h: New file.
12996         * config/rs6000/t-aix52: New File.
12997         * config.gcc (rs6000-ibm-aix5.1.*): New entry.
12998         (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
13000 Thu Oct 10 19:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
13002         PR target/5610
13003         * invoke.texi (-msse-math): Kill
13004         (-msse): Add note to mfpmath=sse.
13006 Thu Oct 10 17:08:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
13008         PR target/7723
13009         * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
13011 2002-10-10  Neil Booth  <neil@daikokuya.co.uk>
13013         PR preprocessor/8179
13014         * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
13015         as cc1_options.
13016         (default_compilers): Pass debug options when preprocessing
13017         stdin.
13019 2002-10-06  Richard Henderson  <rth@redhat.com>
13021         * toplev.c (rest_of_compilation): Revert opt/2960 change.
13023 Wed Oct  9 21:18:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
13025         * i386.c (*_cost): Add branch costs.
13026         (override_options): set ix86_branch_cost.
13027         (ix86_expand_int_movcc): Use BRANCH_COST.
13028         * i386.h (costs): Add branch_cost.
13030 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
13032         PR c/7353
13033         * c-decl.c (start_decl): Unconditionally issue error for
13034         'typedef foo = bar'.
13035         (finish_decl): Remove special case for TYPE_DECL with initializer.
13037         * doc/extend.texi: Delete "Naming Types" section.  Change all
13038         cross-references to that section to refer to "Typeof" instead.
13039         Add the useful safe-max()-macro example from "Naming Types" to
13040         "Typeof", rewritten using that extension.  Add some compatibility
13041         notes to "Typeof."
13043 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13045         * loop.c: Revert 2002-08-15 change.
13046         (LOOP_REGNO_NREGS): Ensure type is int.
13048 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
13050         * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
13051         which copies first FPR and clears second.
13052         (extendsftf2): Same.
13053         (floatditf2): Fix typo.
13054         (floatsitf2): Same.
13055         (fix_trunctfdi2): Same.
13056         (fix_trunctfsi2): Same.
13058 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13060         * conflict.c (arc_hash): Change return type to hashval_t.
13061         * cselib.c (get_value_hash): Likewise.
13062         * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
13063         state_hash, automata_list_hash): Likewise.
13064         * read-rtl.c (def_hash): Likewise.
13065         * tree.c (type_hash_hash): Likewise.
13067 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
13069         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
13070         prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
13072 Wed Oct  9 15:54:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
13074         * sh.md (ffssi2): Fix emitted code.
13076 2002-10-09  Ulrich Weigand  <uweigand@de.ibm.com>
13078         * cse.c (insn_live_p): Pass insn pattern, not full insn
13079         to may_trap_p.
13081 2002-10-09  Neil Booth  <neil@daikokuya.co.uk>
13083         * cppmacro.c (paste_tokens): Only allow / to paste with =.
13085 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
13087         * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
13088         64-bit hosts.
13089         (movtf_internal): Reference correct displacement for second value
13090         in memory.
13091         (movtf splitter): Correct generation of constants in 64-bit mode.
13093 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
13095         * libgcc2.c (__floatdisf): Properly cure double rounding.
13097 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13099         * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
13100         * doc/cpp.texi (Common Predefined Macros): Document.
13102 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13104         PR doc/7484
13105         * doc/invoke.texi (Option Summary): List
13106         -Wmissing-declarations as a C only option.
13108 2002-10-08  Roger Sayle  <roger@eyesopen.com>
13110         * fold-const.c (fold) [LROTATE_EXPR, RROTATE_EXPR]: Optimize
13111         left and right rotates of ~0, i.e. integer_all_onesp (arg0).
13112         [LSHIFT_EXPR, RSHIFT_EXPR]: Optimize shifts and rotates of zero.
13114 Tue Oct  8 01:24:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
13116         * i386.c (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
13117         x86_sse_typeless_stores, x86_sse_load0_by_pxor): New global
13118         variables.
13119         (safe_vector_operand): Update sse_clrv4sf call.
13120         (ix86_expand_buildin): Likewise
13121         * i386.h (x86_sse_partial_reg_dependency, x86_sse_partial_regs,
13122         x86_sse_typeless_stores, x86_sse_load0_by_pxor): Declare.
13123         (TARGET_SSE_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REGS,
13124         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_TYPELESS_LOAD0): New
13125         macros.
13126         * i386.md (movsf*, movdf*, movti, movv4sf, movv2df, movv16qi, movv8hi,
13127         movv4si):  Obey the new flags.
13128         (floatsi2sf, floatdi2sf, truncatedf2sf): Emit extra load of 0 to avoid
13129         reformating penalty.
13130         (anddf, cmov patterns): Avoid reformating by first converting.
13131         (sse_cvtsd2ss): Fix predicate.
13132         (sse2_clrti): Fix mode,
13133         (sse_clrv4sf): Avoid unspec.
13135 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
13137         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
13138         mno-app-regs|mcmodel=medany.
13139         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
13140         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
13141         (CRTSTUFF_T_CFLAGS): Define.
13143 2002-10-08  Roger Sayle  <roger@eyesopen.com>
13145         PR target/8087
13146         * simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
13147         pool references that are constructed using LO_SUM.
13149 2002-10-08  Nathan Sidwell  <nathan@codesourcery.com>
13151         * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
13152         -Wall.
13153         * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
13154         message.
13155         * flags.h (warn_strict_aliasing): Declare.
13156         * toplev.c (warn_strict_aliasing): Define.
13157         (lang_independent_options): Add it.
13158         * doc/invoke.texi (-Wstrict-aliasing): Document it.
13160 2002-10-08  Zack Weinberg  <zack@codesourcery.com>
13162         * system.h (GCCBUGURL): Delete.
13163         * version.c (bug_report_url): New.  Add commentary about
13164         modifying both these strings in modified distributions.
13165         * version.h: Declare bug_report_url.
13167         * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
13168         bug_report_url.
13170 2002-10-08  Nick Clifton  <nickc@redhat.com>
13172         * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
13173         convert uint64_t into __ev64_opaque__.
13174         (__ev_set_acc_s64): Likewise, but using signed types.
13176 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
13178         * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
13179         ("*doloop_di_long"): Likewise.
13181 Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
13183         * print-rtl.c (print_rtx): Increase buffer size for real numbers.
13185 2002-10-08  Richard Sandiford  <rsandifo@redhat.com>
13187         * config/mips/mips.md (define_attr cpu): Add r4111.
13189 2002-10-08  Anthony Green  <green@redhat.com>
13191         * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
13193 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13195         * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
13196         for REAL_VALUE_TO_DECIMAL output.
13198 2002-10-07  Richard Henderson  <rth@redhat.com>
13200         * cse.c (fixed_base_plus_p): Turn FIXED_BASE_PLUS_P into a
13201         function; cleanup PLUS case by using recursion.  Update all users.
13202         (NONZERO_BASE_PLUS_P): Remove.
13203         (find_comparison_args): Use rtx_addr_can_trap_p instead.
13204         (fold_rtx): Use nonzero_address_p.
13205         * rtl.h (nonzero_address_p): Declare.
13206         * rtlanal.c (rtx_varies_p): Handle ADDRESSOF.
13207         (rtx_addr_can_trap_p): Likewise.
13208         (nonzero_address_p): New.
13209         * simplify-rtx.c (NONZERO_BASE_PLUS_P): Remove.
13210         (simplify_relational_operation): Use nonzero_address_p.
13212 2002-10-07  David Edelsohn  <edelsohn@gnu.org>
13214         * config/rs6000/rs6000.c (rs6000_override_options): Set
13215         real_format_for_mode for IBM extended format, if enabled.
13216         (easy_fp_constant): Add TFmode.
13217         (rs6000_legitimize_address): Add TFmode.
13218         (rs6000_legitimate_address): Same.
13219         (function_arg_advance): TFmode uses two FPRs.
13220         (rs6000_emit_prologue): Fix warning.
13221         (rs6000_output_function_epilogue): Add TFmode.
13222         (output_toc): Add TFmode.
13223         * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
13224         (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
13225         * rs6000.md (movtf splitter): Load TFmode constant.
13227 2002-10-07  Dale Johannesen  <dalej@apple.com>
13229         * rtl.h:  Add NOTE_PRECONDITIONED.
13230         * unroll.c:  Set it.
13231         * loop.c:  Set loop_info->preconditioned from it.
13232         * doloop.c:  Permit doloop treatment when loop_info->preconditoned.
13234 2002-10-07  Richard Henderson  <rth@redhat.com>
13236         * config/i960/i960.c (i960_setup_incoming_varargs): Create a
13237         new rtx for comparing the argument pointer against zero.
13238         (i960_va_start): Similarly.
13240 2002-10-07  Richard Henderson  <rth@redhat.com>
13242         * config/i960/i960.md (*): Use TFmode, not XFmode.
13243         * config/i960/i960.c (*): Likewise.
13244         (i960_arg_size_and_align): Remove XFmode alignment hack.
13245         (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
13246         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
13247         (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
13248         (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
13250 2002-10-07  Richard Henderson  <rth@redhat.com>
13252         * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
13253         entry points; use void return value and argument list.
13255 2002-10-06  Andreas Bauer  <baueran@in.tum.de>
13257         * calls.c (expand_call): Fix function-is-volatile check.
13259 2002-10-05  Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
13261         * t-pdp11: Add MULTILIB support for msoft-float.
13262         * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
13264         * t-pdp11: Add LIB2FUNCS_EXTRA.
13265         * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
13266         add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
13267         'fldd' to 'ldd', rename 'fstd' to 'std'.
13268         (pdp11_output_function_epilogue): Likewise.
13269         (output_move_quad): Make the comment gas compatible.
13270         (output_ascii): Add preceding 0 to the octal constant.
13271         (print_operand_address): Add pre_modify, post_modify.
13272         (output_addr_const_pdp11): Add preceding 0 to the octal constant.
13273         * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
13274         with the indication of Paul Koning.
13275         (PRINT_OPERAND): Fix floating constant.
13276         * pdp11.md (movdi): Restrict matching pattern.
13277         (movqi): Generalize the matching pattern.
13278         (movdf): Restrict matching pattern.
13279         (zero_extendqihi2): Change constant representation.
13280         (floatsidf2): Fix wrong operands.
13281         (addqi3): Fix wrong instruction name.
13282         (subqi3): Fix wrong instruction name.
13283         (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
13284         (xorsi3): Fix wrong insn.
13285         (one_cmplqi2): Add two operand pattern.
13286         (lsrsi3): New.
13287         (negsi2): New.
13288         (call): Add register indirect case.
13289         (mod): Fix wrong subreg.
13291 2002-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
13292             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13294         PR c/7411
13295         * expr.c (expand_expr) [PLUS]: Simplify after the operands
13296         have been expanded in EXPAND_NORMAL mode.
13298 2002-10-06  Richard Henderson  <rth@redhat.com>
13300         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
13302 2002-10-06  Richard Henderson  <rth@redhat.com>
13304         PR optimization/2960
13305         * toplev.c (rest_of_compilation): Don't copy_loop_headers if
13306         optimize_size.
13308 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
13310         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
13311         previously definitions.
13313 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
13315         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
13316         * c-opts.c (find_opt): Similarly.
13318 Sat Oct  5 22:48:06 CEST 2002  Jan Hubicka  <jh@suse.cz>
13320         * athlon.md: rewrite to DFA.
13321         * i386 (ix86_adjust_cost): Drop memory latency code.
13322         (ia32_use_dfa_pipeline_interface): Return true for Athlon.
13324 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
13326         * gcc.c (set_multilib_dir): Don't access *end.
13327         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
13328         (print_multilib_info): Don't show paths starting with ".:".
13329         * genmultilib: Add new option, "yes" if multilibs are enabled.
13330         Update comments.  If multilibs not enabled, print .:${osdirout}
13331         for each directory.  If multilibs are enabled, always print
13332         ${dirout}:${osdirout}, even if the two are the same.
13333         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
13334         Pass all MULTILIB_* variables to genmultilib even if
13335         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
13337 2002-10-04  Zack Weinberg  <zack@codesourcery.com>
13339         * gcc.c (process_command): Set .validated for -pipe.  Correct
13340         grammar in comment.
13342 2002-10-04  Bruce Korb  <bkorb@gnu.org>
13344         * fixinc/inclhack.def(hpux11_abs):  use format fix
13345         * fixinc/fixincl.x: regenerate
13346         * fixinc/tests/base/stdlib.h: accommodate new fix test
13348 Sat Oct  5 19:42:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
13350         * c-common.c (cb_register_builtins):  Use really_no_inline.
13352 2002-10-04  David Edelsohn  <edelsohn@gnu.org>
13354         * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
13355         copied instruction if the note is not loop invariant.
13357 2002-10-04  Loren J. Rittle  <ljrittle@acm.org>
13359         * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
13361 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
13363         * doc/invoke.texi (HPPA):  Add -mlinker-opt, -mgnu-ld,
13364         and -mhp-ld options to list of options.  Add -mgnu-ld
13365         and -mhp-ld option descriptions.
13367 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
13369         * fixinc/inclhack.def (hpux11_abs):  New.
13370         (stdio_va_list): change __va_list__ to __gnuc_va_list.
13371         * fixinc/fixincl.x: Rebuild.
13373 2002-10-04  Roger Sayle  <roger@eyesopen.com>
13375         * config/i386/i386.h (processor_costs): Add new fields fadd,
13376         fmul, fdiv, fabs, fchs and fsqrt to costs structure.
13377         (RTX_COSTS): Use these fields to determine the RTX costs
13378         of floating point addition/subtraction, multiplication,
13379         division, fabs, negation and square root respectively.
13380         * config/i386/i386.c (size_cost): Provide instruction sizes
13381         for these new fields.
13382         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
13383         k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
13384         counts for these new fields for all x86 processor variants.
13386 2002-10-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13388         * mips.c (mips_const_double_ok): Delete unused variable.
13390         * gengtype.c (rtx_next): Change type to int.
13392 2002-10-04  Andreas Jaeger  <aj@suse.de>
13394         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
13396 2002-10-04  Richard Henderson  <rth@redhat.com>
13398         * real.h (SIGNIFICAND_BITS): Add one more word.
13399         (CONST_DOUBLE_FORMAT): Accomodate 6 words.
13400         * real.c (times_pten): New.
13401         (real_to_decimal, real_from_string): Use it.
13402         (sticky_rshift_significand): Use & to find modulus.
13403         (rshift_significand, lshift_significand): Likewise.
13404         (do_divide): Apply sticky bit after normalization.
13405         (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
13407 2002-10-03  Andreas Bauer  <baueran@in.tum.de>
13409         * doc/tm.texi (FUNCTION_OK_FOR_SIBCALL): Remove.
13410         (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13412 2002-10-03  Andreas Jaeger  <aj@suse.de>
13414         * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
13415         to unsigned long, adjust printf format string.
13416         (output_mangled_typename): Likewise.
13418 2002-10-03  Jason Thorpe  <thorpej@wasabisystems.com>
13420         * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
13421         * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
13422         (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
13423         assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
13424         (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
13425         (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
13426         * config/vax/elf.h (FUNCTION_PROFILER): Remove.
13427         (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
13429 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
13431         * doc/invoke.texi (-Wabi): Document mangling bug.
13433 2002-10-04  Alan Modra  <amodra@bigpond.net.au>
13435         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
13436         name for the tbtab label that depends on the function asm name.
13437         Don't output tbtab label unless optional_tbtab.
13438         (output_mi_thunk): Formatting.
13440 2002-10-03  Richard Henderson  <rth@redhat.com>
13442         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
13443         * config/m68k/m68k.c (override_options): ... here.
13444         * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
13445         * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
13446         * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13447         * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
13449 2002-10-03  Richard Henderson  <rth@redhat.com>
13451         * real.h (struct real_value): Use ENUM_BITFIELD.
13453 2002-10-03  Richard Henderson  <rth@redhat.com>
13455         * config/i960/i960.md (call, call_value): Use emit_call_insn.
13457 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
13459         * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
13461 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
13463         * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
13464         * config/pa/pa.h (MASK_GNU_LD): New.
13465         (TARGET_GNU_LD): New.
13466         * config/pa/pa64-hpux.h (LINK_SPEC): Set based
13467         on gnu-ld and MASK_GNU_LD.
13468         (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
13470 Thu Oct  3 23:35:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
13472         * i386.c (athlon_cost): Fix the move costs.
13474 Thu Oct  3 23:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
13476         * final.c (final): Use symbol name as function name for profiling.
13477         * profile.c (get_exec_counts): Likewise.
13478         (branch_prob): Likewise.
13480 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
13482         * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
13484 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
13486         * gcc.c (print_multi_os_directory): New variable.
13487         (option_map): Support --print-multi-os-directory.
13488         (struct prefix_list): Add os_multilib field.
13489         (multilib_os_dir): New variable.
13490         (static_specs): Add multilib_options.
13491         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
13492         subdirs if nonzero.
13493         (read_specs, execute): Update callers.
13494         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
13495         pass 1 as multilib option.
13496         (display_help): Include --print-multi-os-directory.
13497         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
13498         (process_command): Update callers.  Handle --print-multi-os-directory.
13499         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
13500         set.
13501         (main): Update find_a_file and add_prefix callers.
13502         Handle print_multi_os_directory.
13503         (struct mdswitchstr): New.
13504         (mdswitches, n_mdswitches): New variables.
13505         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
13506         present on the command line nor their mutually incompatible
13507         switches.
13508         (default_arg): Optimize.
13509         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
13510         array.
13511         (print_multilib_info): Only print GCC multilib dir name, not OS
13512         multilib dirname.
13513         * genmultilib: Add osdirnames parameter.  Output multilib_options
13514         variable.  If osdirnames is specified, output dirnames as
13515         dirname:osdirname.
13516         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
13517         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
13518         to compute libgcc_s soname and install path.
13519         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
13520         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
13521         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
13522         argument.
13524         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
13525         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13526         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
13527         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
13528         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
13529         and -m64.
13530         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
13531         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13532         * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
13533         (STARTFILE_ARCH_SPEC): Remove.
13534         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
13535         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13536         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
13537         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
13538         (SHLIB_SLIBDIR_SUFFIXES): Remove.
13540 Thu Oct  3 21:42:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
13542         * predict.c (choose_function_section): Avoid choice for linkonce functions.
13544 Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
13546         * i386.md (lea to mul peep2): Fix condition.
13548 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13550         * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
13551         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
13553 2002-10-02  David Mosberger-Tang  <David.Mosberger@acm.org>
13555         * unwind.h (_Unwind_GetTextRelBase): Mark _C argument with
13556         attribute "unused".
13558         * config/t-libunwind: Mention unwind-sjlj.c.
13559         * unwind-libunwind.c: Change #ifdef __USING_LIBUNWIND_EXCEPTIONS__
13560         to #ifndef __USING_SJLJ_EXCEPTIONS__.
13562         * configure.in: Move sjlj-exceptions and --enable-libunwind-exceptions
13563         before inclusion of config.gcc, but after configuring the compiler etc.
13564         Determine default value for --enable-libunwind-exceptions based on
13565         whether the host has a libunwind library (not guaranteed to be correct,
13566         but it's a reasonable first guess and can always be overridden with an
13567         explicit --enable/disable-libunwind-exceptions.
13568         * config.gcc: For target ia64*-*-linux*, mention t-libunwind as a
13569         tmake_file when $use_libunwind_exceptions is enabled.
13570         * Makefile.in: Update comment: LIB2ADDEH is updated not just by
13571         ia64 (e.g., config/t-linux also updates it).
13572         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS]: Mention -lunwind
13573         along with the shared version of libgcc since the latter requires
13574         the former.
13575         * unwind-libunwind.c: New file.
13576         * config/t-libunwind: Ditto.
13578 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
13580         * config.gcc: Remove support for vax-*-vms*.
13581         * config/vax/vms.h: Remove.
13582         * config/vax/xm-vms.h: Remove.
13583         * config/vax/vax-protos.h: Remove VMS-specific code.
13584         * config/vax/vax.c: Remove VMS-specific code.
13586 2002-10-02  Richard Henderson  <rth@redhat.com>
13588         PR opt/7124
13589         * config/i386/i386.c (ix86_register_move_cost): Increase cost
13590         for secondary_memory_needed pairs.
13592 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
13594         * doc/vms.texi: Blow away false include file section.
13596 2002-10-02  Roger Sayle  <roger@eyesopen.com>
13598         PR optimization/6627
13599         * toplev.c (force_align_functions_log): New global variable.
13600         * flags.h (force_align_functions_log): Add extern prototype.
13601         * varasm.c (assemble_start_function): Use it to force minimum
13602         function alignment.
13603         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
13604         minimum function alignment to one byte.
13605         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
13606         the least significant bit of vtable member function pointers.
13607         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
13608         here from cp/cp-tree.h.
13610 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
13612         * i386.c (print_operand_address): Use RIP addressing for offsetted
13613         label refs too.
13615 2002-09-30  David S. Miller  <davem@redhat.com>
13617         PR middle-end/7151
13618         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
13619         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
13621 2002-10-01  Andreas Bauer  <baueran@in.tum.de>
13623         * calls.c (expand_call): Remove the `no indirect check'
13624         for sibcall optimization; use function_ok_for_sibcall
13625         target hook; refine check for `function is volatile'.
13626         (FUNCTION_OK_FOR_SIBCALL): Remove the redefinition.
13627         * hooks.c (hook_tree_tree_bool_false): New.
13628         * hooks.h (hook_tree_tree_bool_false): Declare.
13629         * target-def.h (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
13630         (TARGET_INITIALIZER): Add it.
13631         * target.h (struct gcc_target): Add function_ok_for_sibcall.
13632         * config/alpha/alpha.c: (alpha_function_ok_for_sibcall): New.
13633         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13634         * config/alpha/alpha.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13635         * config/arm/arm-protos.h: (arm_function_ok_for_sibcall):
13636         Remove function declaration.
13637         * config/arm/arm.c: (arm_function_ok_for_sibcall): Make
13638         function static and accept another argument of type `tree'.
13639         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13640         * config/arm/arm.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13641         * config/frv/frv.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13642         * config/i386/i386.c: (ix86_function_ok_for_sibcall): New.
13643         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13644         * config/i386/i386.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13645         * config/pa/pa-linux.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13646         (TARGET_HAS_STUBS_AND_ELF_SECTIONS): New definition.
13647         * config/pa/pa.c: (pa_function_ok_for_sibcall): New.
13648         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13649         * config/pa/pa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13650         * config/rs6000/rs6000-protos.h: (function_ok_for_sibcall):
13651         Remove function declaration.
13652         * config/rs6000/rs6000.c: (rs6000_function_ok_for_sibcall):
13653         Rename function_ok_for_sibcall to rs6000_function_ok_for_sibcall;
13654         rename first argument to `decl'; accept another argument
13655         of type `tree'; make static.
13656         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13657         * config/rs6000/rs6000.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13658         * config/sh/sh.c: (sh_function_ok_for_sibcall): New.
13659         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13660         * config/sh/sh.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13661         * config/sparc/sparc.c: (sparc_function_ok_for_sibcall): New.
13662         (TARGET_FUNCTION_OK_FOR_SIBCALL): Redefine accordingly.
13663         * config/sparc/sparc.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13664         * config/xtensa/xtensa.h: (FUNCTION_OK_FOR_SIBCALL): Remove.
13666 2002-10-01  Roger Sayle  <roger@eyesopen.com>
13668         * unroll.c (loop_iterations): Revert 2002-09-08 change.
13670 2002-10-01  Richard Henderson  <rth@redhat.com>
13672         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
13673         (real_to_hexadecimal): Likewise.
13674         * print-rtl.c (print_rtx): If we are linked with real.c, don't
13675         dump the XWINT fields of a floating point CONST_DOUBLE.
13677 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
13679         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
13681 2002-10-01  Richard Henderson  <rth@redhat.com>
13683         * calls.c (precompute_register_parameters): Force non-legitimate
13684         constants into pseudos.
13686 2002-10-01  Nick Clifton  <nickc@redhat.com>
13688         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
13689         to assembler template.
13691 2002-10-01  Richard Henderson  <rth@redhat.com>
13693         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
13694         for TLS debug info to !DECL_EXTERNAL.
13696 2002-10-01  Matt Thomas  <matt@3am-software.com>
13697             Jason Thorpe  <thorpej@wasabisystems.com>
13699         * config.gcc (vax-*-netbsdelf*): Enable configuration.
13700         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
13701         if not already defined.
13702         * config/vax/elf.h: New file.
13703         * config/vax/netbsd-elf.h: New file.
13704         * config/vax/vax.c: Include "debug.h".
13705         (vax_output_function_prologue): Add dwarf2 support.  Use
13706         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
13707         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
13708         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
13709         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
13710         (VAX_ISTREAM_SYNC): Remove.
13711         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
13712         (JUMP_TABLES_IN_TEXT_SECTION): Define.
13713         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
13714         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
13715         and assemble_name.
13716         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13717         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
13718         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
13719         (INCOMING_RETURN_ADDR_RTX): Define.
13720         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
13721         (VUNSPEC_SYNC_ISTREAM): Define.
13722         (blockage): Use VUNSPEC_BLOCKAGE.
13723         (sync_istream): New insn.
13725 2002-10-01  Richard Henderson  <rth@redhat.com>
13727         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
13728         (*call_value_pop, call, call_value): Add dwarf2 EH support.
13729         (*call): New insn.
13731 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13733         PR c/8083
13734         * c-typeck.c (build_c_cast): Warn about type punning which breaks
13735         type based aliasing.
13737 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
13739         * stor-layout.c (update_alignment_for_field): New function.
13740         (place_union_field): Use it.
13741         (place_field): Likewise.
13743 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13745         PR other/8077
13746         * gcc.c (cc1_options): Add space on -auxbase-strip.
13748 2002-10-01  Jim Wilson  <wilson@redhat.com>
13750         * config/v850/v850.h (EPILOGUE_USES): Define.
13752 2002-09-30  Andrew Haley  <aph@redhat.com>
13754         * flow.c (insn_dead_p): When using non-call-exceptions, don't
13755         eliminate insns that may trap.
13756         * cse.c (insn_live_p): Likewise.
13758 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13760         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
13761         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
13762         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
13763         * config/mips/mips.md: Apply same renaming here.
13765 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13767         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
13768         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
13769         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
13770         * config/mips/mips.md (define_attr cpu): Remove r4320.
13771         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
13773 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13775         * config/mips/mips.c (mips16_strings): New variable.
13776         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
13777         symbol in mips16_strings.  Free the list.
13778         (mips_encode_section_info): Keep track of local strings.
13780 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13782         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
13783         (sordered_df, sordered_sf): Remove.
13784         * config/mips/mips.c (get_float_compare_codes): New fn.
13785         (gen_int_relational, gen_conditional_move): Use it.
13787 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
13789         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
13790         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
13791         * config/mips/mips.c (fcc_register_operand): New function.
13792         (mips_emit_fcc_reload): New function, extracted from reload_incc.
13793         (override_options): Allow TFmode values in float registers
13794         if ISA_HAS_8CC.
13795         * cnfig/mips/mips.md (reload_incc): Change destination prediate
13796         to fcc_register_operand.  Remove misleading source constraint.
13797         Use mips_emit_fcc_reload.
13798         (reload_outcc): Duplicate reload_incc.
13800 2002-09-30  Zack Weinberg  <zack@codesourcery.com>
13802         * gcc.c (validate_switches): Handle all new forms of spec
13803         syntax introduced recently.  Now returns a char *.
13804         (validate_all_switches): Repetitive logic broken out to...
13805         (validate_switches_from_spec): ...here.
13806         * mklibgcc.in: Don't @-flag commands to generate .oS files.
13808 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
13810         * longlong.h: Partially synchronize with GMP-4.1 version:
13811         Use i370 definitions also for s390.
13812         Add generic definition of umul_ppmm in terms of smul_ppmm.
13813         [s390] (umul_ppmm): Remove.
13814         [s390] (smul_ppmm): Fix incorrect assembler constraints.
13815         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
13817 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
13819         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
13820         Add new RL_REGS register class.
13821         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
13822         Call xtensa_preferred_reload_class for both input and output reloads.
13823         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
13824         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
13825         instead of either AR_REGS or GR_REGS classes.
13826         (xtensa_secondary_reload_class): Use new RL_REGS class.
13827         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
13829 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13831         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
13832         (pa_strip_name_encoding): Strip '@' and '*', in that order.
13833         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
13834         there is a '*' prefix in NAME.
13836 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13838         * reload.c (push_reload): Handle subregs and secondary memory.
13839         * reload1.c (gen_reload): Likewise.
13841         * jump.c (reg_or_subregno): New function.
13842         * rtl.h (reg_or_subregno): Declare
13843         * unroll.c (find_splittable_givs): Handle subregs.
13845 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
13847         * store-layout.c (finish_record_layout): Add free_p parameter.
13848         (layout_type): Pass it.
13849         * tree.h (finish_record_layout): Update prototype.
13851 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
13853         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
13855         * gcse.c (cprop_jump): Check that the register has not
13856         been modified
13857         (cprop_jump): Likewise.
13859 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
13861         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
13862         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
13863         that we have a SImode access, and only then if reload hasn't completed;
13864         for all other cases, use LO_REGS.
13866 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13868         * openbsd.h: Fix typo in last change.
13870 2002-09-29  Richard Henderson  <rth@redhat.com>
13872         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
13874 2002-09-29  Richard Henderson  <rth@redhat.com>
13876         PR c/8002
13877         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
13878         for CONST_INT.
13880 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
13882         * real.h (ibm_extended_format): Declare.
13883         * real.c (encode_ibm_extended, decode_ibm_extended): New
13884         functions.
13886 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13888         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
13890         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
13892 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13894         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
13896 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
13898         * builtins.def: Fix comment formatting.
13899         * c-common.def: Likewise.
13900         * cfgcleanup.c: Likewise.
13901         * combine.c: Likewise.
13902         * gengtype.c: Likewise.
13903         * params.def: Likewise.
13904         * predict.def: Likewise.
13905         * rtl.def: Likewise.
13906         * stab.def: Likewise.
13907         * stor-layout.c: Likewise.
13908         * tree.def: Likewise.
13909         * config/darwin.c: Likewise.
13910         * config/darwin.h: Likewise.
13911         * config/dbxcoff.h: Likewise.
13912         * config/elfos.h: Likewise.
13913         * config/fp-bit.c: Likewise.
13914         * config/freebsd-spec.h: Likewise.
13915         * config/interix.h: Likewise.
13916         * config/libgloss.h: Likewise.
13917         * config/linux-aout.h: Likewise.
13918         * config/linux.h: Likewise.
13919         * config/lynx-ng.h: Likewise.
13920         * config/lynx.h: Likewise.
13921         * config/netbsd-aout.h: Likewise.
13922         * config/netbsd.h: Likewise.
13923         * config/netware.h: Likewise.
13924         * config/psos.h: Likewise.
13925         * config/ptx4.h: Likewise.
13927 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
13929         * ChangeLog.4: Fix typos.
13930         * ChangeLog.6: Likewise.
13931         * FSFChangeLog.10: Likewise.
13932         * genattrtab.c: Fix comment typos.
13933         * haifa-sched.c: Likewise.
13934         * real.c: Likewise.
13935         * tree.h: Likewise.
13936         * config/arm/arm.c: Likewise.
13937         * config/arm/crti.asm: Likewise.
13938         * config/arm/crtn.asm: Likewise.
13939         * config/frv/frv.c: Likewise.
13940         * config/frv/frv.md: Likewise.
13941         * config/h8300/h8300.md: Likewise.
13942         * config/i386/rtemself.h: Likewise.
13943         * config/ia64/unwind-ia64.c: Likewise.
13944         * config/ip2k/ip2k.h: Likewise.
13945         * config/m88k/m88k.c: Likewise.
13946         * config/m88k/m88k.md: Likewise.
13947         * config/mips/sr71k.md: Likewise.
13948         * config/mmix/mmix.c: Likewise.
13949         * config/rs6000/rs6000.c: Likewise.
13950         * config/sh/sh.md: Likewise.
13952 2002-09-26  Theodore A. Roth  <troth@verinet.com>
13954         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
13955         * config/avr/avr.md: Ditto.
13957 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
13959         PR preprocessor/8055
13960         * cppmacro.c (stringify_arg): Do not overflow the buffer
13961         with the terminating NUL when the argument to be stringified
13962         has no tokens.
13964 2002-09-27  Richard Henderson  <rth@redhat.com>
13966         * unroll.c (simplify_cmp_and_jump_insns): New.
13967         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
13968         instead of expand_simple_foo.
13970 2002-09-27  Richard Henderson  <rth@redhat.com>
13972         PR optimization/7520
13973         * cfganal.c (flow_active_insn_p): New.
13974         (forwarder_block_p): Use it.
13976 2002-09-27  Richard Henderson  <rth@redhat.com>
13978         * emit-rtl.c (active_insn_p): Revert last change.
13980 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
13982         * doc/extend.texi (tls_model): Document.
13983         * varasm.c (decl_tls_model): New.
13984         * c-common.c (handle_tls_model_attribute): New.
13985         (c_common_attribute_table): Add tls_model.
13986         * config/alpha/alpha.c (alpha_encode_section_info): Use
13987         decl_tls_model.
13988         * flags.h (enum tls_model, flag_tls_default): Move...
13989         * tree.h (enum tls_model, flag_tls_default): ...here.
13990         (decl_tls_model): New prototype.
13991         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
13992         * config/i386/i386.c (ix86_encode_section_info): Likewise.
13993         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
13994         Allow !flag_pic.
13996 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
13998         * LANGUAGES: Follow spelling conventions.
13999         * rtl.def: Likewise.
14000         * sbitmap.c: Likewise.
14001         * sched-int.h: Likewise.
14002         * sched-rgn.c: Likewise.
14003         * sibcall.c: Likewise.
14004         * simplify-rtx.c: Likewise.
14005         * ssa.c: Likewise.
14006         * stab.def: Likewise.
14007         * stmt.c: Likewise.
14008         * stor-layout.c: Likewise.
14009         * target.h: Likewise.
14010         * timevar.c: Likewise.
14011         * toplev.c: Likewise.
14012         * tree-dump.c: Likewise.
14013         * tree-inline.c: Likewise.
14014         * tree.c: Likewise.
14015         * tree.def: Likewise.
14016         * tree.h: Likewise.
14017         * unroll.c: Likewise.
14018         * varasm.c: Likewise.
14019         * vmsdbgout.c: Likewise.
14020         * treelang/treelang.texi: Likewise.
14021         * treelang/treetree.c: Likewise.
14023 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
14025         * config/h8300/h8300.c (compute_saved_regs): Use a macro
14026         instead of a hard register number.
14027         (get_shift_alg): Use an enumerated type instead of numbers.
14028         (h8300_shift_needs_scratch_p): Likewise.
14030 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
14032         * varasm.c (force_data_section): Remove.
14033         (assemble_constant_align): Likewise.
14034         * output.h: Remove corresponding prototypes.
14036 2002-09-26  Roger Sayle  <roger@eyesopen.com>
14038         * stmt.c (expand_exit_loop_if_false): Expand a simple conditional
14039         jump, if the loop to exit is the top of the current nesting stack.
14041 2002-09-26  Torbjorn Granlund  <tege@swox.com>
14043         * libgcc2.c (fixunsdfdi, fixunssfdi): Rewrite, avoiding `long long'
14044         arithmetic.
14046 2002-09-26  David S. Miller  <davem@redhat.com>
14048         PR optimization/7335
14049         * calls.c (emit_library_call_value_1): Passing args by reference
14050         converts a CONST function into a PURE one.
14052 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
14054         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
14055         text_section.
14056         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
14057         text section.
14058         * config/rs6000/rs6000.c (rs6000_override_options): Allow
14059         function-sections and data-sections functionality on AIX.
14061 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
14062             Dale Johannesen  <dalej@apple.com>
14064         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
14065         in RTL for sub-word loads from memory.
14067 2002-09-26  Richard Henderson  <rth@redhat.com>
14069         PR c/7160
14070         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
14071         on call insns.
14073 2002-09-26  Richard Henderson  <rth@redhat.com>
14075         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
14077 2002-09-26  Chris Lattner  <sabre@nondot.org>
14079         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
14080         handling undefined values.
14082 2002-09-26  Richard Henderson  <rth@redhat.com>
14084         PR opt/7520
14085         * emit-rtl.c (active_insn_p): Consider a clobber of the
14086         function return value to be active even after reload.
14088 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
14090         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
14091         by absolute loop increment, not loop increment.
14093 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
14095         * c-common.h: Follow spelling conventions.
14096         * cpplex.c: Likewise.
14097         * cpplib.h: Likewise.
14098         * gthr-dce.h: Likewise.
14099         * gthr-posix.h: Likewise.
14100         * optabs.c: Likewise.
14101         * output.h: Likewise.
14102         * profile.c: Likewise.
14103         * protoize.c: Likewise.
14104         * ra-rewrite.c: Likewise.
14105         * real.c: Likewise.
14106         * recog.c: Likewise.
14107         * reg-stack.c: Likewise.
14108         * regclass.c: Likewise.
14109         * regmove.c: Likewise.
14110         * reload.c: Likewise.
14111         * reload.h: Likewise.
14112         * reload1.c: Likewise.
14113         * reorg.c: Likewise.
14114         * resource.c: Likewise.
14115         * rtl.h: Likewise.
14116         * rtlanal.c: Likewise.
14118 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
14120         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
14121         for symbol address.
14123 2002-09-24  Eric Christopher  <echristo@redhat.com>
14125         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
14126         * config/mips/elf64.h: Ditto.
14128 2002-09-24  Eric Christopher  <echristo@redhat.com>
14130         * except.c (expand_builtin_extract_return_address): Handle case
14131         where Pmode != ptr_mode.
14133 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
14135         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
14137 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
14139         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
14141 2002-09-26  Igor Shevlyakov <igor@microunity.com>
14143         * combine.c (simplify_set): Don't call to force_to_mode if size
14144         of integer type is larger than HOST_BITS_PER_WIDE_INT.
14146 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
14148         * Makefile.in (qmtest-g++): Fix file path.
14150 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
14152         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
14153         A + (-const) on RTX level, even for unsigned types.
14155 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
14157         * reload.c (dup_replacements): New function.
14158         (find_reloads): Use it to duplicate replacements at the top level
14159         of match_dup operands.
14161 2002-09-26  Miles Bader  <miles@gnu.org>
14163         * v850.md ("length"): Change default value to 4.
14165 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
14167         * ChangeLog.1: Follow spelling conventions.
14168         * ChangeLog.4: Likewise.
14169         * ChangeLog.6: Likewise.
14170         * FSFChangeLog.11: Likewise.
14171         * doc/cpp.texi: Likewise.
14172         * doc/invoke.texi: Likewise.
14173         * doc/tm.texi: Likewise.
14175 2002-09-26  Nick Clifton  <nickc@redhat.com>
14177         * config.gcc: Add x prefix to v850e case for handling
14178         --with-cpu=v850e.
14180 2002-09-25  Zack Weinberg  <zack@codesourcery.com>
14182         * gcc.c (input_suffix_matches, switch_matches,
14183         mark_matching_switches, process_marked_switches,
14184         process_brace_body): New functions - split from handle_braces.
14185         (handle_braces): Rewrite; handle %{S:X;T:Y;:D} syntax; accept
14186         and ignore whitespace in more places.
14187         (specs documentation comment): Document %{S:X;T:Y;:D}.
14188         Clarify other %{...} docs.
14189         * doc/invoke.texi: Document %{S:X;T:Y;:D}.  Clarify other
14190         %{...} docs.
14192         * config/arm/aof.h (LINK_SPEC): Change %{ov*,*} to %{ov*}.
14193         * config/rs6000/sysv4.h: Use N-way choice spec syntax.
14195 2002-09-25  David S. Miller  <davem@redhat.com>
14197         PR target/7842
14198         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
14199         extend.
14201 2002-09-25  Richard Henderson  <rth@redhat.com>
14203         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
14204         fp CONST_DOUBLE; use real_identical.
14206 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
14208         * doc/invoke.texi: Add more -Wabi examples.
14210 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
14212         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
14214 2002-09-24  Nathan Sidwell  <nathan@codesourcery.com>
14216         * profile.c (end_branch_prob): Only look for __gcov_init on
14217         weak-enabled native compilers.
14219 2002-09-24  Denis Chertykov  <denisc@overta.ru>
14221         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
14222         cases of optimizing "add sp,w" to "inc sp".
14224 2002-09-24  Adam Nemet  <anemet@lnxw.com>
14226         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
14227         epilogue for naked functions.
14229 2002-09-24  Adam Nemet  <anemet@lnxw.com>
14230             Nick Clifton  <nickc@redhat.com>
14232         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
14233         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
14234         is defined.
14236 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
14238         * config/s390/s390.c (preferred_la_operand_p): New function.
14239         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
14240         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
14241         ("*la_64_cc", "*la_31_cc", splitters): ... these.
14242         ("*la_31"): Deactivate for TARGET_64BIT.
14243         ("*la_31_and", "*la_31_and_cc"): New.
14245 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14247         * real.h (real_value): Make `exp' explicitly signed.
14249 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
14251         * config/elfos.h: Follow spelling conventions.
14252         * config/alpha/alpha.h: Likewise.
14253         * config/arc/arc.h: Likewise.
14254         * config/arm/arm.md: Likewise.
14255         * config/avr/avr.h: Likewise.
14256         * config/cris/cris.md: Likewise.
14257         * config/d30v/d30v.h: Likewise.
14258         * config/frv/frv.c: Likewise.
14259         * config/frv/frv.h: Likewise.
14260         * config/h8300/h8300.c: Likewise.
14261         * config/h8300/h8300.h: Likewise.
14262         * config/h8300/h8300.md: Likewise.
14263         * config/i386/cygwin.h: Likewise.
14264         * config/i386/i386.h: Likewise.
14265         * config/i386/sysv3.h: Likewise.
14266         * config/i960/i960.h: Likewise.
14267         * config/ia64/ia64.h: Likewise.
14268         * config/ia64/ia64.md: Likewise.
14269         * config/ip2k/ip2k.h: Likewise.
14270         * config/m32r/m32r.h: Likewise.
14271         * config/m68k/m68k.h: Likewise.
14272         * config/m88k/m88k.h: Likewise.
14273         * config/mcore/mcore.c: Likewise.
14274         * config/mcore/mcore.h: Likewise.
14275         * config/mcore/mcore.md: Likewise.
14276         * config/mips/mips.h: Likewise.
14277         * config/mmix/mmix.h: Likewise.
14278         * config/mmix/mmix.md: Likewise.
14279         * config/ns32k/netbsd.h: Likewise.
14280         * config/ns32k/ns32k.h: Likewise.
14281         * config/ns32k/ns32k.md: Likewise.
14282         * config/pa/pa.h: Likewise.
14283         * config/romp/romp.h: Likewise.
14284         * config/rs6000/rs6000.h: Likewise.
14285         * config/rs6000/rs6000.md: Likewise.
14286         * config/sparc/sparc.h: Likewise.
14287         * config/stormy16/stormy-abi: Likewise.
14288         * config/stormy16/stormy16.h: Likewise.
14289         * config/vax/vax.h: Likewise.
14291 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
14293         * config/alpha/alpha.h: Remove commented-out macro
14294         definitions of HAVE_{POST|PRE}_{INC|DEC}REMENT.
14295         * config/avr/avr.h: Likewise.
14296         * config/d30v/d30v.h: Likewise.
14297         * config/dsp16xx/dsp16xx.h: Likewise.
14298         * config/i370/i370.h: Likewise.
14299         * config/i386/i386.h: Likewise.
14300         * config/i960/i960.h: Likewise.
14301         * config/m68k/m68k.h: Likewise.
14302         * config/m88k/m88k.h: Likewise.
14303         * config/mips/mips.h: Likewise.
14304         * config/ns32k/ns32k.h: Likewise.
14305         * config/pdp11/pdp11.h: Likewise.
14306         * config/romp/romp.h: Likewise.
14307         * config/rs6000/rs6000.h: Likewise.
14308         * config/s390/s390.h: Likewise.
14309         * config/sh/sh.h: Likewise.
14310         * config/sparc/sparc.h: Likewise.
14311         * config/stormy16/stormy16.h: Likewise.
14312         * config/vax/vax.h: Likewise.
14314 2002-09-23  Kazu Hirata  <kazu@cs.umass.edu>
14316         * function.c (push_temp_slots_for_block): Remove.
14317         (push_temp_slots_for_target): Likewise.
14318         (get_target_temp_slot_level): Likewise.
14319         (set_target_temp_slot_level): Likewise.
14320         (get_first_block_beg): Likewise.
14321         * function.h: Remove corresponding prototypes.
14323 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
14325         * version.c (version_string): Now const char[].
14326         * version.h: Update to match.
14328 2002-09-23  Richard Henderson  <rth@redhat.com>
14330         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
14331         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
14332         (TARGET_SWITCHES): Don't reference them.
14333         * config/i386/i386.c (override_options): Use target_flags_explicit
14334         to examine bits set by the user.
14336 2002-09-23  Dale Johannesen  <dalej@apple.com>
14338         * dbxout.c (dbxout_parms):  Set current_sym_code for params
14339         passed on stack by invisible reference.
14341 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
14343         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
14344         at least one byte of space.
14346 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
14348         * c-common.h (flag_abi_version): Fix typo in comment.
14349         * doc/invoke.texi (flag_abi_version): Document default value.
14351 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
14353         * doc/extend.texi (Extended Asm): Clarify that overlap between
14354         asm-declared register variables used in an asm and the asm clobber
14355         list is not allowed.
14356         * stmt.c (decl_conflicts_with_clobbers_p): New function.
14357         (expand_asm_operands): Keep track of clobbered registers.  Call
14358         decl_conflicts_with_clobbers_p for each input and output operand.
14359         If no conflicts found before, also do conflict sanity check when
14360         emitting clobbers.
14362 2002-09-23  Richard Henderson  <rth@redhat.com>
14364         * c-common.c (cpp_define_data_format): Remove.
14365         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
14366         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
14367         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
14368         * doc/cpp.texi: Don't document them either.
14369         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
14370         __LONG_LONG_MAX__): Document.
14371         (__TARGET_FLOAT_FORMAT__): Remove.
14373 2002-09-23  Richard Henderson  <rth@redhat.com>
14375         * real.c (do_multiply): Normalize U before addition.
14377 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
14379         * c-common.c (flag_abi_version): New variable.
14380         * c-common.h (flag_abi_version): Declare it.
14381         * c-opts.c (missing_arg): Add -fabi-version.
14382         (c_common_decode_option): Process -fabi-version.
14383         * doc/invoke.texi (-fabi-version): Document it.
14384         (-Wabi): Add information about bit-fields in unions.
14386 2002-09-22  Roger Sayle  <roger@eyesopen.com>
14388         * expr.c (STORE_BY_PIECES_P): New target macro.
14389         (can_store_by_pieces, store_by_pieces): Use STORE_BY_PIECES_P
14390         instead of MOVE_BY_PIECES_P.
14391         * doc/tm.texi: Document this new macro.
14393 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
14395         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
14396         unless -fno-pic or -fno-PIC is specified.
14398 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14400         * c-common.c (preprocessing_trad_p): Define.
14401         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
14402         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
14403         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
14404         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
14405         * pa-linux.h (CPP_PREDEFINES): Delete.
14406         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
14407         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
14408         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
14409         (TARGET_OS_CPP_BUILTINS): Define.
14410         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
14411         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
14412         (SUBTARGET_SWITCHES): Provide default definition.
14413         (TARGET_OPTIONS): Reformat.  Use N_() macro.
14414         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
14415         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
14416         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
14417         (TARGET_CPU_CPP_BUILTINS): Define.
14418         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
14419         * doc/invoke.texi (msio, mwsio): Document new hppa options.
14420         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
14421         preprocessing_trad_p().
14423 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
14425         * doc/install.texi: Document behavior of --with-headers and
14426         --with-libs when arguments are omitted.
14428 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
14430         * dbxout.c: Follow spelling conventions.
14431         * defaults.h: Likewise.
14432         * df.c: Likewise.
14433         * diagnostic.h: Likewise.
14434         * doloop.c: Likewise.
14435         * dwarf2out.c: Likewise.
14436         * dwarfout.c: Likewise.
14437         * emit-rtl.c: Likewise.
14438         * except.c: Likewise.
14439         * explow.c: Likewise.
14440         * expmed.c: Likewise.
14441         * expr.c: Likewise.
14442         * expr.h: Likewise.
14443         * flags.h: Likewise.
14444         * flow.c: Likewise.
14445         * fold-const.c: Likewise.
14446         * function.c: Likewise.
14447         * function.h: Likewise.
14448         * gcc.c: Likewise.
14449         * gcov-io.h: Likewise.
14450         * gcov.c: Likewise.
14451         * gcse.c: Likewise.
14452         * genattrtab.c: Likewise.
14453         * genconfig.c: Likewise.
14454         * genrecog.c: Likewise.
14455         * ggc-page.c: Likewise.
14456         * ggc.h: Likewise.
14457         * global.c: Likewise.
14458         * gthr-win32.h: Likewise.
14459         * integrate.c: Likewise.
14460         * jump.c: Likewise.
14461         * langhooks.c: Likewise.
14462         * langhooks.h: Likewise.
14463         * line-map.h: Likewise.
14464         * local-alloc.c: Likewise.
14465         * longlong.h: Likewise.
14466         * loop.c: Likewise.
14467         * loop.h: Likewise.
14469 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
14471         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
14473 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
14475         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
14476         for -Os/TARGET_64BIT too.
14478 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
14480         * ChangeLog: Follow spelling conventions.
14481         * ChangeLog.0: Likewise.
14482         * ChangeLog.1: Likewise.
14483         * ChangeLog.2: Likewise.
14484         * ChangeLog.3: Likewise.
14485         * ChangeLog.4: Likewise.
14486         * ChangeLog.5: Likewise.
14487         * ChangeLog.6: Likewise.
14488         * FSFChangeLog.10: Likewise.
14489         * FSFChangeLog.11: Likewise.
14490         * alias.c: Likewise.
14491         * basic-block.h: Likewise.
14492         * c-aux-info.c: Likewise.
14493         * c-common.c: Likewise.
14494         * c-common.h: Likewise.
14495         * c-decl.c: Likewise.
14496         * c-format.c: Likewise.
14497         * c-semantics.c: Likewise.
14498         * c-typeck.c: Likewise.
14499         * calls.c: Likewise.
14500         * cfganal.c: Likewise.
14501         * cfgloop.c: Likewise.
14502         * collect2.c: Likewise.
14503         * combine.c: Likewise.
14504         * conflict.c: Likewise.
14505         * cppexp.c: Likewise.
14506         * cppfiles.c: Likewise.
14507         * cpphash.h: Likewise.
14508         * cppinit.c: Likewise.
14509         * cpplex.c: Likewise.
14510         * cpplib.c: Likewise.
14511         * cpplib.h: Likewise.
14512         * cppmacro.c: Likewise.
14513         * cse.c: Likewise.
14515 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
14517         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
14518         LINK_SPEC.
14519         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
14520         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
14521         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
14523 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
14525         PR opt/7930
14526         * cse.c (fold_rtx): Calculate old_cost before we fold each
14527         operand.
14529 2002-09-21  Richard Henderson  <rth@redhat.com>
14531         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
14532         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
14533         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
14534         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
14535         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
14536         * doc/cpp.texi: Don't document them.
14538 2002-09-21  Richard Henderson  <rth@redhat.com>
14540         * c-common.c (builtin_define_float_constants): Use real_format
14541         to get the floating-point parameters.
14543 2002-09-21  Richard Henderson  <rth@redhat.com>
14545         * real.c (struct real_format): Move to real.h.
14546         (real_format_for_mode): Rename from fmt_for_mode; update all users;
14547         initialize with ieee defaults.
14548         (real_to_target_fmt, real_from_target_fmt): New.
14549         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
14550         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
14551         ieee_quad_format, i370_single_format, i370_double_format,
14552         c4x_single_format, c4x_extended_format): Rename from s/_format//.
14553         (ieee_quad_format): Fix emin.
14554         (format_for_size, init_real_once): Remove.
14555         * real.h (struct real_format): Move from real.c.
14556         (real_format_for_mode): Declare.
14557         (real_to_target_fmt, real_from_target_fmt): Declare.
14558         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
14559         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
14560         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
14561         i370_single_format, i370_double_format, c4x_single_format,
14562         c4x_extended_format): Declare.
14563         * toplev.c (do_compile): Don't call init_real_once.
14565         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14566         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14568         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
14569         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
14570         * config/alpha/alpha.c (override_options): Set real_format_for_mode
14571         for VAX, if enabled.
14573         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
14574         for C4X.
14576         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
14577         * config/i370/i370.c (override_options): New.
14578         * config/i370/i370-protos.h: Update.
14580         * config/i386/i386.c (override_options): Set real_format_for_mode
14581         for Intel 80-bit extended.
14582         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
14584         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
14585         (OVERRIDE_OPTIONS): Move code...
14586         * config/i960/i960.c (i960_initialize): ... here.  Set
14587         real_format_for_mode for Intel 80-bit extended.
14589         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
14590         for Intel 80-bit extended, if enabled.
14592         * config/m68k/m68k.c (override_options): Set real_format_for_mode
14593         for Motorola 96-bit extended.
14595         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
14596         * config/vax/vax.c (override_options): New.
14597         * config/vax/vax-protos.h: Update.
14599 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
14601         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
14602         #if TARGET_MACHO.
14604         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
14605         insns.  Supply missing clobber of scratch reg.
14607 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
14609         * config/m32r/m32r.c: Follow spelling conventions.
14610         * config/m32r/m32r.h: Likewise.
14611         * config/m32r/m32r.md: Likewise.
14612         * config/m68k/m68k.c: Likewise.
14613         * config/m88k/m88k.c: Likewise.
14614         * config/mcore/mcore.c: Likewise.
14615         * config/mips/mips.c: Likewise.
14616         * config/mips/mips.h: Likewise.
14617         * config/mmix/mmix.c: Likewise.
14618         * config/mn10200/mn10200.c: Likewise.
14619         * config/ns32k/ns32k.h: Likewise.
14620         * config/pa/pa.c: Likewise.
14621         * config/pa/pa64-linux.h: Likewise.
14622         * config/pdp11/pdp11.h: Likewise.
14623         * config/romp/romp.c: Likewise.
14624         * config/romp/romp.h: Likewise.
14625         * config/rs6000/eabi.asm: Likewise.
14626         * config/rs6000/linux64.h: Likewise.
14627         * config/rs6000/rs6000.c: Likewise.
14628         * config/rs6000/rs6000.h: Likewise.
14629         * config/rs6000/rs6000.md: Likewise.
14630         * config/rs6000/sysv4.h: Likewise.
14631         * config/rs6000/xcoff.h: Likewise.
14633 2002-09-20  Jim Wilson  <wilson@redhat.com>
14635         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
14637 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
14639         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
14640         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
14641         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
14642         (legitimate_address_p): Likewise.
14643         (legitimize_address): Use @gotntpoff and @indntpoff.
14644         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
14645         (output_addr_const_extra): Likewise.
14647 2002-09-20  Jim Wilson  <wilson@redhat.com>
14649         * combine.c (try_combine): When split an instruction pair, where the
14650         first has a sign_extend src, verify that the src and dest modes match.
14652 2002-09-20  Richard Henderson  <rth@redhat.com>
14654         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
14655         (override_options): Do not initialize them.
14656         (mips_const_double_ok): Allow no fp constants except zero,
14657         and not even that for mips16.
14658         (const_float_1_operand): Use dconst1.
14659         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
14660         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
14661         Don't allow arbitrary constants; fix predicates and C constraint.
14663 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
14665         * cppmacro.c: Don't warn about function-like macros without
14666         '(' during pre-expansion.
14668 2002-09-20  Jim Wilson  <wilson@redhat.com>
14670         * config/v850/v850.c (current_function_anonymous_args): Delete.
14671         (expand_prologue): Use current_function_args_info.anonymous_args.
14672         (expand_epilogue): Delete use of current_function_anonymous_args.
14673         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
14674         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
14675         (current_function_anonymous_args): Delete extern declaration.
14676         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
14678 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
14680         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
14681         to load_macho_picbase.
14682         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
14683         (load_macho_picbase): Take the symbol to use as a parameter.
14684         (macho_correct_pic): New insn.
14685         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
14687         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
14688         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
14689         (CAN_ELIMINATE): Likewise.
14690         (INITIAL_ELIMINATION_OFFSET): Likewise.
14691         (TOC_REGISTER): Likewise.
14693 2002-09-20  Richard Henderson  <rth@redhat.com>
14695         * real.c (real_hash): New.
14696         * real.h: Declare it.
14697         * cse.c (canon_hash): Use it.
14698         * cselib.c (hash_rtx): Likewise.
14699         * emit-rtl.c (const_double_htab_hash): Likewise.
14700         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
14701         * varasm.c (struct rtx_const): Reduce vector size; separate
14702         integer and fp vectors.
14703         (HASHBITS): Remove.
14704         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
14705         take modulus MAX_HASH_TABLE.
14706         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
14707         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
14708         (SYMHASH): Don't use HASHBITS.
14709         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
14710         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
14711         (simplify_subtraction): Fix kind comparison.
14712         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
14713         Use a union to pun integer array.
14714         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
14715         only hash two words of integral CONST_DOUBLE.
14717 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
14719         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
14720         (STARTFILE_PREFIX_SPEC): New.
14721         (LINK_SPEC): Modify.
14722         (LIB_SPEC): Modify.
14723         (LIBGCC_SPEC): New.
14725 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
14727         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
14728         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
14730 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
14732         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
14733         Add clobber of the condition code register.
14735 2002-09-20  Richard Henderson  <rth@redhat.com>
14737         * real.c (do_fix_trunc): Static.
14738         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
14739         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
14740         encode_i370_single, encode_i370_double, encode_c4x_single,
14741         encode_c4x_extended): Add default abort case.
14743 2002-09-20  Richard Henderson  <rth@redhat.com>
14745         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
14746         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
14747         (struct realvaluetype): Remove.
14748         (REAL_VALUE_TYPE): Use struct real_value.
14749         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
14750         (test_real_width): New.
14751         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
14752         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
14753         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
14754         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
14755         real_to_integer, real_to_integer2, real_to_decimal,
14756         real_to_hexadecimal, real_from_string, real_from_integer,
14757         real_inf, real_nan, real_2expN, real_convert, real_to_target,
14758         real_from_target): Likewise.
14759         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
14760         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
14762 2002-09-20  Richard Henderson  <rth@redhat.com>
14764         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
14765         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
14766         * defaults.h: ... here.
14767         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
14768         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
14769         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
14770         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
14772 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
14774         * config/mmix/mmix.md ("negdf2"): Rewrite.
14775         ("*expanded_negdf2"): New.
14777 2002-09-19  Jim Wilson  <wilson@redhat.com>
14779         * combine.c (simplify_set): When optimizing a subreg src with a
14780         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
14782 2002-09-19  Dale Johannesen <dalej@apple.com>
14783         * combine.c (make_extraction): Don't create
14784         invalid subreg.
14786 2002-09-19  Roger Sayle  <roger@eyesopen.com>
14788         * tree.c (integer_nonzerop): New predicate for nonzero integers.
14789         * tree.h (integer_nonzerop): Add function prototype.
14790         * stmt.c (expand_end_loop):  Don't rotate the loop when there
14791         are no instructions in the test, i.e. the loop is unconditional.
14792         (expand_exit_loop_if_false):  Optimize RTL generation of loop
14793         tests when the condition is always true or always false.
14794         * c-semantics.c (genrtl_do_stmt):  Optimize RTL generation of
14795         do-loops when the condition is always true.
14796         (genrtl_for_stmt):  Optimize RTL generation of for-loops when
14797         the for-expression is empty.
14799 2002-09-19  Zack Weinberg  <zack@codesourcery.com>
14801         * gcc.c (use_pipes): New flag.
14802         (process_command): Set it.  Adjust check for -pipe conflicting
14803         with -time or -save-temps.
14804         (do_spec_1): Use it.  Handle %|SUFFIX, %mSUFFIX, and
14805         %<SWITCH.  Drop %| (without a SUFFIX).
14806         (handle_braces): Drop %{<SWITCH}, %{^SWITCH}, %{|...}.
14807         (give_switch): Third argument eliminated.
14808         (invoke_as, @assembler_with_cpp spec): Use %|.s or %m.s
14809         depending on AS_NEEDS_DASH_FOR_PIPED_INPUT.
14810         (specs documentation comment): Update.
14812         * config/netbsd-aout.h, config/openbsd.h, config/ptx4.h,
14813         config/svr4.h, config/i386/freebsd-aout.h,
14814         config/m68k/netbsd-elf.h, config/m68k/netbsd.h,
14815         config/m68k/openbsd.h, config/mips/openbsd.h,
14816         config/sparc/sparc.h: Define AS_NEEDS_DASH_FOR_PIPED_INPUT
14817         instead of putting %| into ASM_SPEC and/or ASM_FINAL_SPEC.
14818         * config/avr/avr.h: Delete do-nothing ASM_FINAL_SPEC.
14819         * config/cris/cris.h: Update comment.
14821         * ada/lang-specs.h: Use %(invoke_as).  Straighten out
14822         error messages.  Don't use %{^SWITCH}.
14823         * ada/misc.c (gnat_decode_option): Handle -I with a
14824         separate argument.
14826         * f/lang-specs.h: Use %| and %m.
14827         * java/jvspec.c: Use %m and %(invoke_as).  Change all
14828         uses of %{<SWITCH} to %<SWITCH.
14830         * doc/invoke.texi: Update documentation of specs.
14831         * doc/tm.texi: Document AS_NEEDS_DASH_FOR_PIPED_INPUT.
14833 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
14835         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
14836         and STRICT_LOW_PART within SET_DEST.
14837         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
14838         splitters, replacing pre-reload splitters.
14839         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
14840         "*zero_extendqihi2_31"): New insns.
14841         ("*zero_extendqihi2_64"): Do not clobber CC.
14843 2002-09-18  Devang Patel  <dpatel@apple.com>
14845         * cp/cp-tree.h: New prototype for walk_vtables().
14846         * cp/decl.c (walk_vtables_r): New function.
14847         (struct cp_binding_level): Add new members, namespaces,
14848         names_size and vtables.
14849         (add_decl_to_level): Add decl in namespaces or vtables
14850         chain, if conditions match.
14851         (walk_vtables): New function.
14852         (walk_namespaces_r): Travers separate namespace chain
14853         for namespace decls.
14854         (wrapup_globals_for_namespace): Use names_size instead
14855         of list_length().
14856         * cp/decl2.c (finish_file): Use walk_vtables() instead of
14857         walk_globals() to walk vtable decls.
14859 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
14861         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
14862         (DTORS_SECTION_ASM_OP): Ditto.
14863         (READONLY_DATA_SECTION_ASM_OP): Moved.
14864         (DATA_SECTION_ASM_OP): New.
14865         (SDATA_SECTION_ASM_OP): New.
14866         (BSS_SECTION_ASM_OP): New.
14867         (SBSS_SECTION_ASM_OP): New.
14868         (TEXT_SECTION_ASM_OP): New.
14870 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
14872         * config/fp-bit.c: Follow spelling conventions.
14873         * config/d30v/d30v.c: Likewise.
14874         * config/d30v/d30v.h: Likewise.
14875         * config/fr30/fr30.c: Likewise.
14876         * config/fr30/fr30.h: Likewise.
14877         * config/fr30/fr30.md: Likewise.
14878         * config/frv/frv.c: Likewise.
14879         * config/frv/frv.h: Likewise.
14880         * config/h8300/h8300.c: Likewise.
14881         * config/h8300/lib1funcs.asm: Likewise.
14882         * config/i370/i370.c: Likewise.
14883         * config/i386/i386.h: Likewise.
14884         * config/i386/i386.md: Likewise.
14885         * config/i386/pentium.md: Likewise.
14886         * config/i386/winnt.c: Likewise.
14887         * config/i960/i960.c: Likewise.
14888         * config/ia64/ia64.h: Likewise.
14889         * config/ip2k/ip2k.c: Likewise.
14890         * config/ip2k/ip2k.h: Likewise.
14891         * config/ip2k/ip2k.md: Likewise.
14892         * config/ip2k/libgcc.S: Likewise.
14894 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
14896         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
14897         (GOTOFF_P): Extend to allow gotoff plus constant.
14899 2002-09-18  Richard Henderson  <rth@redhat.com>
14901         * ifcvt.c (noce_process_if_block): Correctly detect X modified
14902         with INSN_B before COND_EARLIEST.  Don't check A and B for
14903         modification in condition range.  Reorder INSN_B for A==B properly.
14904         (if_convert): Iterate until no matches for a block.
14906 2002-09-18  Richard Henderson  <rth@redhat.com>
14908         * calls.c (store_one_arg): Rename default_align to parm_align;
14909         always adjust parm_align for downward padding.
14911 2002-09-18  Richard Henderson  <rth@redhat.com>
14913         * toplev.c (backend_init): Move init_real_once invocation ...
14914         (do_compile): ... here.
14916 2002-09-18  Richard Henderson  <rth@redhat.com>
14918         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
14919         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
14921 2002-09-18  Richard Henderson  <rth@redhat.com>
14923         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
14925 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
14927         * config/rs6000/rs6000.md: (floatdisf2): Rename to
14928         floatdisf2_internal1.
14929         (floatdisf2): New define_expand.
14930         (floatdisf2_internal2): Likewise.
14932 2002-09-18  Richard Henderson  <rth@redhat.com>
14934         * real.c (sticky_rshift_significand): Collect sticky as
14935         unsigned long, not bool.
14937 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
14939         * config/s390/s390.c (s390_address_cost): New function.
14940         config/s390/s390-protos.h (s390_address_cost): Add prototype.
14941         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
14942         (RTX_COST): Use COSTS_N_INSNS.
14944 2002-09-18  Douglas Rupp  <rupp@gnat.com>
14945             Donn Terry  <donnte@microsoft.com>
14947         * stor-layout.c (place_field): Handle alignment of whole
14948         structures when MSVC compatible bitfields are involved.
14949         Change method of computing location of MS bitfields to
14950         be compatible with #pragma pack(n).
14952         * tree.h (record_layout_info): Add new field
14953         remaining_in_alignment.
14955         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
14956         (pragma pack): Add paragraph on MSVC bitfield packing.
14958 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
14960         PR optimization/7967
14961         * arm.md (ne_zeroextractsi): Add clobber of the condition code
14962         register.
14964 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
14966         * config/s390/s390.c: Follow spelling conventions.
14967         * config/sh/lib1funcs.asm: Likewise.
14968         * config/sh/sh.c: Likewise.
14969         * config/sh/sh.h: Likewise.
14970         * config/sparc/sparc.c: Likewise.
14971         * config/sparc/sparc.h: Likewise.
14972         * config/sparc/sparc.md: Likewise.
14973         * config/stormy16/stormy16.c: Likewise.
14974         * config/stormy16/stormy16.h: Likewise.
14975         * config/v850/v850.c: Likewise.
14976         * config/v850/v850.h: Likewise.
14977         * config/vax/vax.c: Likewise.
14978         * config/vax/vax.h: Likewise.
14980 2002-09-18  Nick Clifton  <nickc@redhat.com>
14982         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
14983         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
14984         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
14986 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
14988         * function.c (max_parm_reg_num): Remove.
14989         * stmt.c (in_control_zone_p, stmt_loop_nest_empty,
14990         drop_through_at_end_p, move_cleanups_up,
14991         expand_end_case_dummy, case_index_expr_type): Likewise.
14992         * stor-layout.c (pos_from_byte): Likewise.
14993         * tree.c (chain_member_value, chain_member_purpose, listify,
14994         tree_int_cst_msb, index_type_equal): Likewise.
14995         * tree.h: Remove prototypes for unused functions.
14997 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
14999         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
15000         statement that the only translation is to en_UK.
15002 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
15004         * config/alpha/alpha.c: Follow spelling conventions.
15005         * config/alpha/alpha.h: Likewise.
15006         * config/alpha/alpha.md: Likewise.
15007         * config/arc/arc.h: Likewise.
15008         * config/arm/arm.c: Likewise.
15009         * config/arm/arm.h: Likewise.
15010         * config/arm/arm.md: Likewise.
15011         * config/arm/pe.c: Likewise.
15012         * config/arm/unknown-elf.h: Likewise.
15013         * config/avr/avr.c: Likewise.
15014         * config/avr/avr.h: Likewise.
15015         * config/c4x/c4x.c: Likewise.
15016         * config/cris/cris.c: Likewise.
15017         * config/cris/cris.h: Likewise.
15019 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
15021         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
15022         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
15023         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
15025 2002-09-17  Dale Johannesen  <dalej@apple.com>
15027         * cfgcleanup.c (try_forward_edges):  Do not forward a
15028         branch to just after a loop exit before loop optimization;
15029         this interfered with doloop detection.
15031 2002-09-17  Nick Clifton  <nickc@redhat.com>
15033         * config/arm/arm.c (output_return_instruction): Do not
15034         writeback the stack pointer when it is being loaded.
15035         (arm_output_epilogue): Likewise.
15037 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
15039         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
15040         generate a pseudo reg that receives the result of a libcall.
15041         (prepare_float_lib_cmp): Likewise.
15043 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
15045         * config/ia64/elf.h: Remove CPP_PREDEFINES.
15047 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15049         Fix PR/7014 and related objc bugs:
15050         * c-typeck.c (comp_target_types): Added a reflexive argument.
15051         Pass it to ObjC when/if calling objc_comptypes().  Updated all
15052         callers to provide the appropriate reflexive argument.
15053         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
15054         typechecking for all cases of comparisons and assignments,
15055         particularly the obscure and less common ones involving protocols.
15057 2002-09-17  Nick Clifton  <nickc@redhat.com>
15059         * machmode.def (V1DImode): New mode.  A single element vector.
15060         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
15061         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
15062         * tree.c (build_common_tree_nodes_2): Build
15063         unsigned_V1DI_type_node and V1D1_type_node.
15064         * c-common.c (c_common_type_for_mode): Return
15065         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
15066         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
15068 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15070         * doc/objc.texi (Constant string objects): Extended documentation
15071         to make clear that the constant string class ivar layout is
15072         completely fixed.
15074 2002-09-17  Roger Sayle  <roger@eyesopen.com>
15076         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
15077         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
15079 2002-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15081         * config/mips/mips.c (save_restore_insns): Remove unused variable.
15082         * gcc.c (make_relative_prefix): Likewise.
15083         * loop.c (check_final_value): Likewise.
15084         * jump.c (init_label_info): Remove return value.
15085         * cse.c (prev_insn): Move variable between #ifdef HAVE_cc0 ... #endif.
15087 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15089         * dsp16xx.h (ASM_FORMAT_PRIVATE_NAME): Delete.
15090         (ASM_PN_FORMAT): Define.
15092 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15094         * alpha.h, alpha/vms.h, arc.h, arm/aof.h, arm/aout.h, avr.h,
15095         c4x.h, cris.h, d30v.h, fr30.h, frv.h, h8300.h, i370.h, i386.h,
15096         i960.h, ia64.h, ip2k.h, m32r.h, m68hc11.h, m68k/3b1.h,
15097         m68k/hp320.h, m68k.h, m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h,
15098         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
15099         pa.h, pdp11.h, romp.h, rs6000.h, s390/linux.h, sh.h, sparc.h,
15100         stormy16.h, v850.h, vax.h, xtensa.h (ASM_FORMAT_PRIVATE_NAME):
15101         Delete.
15102         * alpha/vms.h, h8300.h, i370.h, ia64.h, m68k/3b1.h, m68k/hp320.h,
15103         m68k/mot3300.h, m68k/sgs.h, m68k/tower-as.h, mmix.h, mn10200.h,
15104         mn10300.h, pa.h, v850.h (ASM_PN_FORMAT): Define.
15106         * defaults.h (ASM_PN_FORMAT, ASM_FORMAT_PRIVATE_NAME): Define.
15107         * doc/tm.texi (ASM_FORMAT_PRIVATE_NAME): Update documentation.
15109 2002-09-16  Richard Henderson  <rth@redhat.com>
15111         * expr.c (emit_block_move): Set memory block size as appropriate
15112         for the copy.
15114 2002-09-16  Richard Henderson  <rth@redhat.com>
15116         PR fortran/3924
15117         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
15119 2002-09-16  Richard Henderson  <rth@redhat.com>
15121         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
15122         as well as OFFSET for BITPOS.
15124 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
15126         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
15127         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
15128         winchip2 and c3.
15129         * doc/invoke.texi: Mention new aliases.
15131 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15133         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
15134         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
15135         downward.
15136         * function.c (pad_below):  Always compile.
15137         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
15138         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
15139         Pad below when the argument is not in a register and the padding
15140         direction is downward.
15142         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
15143         (PAD_VARARGS_DOWN): Define.
15144         * pa.c (function_arg_padding): Revise padding directions to make them
15145         compatible with the 32 and 64-bit runtime architecture documentation.
15146         (hppa_va_arg):  Add code to handle variable and size zero arguments
15147         passed by reference on TARGET_64BIT.  Reformat.
15148         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
15149         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
15150         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
15151         Add comments.
15152         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
15153         (RETURN_IN_MEMORY): Return size zero types in memory.
15154         (FUNCTION_VALUE): Return TFmode in general registers.
15155         (MUST_PASS_IN_STACK): Define.
15156         (FUNCTION_ARG_BOUNDARY): Simplify.
15157         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
15158         by reference.
15159         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
15161 2002-09-16  Richard Henderson  <rth@redhat.com>
15163         * real.c (do_fix_trunc): New.
15164         (real_arithmetic): Call it.
15165         * simplify-rtx.c (simplify_unary_operation): Handle FIX
15166         with a floating-point result mode.
15168 2002-09-16  Richard Henderson  <rth@redhat.com>
15170         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
15171         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
15172         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
15173         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
15174         * builtins.c (fold_builtin_nan): New.
15175         (fold_builtin): Call it.
15176         * real.c (real_nan): Parse a non-empty string.
15177         (round_for_format): Fix NaN significand truncation.
15178         * real.h (real_nan): Return bool.
15179         * doc/extend.texi: Document new builtins.
15181 2002-09-16  Jason Merrill  <jason@redhat.com>
15182             Danny Smith  <dannysmith@users.sourceforge.net>
15184         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
15185         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
15186         (i386_pe_mark_dllimport): Not here.
15188 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
15190         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
15192 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
15194         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
15195         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
15196         < 64.
15197         (rs6000_emit_cmove): Use real_isinf not target_isinf.
15199 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
15201         * calls.c (emit_library_call_value_1): Don't refer to
15202         hard_libcall_value.
15203         * optabs.c (prepare_float_lib_cmp): Likewise.
15205 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
15207         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
15208         mangling.
15210         The following changes are merged from pch-branch:
15212         * doc/gty.texi (GTY Options): Document %a.
15213         * gengtype.c (do_scalar_typedef): New function.
15214         (process_gc_options): Handle `length' option.
15215         (set_gc_used_type): A pointer to an array of structures doesn't
15216         qualify as a pointer to a structure.
15217         (output_escaped_param): Add `%a' escape.
15218         (write_gc_structure_fields): Allow 'desc' on array of unions.
15219         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
15220         do_scalar_typedef.
15222         * gengtype.c (enum rtx_code): Make global.
15223         (rtx_format): Make global.
15224         (rtx_next): New.
15225         (gen_rtx_next): New.
15226         (write_rtx_next): New.
15227         (adjust_field_rtx_def): Skip fields marked by chain_next.
15228         (open_base_files): Delete redundant prototype.
15229         (write_enum_defn): New.
15230         (output_mangled_typename): Correct abort call.
15231         (write_gc_marker_routine_for_structure): Handle chain_next and
15232         chain_prev options.
15233         (finish_root_table): Don't output redundant \n.
15234         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
15235         * c-tree.h (union lang_tree_node): Add chain_next option.
15237         * gengtype.h (NUM_PARAM): New definition.
15238         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
15239         * gengtype.c (find_param_structure): New.
15240         (adjust_field_type): Handle param<n>_is option.
15241         (process_gc_options): Detect use_params option.  Update callers.
15242         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
15243         'use_params' option.
15244         (open_base_files): Add splay-tree.h to list of files included.
15245         (output_mangled_typename): New.
15246         (write_gc_structure_fields): Update 'param' parameter to support
15247         multiple parameters.  Change name mangling.  Allow parameterized
15248         fields to have an apparent scalar type.  Handle param<n>_is options,
15249         use_param option.
15250         (write_gc_marker_routine_for_structure): Update for change to name
15251         mangling.  Better guess the output file for parameterized types.
15252         (write_gc_types): Update for change to name mangling.
15253         (write_gc_root): Update for change to name mangling.  Handle (ignore)
15254         param<n>_is options.
15255         * doc/gty.texi (GTY Options): Add description of param<n>_is
15256         options, use_params option.
15257         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
15258         * gengtype-lex.l: Produce token for param<n>_is.
15259         * gengtype-yacc.y: Parse param<n>_is.
15261         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
15263         * rtl.c: Update comment describing rtx_format.
15264         * rtl.h (union rtunion): Separate definition and typedef.
15265         (struct rtx_def): Use gengtype to mark.
15266         * Makefile.in (gengtype.o): Also depend on rtl.def.
15267         * ggc.h (ggc_mark_rtx_children): Delete prototype.
15268         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
15269         * ggc-common.c (ggc_mark_rtx_children): Delete.
15270         (ggc_mark_rtx_children_1): Delete.
15271         (gt_ggc_m_rtx_def): Delete.
15272         * gengtype.c (adjust_field_rtx_def): New.
15273         (adjust_field_type): Call adjust_field_rtx_def.
15274         (write_gc_structure_fields): Add 'default' case to switch if none
15275         is specified; remove unused code.
15277         * tree.h (struct tree_exp): Update for change to meaning
15278         of special.
15279         * gengtype.c (adjust_field_tree_exp): New function.
15280         (adjust_field_type): Handle `tree_exp' special here.
15281         (write_gc_structure_fields): Don't handle `tree_exp' special here.
15282         Handle new `dot' option.
15284         * gengtype.h: Make `info' a pointer-to-const.
15285         * gengtype-yacc.y (yacc_ids): Use xasprintf.
15287         * gengtype.c (write_gc_structure_fields): Remove implementation
15288         of `always' option, add `default' option.
15289         * doc/gty.texi (GTY Options): Remove documentation of `always',
15290         add `default'.
15292 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
15294         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
15296 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15298         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
15300         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
15301         instead of the *-protos.h file directly.
15302         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
15303         * darwin.c (machopic_output_stub): Move prototype ...
15304         * darwin-protos.h (machopic_output_stub): ... here.
15305         * rs6000-protos.h (machopic_output_stub): Don't declare.
15307 2002-09-16  Richard Henderson  <rth@redhat.com>
15309         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
15311 2002-09-16  Richard Henderson  <rth@redhat.com>
15313         * real.c, real.h: Rewrite from scratch.
15315         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
15316         (paranoia): New target.
15317         * builtins.c (fold_builtin_inf): Use new real.h interface.
15318         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
15319         * c-lex.c (interpret_float): Likewise.
15320         * emit-rtl.c (gen_lowpart_common): Likewise.
15321         * optabs.c (expand_float): Use real_2expN.
15322         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
15323         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
15324         (FLOAT_WORDS_BIG_ENDIAN): New.
15325         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
15326         directly to REAL_VALUE_NEGATIVE.
15327         * loop.c (canonicalize_condition): Likewise.
15328         * simplify-rtx.c: Include tree.h.
15329         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
15330         with floating-point result modes.
15331         * toplev.c (backend_init): Call init_real_once.
15333         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
15334         * tree.c (build_real): Likewise.
15335         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
15336         float_values, inited_float_values, check_float_value): Remove.
15337         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
15338         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
15339         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
15340         (VAX_HALFWORD_ORDER): Remove.
15342 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
15344         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
15345         (s390_load_address): ... this new function.
15346         (s390_decompose_address): Allow the argument pointer and all
15347         virtual registers as 'pointer' registers.
15348         (s390_expand_plus_operand): Use s390_load_address.
15349         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
15350         ("force_la_31"): New insn pattern.
15351         config/s390/s390-protos.h (legitimize_la_operand): Remove.
15352         (s390_load_address): Add prototype.
15354         * config/s390/s390.c: Include "optabs.h".
15355         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
15356         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
15357         s390_expand_cmpstr): Add prototypes.
15358         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
15359         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
15360         for operands 0 and 1 to "memory_operand".  Add type attribute.
15361         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
15362         for operands 0 and 1 to "memory_operand".  Add type attribute.
15363         ("movstrdi_long", "movstrsi_long"): Remove.
15364         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
15365         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
15366         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
15367         ("clrstrsico"): Remove, replace by ...
15368         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
15369         ("clrstrsi_64"): Rename to "clrstr_long_64".
15370         ("clrstrsi_31"): Rename to "clrstr_long_31".
15371         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
15372         ("cmpstr_const"): Remove, replace by ...
15373         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
15374         ("cmpstr_64"): Rename to "cmpstr_long_64".
15375         ("cmpstr_31"): Rename to "cmpstr_long_31".
15377 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
15379         * ABOUT-NLS: Follow spelling conventions.
15380         * ChangeLog: Likewise.
15381         * ChangeLog.1: Likewise.
15382         * ChangeLog.2: Likewise.
15383         * ChangeLog.3: Likewise.
15384         * ChangeLog.4: Likewise.
15385         * ChangeLog.5: Likewise.
15386         * ChangeLog.6: Likewise.
15387         * FSFChangeLog.10: Likewise.
15388         * FSFChangeLog.11: Likewise.
15389         * c-common.c: Likewise.
15390         * c-lex.c: Likewise.
15391         * c-objc-common.c: Likewise.
15392         * cppexp.c: Likewise.
15393         * cppinit.c: Likewise.
15394         * cpplex.c: Likewise.
15395         * doloop.c: Likewise.
15396         * flow.c: Likewise.
15397         * function.c: Likewise.
15398         * integrate.c: Likewise.
15399         * loop.c: Likewise.
15400         * reg-stack.c: Likewise.
15401         * reload.h: Likewise.
15402         * ssa.c: Likewise.
15404 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15406         * Makefile.in (vmsdbgout.o): Depend on $(TARGET_H)
15407         * vmsdbgout.c: Include "target.h".
15409 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
15411         * ChangeLog: Follow spelling conventions.
15412         * ChangeLog.0: Likewise.
15413         * ChangeLog.1: Likewise.
15414         * ChangeLog.2: Likewise.
15415         * ChangeLog.4: Likewise.
15416         * ChangeLog.6: Likewise.
15417         * config.gcc: Likewise.
15418         * dwarfout.c: Likewise.
15419         * reload1.c: Likewise.
15420         * simplify-rtx.c: Likewise.
15421         * unwind-sjlj.c: Likewise.
15422         * config/avr/avr.h: Likewise.
15423         * config/d30v/d30v.h: Likewise.
15424         * config/frv/frv.c: Likewise.
15425         * config/frv/frv.h: Likewise.
15426         * config/ip2k/ip2k.h: Likewise.
15427         * config/m88k/m88k-move.sh: Likewise.
15428         * config/stormy16/stormy16.c: Likewise.
15429         * config/stormy16/stormy16.h: Likewise.
15430         * doc/extend.texi: Likewise.
15431         * doc/interface.texi: Likewise.
15432         * doc/invoke.texi: Likewise.
15433         * doc/md.texi: Likewise.
15434         * doc/rtl.texi: Likewise.
15435         * doc/tm.texi: Likewise.
15436         * doc/trouble.texi: Likewise.
15437         * ginclude/float.h: Likewise.
15438         * treelang/treelang.texi: Likewise.
15440 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15442         * i386-protos.h (i386_pe_dllexport_name_p,
15443         i386_pe_dllimport_name_p, i386_pe_unique_section,
15444         i386_pe_declare_function_type, i386_pe_record_external_function,
15445         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
15446         prototype.
15447         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
15448         * i386/t-interix (winnt.o): Likewise.
15450         * v850-protos.h (v850_output_addr_const_extra): Prototype.
15452 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
15454         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
15455         MIPS ABI CPP macros.
15456         (TARGET_CPU_CPP_BUILTINS): Redefine.
15457         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
15458         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
15460 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15462         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
15464 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
15466         * ChangeLog: Follow spelling conventions.
15467         * ChangeLog.0: Likewise.
15468         * ChangeLog.1: Likewise.
15469         * ChangeLog.2: Likewise.
15470         * ChangeLog.3: Likewise.
15471         * ChangeLog.4: Likewise.
15472         * ChangeLog.5: Likewise.
15473         * ChangeLog.6: Likewise.
15474         * FSFChangeLog.10: Likewise.
15475         * FSFChangeLog.11: Likewise.
15476         * c-common.c: Likewise.
15477         * c-common.h: Likewise.
15478         * c-format.c: Likewise.
15479         * c-opts.c: Likewise.
15480         * cpplib.c: Likewise.
15481         * langhooks.h: Likewise.
15482         * real.c: Likewise.
15483         * reg-stack.c: Likewise.
15484         * toplev.c: Likewise.
15485         * config/arm/arm.c: Likewise.
15486         * config/arm/arm.md: Likewise.
15487         * config/arm/linux-gas.h: Likewise.
15488         * config/arm/netbsd.h: Likewise.
15489         * config/c4x/c4x.c: Likewise.
15490         * config/c4x/c4x.h: Likewise.
15491         * config/c4x/c4x.md: Likewise.
15492         * config/c4x/libgcc.S: Likewise.
15493         * config/fr30/fr30.md: Likewise.
15494         * config/frv/frv.md: Likewise.
15495         * config/ia64/ia64.md: Likewise.
15496         * config/mips/mips.h: Likewise.
15497         * config/mn10300/mn10300.c: Likewise.
15498         * config/stormy16/stormy16.c: Likewise.
15499         * config/v850/v850.md: Likewise.
15500         * doc/extend.texi: Likewise.
15501         * doc/invoke.texi: Likewise.
15502         * doc/md.texi: Likewise.
15504 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
15506         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
15507         library if -pthread is specified.
15509 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
15511         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
15512         for --enable-threads=yes and --enable-threads=posix.
15514 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
15516         * config/sparc/cypress.md: Replace Sparc with SPARC.
15517         * config/sparc/freebsd.h: Likewise.
15518         * config/sparc/gmon-sol2.c: Likewise.
15519         * config/sparc/hypersparc.md: Likewise.
15520         * config/sparc/lb1spc.asm: Likewise.
15521         * config/sparc/lb1spl.asm: Likewise.
15522         * config/sparc/linux.h: Likewise.
15523         * config/sparc/linux64.h: Likewise.
15524         * config/sparc/lynx.h: Likewise.
15525         * config/sparc/sol2.h: Likewise.
15526         * config/sparc/sparc-modes.def: Likewise.
15527         * config/sparc/sparc.c: Likewise.
15528         * config/sparc/sparc.h: Likewise.
15529         * config/sparc/sparc.md: Likewise.
15530         * config/sparc/sparclet.md: Likewise.
15531         * config/sparc/supersparc.md: Likewise.
15532         * config/sparc/sysv4.h: Likewise.
15533         * config/sparc/vxsim.h: Likewise.
15534         * config/sparc/vxsparc64.h: Likewise.
15536 2002-09-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15538         * c-lex.c (cb_ident): Mark variable with ATTRIBUTE_UNUSED.
15539         * collect2.c (ignore_library, aix_std_libs): Move into the context
15540         where it is used.
15541         * m68hc11.c (m68hc11_autoinc_compatible_p): Delete prototype.
15542         (autoinc_mode, m68hc11_make_autoinc_notes): Add prototypes.
15543         * m88k.c (output_call): Wrap variables with macro controlling use.
15544         * rs6000.md: Likewise.  Const-ify variable.
15545         * sh.h (ASM_OUTPUT_LABELREF): Likewise.
15546         * final.c (only_leaf_regs_used): Likewise.
15547         * regrename.c (maybe_mode_change): Mark parameter with
15548         ATTRIBUTE_UNUSED.
15549         * reload.c (find_valid_class): Likewise.  Likewise for variable.
15550         (find_reloads_address_1): Likewise.
15551         * varasm.c (weak_finish): Wrap variable with macro controlling use.
15553 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15555         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
15557 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15559         * ChangeLog: Follow spelling conventions.
15560         * ChangeLog.0: Likewise.
15561         * ChangeLog.2: Likewise.
15562         * ChangeLog.3: Likewise.
15563         * ChangeLog.4: Likewise.
15564         * ChangeLog.5: Likewise.
15565         * ChangeLog.6: Likewise.
15566         * cppfiles.c: Likewise.
15567         * cppinit.c: Likewise.
15568         * cpplib.h: Likewise.
15569         * cse.c: Likewise.
15570         * debug.h: Likewise.
15571         * df.c: Likewise.
15572         * dominance.c: Likewise.
15573         * hashtable.c: Likewise.
15574         * hashtable.h: Likewise.
15575         * loop.c: Likewise.
15576         * config/arm/README-interworking: Likewise.
15577         * config/arm/arm.c: Likewise.
15578         * config/arm/arm.h: Likewise.
15579         * config/arm/arm.md: Likewise.
15580         * config/dsp16xx/dsp16xx.h: Likewise.
15581         * config/frv/frv.c: Likewise.
15582         * config/frv/frv.h: Likewise.
15583         * config/ip2k/ip2k.h: Likewise.
15584         * config/rs6000/rs6000.c: Likewise.
15585         * config/stormy16/stormy-abi: Likewise.
15586         * config/stormy16/stormy16.h: Likewise.
15587         * config/v850/v850.c: Likewise.
15589 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15591         * loop.c: Fix a comment typo.
15593 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15595         * config/fr30/fr30.h: Fix comment typos.
15596         * config/frv/frv.c: Likewise.
15597         * config/i386/xmmintrin.h: Likewise.
15598         * config/mips/mips.c: Likewise.
15599         * config/sh/sh.c: Likewise.
15601 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
15603         * haifa-sched.c: Follow spelling conventions.
15604         * regclass.c: Likewise.
15605         * regrename.c: Likewise.
15606         * config/fp-bit.c: Likewise.
15607         * config/frv/frv.h: Likewise.
15608         * config/m88k/m88k.c: Likewise.
15609         * config/mcore/mcore.c: Likewise.
15610         * config/rs6000/darwin.h: Likewise.
15611         * config/rs6000/gnu.h: Likewise.
15612         * config/rs6000/linux.h: Likewise.
15613         * config/rs6000/linux64.h: Likewise.
15614         * config/rs6000/rs6000.c: Likewise.
15615         * config/rs6000/rs6000.h: Likewise.
15616         * config/sh/sh.c: Likewise.
15617         * config/sparc/sparc.c: Likewise.
15618         * config/sparc/ultra1_2.md: Likewise.
15620 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
15622         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
15623         memory operand when source is 0 (K constraint).
15624         ("movsi_internal"): Likewise.
15625         ("movdf_internal"): Likewise.
15626         ("movsf_internal"): Likewise.
15628 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
15630         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
15631         targetm.binds_local_p to set SYMBOL_REF_FLAG.
15632         (rs6000_xcoff_encode_section_info): Likewise.
15633         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15635 2002-09-10  Theodore A. Roth  <troth@verinet.com>
15637         * gcc/config/avr/avr.h: Set default options for C++ for avr.
15639 2002-09-13  Roger Sayle  <roger@eyesopen.com>
15641         * stmt.c (struct nexting): Remove unused alt_end_label field.
15642         (expand_start_loop): Delete initialization of alt_end_label.
15643         (expand_start_null_loop): Likewise.
15644         (expand_exit_loop_if_false): Delete updating of alt_end_label.
15646 2002-09-13  Richard Henderson  <rth@redhat.com>
15648         * Makefile.in (toplev.o): Depend on real.h.
15649         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
15651 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
15653         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
15654         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
15655         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
15657 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
15659         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
15661 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
15663         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
15664         ia64*-*-linux*): Set extra_parts.
15665         * config/ia64/t-aix (EXTRA_PARTS): Remove.
15666         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
15668 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
15670         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
15671         * config/h8300/h8300.c: Likewise.
15672         * config/h8300/h8300.h: Likewise.
15673         * config/h8300/h8300.md: Likewise.
15674         * doc/invoke.texi: Likewise.
15676 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
15678         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
15680 2002-09-13  Richard Henderson  <rth@redhat.com>
15682         * config/alpha/alpha.md (attr type): Add callpal.
15683         (imb, trap, load_tp, set_tp): Use it.
15684         * config/alpha/ev4.md (ev4_callpal): New.
15685         * config/alpha/ev5.md (ev5_callpal): New.
15686         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
15687         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
15688         (alphaev5_insn_pipe): Likewise.
15690 2002-09-13  Andreas Jaeger  <aj@suse.de>
15692         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
15694 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
15696         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
15697         LIB2ADDEH): New, set to NULL.
15698         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
15700 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
15702         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
15703         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
15704         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
15705         Add declarations.
15706         (_U_Qfneg): Remove.
15708 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
15710         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
15711         for H8/300, H8S aa:8 mode.
15712         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
15713         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
15714         for H8/300 aa:8 mode.
15716 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
15718         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
15719         insns.
15721 2002-09-12  Richard Henderson  <rth@redhat.com>
15723         * Makefile.in (HOST_PRINT): Use print-rtl1.o
15724         (print-rtl.o): Don't define GENERATOR_FILE.
15725         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
15726         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
15727         unless GENERATOR_FILE.
15729 2002-09-12  Stan Shebs  <shebs@apple.com>
15731         * config/darwin.h (USER_LABEL_PREFIX): Define here...
15732         * config/i386/darwin.h: ... instead of here.
15734         * target.h (struct gcc_target): New field
15735         terminate_dw2_eh_frame_info.
15736         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15737         (TARGET_INITIALIZER): Add it.
15738         * dwarf2out.c (output_call_frame_info): Use target hook.
15739         * dwarf2asm.c (dw2_asm_output_delta): Use macro
15740         ASM_OUTPUT_DWARF_DELTA if defined.
15741         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
15742         (ASM_OUTPUT_DWARF_DELTA): Ditto.
15743         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
15744         (ASM_OUTPUT_DWARF_PCREL): Ditto.
15745         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
15746         (powerpc-*-darwin*): Ditto.
15747         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
15748         to work correctly for Darwin.
15749         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
15750         (STARTFILE_SPEC): Add crtbegin.o.
15751         (ENDFILE_SPEC): Define.
15752         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
15753         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
15754         (ASM_OUTPUT_DWARF_DELTA): Define.
15755         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
15756         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
15758 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
15760         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
15761         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
15762         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
15764 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
15766         * toplev.c: Move default definition of USER_LABEL_PREFIX...
15767         * defaults.h: ... here.
15769 2002-09-12  Richard Henderson  <rth@redhat.com>
15771         * vax.c: Include tree.h earlier.
15773 2002-09-12  Stan Shebs  <shebs@apple.com>
15775         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
15776         (machopic_operand_p): Ditto.
15778 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15780         * config/arm/arm.c (arm_compute_initial_elimination_offset):
15781         Fix a comment typo.
15783 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15785         * toplev.c (do_abort): Fix a comment typo.
15787 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15789         * cselib.c: Fix comment formatting.
15790         * gengtype.c: Likewise.
15792 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
15794         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
15795         (udivmodhi4): Likewise.
15797 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
15798             Roger Sayle  <roger@eyesopen.com>
15800         * i386.c (any_fp_register_operand, fp_register_operand,
15801         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
15802         New predicate functions.
15803         * i386-protos.h:  Add their prototypes.
15804         * i386.h: Add them to PREDICATE_CODES.
15805         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
15806         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
15807         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
15808         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
15809         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
15810         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
15811         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
15812         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
15813         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
15814         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
15815         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
15816         Use these new predicates to simplify and correct the use of
15817         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
15819 2002-09-12  Jason Merrill  <jason@redhat.com>
15821         * diagnostic.c (output_add_identifier): New fn.
15822         * diagnostic.h: Declare it.
15824         * calls.c (store_one_arg): Use size_in_bytes to determine the
15825         amount of space to push.
15827 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
15829         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
15831 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
15833         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
15834         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
15835         (s390_select_ccmode): Likewise.
15836         (s390_branch_condition_mask): Likewise.
15837         (optimization_options): Do not set flag_branch_on_count.
15838         (s390_split_branches): Handle doloop branches.
15839         (s390_chunkify_pool): Likewise.
15840         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
15841         ("doloop_end"): New expander.
15842         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
15843         associated splitters): New.
15845 2002-09-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15847         * genattrtab.c (simplify_cond): Remove unused variable(s).
15848         * global.c (record_conflicts): Likewise.
15849         * jump.c (rebuild_jump_labels): Likewise.
15850         * loop.c (scan_loop, check_final_value): Likewise.
15851         * ra-colorize.c (colorize_one_web, assign_colors): Likewise.
15852         * reload1.c (eliminate_regs_in_insn, do_input_reload): Likewise.
15853         * rtlanal.c (reg_set_p): Likewise.
15854         * stmt.c (expand_asm_operands, expand_decl): Likewise.
15855         * genautomata.c (empty_reserv): Remove.
15856         * loop.c (max_luid): Likewise.
15857         * sched-rgn.c (bitlst_table_size): Likewise.
15859 2002-09-11  Nathan Sidwell  <nathan@codesourcery.com>
15861         Reimplement gcov format.
15862         * gcov-io.h: Replace.
15863         * gcov.c: Reimplement.
15864         * gcov-iov.c: New file.
15865         * gcov-dump.c: New file.
15866         * libgcc2.c (L_bb): Replace with ...
15867         (L_gcov): ... this.
15868         (struct bb_function_info, struct bb): Remove.
15869         (inhibit_libc): Never inhibit.
15870         (gcov_list, gcov_crc): New static variables.
15871         (gcov_version_mismatch): New static function.
15872         (__bb_exit_func): Renamed to ...
15873         (__gcov_exit): ... here. Made static. Reimplement.
15874         (__gcov_init_func): Rename to ...
15875         (__gcov_init): ... here. Check version, update crc.
15876         (__bb_fork_func): Rename to ...
15877         (__gcov_flush): ... here.
15878         * libgcc2.h (struct bb, __bb_exit_func, __bb_init_func,
15879         __bb_fork_func, gcov_type, __bb_find_arc_counters): Remove.
15880         * calls.c (expand_call): Call __gcov_flush.
15881         * profile.c (bb_file, last_bb_file_name): Remove.
15882         (bbg_file_name): New global variable.
15883         (output_gcov_string): Remove.
15884         (get_exec_counts): Reimplement.
15885         (branch_prob): Reimplement gcov file writing.
15886         (init_branch_prob): Create bbg_file_name, don't create
15887         bb_file_name.
15888         (end_branch_prob): Adjust. Don't remove counter file when
15889         instrumenting ourselves.
15890         (create_profiler): Adjust.
15891         * doc/gcov.texi (Gcov Data Files): Remove detailed specification,
15892         point to gcov-io.h.
15893         * Makefile.in (LANGUAGES): Add gcov-dump.
15894         (coverageexts): Remove .bb.
15895         (STAGESTUFF): Add gcov-dump.
15896         (LIB2FUNCS_ST): Replace _bb with _gcov.
15897         (profile.o): Depend on gcov-iov.h.
15898         (final.o): Don't depend on profile.h, gcov.h.
15899         (gcov.o): Depend on gcov-iov.h.
15900         (gcov-iov.o): New target.
15901         (gcov-iov): New target.
15902         (gcov-iov.h): New target.
15903         (gcov-dump.o): New target.
15904         (GCOV_DUMP_OBJS): New variable.
15905         (gcov-dump): New target.
15906         (distclean): Remove coverageexts.
15907         (stage1): Remove coverageexts.
15909 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
15911         * fold-const.c (make_range): Only narrow to signed range if
15912         the signed range is smaller than the unsigned range.
15914 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
15916         * emit-rtl.c (set_mem_size): New function.
15917         * expr.h (set_mem_size): Declare.
15918         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
15919         (expand_block_move): Instead, use adjust_address and
15920         replace_equiv_address to generate proper aliasing info.
15921         Move common code out of conditionals.  Localize vars.
15923 2002-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
15925         * optabs.c (expand_binop): Minor cleanup.
15926         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
15928 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
15930         * print-tree.c (print_node): Print the restrict qualifier.
15932 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
15934         * doc/install.texi: Fix typos.
15936 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
15938         * Makefile.in: Remove all references to s-under and underscore.c.
15939         * collect2.c, tlink.c: Change all uses of prepends_underscore
15940         to look directly at USER_LABEL_PREFIX.
15942 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
15944         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
15945         alignment to csect.
15946         (rs6000_xcoff_unique_section): Only set section name for public
15947         data.
15948         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
15949         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
15950         duplicate definition.
15952 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15954         * pa.md (extzv): Check predicates before emitting extzv_32.
15955         (insv): Likewise.
15957 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
15959         * config/s390/s390.h (MOVE_MAX): Define to correct value.
15960         (MAX_MOVE_MAX): Define.
15961         (MOVE_BY_PIECES_P): Define.
15962         (CLEAR_BY_PIECES_P): Define.
15964 2002-09-10  Denis Chertykov  <denisc@overta.ru>
15966         * config/avr/avr.md (movstrhi): Use right operands for conversion.
15968 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
15970         PR c/7873
15971         * arm.md (insv): Use reg_or_int_operand for operand[3].
15973 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
15975         * rs6000.c (rs6000_assemble_visibility): Protect declaration
15976         inside macro.  Correct function definition typo.
15977         (rs6000_xcoff_section_type_flags): New function.
15978         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
15979         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
15980         with appropriate PIC test.
15981         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
15982         determine readonly.
15983         (rs6000_binds_local_p): Combine PIC flags.
15984         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
15985         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
15987 2002-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15989         * h8300.md: Fix signed/unsigned warnings.
15990         * mcore.md: Likewise.
15991         * mn10300.c (mask_ok_for_mem_btst): Likewise.
15993 2002-09-09  Per Bothner  <per@bothner.com>
15995         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
15996         characters, and only print TREE_STRING_LENGTH chars.
15998 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
16000         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
16001         (ASM_FILE_END) New.
16002         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
16003         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
16004         * config/ia64/ia64.c (ia64_asm_output_external): Create list
16005         of external functions if TARGET_HPUX_LD is true.
16006         (ia64_hpux_add_extern_decl): New, routine to put names on
16007         list of external functions.
16008         (ia64_hpux_asm_file_end): Put out declarations for external
16009         functions if and only if they are used.
16011 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16013         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
16014         on TARGET_64BIT before pic register restore.
16016 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
16018         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
16019         (TARGET_HAVE_TLS): New description.
16021 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
16023         * doc/extend.texi (Statement Exprs): Fix broken link.
16025 2002-09-09  Denis Chertykov  <denisc@overta.ru>
16027         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
16028         right conversion of operands[1].
16030 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
16032         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
16033         commutative.  Use "nonimmediate_operand" instead of "register_operand"
16034         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
16036         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
16037         as commutative.
16039         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
16040         mark as commutative.  Use "nonimmediate_operand" instead of
16041         "register_operand" as predicate for operand 1.
16043         ("movstrictsi"): Fix typo in insn name.
16045 2002-09-09  Jan Hubicka  <jh@suse.cz>
16047         * i386.c (index_register_operand): New.
16048         * i386.h (predicate_codes): Add new predicate.
16049         * i386.md (lea_general_*): Use index_register_operand
16050         (ashift to lea splitter): Do not produce invalid leas
16051         (ashift to mov+ashift split): New.
16053 2002-09-09  Nick Clifton  <nickc@redhat.com>
16055         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
16056         Fix folding marks.
16058 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16059             J"orn Rennecke <joern.rennecke@superh.com>
16061         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
16063 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
16065         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
16066         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
16067         attributes.
16069 2002-09-08  Nathan Sidwell  <nathan@codesourcery.com>
16071         * basic_block.h (gcov_type): Explain why it is signed.
16072         * final.c: Don't include profile.h.
16073         (struct function_list, functions_head, functions_tail,
16074         end_final): Moved to profile.c
16075         (final): Move arc chaining code to profile.c.
16076         * function.c (prepare_function_start): Remove duplicate line.
16077         * output.h (end_final): Remove prototype.
16078         * predict.c (estimate_loops_at_level): Use gcov_type.
16079         * profile.c (struct function_list, functions_head,
16080         functions_tail): Moved from final.c
16081         (need_func_profiler): Remove.
16082         (instrument_edges): Don't set need_func_profiler.
16083         (get_exec_counts): Avoid signed/unsigned warning.
16084         (compute_checksum): Use crc32.
16085         (branch_prob): Adjust. Chain onto functions_head.
16086         (init_branch_prob): Absorb init_edge_profiler.
16087         (init_edge_profiler): Remove.
16088         (create_profiler): Moved and renamed from final.c:end_final.
16089         Emit data and constructor.
16090         (output_func_start_profiler): Remove.
16091         * profile.h (struct profile_info): checksum is unsigned.
16092         * rtl.h (output_func_start_profiler): Remove prototype.
16093         (create_profiler): Declare.
16094         * toplev.c (compile_file): Call create_profiler, if instrumenting
16095         arcs. Don't call end_final.
16097 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16099         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
16101 2002-09-08  Richard Henderson  <rth@redhat.com>
16103         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
16104         (DW_OP_GNU_push_tls_address): New.
16105         (DW_OP_lo_user): Fix.
16106         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
16107         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
16108         (size_of_loc_descr): Likewise.
16109         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
16110         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
16111         (loc_descriptor_from_tree): Handle TLS variables.
16112         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
16113         (add_location_or_const_value_attribute): ... not here.  Defer
16114         to loc_descriptor_from_tree for TLS variables.
16116         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
16117         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
16118         * config/i386/i386-protos.h: Update.
16120 2002-09-08  Roger Sayle  <roger@eyesopen.com>
16122         PR optimization/6405
16123         * unroll.c (loop_iterations): last_loop_insn should be the previous
16124         non-note instruction before loop->end.
16125         * loop.c (strength_reduce): The conditional jump is the last
16126         non-note instruction before loop->end (as above).
16128 2002-09-08  Roger Sayle  <roger@eyesopen.com>
16130         * combine.c (try_combine): Handle the case that undobuf.other_insn
16131         has been turned into a return or unconditional jump, by inserting
16132         a BARRIER if necessary.
16133         (simplify_set):  Test if a condition code setter has a constant
16134         comparison at compile time, if so convert this insn to a no-op move
16135         and update/simplify the condition code user (undobuf.other_insn).
16137 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
16139         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
16140         (CLEAR_INSN_CACHE): Define.
16142 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
16144         * basic-block.h: Fix comment formatting.
16145         * c-common.c: Likewise.
16146         * c-common.h: Likewise.
16147         * c-lex.c: Likewise.
16148         * c-pretty-print.c: Likewise.
16149         * cfglayout.c: Likewise.
16150         * cfgloop.c: Likewise.
16151         * defaults.h: Likewise.
16152         * et-forest.c: Likewise.
16153         * explow.c: Likewise.
16154         * function.h: Likewise.
16155         * gcov.c: Likewise.
16156         * genattrtab.c: Likewise.
16157         * gengtype.c: Likewise.
16158         * ifcvt.c: Likewise.
16159         * libgcc2.c: Likewise.
16160         * loop.c: Likewise.
16161         * profile.c: Likewise.
16162         * ra-build.c: Likewise.
16163         * real.c: Likewise.
16164         * rtl.h: Likewise.
16165         * tracer.c: Likewise.
16166         * tree-inline.c: Likewise.
16167         * varasm.c: Likewise.
16169 2002-09-08  Jan Hubicka  <jh@suse.cz>
16171         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
16172         handling.
16174         * loop.c (loop_givs_reduce):  Emit addition after.
16176 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
16178         * varasm.c (default_assemble_visibility): Rename from
16179         assemble_visibility.
16180         * output.h: Here too.
16181         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
16182         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
16184 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
16186         * reload.c (find_reloads <p constraint>): Pass operand_mode to
16187         find_reloads_address.
16189 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
16191         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
16192         (anonymous pattern): Likewise.
16194 2002-09-07  Igor Shevlyakov <igor@microunity.com>
16196         * machmode.def: Add modes for half-float vectors.
16198 2002-09-07  Scott Snyder  <snyder@fnal.gov>
16200         PR target/7374
16201         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
16203 2002-09-07  Roger Sayle  <roger@eyesopen.com>
16205         * basic-block.h (struct loop): Remove unused cont_dominator field.
16207 2002-09-07  Igor Shevlyakov <igor@microunity.com>
16209         * varasm.c (decode_rtx_const): Don't check undefined field for
16210         CONST_VECTOR.
16212 2002-09-07  Glen Nakamura  <glen@imodulo.com>
16214         PR opt/7814
16215         * sched-deps.c (sched_analyze_insn): Make sure to add insn
16216         to reg_last->sets after flushing the dependency lists to guarantee
16217         that subsequent clobbers will be dependent on it.
16219 2002-09-07  Igor Shevlyakov <igor@microunity.com>
16221         * combine.c (simplify_shift_const): Calculate rotate count
16222         correctly for vector operands.
16224 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
16226         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
16227         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
16228         tree_expr_nonnegative_p.
16229         (build_conditional_expr): Likewise.
16230         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
16232 2002-09-07  Richard Henderson  <rth@redhat.com>
16234         * builtins.def (inf, inff, infl): Mark const.
16235         (huge_val, huge_valf, huge_vall): Likewise.
16236         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
16238         * real.c (ereal_inf): Clear E before use.
16240 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
16242         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
16243         an expander and an anonymous pattern.  Zero out the upper half
16244         of the dividend in the expander.
16245         (udivmodqi4): Likewise.
16247 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
16249         * config/h8300/h8300.c: Fix formatting.
16250         * config/h8300/h8300.h: Likewise.
16251         * config/h8300/h8300.md: Likewise.
16253 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16255         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
16256         information.
16258 2002-09-07  Graham Stott  <graham.stott@btinternet.com>
16260        * rtlanal.c (dead_or_set_regno_p): Fix typo.
16262 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
16264         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16266         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
16267         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
16268         (TARGET_ASM_OUT): Add the above here.
16269         * target.h (struct gcc_target): Add "visibility" field.
16270         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
16271         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
16272         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
16273         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
16275 2002-09-06  Ziemowit Laski <zlaski@apple.com>
16277         * c-lang.c (objc_is_id): New stub.
16278         * c-tree.h (objc_is_id): New forward declaration.
16279         * c-typeck.c (build_c_cast): Do not strip protocol
16280         qualifiers from 'id' type.
16281         * objc/objc-act.c (objc_comptypes): Correct handling
16282         of protocol qualifiers.
16283         (objc_is_id): New.
16285 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
16287         * pentium.md (pentium-firstvboth): Fix typo.
16289 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
16291         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
16292         (enum shift_type, enum h8_cpu): Likewise.
16293         (INL, ROT, LOP, SPC macros): Likewise.
16294         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
16295         const designator.
16296         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
16297         space efficient algorithms when optimize for codesize.
16299 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16301         Fix PR/1727 and long-standing failing testcase
16302         objc/formal-protocol-6.m.
16303         * objc-act.c (build_protocol_expr): If compiling for the GNU
16304         runtime, create a list of Protocol statically allocated instances
16305         if it doesn't exist, then add the Protocol object to this same
16306         list.
16307         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
16308         instead of TREE_CHAIN.
16310 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16312         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
16313         10k.  Fixed category dumping - print out category names with the
16314         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
16315         interface.
16316         (finish_objc): Fixed the -gen-decls option.  It was printing out
16317         only the last class.  Dump an interface declaration of all classes
16318         being compiled instead.
16320 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
16322         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
16323         prototype.
16324         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
16325         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
16326         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
16327         rather than GEN_INT.
16328         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
16329         (return_addr_mask, *check_arch2): New.
16331 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
16333         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
16334         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
16335         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
16336         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
16337         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
16338         "adddf3", "*adddf3", "*adddf3_ibm",
16339         "addsf3", "*addsf3", "*addsf3_ibm",
16340         "muldi3", "mulsi3", "mulsidi3",
16341         "muldf3", "*muldf3", "*muldf3_ibm",
16342         "mulsf3", "*mulsf3", "*mulsf3_ibm",
16343         "*anddi3_cc", "*anddi3_cconly", "anddi3",
16344         "*andsi3_cc", "*andsi3_cconly", "andsi3",
16345         "*iordi3_cc", "*iordi3_cconly", "iordi3",
16346         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
16347         "*xordi3_cc", "*xordi3_cconly", "xordi3",
16348         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
16349         instead of "register_operand" as predicate for "%0" operand.
16351 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
16353         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
16354         unconditionally when gcc_cv_as_flags64 checks are gone.
16355         * configure: Rebuilt.
16357 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
16359         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
16360         2002-07-26 change.  Comment.
16362 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16364         * frv.c (frv_unique_section, frv_select_section,
16365         frv_select_rtx_section): Delete.
16366         (frv_in_small_data_p): New.
16367         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
16368         TARGET_ASM_SELECT_RTX_SECTION): Delete.
16369         (TARGET_IN_SMALL_DATA_P): Define.
16371 2002-09-05  Dale Johannesen  <dalej@apple.com>
16373         * reload1.c (reload):  Retain only those memory clobbers
16374         added for variable-array handling.
16376 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
16378         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
16379         return-in-memory rules.
16380         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
16382 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
16384         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
16385         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
16387 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
16389         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
16390         not a compile-time constant for the non-IBM case.
16391         * config/arm/arm-protos.h (arm_float_words_big_endian): New
16392         prototype.
16393         * config/arm/arm.c (arm_float_words_big_endian): New function.
16394         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
16395         if TARGET_VFP  and not TARGET_HARD_FLOAT.
16396         (ARM_FLAG_VFP, TARGET_VFP): Define.
16397         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
16399 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
16401         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
16402         URLs.  Fix AIX wording.
16404 2002-09-05  Stan Shebs  <shebs@apple.com>
16406         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
16407         -fPIC equivalent on Darwin.
16409 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
16411         * sh.c (sh_expand_builtin): Return early if encountering an
16412         error_mark for a type.
16414 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
16416         * config/s390/s390.c (s390_expand_plus_operand): Do not require
16417         double-word scratch register.
16418         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
16420         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
16421         "*cli"): Replace s_operand by memory_operand.
16422         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
16424 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
16426         * config/h8300/h8300.c (asm_file_start): Add a missing
16427         semicolon.
16429 2002-09-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
16431         * c-typeck.c (build_function_call): Remove unused variable(s).
16432         (build_c_cast): Likewise.
16433         * calls.c (rtx_for_function_call): Likewise.
16434         * cfglayout.c (duplicate_insn_chain): Likewise.
16435         * cfgloop.c (flow_loop_nodes_find): Likewise.
16436         * cfgrtl.c (split_edge): Likewise.
16437         * df.c (df_ref_create): Likewise.
16438         * except.c (expand_end_catch): Likewise.
16439         * expr.c (emit_push_insn, store_constructor, expand_expr): Likewise.
16440         * function.c (emit_return_into_block): Likewise.
16441         (reposition_prologue_and_epilogue_notes): Likewise.
16442         * gengtype.c (get_file_basename, write_gc_structure_fields): Likewise.
16443         * combine.c (subst_prev_insn, need_refresh): Remove.
16444         * dwarf2out.c (primary_filename): Remove.
16445         * final.c (new_block): Remove.
16446         * gcse.c (orig_bb_count): Remove.
16448 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16450         * dsp16xx-protos.h (dsp16xx_compare_gen): Change to bool.
16451         * dsp16xx.c (dsp16xx_compare_gen): Likewise.
16452         * dsp16xx.md: Treat dsp16xx_compare_gen as a bool.  Call functions
16453         directly instead of using a function pointer.
16455 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
16457         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
16458         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
16459         (ix86_output_addr_diff_elt) Likewise.
16460         (x86_output_mi_thunk) Likewise.
16461         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
16463 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16465         * frv.c (frv_encode_section_info): Fix error in last change.
16467 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
16469         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
16470         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
16471         (TARGET_BINDS_LOCAL_P): Define.
16472         (rs6000_override_options): Save original flag_pic value.
16473         (rs6000_elf_select_section): Call default_elf_select_section_1.
16474         (rs6000_elf_unique_section): Call default_unique_section_1.
16475         (rs6000_elf_in_small_data_p): New function.
16476         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
16477         (rs6000_xcoff_select_section): Update based on defaults.
16478         (rs6000_xcoff_unique_section): Set to basic name if not common.
16479         (rs6000_binds_local_p): New function.
16480         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
16481         targetm.have_srodata_section if SDATA_EABI.
16482         (TARGET_IN_SMALL_DATA_P): Define.
16484 2002-09-04  Dale Johannesen  <dalej@apple.com>
16486         * varasm.c (struct rtx_const, decode_rtx_const):
16487         Make veclo and vechi fields not share storage.
16489 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
16491         * loop.c (scan_loop): Don't mark separate insns out of a libcall
16492         for moving.
16493         (move_movables): Abort if we see the first insn of a libcall.
16495 2002-09-04  Richard Henderson  <rth@redhat.com>
16497         * builtin-types.def (BT_FN_FLOAT): New.
16498         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
16499         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
16500         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
16501         * builtins.c (fold_builtin_inf): New.
16502         (fold_builtin): Call it.
16503         * real.c (ereal_inf): New.
16504         * real.h: Declare it.
16505         * doc/extend.texi: Document new builtins.
16507 2002-09-04  Richard Henderson  <rth@redhat.com>
16509         * cse.c (cse_insn): Avoid subreg games if the equivalence
16510         is already in the proper mode.
16512 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
16514         PR c/7102
16515         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
16517 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16519         * pa.md (setccfp0, setccfp1): New patterns.
16521 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16523         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
16524         frv_select_section, frv_select_rtx_section,
16525         frv_encode_section_info, frv_unique_section): Delete.
16526         * frv.c: Update for target hooks.
16527         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
16528         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
16529         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
16531 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16533         * ip2k-protos.h (function_prologue, function_epilogue,
16534         encode_section_info): Update to match target hook specification.
16535         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
16536         (function_prologue, function_epilogue, encode_section_info):
16537         Update to match target hook specification.
16538         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
16539         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
16540         (NOTICE_UPDATE_CC): Cast to void.
16541         * ip2k.md: Add defaults in switch statements.
16543 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
16545         * doc/trouble.texi (Interoperation): Update information about C++ ABI
16546         issues.
16548 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
16550         * config/sparc/t-netbsd64: Disable multilib for now.
16552 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
16554         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
16555         * target.h (gcc_target): Add have_srodata_section member.
16556         * varasm.c (section_category): Add SECCAT_SRODATA.
16557         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
16558         READONLY_SDATA_SECTION defined.
16559         (decl_readonly_section_1): True for SECCAT_SRODATA also.
16560         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
16561         (default_unique_section_1): Likewise.
16563 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16565         * expr.c (emit_group_load): Revise to allow splitting TCmode source
16566         into DImode pieces.
16568         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
16569         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
16570         for floating-point register class.
16571         * pa.c (function_arg): Fix handling of modes wider than one word for
16572         TARGET_64BIT.
16574 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
16576         * combine.c (make_compound_operation): Don't generate zero / sign
16577         extensions in floating point modes.
16579 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
16581         * doc/c-tree.texi: Fix overfull hboxes.
16582         * doc/cppopts.texi: Ditto.
16583         * doc/extend.texi: Ditto.
16584         * doc/gty.texi: Ditto.
16585         * doc/invoke.texi: Ditto.
16586         * doc/makefile.texi: Ditto.
16587         * doc/rtl.texi: Ditto.
16588         * doc/standards.texi: Ditto.
16589         * doc/tm.texi: Ditto.
16591 2002-09-04  Richard Henderson  <rth@redhat.com>
16593         * c-common.c (builtin_define_with_hex_fp_value): New.
16594         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
16596 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
16598         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
16599         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
16600         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
16601         Warn that these options can break ABI compatibility.
16603 2002-09-04  Richard Henderson  <rth@redhat.com>
16605         * real.c (ereal_to_decimal): Add digits parameter.
16606         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
16607         * c-pretty-print.c (pp_c_real_literal): Update call.
16608         * print-rtl.c (print_rtx): Likewise.
16609         * print-tree.c (print_node_brief, print_node): Likewise.
16610         * sched-vis.c (print_value): Likewise.
16611         * config/arc/arc.c (arc_print_operand): Likewise.
16612         * config/c4x/c4x.c (c4x_print_operand): Likewise.
16613         * config/i370/i370.h (PRINT_OPERAND): Likewise.
16614         * config/i386/i386.c (print_operand): Likewise.
16615         * config/i960/i960.c (i960_print_operand): Likewise.
16616         * config/ip2k/ip2k.c (asm_output_float): Likewise.
16617         * config/m32r/m32r.c (m32r_print_operand): Likewise.
16618         * config/m68hc11/m68hc11.c (print_operand): Likewise.
16619         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
16620         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
16621         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
16622         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
16623         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
16624         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
16625         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
16626         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
16627         * config/mips/mips.c (print_operand): Likewise.
16628         * config/ns32k/ns32k.c (print_operand): Likewise.
16629         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
16630         * config/vax/vax.h (PRINT_OPERAND): Likewise.
16631         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
16633 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
16635         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
16636         xtensa_multibss_section_type_flags.
16637         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
16639 2002-09-04  Richard Henderson  <rth@redhat.com>
16641         * doc/install-old.texi: Don't mention enquire.
16642         * doc/sourcebuild.texi: Update float.h description.
16644 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
16646         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
16648 2002-09-03  Roger Sayle  <roger@eyesopen.com>
16650         * builtins.c (build_function_call_expr): Remove prototype, export
16651         as non-static and add a comment above function definition.
16652         (builtin_mathfn_code): New function to check for math builtins.
16653         (fold_builtin): Optimize sqrt(0.0) as 0.0, sqrt(1.0) as 1.0,
16654         exp(0.0) as 1.0, and log(1.0) as 0.0.  Optimize exp(log(x)) and
16655         log(exp(x)) as x.  Optimize sqrt(exp(x)) as exp(x/2.0) and
16656         log(sqrt(x)) as log(x)/2.0.
16658         * tree.h: Prototype build_function_call_expr and builtin_mathfn_code
16659         in new "builtins.c" section.  Place the build_range_type prototype
16660         with the other prototypes from "tree.c".
16662         * fold-const.c (fold) [ABS_EXPR]: Fold fabs(sqrt(x)) as sqrt(x)
16663         and fabs(exp(x)) as exp(x).  [MULT_EXPR]: Fold sqrt(x)*sqrt(y)
16664         as sqrt(x*y) and exp(x)*exp(y) as exp(x+y). [RDIV_EXPR]: Fold
16665         x/exp(y) as x*exp(-y).
16667 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
16669         * varasm.c (default_section_type_flags): Append _1 to name with
16670         shlib parameter.  Use original name to call new function with
16671         implicit flag_pic.
16672         (decl_readonly_section): Likewise.
16673         (default_elf_select_section): Likewise.
16674         (default_unique_section): Likewise.
16675         (default_bind_local_p): Likewise.
16676         (categorize_decl_for_section): Add shlib parameter to use in place
16677         of implicit flag_pic.
16678         * output.h: Declare new functions with _1 and shlib argument.
16680 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
16682         * doc/install.texi: Fix typos, formatting problems, and obvious
16683         overfull/underfull boxes.
16685         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
16686         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
16687         include its file, compat.texi.
16688         * doc/compat.texi: New file with new chapter, Binary Compatibility.
16690 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
16692         Debian BTS Bug #157416
16693         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
16694         * cpplib.c (destringize_and_run): Kludge around getting
16695         tokens from in-progress macros.
16696         (_cpp_do__Pragma): Simplify.
16698 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
16700         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
16701         (CPP_CPU_SPEC): Remove.
16702         (TARGET_CPU_CPP_BUILTINS): New.
16703         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
16704         (CPP_SPEC): Remove.
16705         (TARGET_OS_CPP_BUILTINS): New.
16706         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
16707         (TARGET_OS_CPP_BUILTINS): New.
16708         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
16709         TARGET_OS_CPP_BUILTINS.
16710         (CPP_PREDEFINES): Remove.
16711         (CPLUSPLUS_CPP_SPEC): Remove.
16712         (TARGET_OS_CPP_BUILTINS): New.
16714 2002-09-03  Richard Henderson  <rth@redhat.com>
16716         * Makefile.in (USER_H): Add ginclude/float.h.
16717         (FLOAT_H): Remove.
16718         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
16719         (mostlyclean): Don't remove float.h intermediate files.
16720         (distclean): Don't remove float.h.
16721         * config.gcc: Remove all float_format references.
16722         * configure.in (float_format, float_h_file): Remove.
16724         * c-common.c: Include tree-inline.h.
16725         (builtin_define_with_int_value): New.
16726         (builtin_define_type_precision): Use it.
16727         (builtin_define_float_constants): New.
16728         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
16729         __FLT_EVAL_METHOD__.
16730         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
16731         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
16732         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
16733         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
16734         (TARGET_FLT_EVAL_METHOD): New.
16736         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
16737         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
16738         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
16739         * ginclude/float.h: New.
16741 2002-09-03  Stan Shebs  <shebs@apple.com>
16743         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
16744         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
16745         (PREFERRED_DEBUGGING_TYPE): Ditto.
16746         (ASM_OUTPUT_IDENT): Remove empty definition.
16748 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
16750         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
16751         cxx_target.
16752         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
16753         handling routine for builtin pragma.
16754         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
16755         Registered pragma handling routine.
16756         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
16757         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
16758         If builtin pragma seen for math routine and C89 conformance is
16759         requested use different math function in order to set errno.
16760         * t-ia64 (ia64-c.o): Add new rule for new file.
16762 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
16764         * config/s390/s390.md ("movti"): Add Q->Q alternative.
16765         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
16766         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
16768         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
16769         "*movsf_ss"): Remove.
16771 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16773         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
16774         Delete macros.
16776 2002-09-03   Arati Dikey  <aratid@kpit.com>
16778         * h8300.c (asm_file_start): Corrected optimization comment.
16780 2002-09-03  Stan Shebs  <shebs@apple.com>
16782         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
16783         * c-tree.h (recognize_objc_keyword): Remove decl.
16784         * c-typeck.c (comp_target_types): Update a comment.
16786 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
16788         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
16789         and register validity checks.
16790         (general_s_operand): Adapt to s390_decompose_address interface change.
16791         (q_constraint): Likewise.
16792         (s390_expand_plus_operand): Likewise.
16793         (legitimiate_address_p): Likewise.
16794         (legitimate_la_operand_p): Likewise.
16795         (legitimize_la_operand): Likewise.
16796         (print_operand_address): Likewise.
16797         (print_operand): Likewise.
16799 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16801         PR objc/5956:
16802         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
16803         was causing the new selector never to match the existing ones
16804         (Patch by Alexander Malmberg <alexander@malmberg.org>).
16806 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
16808         * config/i386/i386.md ("femms"): Add "memory" attr "none".
16810 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
16812         * expr.c (expand_expr): Remove extraneous comment and code.
16814 2002-09-02  Nathan Sidwell  <nathan@codesourcery.com>
16816         * stor-layout (finish_builtin_struct): Renamed and moved from c++
16817         frontend. Take chain of fields. Allow NULL alignment type.
16818         * tree.h (finish_builtin_struct): Declare.
16820 2002-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16822         * config/alpha/alpha.c config/alpha/alpha.h config/alpha/alpha.md
16823         config/alpha/elf.h config/alpha/unicosmk.h config/alpha/vms.h
16824         config/arc/arc.c config/arc/arc.h config/arm/aout.h
16825         config/arm/arm.c config/arm/arm.h config/arm/arm.md
16826         config/avr/avr.h config/d30v/d30v.h config/dbxcoff.h
16827         config/dbxelf.h config/elfos.h config/fr30/fr30.h config/frv/frv.h
16828         config/i386/i386.c config/i386/i386.md config/i386/sco5.h
16829         config/ia64/ia64.h config/ip2k/ip2k.h config/m68hc11/m68hc11.md
16830         config/m68k/hp320.h config/m68k/m68k.c config/m68k/m68k.md
16831         config/m68k/mot3300.h config/m68k/sgs.h config/m68k/tower-as.h
16832         config/m88k/m88k.c config/m88k/m88k.h config/mcore/mcore-pe.h
16833         config/mcore/mcore.c config/mips/mips.c config/mips/mips.h
16834         config/ns32k/ns32k.md config/pa/pa-linux.h config/pa/pa.c
16835         config/pa/pa.h config/pa/pa.md config/romp/romp.h
16836         config/rs6000/linux64.h config/rs6000/lynx.h
16837         config/rs6000/rs6000.c config/rs6000/sysv4.h config/rs6000/xcoff.h
16838         config/s390/s390.c config/s390/s390.md config/sh/sh.c
16839         config/sparc/sparc.c config/sparc/sysv4.h
16840         config/stormy16/stormy16.h dbxout.c defaults.h dwarf2out.c
16841         dwarfout.c except.c final.c varasm.c vmsdbgout.c: Replace
16842         ASM_OUTPUT_INTERNAL_LABEL macro with a call to the target hook.
16844         * doc/tm.texi: Update docs.
16845         * default.h (ASM_OUTPUT_INTERNAL_LABEL): Don't define.
16846         * system.h (ASM_OUTPUT_INTERNAL_LABEL): Poison.
16848 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16850         * Makefile.in (sdbout.o, insn-output.o): Depend on $(TARGET_H).
16851         * arc.c (arc_internal_label): New function.
16852         (TARGET_ASM_INTERNAL_LABEL): Set.
16853         * arc.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16854         * arm.c (arm_internal_label): New function.
16855         (TARGET_ASM_INTERNAL_LABEL): Set.
16856         * arm.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16857         * arm/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16858         * i370.c (i370_internal_label): New function.
16859         (TARGET_ASM_INTERNAL_LABEL): Set.
16860         * i370.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16861         * m68k/hp320.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16862         * m68k.c (m68k_hp320_internal_label): New function.
16863         (TARGET_ASM_INTERNAL_LABEL): Set.
16864         * m88k.c (m88k_internal_label): New function.
16865         (TARGET_ASM_INTERNAL_LABEL): Set.
16866         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16867         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Set to target hook.
16868         * genoutput.c (output_prologue): Include target.h in output file.
16869         * output.h (default_internal_label): Declare.
16870         * sdbout.c: Include target.h.
16871         * target-def.h (TARGET_ASM_INTERNAL_LABEL): Set and add to
16872         TARGET_ASM_OUT.
16873         * target.h (internal_label): Add to struct gcc_target.
16874         * varasm.c (default_internal_label): New function.
16876 2002-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16878         * alpha.h (ASM_OUTPUT_INTERNAL_LABEL): Delete.
16879         * avr.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16880         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16881         * cris.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16882         * d30v.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16883         * darwin.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16884         * dsp16xx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16885         * elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16886         * h8300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16887         * i386/att.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16888         * i386/bsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16889         * i386/i386-coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16890         * i386/lynx-ng.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16891         * i386/lynx.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16892         * i386/sco5.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16893         * i960/i960.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16894         * m68k/3b1.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16895         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16896         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16897         * m68k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16898         * m68k/mot3300.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16899         * m68k/tower-as.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16900         * m88k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16901         * mcore.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16902         * mips.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16903         * mmix-protos.h (mmix_asm_output_internal_label): Likewise.
16904         * mmix.c (mmix_asm_output_internal_label): Likewise.
16905         * mmix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16906         * ns32k.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16907         * pa.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16908         * pdp11.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16909         * romp.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16910         * rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16911         * sh/coff.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16912         * sh/elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16913         * sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16914         * sparc/linux.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16915         * sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16916         * sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16917         * sparc/pbd.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16918         * sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16919         * sparc.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16920         * sparc/vxsim.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16921         * stormy16.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16922         * svr3.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16923         * vax.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
16925         * defaults.h (ASM_OUTPUT_INTERNAL_LABEL): Define.
16927 2002-08-31  Richard Henderson  <rth@redhat.com>
16929         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
16931 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16933         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
16935 2002-08-30  Richard Henderson  <rth@redhat.com>
16937         PR opt/7515
16938         * c-objc-common.c: Include target.h.
16939         (c_cannot_inline_tree_fn): Don't auto-inline functions that
16940         don't bind locally.  Factor setting DECL_UNINLINABLE.
16941         * Makefile.in (c-objc-common.o): Update.
16943 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
16945         * doc/install.texi (Configuration, Building): Fix a typo and
16946         some formatting directives.
16948 2002-08-30  Paul Koning <pkoning@equallogic.com>
16950         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
16951         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
16952         implemented" note.
16953         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
16954         for alphabetic order.
16955         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
16956         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
16957         (VAX_HALFWORD_ORDER): Document.
16958         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
16959         IEEE float format.
16960         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
16961         (ASM_OUTPUT_LABEL_REF): Fix font.
16962         (CASE_VECTOR_SHORTEN_MODE): Ditto.
16964 2002-08-30  Denis Chertykov  <denisc@overta.ru>
16966         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
16967         stuff.
16968         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
16969         CONST_DOUBLE constants.
16971 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
16973         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
16974         related defines to...
16975         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
16976         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
16977         as a no-op.
16979 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
16981         * config/arm/arm.c (arm_asm_output_labelref): New function.
16982         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
16983         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
16985 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
16987         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
16988         memory exhausted" workarounds.
16990 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16992         * diagnostic.c (fancy_abort): Don't repeat "internal error".
16993         * toplev.c (crash_signal): Likewise.
16995 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16997         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
16998         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
16999         Extended, updated documentation.
17000         (-Wundeclared-selector): Documented.
17002 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
17004         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
17005         the value 1.  Do not undef before defining.
17006         * config/darwin.h: Likewise.
17007         * config/dbx.h: Likewise.
17008         * config/dbxcoff.h: Likewise.
17009         * config/dbxelf.h: Likewise.
17010         * config/elfos.h: Likewise.
17011         * config/interix.h: Likewise.
17012         * config/lynx-ng.h: Likewise.
17013         * config/lynx.h: Likewise.
17014         * config/netware.h: Likewise.
17015         * config/psos.h: Likewise.
17016         * config/svr3.h: Likewise.
17017         * config/alpha/alpha.h: Likewise.
17018         * config/alpha/elf.h: Likewise.
17019         * config/alpha/vms.h: Likewise.
17020         * config/arc/arc.h: Likewise.
17021         * config/arm/aout.h: Likewise.
17022         * config/arm/coff.h: Likewise.
17023         * config/c4x/c4x.h: Likewise.
17024         * config/h8300/h8300.h: Likewise.
17025         * config/i386/cygwin.h: Likewise.
17026         * config/i386/djgpp.h: Likewise.
17027         * config/i386/gas.h: Likewise.
17028         * config/i386/gstabs.h: Likewise.
17029         * config/i386/i386-coff.h: Likewise.
17030         * config/i386/i386-interix.h: Likewise.
17031         * config/i386/sco5.h: Likewise.
17032         * config/i386/svr3dbx.h: Likewise.
17033         * config/i386/sysv3.h: Likewise.
17034         * config/i386/win32.h: Likewise.
17035         * config/i386/x86-64.h: Likewise.
17036         * config/i960/i960.h: Likewise.
17037         * config/ia64/ia64.h: Likewise.
17038         * config/ip2k/ip2k.h: Likewise.
17039         * config/m32r/m32r.h: Likewise.
17040         * config/m68k/3b1.h: Likewise.
17041         * config/m68k/3b1g.h: Likewise.
17042         * config/m68k/ccur-GAS.h: Likewise.
17043         * config/m68k/coff.h: Likewise.
17044         * config/m68k/hp2bsd.h: Likewise.
17045         * config/m68k/hp310g.h: Likewise.
17046         * config/m68k/hp320g.h: Likewise.
17047         * config/m68k/hp3bsd.h: Likewise.
17048         * config/m68k/hp3bsd44.h: Likewise.
17049         * config/m68k/linux-aout.h: Likewise.
17050         * config/m68k/m68k-aout.h: Likewise.
17051         * config/m68k/mot3300.h: Likewise.
17052         * config/m68k/netbsd.h: Likewise.
17053         * config/m68k/openbsd.h: Likewise.
17054         * config/m68k/pbb.h: Likewise.
17055         * config/m68k/plexus.h: Likewise.
17056         * config/m68k/sun2.h: Likewise.
17057         * config/m68k/sun3.h: Likewise.
17058         * config/m68k/tower-as.h: Likewise.
17059         * config/m68k/vxm68k.h: Likewise.
17060         * config/m88k/aout-dbx.h: Likewise.
17061         * config/m88k/m88k-aout.h: Likewise.
17062         * config/mcore/mcore-elf.h: Likewise.
17063         * config/mcore/mcore-pe.h: Likewise.
17064         * config/mips/elf.h: Likewise.
17065         * config/mips/elf64.h: Likewise.
17066         * config/mips/iris5gas.h: Likewise.
17067         * config/mips/iris6.h: Likewise.
17068         * config/mips/mips.h: Likewise.
17069         * config/mips/sni-gas.h: Likewise.
17070         * config/mmix/mmix.h: Likewise.
17071         * config/ns32k/netbsd.h: Likewise.
17072         * config/pa/pa64-hpux.h: Likewise.
17073         * config/romp/romp.h: Likewise.
17074         * config/rs6000/sysv4.h: Likewise.
17075         * config/rs6000/xcoff.h: Likewise.
17076         * config/sh/coff.h: Likewise.
17077         * config/sh/elf.h: Likewise.
17078         * config/sparc/linux64.h: Likewise.
17079         * config/sparc/liteelf.h: Likewise.
17080         * config/sparc/netbsd.h: Likewise.
17081         * config/sparc/openbsd.h: Likewise.
17082         * config/sparc/pbd.h: Likewise.
17083         * config/sparc/sp64-elf.h: Likewise.
17084         * config/sparc/sp86x-elf.h: Likewise.
17085         * config/sparc/sparc.h: Likewise.
17086         * config/vax/vax.h: Likewise.
17087         * config/vax/vaxv.h: Likewise.
17089 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
17091         * h8300.c (shift_alg_hi): Various tweaks to improve performance
17092         of HImode shifts.
17093         (get_shift_alg): Corresponding changes.
17095 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17097         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
17099 2002-08-29  Richard Henderson  <rth@redhat.com>
17101         * expr.h (enum block_op_methods): New.
17102         (emit_block_move): Update prototype.
17103         * expr.c (block_move_libcall_safe_for_call_parm): New.
17104         (emit_block_move_via_loop): New.
17105         (emit_block_move): Use them.  New argument METHOD.
17106         (emit_push_insn): Always respect the given alignment.
17107         (expand_assignment): Update call to emit_block_move.
17108         (store_expr, store_field, expand_expr): Likewise.
17109         * builtins.c (expand_builtin_apply): Likewise.
17110         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
17111         * function.c (expand_function_end): Likewise.
17112         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
17113         * config/sparc/sparc.c (sparc_va_arg): Likewise.
17114         * calls.c (expand_call, emit_library_call_value_1): Likewise.
17115         (save_fixed_argument_area): Use emit_block_move with
17116         BLOCK_OP_CALL_PARM instead of move_by_pieces.
17117         (restore_fixed_argument_area): Likewise.
17118         (store_one_arg): Fix alignment parameter to emit_push_insn.
17120 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17122         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
17124 2002-08-29  Catherine Moore  <clm@redhat.com>
17126         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
17127         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
17128         (PREDICATE_CODES): Include new predicates.
17129         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
17130         (TARGET_SWITCHES):  Add strict-align.
17131         (TARGET_STRICT_ALIGN): New.
17132         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
17133         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
17134         Define.
17135         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
17136         v850_muldi3.
17137         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
17138         L_callt_save_r2_r31, L_return_r2_r31,
17139         L_save_all_interrupt): Change addi to add.
17140         (L_save_interrupt, L_return_interrupt): Rework.
17141         (__return_r31):  Correct .size directive.
17142         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
17143         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
17144         New routines.
17145         * config/v850/v850.c (expand_prologue): Call
17146         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
17147         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
17148         (reg_or_int9_operand): New predicate.
17149         (reg_or_const_operand): New routine.
17150         * config/v850/v850.md (return_interrupt): Changed from
17151         restore_interrupt.
17152         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
17153         (callt_save_interrupt): Change save sequence.
17154         (callt_return_interrupt): New.
17155         (save_interrupt): Don't use runtime function for LONG_CALLS
17156         and TARGET_PROLOG_FUNCTION.
17157         (save_all_interrupt): Likewise.
17158         (mulsi3): Use new predicate.
17159         (moviscc): Disallow some combination of constants.
17160         Fix define_split for sasf insns, so that it will not generate bad
17161         code if operand0 and operand5 are the same.
17162         * config/v850/v850-protos.h: Prototype new predicates.
17164 2002-08-29  Zack Weinberg  <zack@codesourcery.com>
17166         * config/rs6000/rs6000.c (processor_target_table): Add 405f.
17167         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Likewise.
17169 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17171         * c-common.c (builtin_define_type_precision): New function.
17172         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
17173         wchar_t is unsigned in C++.
17174         * doc/cpp.texi (Common Predefined Macros): Document
17175         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
17176         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
17177         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
17179 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
17181         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
17182         section.  Mention that it is enabled by -Wall.
17183         (-Wall): Mention that there can be language-specific warnings as well.
17184         (-Wctor-dtor-privacy): Mention that it is enabled by default.
17185         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
17187 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
17189         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
17190         if it is ever live.
17192         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
17193         attribute for SHCOMPACT.
17195         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
17196         appropriately.
17197         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
17198         by the ABI.
17200         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
17202 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
17204         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
17205         "MASK_GAS|MASK_ABICALLS".
17206         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
17207         (TARGET_DEFAULT): Remove.
17208         (MACHINE_TYPE): Undefine before defining.
17209         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
17211 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
17213         * c-common.c (warn_abi): New variable.
17214         * c-common.h (warn_abi): Likewise.
17215         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
17216         (c_common_decode_option): Handle it.
17217         * doc/invoke.texi: Document -Wabi.
17219 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
17221         * c-common.c (warn_undeclared_selector): New variable.
17222         * c-common.h (warn_undeclared_selector): Idem.
17223         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
17224         to on when -Wundeclared-selector is found.
17225         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
17226         * objc/objc-act.c (build_selector_expr): If
17227         warn_undeclared_selector is set, check that the selector has
17228         already been defined, and emit a warning if not.
17230 2002-08-27  Nick Clifton  <nickc@redhat.com>
17231             Catherine Moore  <clm@redhat.com>
17232             Jim Wilson  <wilson@cygnus.com>
17234         * config.gcc: Add v850e-*-* target.
17235         Add --with-cpu= support for v850.
17236         * config/v850/lib1funcs.asm: Add v850e callt functions.
17237         * config/v850/v850.h: Add support for v850e target.
17238         * config/v850/v850.c: Add functions to support v850e target.
17239         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
17240         * config/v850/v850.md: Add patterns for v850e instructions.
17241         * doc/invoke.texi: Document new v850e command line switches.
17243 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
17244                           Aldy Hernandez <aldyh at redhat dot com>
17246         * doc/tm.texi: Applied numerous fixes to the automaton based
17247         scheduler descrition.
17249 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
17251         * i386.c (classify_argument): Handle variable sized objects.
17253 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
17255         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
17257 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
17259         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
17261 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
17263         * i386.c (classify_argument): Properly compute word size of the analyzed object.
17265 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
17267         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
17268         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
17269         accordingly.
17270         (attribute insn_class): Provide default definitions based on type.
17271         Remove all insn-specific settings.
17272         (various function units): Remove old SH4 scheduling.
17273         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
17274         New attributes.  Set them where appropriate.
17275         (cpu unit FS): Don't define / use.
17276         (F3, load_store): New cpu units.
17277         (F01): New reservation.
17278         (all insn_reservations): Make dependent on sh4 pipeline model.
17279         Fix latencies.
17280         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
17281         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
17282         (mt insn_reservation): Use type mt_group.
17283         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
17284         sh4_fload and sh4_store.
17285         (insn_reservation branch_zero and branch): Replace with sh4_branch.
17286         (insn_reservation branch_far): Replace with sh4_return.
17287         (insn_reservation return_from_exp): Rename to:
17288         (sh4_return_from_exp).  Change to be just d_lock*5.
17289         (insn_reservation lds_to_pr): Rename to:
17290         (sh4_lds_to_pr).  Change to be just d_lock*2.
17291         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
17292         d_lock*2.
17293         (insn_reservation prload_mem): Rename to:
17294         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
17295         (insn_reservation fpscr_store): Rename to:
17296         (fpscr_load).  Change to d_lock,nothing,F1*3.
17297         (insn_reservation fpscr_store_mem): Rename to:
17298         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
17299         (insn_reservation multi): Change to
17300         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
17301         (insn_reservation fp_arith): Change to issue,F01,F2.
17302         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
17303         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
17304         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
17305         (insn_reservation fp_double_cmp): Change to
17306         d_lock,(d_lock+F01),F1+F2,F2.
17307         (insn_reservation dp_div): Change to
17308         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
17309         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
17310         (sh_adjust_cost, SHcompact): Differentiate between different
17311         kinds of dependencies.  Drop factor of ten for superscalar.
17312         Use new instruction types.  Add new exception rules.
17314         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
17316         * sh.md (mperm_w): Add DONE.
17318 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
17320         * longlong.h: Import current PowerPC defintion from GMP-4.1.
17322         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
17324         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
17326 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
17328         * sh.h (MAX_FIXED_MODE_SIZE): Define.
17330 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
17332         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
17333         delimiter.
17335 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17337         * c-common.c (cpp_define_data_format): New function.
17338         (cb_register_builtins): Call it.
17340         * doc/cpp.texi (Common Predefined Macros): Document
17341         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
17342         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
17343         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
17344         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
17345         __TARGET_USES_VAX_H_FLOAT__.
17347 2002-08-26  Ziemowit Laski <zlaski@apple.com>
17349         * objc/objc-act.c (get_super_receiver): If inside a class method
17350         of a category, cast the receiver to 'id' before accessing the 'isa'
17351         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
17353 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
17355         * config/s390/s390-protos.h (s390_function_prologue,
17356         s390_function_epilogue): Remove.
17357         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
17358         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
17360         config/s390/s390.c (s390_machine_dependent_recorg): New function.
17361         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
17362         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
17363         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
17364         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
17366         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
17367         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
17368         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
17369         function is not a leaf function.  Use save_gprs and restore_gprs.
17370         (s390_emit_epilogue): Likewise.
17371         (save_gprs, restore_gprs): New functions.
17372         (struct s390_frame): Remove return_reg_saved_p member.
17373         (save_fprs_p): Remove.
17374         (s390_optimize_prolog): New function.
17375         (s390_legitimate_reload_constant): Remove now unnecessary check.
17377         (s390_function_count): Remove.
17378         (s390_output_symbolic_const): Replace s390_function_count by
17379         current_function_funcdef_no.
17380         (s390_output_constant_pool): Likewise.
17382         (legitimize_pic_address): Use regs_ever_live to track PIC register
17383         instead of current_function_uses_pic_offset_table.
17384         (s390_emit_prologue): Likewise.
17385         config/s390/s390.md ("call", "call_value"): Likewise.
17387 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
17389         * c-opts.c (find_opt): Don't complain about wrong languages
17390         here.  Return exact matches even for wrong language.
17391         (c_common_decode_option): Complain about wrong languages
17392         here.
17394 2002-08-24  Stuart Hastings  <stuart@apple.com>
17396         * function.h (struct function): Add flag
17397         all_throwers_are_sibcalls.
17398         * except.c (set_nothrow_function_flags): Replaces
17399         nothrow_function_p. Set new flag.
17400         * except.h (set_nothrow_function_flags): Replaces
17401         nothrow_function_p.
17402         * dwarf2out.c (struct dw_fde_struct): Add flag
17403         all_throwers_are_sibcalls.
17404         (output_call_frame_info): Test it.
17405         (dwarf2out_begin_prologue) Propagate it from cfun to
17406         dw_fde_struct.
17407         * toplev.c (rest_of_compilation): Update calls to
17408         nothrow_function_p.
17410 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
17412         * ggc-page.c (compute_inverse): Short circuit calculation for
17413         object sizes larger than half a page.
17415 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
17417         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
17418         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
17419         default.
17420         (rs6000_elf_unique_section): Likewise.
17422 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17424         * ns32k.c (ns32k_globalize_label): Delete.
17425         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
17427 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
17429         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
17430         for loading delta with num_insns_constant_wide.  Calculate
17431         delta_low, delta_high without using a conditional.
17433 2002-08-22  Jason Merrill  <jason@redhat.com>
17435         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
17436         * c-common.def: Adjust.
17437         * c-dump.c (c_dump_tree): Adjust.
17438         * c-semantics.c (genrtl_return_stmt): Adjust.
17439         * c-pretty-print.c (pp_c_statement): Adjust.
17440         * tree-inline.c (copy_body_r): Adjust.
17442 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
17444         * ggc-page.c: Avoid division in ggc_set_mark.
17445         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
17446         compute_inverse): New.
17447         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
17448         (init_ggc): Initialize inverse_table.
17450 2002-08-22  Tom Tromey  <tromey@redhat.com>
17452         * doc/install.texi (Configuration): Document --datadir.
17454 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
17456         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
17458 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
17460         * gengtype-lex.l (ID): Allow underscore as first character.
17462 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
17464         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
17465         function.
17466         (rs6000_xcoff_asm_named_section): Rename.
17467         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
17469 2002-08-21  Tom Tromey  <tromey@redhat.com>
17471         For PR java/6005 and PR java/7611:
17472         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
17473         (fold): Likewise.
17474         * langhooks.c (lhd_can_use_bit_fields_p): New function.
17475         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
17476         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
17477         (LANG_HOOKS_INITIALIZER): Use it.
17478         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
17479         field.
17481 2002-08-21  Stan Shebs  <shebs@apple.com>
17483         * tree.c (finish_vector_type): Fix a typo in a comment.
17484         * Makefile.in: Fix "the the" stutters in comments.
17485         * genautomata.c: Ditto.
17486         * ifcvt.c: Ditto.
17487         * regrename.c: Ditto.
17488         * config/alpha/alpha.c: Ditto.
17489         * config/alpha/vms-crt0-64.c: Ditto.
17490         * config/alpha/vms-crt0.c: Ditto.
17491         * config/alpha/vms-psxcrt0-64.c: Ditto.
17492         * config/alpha/vms-psxcrt0.c: Ditto.
17493         * config/d30v/d30v.h: Ditto.
17494         * config/fr30/fr30.h: Ditto.
17495         * config/rs6000/rs6000.c: Ditto.
17496         * config/stormy16/stormy16.h: Ditto.
17497         * doc/md.texi: Ditto.
17499 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17501         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
17503 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
17505         * c-decl.c (grokdeclarator): Make invalid combinations with long,
17506         short, signed or unsigned into hard errors.  Fixes PR c/4319.
17507         Also make duplicate modifiers such as "short short" into hard
17508         errors.
17510 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
17511             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17513         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
17514         to the actual end.  Add '@end table' and '@table @code'.
17516 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
17518         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
17520         * unroll.c (biv_total_increment): Don't try to compute the total
17521         increment for FP BIVs.
17523 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17525         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
17526         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
17527         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17528         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
17529         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
17530         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
17531         (GLOBAL_ASM_OP): Define.
17532         * arm.c (aof_globalize_label): New function.
17533         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
17534         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17535         * c4x.c (c4x_globalize_label): New function.
17536         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
17537         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
17538         (GLOBAL_ASM_OP): Define.
17539         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
17540         * darwin-protos.h (darwin_globalize_label): Declare.
17541         * darwin.c (darwin_globalize_label): New function.
17542         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
17543         (ASM_GLOBALIZE_LABEL): Delete.
17544         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
17545         * dsp16xx.c (asm_output_common): Use target hook.
17546         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
17547         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
17548         (GLOBAL_ASM_OP): Define.
17549         * i370.c (i370_globalize_label): New function.
17550         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
17551         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
17552         * i386.c (ix86_asm_file_end): Use target hook.
17553         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
17554         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
17555         * ia64.c (ia64_asm_output_external): Likewise.
17556         * ia64/sysv4.h: Update comment.
17557         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17558         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17559         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
17560         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17561         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
17562         * mmix-protos.h (mmix_asm_globalize_label): Delete.
17563         * mmix.c (mmix_asm_globalize_label): Likewise.
17564         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
17565         (GLOBAL_ASM_OP): Define.
17566         * ns32k.c (ns32k_globalize_label): New function.
17567         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
17568         (ASM_GLOBALIZE_LABEL): Delete.
17569         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
17570         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
17571         * pa.c (pa_globalize_label): New function.
17572         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
17573         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
17574         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
17575         (GLOBAL_ASM_OP): Define.
17576         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
17577         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
17578         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
17579         (GLOBAL_ASM_OP): Define.
17580         * v850.c (v850_output_aligned_bss): Use target hook.
17581         * vax.c (vms_globalize_label): New function.
17582         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
17583         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
17584         (GLOBAL_ASM_OP): Define.
17585         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
17586         * doc/tm.texi: Update docs.
17587         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
17588         target hook.
17589         * final.c (output_alternate_entry_point): Likewise.
17590         * hooks.c (hook_FILEptr_constcharptr_void): New function.
17591         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
17592         * output.h (assemble_global): Delete.
17593         (default_globalize_label): Declare.
17594         * system.h (ASM_GLOBALIZE_LABEL): Poison.
17595         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
17596         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
17597         * target.h (gcc_target): Add globalize_label member.
17598         * varasm.c (asm_output_bss, asm_output_aligned_bss,
17599         globalize_decl): Use target hook.
17600         (assemble_global): Delete.
17601         (default_globalize_label): New function.
17603 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17605         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
17607 2002-08-20  Devang Patel  <dpatel@apple.com>
17608         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
17610 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17612         * arc.c (output_shift): Use stdio instead of asm_fprintf.
17613         * arm.c (thumb_output_function_prologue): Likewise.
17614         * avr.c (print_operand): Likewise.
17615         * c4x.c (c4x_print_operand): Likewise.
17616         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
17617         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
17618         * cris.c (cris_target_asm_function_prologue,
17619         cris_asm_output_mi_thunk): Likewise.
17620         * h8300.c (print_operand): Likewise.
17621         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17622         * ip2k.c (print_operand): Likewise.  Fix format specifier.
17623         * m68hc11.c (asm_print_register, print_operand,
17624         print_operand_address): Use stdio instead of asm_fprintf.
17625         (print_operand_address): Fix format specifier.
17626         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
17627         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
17628         asm_fprintf.
17629         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17630         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
17631         * m68k.c (m68k_output_function_prologue,
17632         m68k_output_function_epilogue, print_operand): Likewise.
17633         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
17634         Likewise.  Fix format specifier.
17635         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17636         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17637         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
17639 2002-08-15  Eric Christopher  <echristo@redhat.com>
17640             Jeff Knaggs  <jknaggs@redhat.com>
17642         * config.gcc (mipsisa64sr71k-elf): New target.
17643         * config/mips/sr71k.md: New file.
17644         * config/mips/mips.md: Use it.
17645         (rot*): Add sr71k specifics.
17646         * config/mips/t-sr71k: New file.
17647         * config/mips/mips.h (sr71k): New cpu.
17648         (TARGET_SR71K): Use it.
17649         (TUNE_SR71K): Ditto.
17650         (GENERATE_BRANCHLIKELY): Ditto.
17651         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
17652         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
17653         * config/mips/mips.c (sr71k): New cpu.
17654         (mips_use_dfa_pipeline_interface): Use.
17656 2002-08-15  Eric Christopher  <echristo@redhat.com>
17657             Richard Sandiford <rsandifo@redhat.com>
17658             Aldy Hernandez  <aldyh@redhat.com>
17659             Graham Stott    <grahams@redhat.com>
17660             Michael Meissner  <meissner@redhat.com>
17661             Gavin Romig-Koch  <gavin@redhat.com>
17662             Ken Raeburn  <raeburn@cygnus.com>
17663             Alexandre Oliva <aoliva@redhat.com>
17665         * config.gcc (mips64vr-elf): New target.
17666         * config/mips/5400.md: New file.
17667         * config/mips/5500.md: Ditto.
17668         * config/mips/mips.md: Use them.
17669         (frsqrt): New.
17670         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
17671         cpus.
17672         (mips_issue_rate): Use them.
17673         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
17674         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
17675         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
17676         cpus.
17677         (TARGET_MIPSx): Use them.
17678         (TUNE_MIPSx): Ditto.
17679         (GETNATE_MULT3_SI): Ditto.
17680         (ISA_HAS_BRANCHLIKELY): Ditto.
17681         (ISA_HAS_CONDMOVE): Ditto.
17682         (ISA_HAS_NMADD_NMSUB): Ditto.
17683         (ISA_HAS_MULHI): New. Ditto.
17684         (ISA_HAS_MULS): Ditto.
17685         (ISA_HAS_MSAC): Ditto.
17686         (ISA_HAS_MACC): Ditto.
17687         (ISA_HAS_ROTR_SI): Ditto.
17688         (ISA_HAS_ROTR_DI): Ditto.
17689         (RTX_COSTS): Use.
17691 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17693         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
17694         at head.
17695         (remove_dup_nonsys_dirs): New function.
17696         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
17697         (merge_include_chains): Remove non-system include directories from
17698         quote and bracket include chains when they duplicate equivalent system
17699         directories.
17700         * doc/cpp.texi (-I): Update.
17701         * doc/cppopts.texi (-I): Update.
17702         * doc/install.texi (--with-local-prefix): Further document usage of
17703         this option.
17704         * doc/invoke.texi (-I): Update.
17706 2002-08-20  Richard Henderson  <rth@redhat.com>
17708         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
17709         (emit_block_move): Split out subroutines.
17710         (emit_block_move_via_movstr): New.
17711         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
17712         (emit_block_move_libcall_fn): New.  Construct function prototype for
17713         bcopy as well.
17714         (clear_storage): Split out subroutines.
17715         (clear_storage_via_clrstr): New.
17716         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
17717         (clear_storage_libcall_fn): New.  Construct function prototype for
17718         bzero as well.
17719         (emit_push_insn): Use emit_block_move.
17720         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
17721         (store_constructor): Likewise.
17723 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
17725         * objc/objc-act.c (building_objc_message_expr): Rename to
17726         current_objc_message_selector.
17728 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
17730         * objc/objc-act.c (build_ivar_chain): Remove.
17731         (objc_copy_list): Likewise.
17732         (get_class_ivars): Inline call to removed build_ivar_chain
17733         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
17734         slot; use that slot (rather than CLASS_IVARS) when accessing
17735         ivars for base classes.  Call copy_list and chainon instead of
17736         objc_copy_list.
17737         (build_private_template): Call get_class_ivars instead of
17738         build_ivar_chain.
17739         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
17740         (continue_class): Call get_class_ivars instead of
17741         build_ivar_chain.
17742         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
17743         of DECL_BIT_FIELD (which may have been cleared).
17744         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
17746 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17748         * genautomata.c (output_translate_vect, output_state_ainsn_table,
17749         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
17750         in output file.
17751         (output_internal_min_issue_delay_func): Initialize variable in
17752         output file.
17754 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
17756         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
17757         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
17759 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
17760             Steve Ellcey  <sje@cup.hp.com>
17762         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
17763         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
17764         * explow.c (trunc_int_for_mode): Abort when the mode is not
17765         a scaler integer mode.
17766         * combine.c (expand_compound_operation): Don't expand Vector
17767         or Complex modes into shifts.
17768         (expand_field_assignment): Don't do bitwise arithmatic and
17769         shifts on Vector or Complex modes.
17770         (simplify_comparison): Don't call trunc_int_for_mode
17771         for VOIDmode.
17772         * recog.c (general_operand): Likewise.
17773         (immediate_operand): Likewise.
17774         (nonmemory_operand): Likewise.
17776 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
17778         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
17779         multi-instruction SImode constant.  Add REG_EQUAL note.
17780         * config/rs6000/rs6000.md (movsi splitter): Use
17781         rs6000_emit_set_const.
17783 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17785         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
17786         the macro test controlling its use.
17788 2002-08-18  H.J. Lu  (hjl@gnu.org)
17790         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
17791         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
17792         gnu_ld=yes.
17793         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
17794         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
17795         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
17796         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
17797         here.
17798         (cris-*-linux*): Remove setting thread_file here.
17800 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
17802         PR preprocessor/7602
17803         * cppinit.c (path_include): Treat the system environment
17804         variables as being cxx_aware.
17806 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
17808         * c-decl.c (flexible_array_type_p): New function.
17809         (grokdeclarator, finish_struct): Use it.
17810         * doc/extend.texi: Document constraints on use of structures with
17811         flexible array members.
17813 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
17815         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
17816         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
17817         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
17819 2002-08-16  Stan Shebs  <shebs@apple.com>
17821         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
17822         for ObjC with -fnext-runtime.
17823         * doc/cpp.texi: Document it.
17825 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
17827         * doc/install.texi (Final installation): Replace links to individual
17828         build status pages with a link to a common page that lists them all.
17830 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
17832         * doc/invoke.texi: Fix typo.
17834 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
17836         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
17838 2002-08-16  Andrew Haley  <aph@redhat.com>
17840         * tree-inline.c: Add includes for Java inliner.
17841         (remap_decl): Don't handle anonymous types for Java.
17842         (remap_block): Add handling for Java trees.
17843         (copy_scope_stmt): Conditionalize for non-Java use only.
17844         (copy_body_r): Handle Java trees.  Add handling for
17845         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
17846         (initialize_inlined_parameters):  Handle Java trees.
17847         (declare_return_variable): Likewise.
17848         (expand_call_inline): Handle Java trees.
17849         (walk_tree): Likewise.
17850         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
17851         (add_stmt_to_compound): New function.
17853 2002-08-15  Richard Henderson  <rth@redhat.com>
17855         * Makefile.in (LOOSE_WARN): Remove -fno-common.
17856         (NOCOMMON_FLAG): New substitution point.
17857         (GCC_WARN_CFLAGS): Include it.
17858         * configure.in (ac_checking): Set nocommon_flag.
17859         (nocommon_flag): New substitution point.
17861 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
17863         * c-tree.h (skip_evaluation): Move declaration...
17864         * c-common.h: ... here.
17865         * c-typeck.c (build_external_ref): Don't assemble_external nor
17866         mark a tree as used if skip_evaluation is set.
17867         * c-parse.in (typeof): New non-terminal to set skip_evaluation
17868         around TYPEOF.
17869         (typespec_nonreserved_nonattr): Use it.
17871 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
17873         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
17874         (xcoff_debug_hooks): Update end_prologue.
17875         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
17876         * debug.h (end_prologue): Add file arg.
17877         (end_epilogue): Add line and file args.
17878         (dwarf2out_end_epilogue): Add line and file args.
17879         (vmsdbgout_after_prologue): Remove.
17880         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
17881         (dwarf2_debug_hooks): Update end_prologue.
17882         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
17883         (dwarfout_end_prologue): Add file arg.
17884         * final.c (vmsdbgout_after_prologue): Remove
17885         (final_end_function): Update end_epilogue call.
17886         (final_scan_insn): Update end_prologue call.
17887         * sdbout.c (sdbout_end_epilogue): Add line and file args.
17888         (sdbout_end_prologue): Add file arg.
17889         (sdb_debug_hooks): Update end_prologue.
17890         (sdb_begin_prologue): Update sdbout_end_prologue call.
17891         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
17892         vmsdbgout_end_function.
17893         (vmsdbgout_end_prologue): New function renamed from
17894         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
17895         (vmsdbgout_end_function): New function.
17896         (vmsdbgout_end_epilogue): Add line and file args. Call
17897         vmsdbgout_source_line.
17898         (write_pclines): Write only valid line numbers.
17899         (write_srccorr): Don't write source correlation records if 0 lines.
17900         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
17902 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
17904         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
17905         (_Unwind_Internal_Ptr): 32 bit version for use in
17906         read_encoded_value_with_base.
17907         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
17908         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
17909         right size.
17911 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17913         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
17914         signed/unsigned warnings.
17916         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
17917         record_reg_classes): Likewise.
17919         * reload.c (reload_inner_reg_of_subreg, push_reload,
17920         find_reloads_address_1): Likewise.
17922 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
17924         * rs6000.c (output_mi_thunk): Return to function section on
17925         TARGET_ELF.
17927         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
17929 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
17931         * config/s390/s390.c (legitimize_address): Optimize loading
17932         of large displacements.
17934 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
17936         * config/alpha/alpha-protos.h: Update.
17938         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
17939         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
17940         (alpha_linkage_symbol_p): New static function.
17941         (print_operand_address): Print linkage operand.
17943         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
17944         variables.
17945         (reloc_kind): New enum.
17946         (struct alpha_funcs): New struct.
17947         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
17949         (alpha_need_linkage): Rewrite.
17950         (alpha_use_linkage): New global function.
17951         (alpha_write_linkage): Rewrite and make static.
17952         (alpha_write_one_linkage): Rewrite
17954         (alpha_start_function): Remove procedure descriptor output.
17955         (alpha_end_function): Write linkages at end of each function.
17957         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
17958         (call_vms_1, call_value_vms_1): Rewrite.
17960         * config/alpha/vms.h (ASM_FILE_END): Remove.
17962 2002-08-14  Richard Henderson  <rth@redhat.com>
17964         * ggc-page.c (RTL_SIZE): New.
17965         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
17966         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
17968 2002-08-14  Richard Henderson  <rth@redhat.com>
17970         * calls.c: Include target.h.
17971         * Makefile.in (calls.o): Update.
17973         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
17974         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
17976 2002-08-14  Richard Henderson  <rth@redhat.com>
17978         * Makefile.in (LOOSE_WARN): Add -fno-common.
17979         * c-common.h (constant_string_class_name): Add missing extern.
17981 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
17983         PR preprocessor/7358
17984         * c-opts.c (check_deps_environment_vars): Ignore main file
17985         for SUNPRO_DEPENDENCIES.
17986         * cppfiles.c (stack_include_file): Ignore main file if
17987         appropriate.
17988         * cpplib.h (struct cpp_options): New member in deps.
17989         * doc/cppenv.texi: Update.
17991 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
17993         PR preprocessor/7526
17994         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
17996 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
17998         * doc/invoke.texi (-a): Remove documentation.
17999         (-fprofile-arcs): Remove reference to -a, -ax options.
18000         * doc/gcov.texi (Gcov Data Files): Data might be merged.
18002 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
18004         Fix PR/7566
18005         * c-semantics.c (genrtl_case_label): Don't (mis)use
18006         warning_with_decl.
18008 2002-08-14  Dale Johannesen  <dalej@apple.com>
18010         * explow.c (emit_stack_restore):  Emit memory clobbers
18011         preceding the stack pop, to prevent the scheduler from
18012         moving refs to variable arrays below this pop.
18013         * reload1.c (reload):  Preserve these clobbers for sched2.
18014         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
18016 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
18018         * c-opts.c (c_common_post_options): Correct test.
18020 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18022         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
18023         order in call to fprintf.
18025 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18027         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
18029 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
18031         * reload.c (find_reloads): Handle constraint letters marked by
18032         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
18033         (alternative_allows_memconst): Likewise.
18034         * reload1.c (maybe_fix_stack_asms): Likewise.
18035         * recog.c (asm_operand_ok, preprocess_constraints,
18036         constrain_operands): Likewise.
18037         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
18038         * local-alloc.c (block_alloc, requires_inout): Likewise.
18039         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
18041         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
18042         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
18043         * doc/tm.texi: Document these two new target macros.
18045         * config/s390/s390.c (s390_expand_plus_operand): Accept already
18046         valid operands.
18047         (q_constraint): New function.
18048         config/s390/s390-protos.h (q_constraint): Declare it.
18049         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
18050         (EXTRA_MEMORY_CONSTRAINT): New macro.
18052         * config/s390/s390.md: Throughout the machine description,
18053         replace all instances of the constraint combinations 'Qo'
18054         or 'oQ' with simply 'Q'.
18056 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
18058         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
18059         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
18060         (LIBGCC2_CFLAGS): Compile with -mrelax.
18062 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
18064         * doc/invoke.texi: Document -minmax for 68HC12.
18066         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
18067         ("uminqi3"): Likewise.
18068         ("uminhi3", "umaxhi3"): Likewise.
18070         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
18071         (TARGET_MIN_MAX): Define.
18072         (TARGET_SWITCHES): New option -minmax/-mnominmax.
18074 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
18076         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
18077         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
18079         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
18080         (ret, declare, farsym): New gas macros.
18081         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
18082         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
18083         and declare the symbol far when compiled with -mlong-calls.
18084         (__far_trampoline): New for 68HC12 trampoline code to invoke a
18085         far handler using jsr/bsr.
18087         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
18088         (jsr): New macro to transform a 'jsr' into a 'call'.
18090 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
18092         * doc/invoke.texi: Document -mlong-calls for 68HC12.
18094         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
18095         -mlong-calls is specified.
18096         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
18097         assembler directives.
18098         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
18099         (TARGET_SWITCHES): Add -mlong-calls options.
18100         (current_function_far): Declare.
18102         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
18103         into account the page register saved on the stack.
18104         (m68hc11_override_options): Take into account -mlong-calls option.
18105         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
18107         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
18108         if the function is going to be in 68HC12 banked memory (-mlong-calls).
18109         ("*return_16bit"): Likewise.
18110         ("*return_void"): Likewise.
18111         ("call", "call_value"): Use call for a far function call.
18113 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
18115         * toplev.c (parse_options_and_default_flags): Don't call
18116         post_options here.
18117         (general_init): Initialize GC, pools and tree hash here,
18118         instead of lang_independent_init.
18119         (lang_independent_init): Rename backend_init.
18120         (do_compile): Call post_options hook; exit early if there
18121         have been errors after switch processing.
18122         (toplev_main): Update.
18124 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
18126         * c-pretty-print.h: Guard against multiple inclusion.
18127         Robustify macros.
18128         (pp_c_attributes): Declare.
18129         * c-pretty-print.c (pp_c_attributes): New function.
18131 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18133         * m68k.c (m68k_output_function_prologue,
18134         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
18135         and NEWS/MOTOROLA.
18136         * genattrtab.c: Remove dpx2 comment.
18137         * libgcc2.c (__enable_execute_stack): Delete versions for
18138         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
18139         sony_news/SYSTYPE_BSD.
18140         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
18141         __gmicro__, __i860__, __NeXT__ and __pyr__.
18142         * rtl.h: Remove convex comment.
18143         * varasm.c: Likewise.
18145 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18147         * c-opts.c (lang_flags): Const-ify.
18148         * ra-build.c (undef_table): Likewise.
18149         * ra.c (eliminables): Likewise.
18151 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
18153         * tree.h: Guard against multiple inclusion.
18155 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
18157         * reload1.c (reload_cse_simplify): Before checking
18158         REG_FUNCTION_VALUE_P, check REG_P.
18160 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
18162         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
18164 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
18166         * c-opts.c (c_common_init_options): Extra braces needed.
18168 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
18170         * sh.c (sh_init_builtins): Add PARAMS to declaration.
18171         (sh_media_init_builtins, sh_expand_builtin): Likewise.
18172         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
18173         (sh_expand_binop_v2sf): Likewise.
18174         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
18175         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
18176         (sh_initialize_trampoline): Likewise.
18178 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
18180         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
18181         new condition code modes.
18182         s390.c (s390_match_ccmode_set): Handle those new CC modes.
18183         (s390_select_ccmode): Likewise.
18184         (s390_branch_condition_mask): Likewise.
18186         * s390-protos.h (s390_tm_ccmode): Declare.
18187         s390.c (s390_tm_ccmode): New function.
18188         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
18190         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
18191         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
18192         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
18194         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
18195         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
18196         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
18197         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
18198         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
18200         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
18201         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
18202         "*cmpqi_ccs_0"): Remove, replace by ...
18203         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
18204         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
18205         "*tstqi", "*tstqi_cconly"): ... these new patterns.
18207         ("*cmpsidi_ccs"): Remove, replace by ...
18208         ("*cmpsi_ccs_sign"): ... this new pattern.
18209         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
18211         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
18212         ("*cli"): ... this new pattern.
18214         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
18215         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
18216         New patterns.
18217         ("adddi3_64"): Rename to "*adddi3_64".
18218         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
18219         ("adddi3"): Adapt expander.
18221         ("*addsi3_cc"): Allow "general_operand" for operand 2.
18222         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
18223         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
18225         ("addhi3", "addqi3"): Remove, replace by ...
18226         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
18228         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
18229         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
18230         ("subdi3"): Replace by insn and splitter "*subdi3_31".
18231         ("subdi3"): New expander.
18233         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
18235         ("subhi3", "subqi3"): Remove, replace by ...
18236         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
18238         ("*muldi3_sign"): New pattern.
18239         ("muldi3"): Do not clobber CC.
18240         ("mulsi3"): Likewise.
18241         ("mulsi_6432"): Likewise.
18243 2002-08-13  Denis Chertykov  <denisc@overta.ru>
18245         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
18246         which can change CC0.
18248 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
18250         * gcse.c (adjust_libcall_notes): New function.
18251         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
18253 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
18255         * libgcc2.c (L_bb): Remove unneeded #includes.
18256         (__global_counters, __gthreads_active): Remove unused globals.
18257         (__bb_exit_func): Merge counts into files rather than appending.
18258         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
18259         (ALL_CFLAGS): ... to here.
18261 2002-08-13  Denis Chertykov  <denisc@overta.ru>
18263         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
18264         (function_epilogue): Don't calculate function size.
18265         (ip2k_set_compare): Don't use lookup_const_double.
18266         (asm_file_start): Initialization of commands_in_file removed.
18267         (asm_file_end): Output of commands_in_file removed.
18269         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
18270         __INT_MAX__.
18272 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
18274         * c-opts.c (c_common_init_options): Check option array is
18275         sorted if checking enabled.
18277 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
18279         * c-pretty-print.c: #include "c-tree.h".
18280         (pp_c_simple_type_specifier): Tweak.
18281         (pp_c_storage_class_specifier): New.
18282         (pp_c_function_specifier): Likewise.
18283         (pp_c_declaration_specifiers): Likewise.
18284         (pp_c_init_declarator): Likewise.
18285         (pp_c_declaration): Likewise.
18286         (pp_c_direct_declarator): Stub.
18287         (pp_c_declarator): Likewise.
18288         (pp_c_parameter_declaration): Likewise.
18290 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
18292         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
18293         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
18294         struct deferred_opt): New.
18295         (COMMAND_LINE_OPTIONS): Add -M*.
18296         (missing_arg): Update.
18297         (c_common_decode_option): Handle -M*.
18298         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
18299         don't call cpp_post_options.
18300         (c_common_finish, check_deps_environment_vars): Update.
18301         * cppfiles.c (stack_include_file, handle_missing_header): Update.
18302         * cpphash.h (CPP_PRINT_DEPS): Remove.
18303         * cppinit.c: Don't include version.h.
18304         (cpp_create_reader): Don't call deps_init.  Initialize
18305         warn_long_long.
18306         (cpp_read_main_file): Init deps if necessary.
18307         (cpp_destroy): Conditionally free deps.
18308         (cpp_finish): Update.
18309         (no_tgt): Remove.
18310         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
18311         (cpp_post_options): Rename post_options.
18312         * cpplib.h (struct cpp_options): Remove some dependency options;
18313         move others to a new structure.
18314         (cpp_post_options): Remove.
18315         (cpp_finish): Comment.
18316         * fix-header.c (read_scan_file): Don't call cpp_post_options.
18318 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
18320         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
18321         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
18322         MMIX_rR_REGNUM as clobbered.
18323         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
18325 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
18327         * diagnostic.h (output_formatted_scalar): Rename from
18328         output_formatted_integer.
18329         * diagnostic.def: Add DK_DEBUG.
18330         * diagnostic.c (output_decimal): Adjust.
18331         (output_long_decimal): Likewise.
18332         (output_unsigned_decimal): Likewise.
18333         (output_octal): Likewise.
18334         (output_long_octal): Likewise.
18335         (output_hexadecimal): Likewise.
18336         (output_long_hexadecimal): Likewise.
18337         * c-pretty-print.c (pp_c_type_specifier): New function.
18338         (pp_c_specifier_qualifier_list): Likewise.
18339         (pp_c_abstract_declarator): Likewise.
18340         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
18342 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
18344         * doc/trouble.texi (Disappointments): Add static constructor and
18345         destructor dependency information for AIX.
18347 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
18349         * cpphash.h (struct printer): New from cppmain.c.
18350         (cpp_reader): New member.
18351         * cppmain.c (struct printer): Move to cpphash.h.
18352         (options, print): Remove.
18353         (account_for_newlines, print_line, maybe_print_line,
18354         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
18355         scan_translation_unit_trad, cb_line_change, cb_ident,
18356         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
18357         cb_def_pragma): Make reentrant.
18359 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18361         * real.c (ieee_64): Always define.
18362         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
18363         (dec_h): Not used yet, hide it.
18364         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
18365         macro controlling use.
18366         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
18368 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
18370         * i386.md (tablejump): Sign extend the operand.
18371         * i386.c (classify_argument): Fix missed case from previous patch.
18373 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
18375         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
18376         to c-copts.c.
18377         (warn_multichar): Die.
18378         (cb_register_builtins): Export.
18379         * c-common.h (warn_multichar, preprocess_file): Remove.
18380         (cb_register_builtins): New.
18381         * c-lang.c (c_init): Remove.
18382         (LANG_HOOKS_INIT): Use c_objc_common_init.
18383         * c-lex.c (init_c_lex): Don't canonicalize filename.
18384         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
18385         (preprocess_file): Make static.  Update for cpplib.
18386         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
18387         (c_common_post_options): Set some cpp options here.
18388         (c_common_init): Move from c-common.c.
18389         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
18390         * cpplib.h (struct cpp_options): Remove in_fname.
18391         (cpp_preprocess_file): Update.
18392         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
18394 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18396         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
18398 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18400         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
18401         backslash in comment preceeding macro definition.
18402         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
18403         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
18404         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
18406 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
18408         * expr.c (store_expr): In condition for checking if value is
18409         generated in TARGET, move call to expr_size last.
18411 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
18413         * c-common.c (c_common_init): Call preprocess_file instead.
18414         (c_common_finish): Move to c-opts.c.
18415         * c-common.h (preprocess_file): new.
18416         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
18417         check_deps_environment_vars, c_common_finish): New.
18418         (c_common_decode_option): Update for out_fname and dependencies.
18419         * cppinit.c (init_dependency_output, output_deps): Remove.
18420         (cpp_destroy): Update prototype.
18421         (cpp_add_dependency_target): New.
18422         (cpp_read_main_file): Don't overlay a buffer.
18423         (cpp_finish): Take a deps output stream and write deps to it.
18424         Return the error count.
18425         (cpp_post_options): Don't canonicalize out_fname, or do anything
18426         with dependencies.
18427         * cpplib.h (struct cpp_options): Remove out_fname and
18428         preprocess_only.
18429         (cpp_add_dependency_target): New.
18430         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
18431         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
18432         set preprocess_only.  Don't handle the output stream directly.
18434 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18436         * dsp16xx.c (print_operand): Fix format specifier.
18437         * dsp16xx.md: Avoid automatic aggregate initialization.
18438         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
18439         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
18440         integer constant modifier.
18441         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
18442         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
18443         guards.
18444         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
18445         * v850.c (v850_select_section): Mark parameter with
18446         ATTRIBUTE_UNUSED.
18447         * global.c (global_alloc): Const-ify.
18448         * ra-colorize.c (hardregset_to_string): Fix format specifier.
18450 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18452         * darwin-c.c (darwin_pragma_options): Const-ify.
18453         * darwin.c (machopic_non_lazy_ptr_name,
18454         machopic_validate_stub_or_non_lazy_ptr): Likewise.
18455         (machopic_indirect_data_reference): Wrap variables in macros
18456         controlling their use.
18457         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
18458         (machopic_select_section): Use parentheses around && within ||.
18459         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
18461 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18463         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
18464         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
18465         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
18466         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
18467         mdr_try_remove_redundant_insns, track_w_reload,
18468         mdr_try_wreg_elim): Make function static to match prototype.
18469         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
18470         parameter with ATTRIBUTE_UNUSED.
18472 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18474         * arc.c (arc_init): Don't use ISO C style function definitions.
18475         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
18476         arm_get_strip_length, arm_strip_name_encoding): Likewise.
18477         * avr.h (progmem_section): Likewise.
18478         * h8300.c h8300_asm_insn_count): Likewise.
18479         * m32r.c (init_idents): Likewise.
18480         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
18481         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
18482         * xtensa.c (xtensa_build_va_list): Likewise.
18484 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
18486         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
18487         * c-opts.c (parse_option): Rename find_opt.
18488         (set_std_c99): New function.
18489         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
18490         (missing_arg): Remove OPT_std_bad.  Handle -o.
18491         (c_common_decode_option): Handle input and output file names,
18492         -o and -remap.  Clean up -std= handling.
18493         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
18494         (cpp_handle_option): Similarly.  Don't handle filenames.
18496 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
18498         * i386.c (classify_argument): Fix computing of field's offsets.
18500 2002-08-11  Andreas Jaeger  <aj@suse.de>
18502         PR target/7531:
18503         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
18505 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
18507         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
18508         reference to clk_objective_c with flag_objc.
18509         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
18510         Likewise.
18511         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18513 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
18515         * c-opts.c (set_std_cxx98, set_std_c89): New.
18516         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
18517         (c_common_decode_option): Handle new switches from cppinit.c.
18518         Add -std=gnu++98.
18519         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
18520         (no_arg, no_num): Remove.
18521         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
18522         switches apart from -lang-objc and lang-asm.
18523         (cpp_handle_option): Similarly.
18524         * cpplib.h (cpp_set_lang): New.
18525         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
18526         -std=gnu++98.
18527         * objc/lang-specs.h: Remove -ansi.
18529 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
18530                                Graham Stott
18532         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
18533         errors.
18535 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18537         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
18538         emit_jump_insn): Fix uninitialized variable.
18539         * gcov.c (init_line_info): Likewise.
18540         * genautomata.c (transform_3): Add braces around ambiguous
18541         else.
18542         * ifcvt.c (cond_exec_process_insns): Mark parameter with
18543         ATTRIBUTE_UNUSED.
18544         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
18545         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
18546         variable.
18548         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
18549         warnings in output files.
18551 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
18553         * c-common.c (flag_objc): New.
18554         * c-common.h (c_language_kind): Get rid of clk_objective_c
18555         enum value.
18556         (flag_objc): New extern declaration.
18557         * c-decl.c (implicitly_declare): Call objc_check_decl
18558         instead of maybe_objc_check_decl.
18559         (finish_decl): Likewise.
18560         (grokfield): Likewise.
18561         (finish_struct): Likewise.
18562         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
18563         (maybe_objc_comptypes): Rename to objc_comptypes.
18564         (maybe_building_objc_message_expr): Rename to
18565         objc_message_selector.
18566         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
18567         replace with flag_objc as needed.
18568         * c-opts.c (c_common_init_options): Likewise.
18569         (c_common_decode_option): Likewise.
18570         * c-parse.in (init_reswords): Likewise.
18571         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
18572         (maybe_objc_comptypes): Rename to objc_comptypes.
18573         (maybe_building_objc_message_expr): Rename to
18574         objc_message_selector.
18575         * c-typeck.c (comptypes): Call objc_comptypes instead of
18576         maybe_objc_comptypes, and/or objc_message_selector instead of
18577         maybe_building_objc_message_expr.
18578         (comp_target_types): Likewise.
18579         (convert_for_assignment): Likewise.
18580         (warn_for_assignment): Likewise.
18581         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
18582         independently of those for other languages.
18583         * objc/objc-act.c (maybe_objc_comptypes): Delete.
18584         (maybe_objc_check_decl): Delete.
18585         (maybe_building_objc_message_expr): Rename to
18586         objc_message_selector.
18587         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
18588         clk_objective_c; set flag_objc flag.
18590 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
18592         * ifcvt.c (find_if_case_2): Test correct basic block for size.
18594 2002-08-09  Dale Johannesen  <dalej@apple.com>
18596         * config/rs6000/rs6000.md: Add sibcall patterns.
18597         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
18598         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
18599         Rewritten to handle sibcalls.
18600         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
18601         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
18603 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
18605         * profile.c (da_file_name): New static var.
18606         (init_branch_prob): Initialize it.
18607         (end_branch_prob): Remove da file.
18609         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
18610         * configure.in (coverage_flags): Default to nothing.
18611         * configure: Rebuilt.
18613 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
18615         * Makefile.in (c-opts.o): Update
18616         * c-opts.c: Include intl.h.
18617         (print_help): Move from cppinit.c.  Remove unused options.
18618         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
18619         (missing_arg): Complain for switches without an argument.
18620         (c_common_decode_option): Reject missing joined arguments.
18621         Handle new switches from cppinit.c.
18622         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
18623         (cpp_handle_option): Similarly.
18624         (print_help): Moved to c-opts.c.
18625         * cpplib.h (struct cpp_options): Remove help_only.
18626         * gcc.c (cpp_unique_options): Remove -$.
18627         * doc/cppopts.texi: Undocument -h.
18629 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18631         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
18632         legitimate constant.
18633         (legitimate_pic_operand_p): Neither pic operand.
18634         (legitimate_address_p): But legitimate address.
18635         (get_thread_pointer): Generate MEM/u instead of CONST around
18636         UNSPEC_TP.
18637         (print_operand): Remove printing of UNSPEC_TP.
18638         (print_operand_address): And print it here.
18640 2002-08-08  Devang Patel  <dpatel@apple.com>
18642         * objc/objc-act.c (build_selector_translation_table): Issue warning,
18643         when  -Wselector is used,if method for which selector is being
18644         created does not exist.
18646 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
18648         * config/sh/sh.c (prepare_move_operands): Only call
18649         target_reg_operand if TARGET_SHMEDIA.
18651 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18653         * config/rs6000/rs6000.h, config/rs6000/aix.h,
18654         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
18655         two patches.
18656         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
18658 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
18659             Richard Henderson  <rth@redhat.com>
18661         * emit-rtl.c (gen_rtx_REG): After reload, only return
18662         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
18664 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18666         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
18667         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
18668         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
18669         macro.
18671 2002-08-08  Adam Nemet  <anemet@lnxw.com>
18673         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
18674         register.
18675         (thumb_expand_prologue): Likewise.
18676         (thumb_output_function_prologue): Likewise.
18677         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
18678         the additional push of the PIC register.
18680 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
18682         * configure.in (enable_coverage): New enable switch.
18683         * configure: Rebuilt.
18684         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
18685         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
18686         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
18687         (mostlyclean): Remove coverage files.
18688         * doc/install.texi: Document enable_coverage.
18690         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
18691         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
18692         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
18693         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
18694         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
18695         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
18696         files.
18698 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
18700         * c-opts.c (cpp_opts): New.
18701         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
18702         (c_common_decode_options): Handle cpplib switches.
18703         (c_common_init_options): Set cpp_opts.
18704         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
18705         (cpp_handle_option): Similarly.
18707 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
18709         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
18710         (TARGET_ALTIVEC_ABI): Same.
18711         (TARGET_ALTIVEC_VRSAVE): Same.
18713         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
18714         icode not CODE_FOR_nothing.  Change switch to if.
18716 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
18718         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
18720 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
18722         * stor-layout.c (place_union_field): For bitfields if
18723         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
18724         TYPE_USER_ALIGN.
18726 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18728         * pa.c (struct deferred_plabel): Constify name field.
18730 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
18732         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
18734 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18736         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
18737         local_prefix are the same.
18738         * configure: Rebuilt.
18740 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
18741             Richard Henderson  <rth@redhat.com>
18743         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
18744         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
18745         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
18746         (place_field): Likewise.
18747         * config/i386/i386.c (x86_field_alignment): Don't check
18748         DECL_USER_ALIGN here.
18749         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
18750         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
18751         prototype.
18752         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
18753         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
18754         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
18755         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
18756         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
18757         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
18759 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
18761         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
18762         * c-common.c: Don't include tree-inline.h.
18763         (c_common_init_options, c_common_post_options): Move to c-opts.c.
18764         * c-common.h (c_common_decode_option): New.
18765         * c-decl.c (c_decode_option): Remove.
18766         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
18767         * c-opts.c: New file.
18768         * c-tree.h (c_decode_option): Remove.
18769         * doc/passes.texi: Update.
18770         * objc/objc-act.c (objc_decode_option): Remove.
18771         * objc/objc-act.h (objc_decode_option): Remove.
18772         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
18773         c_common_decode_option.
18775 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
18777         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
18778         dependency on TARGET_DOUBLE_FLOAT.
18780 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
18782         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
18783         overwrite callee-save registers.  Fix comment.
18785 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
18787         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
18788         in target_flags based on ISA, if it was not set on the command
18789         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
18790         support Branch Likely instructions.
18791         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
18792         (TARGET_BRANCHLIKELY): Likewise.
18793         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
18794         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
18795         ISA_HAS_BRANCHLIKELY.
18796         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
18797         * doc/invoke.texi: Document new MIPS -mbranch-likely and
18798         -mno-branch-likely options.
18800 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18802         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
18804         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
18805         $(GCONFIG_H).
18807 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
18809         * c-decl.c (duplicate_decls): Error out for incompatible TLS
18810         declarations.
18812         * testsuite/gcc.dg/tls/diag-3.c: New.
18814 2002-08-06  Dale Johannesen  <dalej@apple.com>
18816         * c-common.c (fname_decl): Use line number 0 for
18817         __func__, to avoid confusing debuggers.
18819 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
18821         * gcov.c: Tidy.
18822         (struct line_info, struct coverage): New structures.
18823         (gcov_file_name, gcov_file): Remove globals.
18824         (output_data): Take source file parameter. Fix memory leak. Break
18825         up into ...
18826         (init_line_info, output_line_info, make_gcov_file_name,
18827         accumulate_branch_counts): ... here.
18828         (calculate_branch_probs, function_summary): Adjust.
18829         (main): Adjust.
18830         (function_*): Remove global variables.
18832 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18834         * dwarf2out.c: Remove unused macros.
18836 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18838         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
18840 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
18842         * cppinit.c (struct lang_flags): Rename trigraphs std.
18843         (set_lang): Update.
18844         * cpplib.h (struct cpp_options): New member std.
18845         * cppmacro.c (_cpp_builtin_macro_text): Use std.
18846         (collect_args): Flag whether to swallow a possible future
18847         comma pasted with varargs.
18848         (replace_args): Use this flag.
18849         * doc/cpp.texi: Update varargs extension documentation.
18851 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18853         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
18855 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18857         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
18858         and MODE_CLASS_INT modes.
18860 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
18862         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
18863         --{enable,disable}-threads is given to configure.
18864         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
18865         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
18866         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
18867         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
18868         Remove thread_file setting here.
18870 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
18872         * doc/install.texi (Binaries): Update Bull Freeware URL.
18874 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18876         * doc/gcc.texi (Top): Rename Index to Keyword Index.
18878 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
18880         * gcov.c (output_data): Round to % to nearest, tweak formatting.
18882 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
18884         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
18885         of the operands into MINUS_EXPR if code is PLUS_EXPR.
18887 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
18889         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
18890         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
18891         drectve_section): Define.
18892         * config/i386/t-interix: Replace interix.o rule with winnt.o.
18893         * config/i386/interix.c: Remove.
18895 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
18897         * attribs.c: Don't include obstack.h.
18898         * builtins.c: Likewise.
18899         * cfganal.c: Likewise.
18900         * cfgbuild.c: Likewise.
18901         * cfgcleanup.c: Likewise.
18902         * emit-rtl.c: Likewise.
18903         * loop.c: Likewise.
18904         * stmt.c: Likewise.
18906         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
18908 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
18910         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
18912 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
18914         * doc/invoke.texi: Remove duplicated paragraph describing
18915         TARGET_SWITCHES.
18917 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
18919         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
18920         * collect2.h (permanent_obstack): Delete declaration.
18921         * collect2.c (permanent_obstack): Delete definition.
18922         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
18923         * expr.c: Don't include obstack.h.
18924         (permanent_obstack): Delete declaration.
18925         * function.c: Don't include obstack.h.
18926         (permanent_obstack): Delete declaration.
18927         * integrate.c: Don't include obstack.h.
18928         (function_maybepermanent_obstack): Delete declaration.
18929         * print-tree.c (debug_tree): Use x*alloc not permalloc.
18930         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
18931         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
18932         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
18933         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
18934         of permalloc, expralloc, perm_calloc.
18935         * tree.c (permanent_obstack): Delete definition.
18936         (init_ttree): Rename from init_obstacks.
18937         (permalloc): Delete.
18938         (perm_calloc): Delete.
18939         (dump_tree_statistics): Don't print information about
18940         permanent_obstack.
18941         * varasm.c (assemble_start_function): Use xstrdup instead of
18942         permalloc/strcpy.
18943         (assemble_variable): Likewise.
18944         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
18945         permalloc.
18946         (unicosmk_add_extern): Likewise.
18947         * config/c4x/c4x.c (c4x_external_ref): Likewise.
18948         (c4x_global_label): Likewise.
18949         * config/frv/frv.c (frv_encode_section_info): Likewise.
18950         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
18951         (i386_pe_record_exported_symbol): Likewise.
18952         * config/mips/mips.c (mips_output_external): Likewise.
18953         (mips_output_external_libcall): Likewise.
18954         * config/pa/pa.c: (permanent_obstack): Delete declaration.
18955         (output_call): Use ggc_strdup instead of allocating on
18956         permanent_obstack.
18957         * config/romp/romp.c: Include ggc.h.
18958         (get_symref): Don't declare permanent_obstack, use ggc_strdup
18959         intead of permanent_obstack.
18960         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
18961         instead of permalloc.
18962         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
18963         instead of permalloc
18964         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
18965         instead of permalloc.
18966         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
18967         permalloc.
18969 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
18971         Contribute a port developed primarily by Michael Meissner,
18972         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
18973         * config.gcc: Add frv-elf target.
18974         * config/frv/cmovd.c: New file.
18975         * config/frv/cmovh.c: New file.
18976         * config/frv/cmovw.c: New file.
18977         * config/frv/frv-abi.h: New file.
18978         * config/frv/frv-asm.h: New file.
18979         * config/frv/frv-modes.def: New file.
18980         * config/frv/frv-protos.h: New file.
18981         * config/frv/frv.c: New file.
18982         * config/frv/frv.h: New file.
18983         * config/frv/frv.md: New file.
18984         * config/frv/frvbegin.c: New file.
18985         * config/frv/frvend.c: New file.
18986         * config/frv/lib1funcs.asm: New file.
18987         * config/frv/media.h: New file.
18988         * config/frv/modi.c: New file.
18989         * config/frv/t-frv: New file.
18990         * config/frv/uitod.c: New file.
18991         * config/frv/uitof.c: New file.
18992         * config/frv/ulltod.c: New file.
18993         * config/frv/ulltof.c: New file.
18994         * config/frv/umodi.c: New file.
18995         * config/frv/xm-frv.h: New file.
18997         * config/frv/media.h: Removed again.
18999 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
19001         * gcov.c (bb_file_time): New static variable.
19002         (object_directory): May also be object file.
19003         (preserve_paths): New static variable.
19004         (print_usage): Adjust.
19005         (options): Adjust.
19006         (process_args): Adjust.
19007         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
19008         file. Find modification date on bb file.
19009         (read_profile): Don't rewind a NULL file.
19010         (format_hwint): New static function.
19011         (function_summary): Use format_hwint.
19012         (output_data): SOURCE_FILE_NAME is never relative to
19013         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
19014         mangling. Adjust output format to make it more machine readable.
19015         * doc/gcov.texi: Document & clarify semantics.
19017 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
19019         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
19021 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
19023         * gcc.c (cc1_options): Pass output file as auxbase when
19024         appropriate.
19025         * profile.c (init_branch_prob): FILENAME has already had ending
19026         stripped.
19027         * final.c (end_final): Likewise.
19028         * toplev.c (aux_base_name): New global.
19029         (compile_file): Pass aux_base_name to init init_branch_prob and
19030         end_final.
19031         (independent_decode_option, case 'a'): New auxinfo options.
19032         (case 'd'): Protect against mising basename.
19033         (do_compile): Initialize aux_base_name.
19034         * toplev.h (aux_base_name): New global.
19035         * doc/invoke.texi: Adjust documentation.
19037 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
19039         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
19040         of TARGET_ALIGN_DOUBLE.
19042 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
19044         * diagnostic.c (inform): New function.
19045         * diagnostic.h (inform): Declare.
19047 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
19049         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
19050         (movhi_internal): Same.
19051         (movqi_internal): Same.
19052         (movdi_internal64): Same.
19054         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
19056         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
19057         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
19058         (COMMON_ASM_OP): Define.
19059         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
19060         Use ALIGN parameter.
19061         (LOCAL_COMMON_ASM_OP): Define.
19062         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
19064 2002-08-03  Roger Sayle  <roger@eyesopen.com>
19066         * builtins.def: Define new builtin functions exp, expf, expl,
19067         log, logf and logl (and their __builtin_* variants).
19068         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
19069         Define exp_optab and log_optab.
19070         * optabs.c (init_optans): Initialize exp_optab and log_optab.
19071         * genopinit.c (optabs): Implement exp_optab and log_optab
19072         using exp?f2 and log?f2 patterns.
19073         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
19074         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
19075         (expand_builtin): Ignore the new builtins (and all cos and
19076         sin variants) when not optimizing.  Expand new builtins via
19077         expand_builtin_mathfn when flag_unsafe_math_optimizations.
19079         * doc/extend.texi: Document new exp and log builtins.
19080         * doc/md.texi: Document new exp?f2 and log?f2 patterns
19081         (and previously undocumented cos?f2 and sin?f2 patterns).
19083 2002-08-03  Jason Merrill  <jason@redhat.com>
19085         * explow.c (int_expr_size): New fn.
19086         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
19087         * expr.h: Declare it.
19089 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
19091         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
19092         gengtype-* dependencies.
19094 2002-08-02  Eric Christopher  <echristo@redhat.com>
19096         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
19097         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
19098         #ifndef to #undef.
19099         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
19101 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
19103         PR optimize/7067
19104         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
19105         small if optimizing for size.
19107 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
19109         * configure.in (FORBUILD): Use $build_alias.
19110         * configure: Regenerated.
19112 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
19114         * config.gcc: Don't include mips/abi64.h in $tm_file.
19115         * hard-reg-set.h (call_really_used_regs): Declare.
19116         * config/mips/abi64.h: Remove file.
19117         * config/mips/linux.h,
19118         * config/mips/iris6.h: Don't include it.
19119         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
19120         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
19121         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
19122         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
19123         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
19124         Bring across definitions from abi64.h.
19125         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
19126         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
19127         (struct mips_args): Use it.
19128         * config/mips/mips.c (mips_conditional_register_usage): Define.
19130 2002-08-02  Jason Merrill  <jason@redhat.com>
19132         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
19133         * langhooks.c (lhd_expr_size): Define default.
19134         * langhooks.h (struct lang_hooks): Add expr_size.
19135         * explow.c (expr_size): Call it.
19136         * expr.c (store_expr): Don't copy an expression of size zero.
19137         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
19138         to store.
19139         * Makefile.in (builtins.o): Depend on langhooks.h.
19141 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19143         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
19144         * ra-debug.c: Include "tm_p.h".
19145         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
19147 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
19149         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
19150         when not honoring signalling NaNs.
19151         (simplify_ternary_operation): a == b has a definite value
19152         when not honoring NaNs.
19154 2002-08-02  Jason Merrill  <jason@redhat.com>
19156         * gdbinit.in (pct): New macro.
19158 2002-08-01  Stan Shebs  <shebs@apple.com>
19159             Andreas Tobler  <toa@pop.agri.ch>
19161         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
19162         plays nice with Darwin headers.
19163         (_BSD_RUNE_T_DEFINED_): Likewise.
19165 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
19167         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
19168         * cppinit.c (cpp_post_options): Likewise.
19170         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
19171         warning about 'LL' suffix (but not 'ULL' etc) when
19172         -Wno-long-long is in effect.
19174         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
19175         Check for failing time()/localtime(), issue a warning, and
19176         make __TIME__ and __DATE__ expand to fallback strings.
19178         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
19179         and __TIME__ when the date and time cannot be determined.
19181 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
19183         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
19185 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
19187         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
19189 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
19191         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
19192         (mipsisa64sb1el-*-elf*): Likewise.
19193         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
19194         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
19195         (TARGET_SB1, TUNE_SB1): New macros.
19196         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
19197         -mtune flags.
19199 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
19201         * varasm.c (asm_emit_uninitialized): Return false if global BSS
19202         and ASM_EMIT_BSS not supported by target.
19203         (assemble_variable): Do not duplicate uninitialized logic.
19204         Fall through if asm_emit_uninitialized failed.
19206 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
19208         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
19210 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
19212         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
19213         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
19215         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
19216         HOST_BITS_PER_WIDE_INT == 64.
19218 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19220         * df.c (df_insn_table_realloc): Change parameter to unsigned.
19221         * optabs.c (expand_binop): Make variable unsigned.
19222         * simplify-rtx.c (simplify_subreg): Likewise.
19223         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
19225 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19227         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
19229 2002-08-01  Richard Henderson  <rth@redhat.com>
19231         * toplev.c (parse_options_and_default_flags): Don't set
19232         flag_reorder_blocks for -Os.
19234         * config/avr/avr.c (avr_optimization_options): Remove.
19235         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
19236         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
19237         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
19239 2002-08-01  H.J. Lu <hjl@gnu.org>
19240             Richard Henderson  <rth@redhat.com>
19242         * output.h (DECL_READONLY_SECTION): Remove.
19243         (decl_readonly_section): Declare.
19244         * varasm.c (decl_readonly_section): New.
19245         (default_section_type_flags, default_select_section): Use it.
19246         * config/arm/pe.c (arm_pe_unique_section): Likewise.
19247         * config/i386/interix.c (i386_pe_unique_section): Likewise.
19248         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
19249         * config/mcore/mcore.c (mcore_unique_section): Likewise.
19250         * config/mips/mips.c (mips_unique_section): Likewise.
19252 2002-08-01  Richard Henderson  <rth@redhat.com>
19254         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
19255         refers to a subroutine parameter.
19257 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
19259         * varasm.c (assemble_visibility): Strip name encoding.
19261 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
19263         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
19264         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
19265         when there is no frame pointer.
19266         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
19267         registers properly.
19268         * config/ns32k/__unorddf2.c: New file.
19269         * config/ns32k/__unordsf2.c: New file.
19270         * config/ns32k/t-ns32k: New file.
19271         * config.gcc (ns32k-*-netbsd*): Use it.
19273 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
19275         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
19277 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19279         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
19281 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
19283         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
19285 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
19287         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
19289 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19291         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
19292         n_sets): Removed.
19293         (expr_hash_table, set_hash_table): Type changed to ...
19294         (struct hash_table): New type.
19295         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
19296         insert_expr_in_table, insert_set_in_table, compute_hash_table,
19297         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
19298         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
19299         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
19300         (alloc_hash_table): New.
19301         (free_set_hash_table, free_expr_hash_table): Merged to ...
19302         (free_hash_table): New.
19303         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
19304         (compute_hash_table_work): New.
19305         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
19306         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
19307         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
19308         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
19309         hoist_code, one_code_hoisting_pass,
19310         trim_ld_motion_mems): Altered due to changed type of hash tables.
19312 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
19314         * final.c (output_alternate_entry_point):
19315         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
19317 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19319         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
19320         avoid ISO C style function definition.
19322         * expr.c (expand_assignment): Delete unused variable.
19324 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
19326         * c-common.c (cb_register_builtins): Set
19327         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
19328         is given, and to 0 otherwise.
19329         * combine.c (simplify_if_then_else): HONOR_NANS
19330         implies FLOAT_MODE_P.
19332 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19334         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
19335         (cpp_handle_option): Don't handle it.
19336         (print_help): Update.
19337         * doc/cppopts.texi: Update.
19339 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19341         * c-common.c (cb_register_builtins): If C++, define
19342         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
19343         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
19345         * lang-specs.h: Simplify in accordance with new code in
19346         c-common.c.
19348 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
19350         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
19351         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
19352         * c-decl.c: Move all warning and flag variables to c-common.c.
19353         * c-format.c: Move all warning variables to c-common.c.
19354         * c-tree.h: Move all warning and flag declarations to c-common.h.
19355         * objc/objc-act.c: Move all warning variables to c-common.c.
19356         (flag_warn_protocol): Rename warn_protocol.
19358 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19360         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
19362 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
19364         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
19365         .section prefix.
19367 2002-07-31  Stan Shebs  <shebs@apple.com>
19369         * config.gcc (i[34567]86-*-darwin*): New configuration.
19370         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
19371         defining.
19372         (TARGET_ENCODE_SECTION_INFO): Ditto.
19373         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
19374         * config/darwin.c (machopic_indirect_data_reference): Remove
19375         setting of RTX_UNCHANGING_P.
19376         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
19377         not to be applied to sums.
19378         * config/i386/t-darwin: New file.
19379         * config/i386/darwin.h: New file.
19380         * config/i386/i386.h (TARGET_MACHO): Add default definition.
19381         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
19382         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
19383         label and not the GOT add.
19384         (constant_address_p): For Mach-O, seeing a CONST is enough.
19385         (legitimate_pic_address_disp_p): Add a Mach-O case.
19386         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
19387         (legitimize_pic_address): Use generic Mach-O code to legitimize.
19388         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
19389         if outputting a difference.
19390         (ix86_output_addr_diff_elt): Add Mach-O case.
19391         (ix86_expand_move): Similarly.
19392         (ix86_expand_call): Similarly.
19393         (current_machopic_label_num): New global.
19394         (machopic_output_stub): New function.
19395         (ix86_value_regno): New function.
19396         (ix86_function_value): Use it instead of VALUE_REGNO.
19397         (ix86_libcall_value): Ditto.
19398         * config/i386/unix.h (VALUE_REGNO): Remove.
19400 2002-07-31  Graham Stott  <grahas@btinternet.com>
19402         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
19403         hash for LABEL_REF's.
19405 2002-07-31  Graham Stott  <grahams@btinternet.com>
19407         * config/rs6000/rs6000.c (spe_init_builtins,
19408         altivec_init_builtins, rs6000_common_init_builtins):
19409         Replace ANSI with K&R function def.
19411 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
19413         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
19414         for CCFPmode.
19416 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
19418         * config/mips/crtn.asm: Don't use __mips16 to determine the
19419         return-address offset.  Define RA to a suitable temporary
19420         register for the return address.
19422 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
19424         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
19425         constraints to 'd'.
19427 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
19429         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
19430         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
19431         patch on 2002-07-29.)
19432         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19434 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19436         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
19437         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
19438         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
19439         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
19440         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
19441         (ASM_GLOBALIZE_LABEL): Delete.
19442         (GLOBAL_ASM_OP): Define.
19444         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
19446         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
19447         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
19449 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
19451         * doc/extend.texi (Hints implementation): Document that GCC
19452         mostly ignores `register'.
19454 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
19456         * flags.h: Declare flag_finite_math_only.
19457         Use it in definition of HONOR_NANS and
19458         HONOR_INFINITIES.
19459         * c-common.c (cb_register_builtins): Emit
19460         __FINITE_MATH_ONLY__ when flag_finite_math_only
19461         is set.
19462         * combine.c (simplify_if_then_else): If
19463         flag_finite_math_only is set, a == b has a
19464         definite value.
19465         * toplev.c: Initialize flag_finite_math_only.
19466         (set_flags_fast_math): Set it on -ffast-math.
19467         (flag_fast_math_set_p): Test it.
19468         * doc/invoke.texi: Document -ffinite-math-only.
19470 2002-07-30  Richard Henderson  <rth@redhat.com>
19472         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
19473         (noce_process_if_block): Likewise.
19475 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
19477         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
19478         Bail out early if false_expr is NULL and we'd crash due to this.
19479         * genemit.c (gen_expand): Recognize return insns even if the return
19480         appears in a parallel.
19481         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
19482         * config/fp-bit.c: Likewise.
19483         * doc/tm.texi: Document it.
19485 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
19486             Zack Weinberg  <zack@codesourcery.com>
19488         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
19489         CODE_FOR_nothing.  Change switch to if.
19490         (rs6000_expand_binop_builtin): Same.
19491         (rs6000_expand_builtin): Expand builtin if target support enabled.
19492         (rs6000_init_builtins): Init builtin if target support enabled.
19493         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
19495 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
19497         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
19499 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
19501         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
19503 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
19505         * sh.md (cond_delay_slot): New attribute.
19506         (cbranch delay): Use it for anulled-true case.
19507         (stuff_delay_slot): New pattern.
19508         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
19509         delay slot insn.
19510         (gen_far_branch): Emit stuff_delay_slot pattern.
19512 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
19514         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
19516 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
19518         * fold-const.c: Fix comment typos.
19519         * gcse.c: Likewise.
19520         * reload1.c: Likewise.
19522 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19524         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
19525         for TARGET_SPE.
19527 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
19529         * c-pretty-print.h (pp_c_statement): Declare.
19530         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
19531         (pp_c_statement): Define.
19533 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19535         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
19536         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
19537         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
19538         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
19539         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
19540         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
19542         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
19543         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
19545 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
19547         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
19548         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
19549         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
19550         (pp_c_expression): Update.
19552 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19554         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
19555         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
19556         * alpha/vms-ld.c (main): Likewise.
19557         * dsp16xx.c (double_reg_to_memory): Likewise.
19558         * mcore.c (mcore_expand_prolog): Likewise.
19559         * cppfiles.c (read_name_map): Likewise.
19560         * gensupport.c (process_rtx, identify_predicable_attribute,
19561         alter_test_for_insn): Likewise.
19562         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
19564 2002-07-29  Roger Sayle  <roger@eyesopen.com>
19566         * builtins.c (expand_builtin):  Change the default behavior to
19567         only issue an error if the builtin function doesn't have a
19568         fallback library call.  Remove several cases handled by the
19569         new default.
19571 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
19573         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
19574         floating point format of the target is IEEE.
19575         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
19576         format of the target is DEC.
19578 2002-07-29  Richard Henderson  <rth@redhat.com>
19580         * unroll.c (verify_addresses): Remove.
19581         (find_splittable_givs): Never split DEST_ADDR givs.
19583 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
19585         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
19586         is exhaustive.
19587         (Files): Improve documentation on generated source files.
19589         * doc/extend.texi (Translation implementation): Document what
19590         diagnostics look like.
19591         (Identifiers implementation): Document that there's normally no
19592         limit on identifier names.
19593         (Integers implementation): Document two's complement.
19594         (Hints implementation): Document that GCC honors 'inline', mostly.
19595         (Preprocessing directives implementation): Document that GCC
19596         requires the current time.
19598 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
19600         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
19601         (pp_initializer): New macro.
19602         (pp_c_initializer): Declare.
19603         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
19604         (pp_c_initializer): Define.
19605         (pp_c_initializer_list): New function.
19606         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
19607         VECTOR_CST, CONSTRUCTOR.
19608         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
19609         IMAGPART_EXPR.
19610         (pp_c_cast_expression): Handle FLOAT_EXPR.
19611         (pp_c_assignment_expression): Handle INIT_EXPR.
19612         (pp_c_expression): Update.
19614 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
19616         * objc/objc-act.c (objc_init): Return immediately if filename
19617         is NULL.
19619 2002-07-29  Eric Christopher  <echristo@redhat.com>
19621         * config/mips/elf.h: Remove ecoff.h and gofast includes.
19622         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
19623         (SDB_DEBUGGING_INFO): Undefine.
19624         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
19625         (PUT_SDB_SIZE): Remove.
19626         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
19627         (STARTFILE_SPEC): Add isa3264 define.
19628         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
19629         * config/mips/ecoff.h: Remove. and here...
19630         * config/mips/iris3.h: and here...
19631         * config/mips/sni-svr4.h: and here...
19632         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
19633         Add assembler -mmdebug options for non-dwarf debugging.
19634         * config/mips/r3900.h: Remove debug info defines.
19635         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
19636         * config/mips/isa3264.h: Ditto.
19637         * config/mips/t-isa3264: Fix up for file removal and gofast configure
19638         change.
19639         * config/mips/t-elf: Ditto.
19640         * config/mips/t-ecoff: Ditto.
19641         * config/mips/t-r3900: Ditto.
19642         * config/mips/t-iris5-6: Ditto.
19643         * config/mips/t-isa3264: Ditto.
19644         * config/mips/t-linux: Remove.
19645         * config/mips/t-netbsd: Remove.
19646         * config/mips/t-mips: New file.
19647         * config/mips/t-gofast: Ditto.
19648         * config/mips/netbsd.h: Remove unnecessary undefines.
19649         * config/mips/linux.h: Remove #include of mips.h.
19650         * config.gcc: Add mips.h include for elf targets. Remove tm_file
19651         for ecoff. Add gofast configure option for mips.
19653 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
19655         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
19656         linker scripts use STARTUP directives consistently.
19657         * configure: Regenerate.
19658         * config.in: Regenerate.
19659         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
19660         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
19661         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
19662         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
19663         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
19664         will be the same.
19666 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19668         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
19670 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19672         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
19674 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
19676         * config/rs6000/rs6000.md: Move altivec patterns from here...
19678         * config/rs6000/altivec.md: ...to here.
19680 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19682         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
19684 2002-07-29  Richard Henderson  <rth@redhat.com>
19686         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
19687         set_mem_attributes and add BITPOS argument.  Subtract it from
19688         OFFSET when same is adjusted.
19689         (set_mem_attributes): New wrapper function.
19690         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
19691         remove offset adjustment hack.
19692         * expr.h (set_mem_attributes_minus_bitpos): Declare.
19694 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
19696         * Makefile.in (C_OBJS): Include c-pretty-print.o
19697         (c-pretty-print.o): Add depency rule.
19698         * pretty-print.h: Add more macros.
19699         * c-pretty-print.c: New file.
19700         * c-pretty-print.h: Likewise.
19702 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
19704         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
19705         constants to __ev64_s32__.
19706         (__internal_ev_mwhgsmian): Same.
19707         (__internal_ev_mwhgsmfan): Same.
19708         (__internal_ev_mwhgssfan): Same.
19709         (__internal_ev_mwhgumiaa): Same.
19710         (__internal_ev_mwhgsmiaa): Same.
19711         (__internal_ev_mwhgsmfaa): Same.
19712         (__internal_ev_mwhgssfaa): Same.
19714 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
19716         * varasm.c (assemble_variable): Narrow test for uninitialized
19717         without BSS target support.
19719 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
19721         * profile.c: Add file comment describing the overall algorithm and
19722         structures.
19723         (struct edge_info): Add comments.
19724         (struct bb_info): Add comments.
19725         * basic-block.h (EDGE_*): Add comments.
19726         * doc/gcov.texi (Gcov Data Files): Document bit flags.
19728 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
19730         * config/xtensa/elf.h, config/xtensa/linux.h
19731         (TARGET_OS_CPP_BUILTINS): Define.
19732         (CPP_PREDEFINES): Remove.
19733         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
19734         (CPP_SPEC): Remove.
19736 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
19738         * gensupport.c: Include hashtab.h.
19739         (insn_elision, condition_table, hash_c_test, cmp_c_test,
19740         maybe_eval_c_test): New routines and data structures to
19741         support insn elision.
19742         (init_md_reader): Read and initialize the condition_table.
19743         (read_md_rtx): Discard insn patterns whose C test is provably
19744         always false.
19745         * gensupport.h: Declare new functions and data structures.
19747         * genconditions.c, dummy-conditions.c: New files.
19748         * Makefile.in: Build genconditions; run it to construct
19749         insn-conditions.c; build that and link it into most gen*
19750         programs.
19751         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
19752         (GEN): Delete, unused.
19753         (STAGESTUFF): Update.
19755         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
19756         CODE_FOR_nothing for all elided patterns.
19757         (main): Tweaked to support this.
19758         * genflags.c (gen_proto): Emit a static inline generator
19759         function here for all elided patterns, which simply returns
19760         NULL_RTX.
19761         (gen_insn): Do not define HAVE_xxx for elided patterns.
19762         (main): Tweaked to support this.  No need to forward-declare
19763         struct rtx_def.
19764         * genrecog.c: Do not bother emitting the C test if it's known
19765         to be true at compile time.
19767 2002-07-29  Mike Stump  <mrs@apple.com>
19769         * config.gcc (target_gtfiles): Initialize, as otherwise cross
19770         compilers hosted on powerpc-apple-darwin6.0 won't even build.
19772 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
19774         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
19775         remove clobber of LR.
19776         (sibcall_insn, sibcall_value_insn): Update accordingly.
19777         (sibcall_epilogue): Remove debugging comment from assembler stream.
19779 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
19781         * pretty-print.h: Define more macros.
19782         * diagnostic.h (output_formatted_integer): Moved from...
19783         * diagnostic.c: ... here.
19785 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19787         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
19789 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
19791         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
19792         arguments.  Always use ".-symbol" as expression argument.
19793         * doc/tm.texi: Update to match.  Document requirement for
19794         ".size symbol, .-symbol" to be acceptable to assembler.
19796         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
19797         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
19798         config/i386/freebsd-aout.h, config/i386/sco5.h,
19799         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
19800         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
19802 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19804         * Makefile.in (gengtype-lex.c): Fix error in last change.
19806         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
19807         backslash.
19809         * Makefile.in (vmsdbgout.o): Depend on function.h.
19811         * vmsdbgout.c: Include function.h.
19813 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
19815         * prefix.c (update_path): Don't strip single `.' path components
19816         unless stripping a later `..' component.  Exit loop as soon as
19817         a valid path is found.
19819 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19821         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
19822         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
19823         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
19824         floating point unordered comparisons (e.g. __builtin_isgreater)
19825         as const, and leave the remaining GCC_BUILTINs unchanged.
19827         * c-decl.c (builtin_function): No need to explicitly mark
19828         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
19830 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19832         * Makefile.in: rtlanal.o now depends upon real.h.
19834         * flags.h [flag_signaling_nans]: New flag.
19835         [HONOR_SNANS]: New macro.
19837         * toplev.c [flag_signaling_nans]: Initialize to false.
19838         (f_options): Add processing for "-fsignaling-nans".
19839         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
19840         (process_options): flag_signaling_nans implies flag_trapping_math.
19842         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
19843         when -fsignaling-nans.  First step to implementing WG14's N965.
19845         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
19846         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
19847         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
19849         * simplify-rtx.c (simplify_relational_operation): Conditionalize
19850         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
19852         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
19853         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
19854         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
19855         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
19856         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
19858         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
19860 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19862         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
19863         * gengtype-lex.l (YY_USE_PROTOS): Undef.
19864         (YY_DECL): Define.
19866 2002-07-27  Roger Sayle  <roger@eyesopen.com>
19868         * doc/invoke.texi: Document that both -fno-builtin-foo and
19869         -fno-builtin are supported by the g++ front-end.
19871 2002-07-27  Stan Shebs  <shebs@apple.com>
19873         * configure.in: Rename config_gtfiles to target_gtfiles.
19874         * configure: Regenerate.
19875         * doc/gty.texi: Update reference.
19876         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
19877         instead of appending to it.
19879 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
19881         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
19882         vectors are split into two registers.
19883         (function_arg): Same.
19885 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
19887         * pa.md (extv): Check predicates before emitting extv_32.
19889 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
19891         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
19892         (rs6000_traceback): New var.
19893         (rs6000_override_options): Set rs6000_traceback.
19894         (rs6000_output_function_epilogue): Implement traceback options.
19895         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
19896         (rs6000_traceback_name): Declare.
19898         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
19899         label reference when NO_PROFILE_COUNTERS.
19901 2002-07-26  Jason Merrill  <jason@redhat.com>
19903         * function.c (assign_parms): Handle frontend-directed pass by
19904         invisible reference.
19906 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19908         * doc/cppopts.texi: Update.
19910 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19912         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
19913         warnings on assertions.
19915 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
19917         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
19918         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
19919         RID_COMPL): Remove.
19920         * c-parse.in (rid_to_yy): Similarly.
19922 2002-07-26  Jason Merrill  <jason@redhat.com>
19924         * c-dump.c: Resurrect.
19925         * tree-dump.c: Move C-specific stuff to c-dump.c.
19926         * c-common.h: Declare c_dump_tree.
19927         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
19928         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
19929         (c-dump.o): New rule.
19931 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
19933         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
19934         PowerPC64.  Replace "T" and "S" constraints with "n" when the
19935         predicate will do.  Formatting fixes.
19936         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
19937         as for extzvsi_internal1.
19939 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19941         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
19942         DERIV_END_LABEL_FMT): Remove.
19943         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
19945 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19947         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
19948         Remove.
19950 2002-07-25  Stan Shebs  <shebs@apple.com>
19952         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
19953         local var dwarfp.
19954         (output_compiler_stub): Remove unused locals.
19955         (output_call): Always initialize line number.
19957 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19959         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
19960         * sh.md (truncdiqi2, movqi_media): Likewise.
19962 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19964         * gcse.c (obstack_chunk_alloc): Remove.
19965         (gcse_alloc): Fix to count allocated bytes.
19966         * collect2.c (SYMBOL__MAIN): Remove.
19968 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
19970         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
19971         HAVE_TARGET_EXECUTABLE_SUFFIX.
19973 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
19975         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
19976         SIZE, EXPR and OFFSET.
19978 2002-07-25  Richard Henderson  <rth@redhat.com>
19980         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
19981         in ARRAY_REF of DECL_P case.
19983 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
19985         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
19986         description.  Document -mips32, -mips64, and the associated -march
19987         values.  Describe the "mipsN" arguments to -march.  Say that the
19988         -mipsN options are equivalent to -march.  Reword the description
19989         of default type sizes.
19990         * toplev.h (target_flags_explicit): Declare.
19991         * toplev.c (target_flags_explicit): New var.
19992         (set_target_switch): Update target_flags_explicit.
19993         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
19994         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
19995         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
19996         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
19997         * config/mips/mips.h (mips_cpu_info): New struct.
19998         (mips_cpu_string, mips_explicit_type_size_string): Remove.
19999         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
20000         (MIPS_CPP_SET_PROCESSOR): New macro.
20001         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
20002         Define _MIPS_ARCH and _MIPS_TUNE.
20003         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
20004         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
20005         MIPS_ISA_DEFAULT were already defined.
20006         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
20007         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
20008         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
20009         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
20010         (ABI_GAS_ASM_SPEC): Remove.
20011         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
20012         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
20013         Invoke %(asm_abi_default_spec) if no ABI was specified.
20014         (CC1_SPEC): Remove ISA -> register-size rules.
20015         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
20016         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
20017         (mips_cpu_string, mips_explicit_type_size_string): Remove.
20018         (mips_cpu_info_table): New array.
20019         (mips_set_architecture, mips_set_tune): New fns.
20020         (override_options): Rework to make -mipsN equivalent to -march.
20021         Detect more erroneous cases, including those removed from CC1_SPEC.
20022         Don't change the ABI based on architecture, or vice versa.
20023         Unify logic with GAS.
20024         (mips_asm_file_start): Get architecture name from mips_arch_info.
20025         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
20026         (mips_parse_cpu): Take the name of the option as argument.  Handle
20027         'from-abi'.  Raise an error if the option is wrong.
20028         (mips_cpu_info_from_isa): New fn.
20030 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
20032         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
20033         (tablejump_mips162): Likewise.
20035 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
20037         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
20038         int_mode_for_mode.
20040 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
20042         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
20043         complaining.
20044         * c-common.h (c_sizeof): Adjust definition.
20045         (c_alignof): Likewise.
20046         * c-tree.h (c_sizeof_nowarn): Now macro.
20047         * c-typeck.c (c_sizeof_nowarn): Remove definition.
20049 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
20051         * c-decl.c (c_decode_option): No need to handle switches
20052         cpplib handles.
20054 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
20056         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
20057         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
20058         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
20059         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
20061         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
20062         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
20063         config/cris/aout.h, config/i386/freebsd-aout.h,
20064         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
20065         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
20066         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
20067         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
20068         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
20069         config/xtensa/elf.h, config/xtensa/linux.h:
20070         Use the new macros.
20071         Where possible, remove redundant definitions of SIZE_ASM_OP,
20072         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
20074 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
20076         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
20077         TARGET_ISEL, and TARGET_FPRS.
20079         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20080         -mabi=spe, -mabi=no-spe, and -misel=.
20082         * config/rs6000/rs6000-protos.h: Add output_isel.
20083         Move vrsave_operation prototype here.
20085         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
20086         (smaxsi3): Same.
20087         (uminsi3): Same.
20088         (umaxsi3): Same.
20089         (abssi2_nopower): Disallow when TARGET_ISEL.
20090         (*ne0): Same.
20091         (negsf2): Change to expand and rename old pattern to *negsf2.
20092         (abssf2): Change to expand and rename old pattern to *abssf2.
20094         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
20095         fixunssfsi2.
20097         Change patterns that check for TARGET_HARD_FLOAT or
20098         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
20100         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
20101         rs6000_isel, rs6000_fprs, rs6000_isel_string.
20102         (rs6000_override_options): Add 8540 case to
20103         processor_target_table.
20104         Set rs6000_isel for the 8540.
20105         Call rs6000_parse_isel_option.
20106         (enable_mask_for_builtins): New.
20107         (rs6000_parse_isel_option): New.
20108         (rs6000_parse_abi_options): Add spe and no-spe.
20109         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
20110         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
20111         for TARGET_HARD_FLOAT.
20112         Add case for SPE_VECTOR_MODE.
20113         (rs6000_legitimize_reload_address): Handle SPE vector modes.
20114         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
20115         vector modes.
20116         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
20117         (rs6000_emit_move): Check for TARGET_FPRS.
20118         Add cases for SPE vector modes.
20119         (function_arg_boundary): Return 64 for SPE vector modes.
20120         (function_arg_advance): Check for TARGET_FPRS and
20121         Handle SPE vectors.
20122         (function_arg): Same.
20123         (setup_incoming_varargs): Check for TARGET_FPRS.
20124         (rs6000_va_arg): Same.
20125         (struct builtin_description): Un-constify mask field.  Move up in
20126         file.
20127         (bdesc_2arg): Un-constify and add SPE builtins.
20128         (bdesc_1arg): Same.
20129         (bdesc_spe_predicates): New.
20130         (bdesc_spe_evsel): New.
20131         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
20132         (rs6000_expand_binop_builtin): Same.
20133         (bdesc_2arg_spe): New.
20134         (spe_expand_builtin): New.
20135         (spe_expand_predicate_builtin): New.
20136         (spe_expand_evsel_builtin): New.
20137         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
20138         (rs6000_init_builtins): Initialize SPE builtins.  Call
20139         rs6000_common_init_builtins.
20140         (altivec_init_builtins): Move all non-altivec builtin code to...
20141         (rs6000_common_init_builtins): ...here.  New function.
20142         (branch_positive_comparison_operator): Allow NE code for SPE.
20143         (ccr_bit): Return correct ccr bit for SPE fp.
20144         (print_operand): Emit crnor in 'D' case for SPE.
20145         New case 't'.
20146         Add SPE code for 'y' case.
20147         (rs6000_generate_compare): Generate rtl for SPE fp.
20148         (output_cbranch): Handle SPE hard floats.
20149         (rs6000_emit_cmove): Handle isel.
20150         (rs6000_emit_int_cmove): New.
20151         (output_isel): New.
20152         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
20153         64-bits for SPE.
20154         (debug_stack_info): Add SPE info.
20155         (gen_frame_mem_offset): New.
20156         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
20157         Change mode of frame pointer, when saving it, to Pmode.
20158         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
20159         Misc cleanups and use gen_frame_mem_offset when appropriate.
20161         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
20162         (TARGET_SPE_ABI): New.
20163         (TARGET_SPE): New.
20164         (TARGET_ISEL): New.
20165         (TARGET_FPRS): New.
20166         (FIXED_SCRATCH): New.
20167         (RTX_COSTS): Add PROCESSOR_PPC8540.
20168         (ASM_CPU_SPEC): Add case for 8540.
20169         (TARGET_OPTIONS): Add isel= case.
20170         (rs6000_spe_abi): New.
20171         (rs6000_isel): New.
20172         (rs6000_fprs): New.
20173         (rs6000_isel_string): New.
20174         (UNITS_PER_SPE_WORD): New.
20175         (LOCAL_ALIGNMENT): Adjust for SPE.
20176         (HARD_REGNO_MODE_OK): Same.
20177         (DATA_ALIGNMENT): Same.
20178         (MEMBER_TYPE_FORCES_BLK): New.
20179         (FIRST_PSEUDO_REGISTER): Set to 113.
20180         (FIXED_REGISTERS): Add SPE registers.
20181         (reg_class): Same.
20182         (REG_CLASS_NAMES): Same.
20183         (REG_CLASS_CONTENTS): Same.
20184         (REGNO_REG_CLASS): Same.
20185         (REGISTER_NAMES): Same.
20186         (DEBUG_REGISTER_NAMES): Same.
20187         (ADDITIONAL_REGISTER_NAMES): Same.
20188         (CALL_USED_REGISTERS): Same.
20189         (CALL_REALLY_USED_REGISTERS): Same.
20190         (SPE_ACC_REGNO): New.
20191         (SPEFSCR_REGNO): New.
20192         (SPE_SIMD_REGNO_P): New.
20193         (HARD_REGNO_NREGS): Adjust for SPE.
20194         (VECTOR_MODE_SUPPORTED_P): Same.
20195         (REGNO_REG_CLASS): Same.
20196         (FUNCTION_VALUE): Same.
20197         (LIBCALL_VALUE): Same.
20198         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
20199         (SPE_VECTOR_MODE): New.
20200         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
20201         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
20202         (rs6000_stack): Add spe_gp_size, spe_padding_size,
20203         spe_gp_save_offset.
20204         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
20205         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
20206         (SPE_CONST_OFFSET_OK): New.
20207         (rs6000_builtins): Add SPE builtins.
20209         * testsuite/gcc.dg/ppc-spe.c: New.
20211         * config/rs6000/eabispe.h: New.
20213         * config/rs6000/spe.h: New.
20215         * config/rs600/spe.md: New.
20217         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20218         __SIMD__ for TARGET_SPE.
20220         * config.gcc: Add powerpc-*-eabispe* case.
20221         Add spe.h to user headers for powerpc.
20223 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
20225         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
20226         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
20227         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
20229 2002-07-24  Richard Henderson  <rth@redhat.com>
20231         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
20232         form when not optimizing.
20234 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
20236         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
20237         thread_pointer_rtx as unchanging.
20239 2002-07-24  Michael Matz  <matz@suse.de>
20241         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
20242         (free_reg): Use it.
20244 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
20246         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
20247         pattern.
20248         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
20249         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
20251 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
20253         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
20254         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
20255         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
20257 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
20259         * toplev.c (rest_of_compilation): Dump loops before clobbering
20260         the structure.
20262 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
20264         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
20266 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
20268         PR optimization/7291
20269         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
20270         problem on x86_64.
20272 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
20274         * pretty-print.h: Add macros from cp/error.c
20276 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
20278         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
20279         (mask64_2_operand): Declare.
20280         (build_mask64_2_operands): Declare.
20281         (and64_2_operand): Declare.
20282         (extract_MB): Declare.
20283         (extract_ME): Declare.
20284         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
20285         CONST_DOUBLE code.
20286         (mask_operand_wrap): New insn predicate.
20287         (mask64_2_operand): Likewise.
20288         (and64_2_operand): Likewise.
20289         (build_mask64_2_operands): New function.
20290         (extract_MB): New function.
20291         (extract_ME): New function.
20292         (print_operand <case m,M>): Use extract_MB and extract_ME.
20293         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
20294         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
20295         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
20296         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
20297         * config/rs6000/rs6000.md (andsi3_internal3): New
20298         (andsi3_internal3+1): Enable split for powerpc64.
20299         (andsi3_internal3+2): New split.
20300         (andsi3_internal4): Renamed old andsi3_internal3.
20301         (andsi3_internal5): New.
20302         (andsi3_internal5+1): Enable split for powerpc64.
20303         (andsi3_internal5+2): New split.
20304         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
20305         (anddi3): Handle 't' constraint.
20306         (anddi3+1): New split.
20307         (anddi3_internal2): Handle 't' constraint.
20308         (anddi3_internal2+1): New split.
20309         (anddi3_internal3): Handle 't' constraint.
20310         (anddi3_internal3+1): New split.
20312 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
20314         * config/rs6000/rs6000.md: Remove scratch reg on insns using
20315         addze and similar (plus (comparison r1 r2) r3) insns.  Add
20316         missing scratch reg in one case.  Formatting fixes.
20318 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
20320         * cppexp.c (parse_defined): Mark macro used.
20321         * cpphash.h (struct cpp_macro): New member "used".
20322         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
20323         (struct cpp_reader): New member.
20324         * cppinit.c (cpp_finish_options): Set first_unused_line.
20325         (cpp_finish): Warn of unused macros if requested.
20326         (OPT_TABLE): New switches.
20327         (cpp_handle_option): Handle them.
20328         * cpplib.c (do_undef): Warn if macro unused.
20329         (do_ifdef, do_ifndef): Mark macro used.
20330         * cpplib.h (struct cpp_options): New member.
20331         * cppmacro.c (_cpp_warn_if_unused_macro): New.
20332         (enter_macro_context): Mark macro used.
20333         (_cpp_create_definition): Mark macro unused; warn if unused
20334         when redefined.
20335         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
20336         Mark macros used.
20337         * doc/cppopts.texi: Update.
20339 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20341         * dwarf2out.c (SECTION_ASM_OP,
20342         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20343         * system.h (SECTION_ASM_OP): Poison.
20344         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
20345         * config/alpha/alpha-interix.h, config/mips/linux.h
20346         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20347         * config/mmix/mmix-protos.h, config/mmix/mmix.c
20348         (mmix_asm_output_define_label_difference_symbol): Remove.
20349         * config/mmix/mmix.h
20350         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
20351         * doc/tm.texi: Remove documentation.
20353 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
20355         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
20356         (constrain_operands): Likewise.
20357         * regclass.c (record_reg_classes): Likewise.
20358         * reload.c (find_reloads): Likewise.
20359         * doc/md.texi: Likewise.
20361         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
20362         * simplify-rtx.c (simplify_subreg): When converting to a non-int
20363         mode, try to convert to an integer mode of matching size first.
20365         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
20366         from individual subregs, check that each subreg has been generated
20367         sucessfully.
20369 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20371         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
20372         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
20373         FOR_EACH_BB_IN_SBITMAP): Remove.
20374         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
20375         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
20376         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
20377         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
20378         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
20379         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
20381 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
20383         * pretty-print.h: New file.
20385 2002-07-23      Paul Koning     <pkoning@equallogic.com>
20387         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
20388         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
20389         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
20390         (TARGET_G_FLOAT): Default to 0 if not defined.
20391         (ieeetoe): New, common routine to convert target format floats
20392         to internal form.
20393         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
20394         vs. others.
20395         (e113toe): Change to use ieeetoe.
20397 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
20399         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
20400         IBM.
20401         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
20402         (e64toe): Remove special cases for DEC and IBM. Remove support for
20403         ARM_EXTENDED_IEEE_FORMAT.
20404         (e24toe): Remove special cases for DEC.
20405         (significand_size): Simplify. Indent.
20406         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
20407         (etoieee, toieee): New.
20408         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
20409         etoieee and toieee for IEEE arithmetic.
20411 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
20413         * doc/extend.texi: Say ISO C90, not ISO C89.
20414         * doc/invoke.texi: Likewise.
20415         * doc/standards.texi: Likewise.
20417 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
20419         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
20420         Fix permutation of conversion and plus/mult.
20421         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
20422         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
20423         (expand_builtin_strncpy) Ditto.
20424         (expand_builtin_memset) Ditto.
20426 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
20428         Fix PR/7363:
20429         * c-common.c (c_sizeof_or_alignof_type): New function.
20430         (c_alignof): Remove definition.
20431         * c-common.h (c_sizeof, c_alignof): Define as macros.
20432         (c_sizeof_or_alignof_type): Declare.
20433         (my_friendly_assert): Moved from cp/cp-tree.h
20434         * c-typeck.c (c_sizeof): Remove definition.
20436 2002-07-23  Jan Hubicka  <jh@suse.cz>
20438         * gcse.c (try_replace_reg): Use num_changes_pending.
20439         * recog.c (num_changes_pending): New function.
20440         (validate_replace_src): Use validate_repalce_src_group.
20441         (validate_replace_src_group): New.
20442         * recog.h (validate_repalce_src_group): New.
20443         (num_changes_pending): Likewise.
20445 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
20447         * calls.c (emit_library_call_value_1): If
20448         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
20449         libcall, const call nor pure call.
20451 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20453         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
20455 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20457         * vmsdbgout.c (SECTION_ASM_OP): Remove.
20459 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20461         * config/i386/i386.c (AT_BP): Remove.
20463 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
20465         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
20466         Default definition.
20467         * gcse.c: Don't define obstack_chunk_free.
20468         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
20469         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
20470         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
20471         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
20472         Don't define obstack macros.
20474 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
20476         PR target/6744
20477         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
20478         ASM_OPERANDS instructions.
20480 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
20482         PR target/7361
20483         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
20484         constant addresses only on 68HC12.
20486 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
20488         * cppfiles.c (stack_include_file): Correct test of whether
20489         a dependency should be output.
20491 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
20493         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
20495 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
20497         * arm.md (movqi): If optimizing and we can create pseudos, use
20498         a ZERO_EXTEND to load from memory, then copy the result into the
20499         target.
20500         (movhi): Likewise, but only for ARMv4.
20502 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
20504         * ssa-ccp.c (PHI_PARMS): Remove.
20506 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
20508         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
20509         on big-endian targets.
20511 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20513         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
20514         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
20515         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
20516         New formatting macros.
20518         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
20520 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
20522         * rtlanal.c (subreg_regno_offset): Return correct offset for
20523         big endian paradoxical subregs.
20525         * optabs.c (expand_vector_unop): Don't expand using sub_optab
20526         if we got the wrong mode.
20528         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
20529         * genrecog.c (write_switch, write_cond): Use it.
20530         * genemit.c (gen_exp): Likewise.
20532 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
20534         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
20536 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
20538         * c-decl.c (build_compound_literal): Defer compound literal decls
20539         until until file end to emit them only if they are actually used.
20541 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20543         * ra-build.c (check_conflict_numbers): Hide unused function.
20544         (livethrough_conflicts_bb): Avoid automatic aggregate
20545         initialization.
20546         (parts_to_webs_1): Avoid `U' integer constant modifier.
20547         (conflicts_between_webs): Wrap a variable in the macro controlling
20548         its usage.
20549         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
20550         (dump_igraph, dump_graph_cost): Avoid string concatenation
20551         (dump_static_insn_cost): Avoid automatic aggregate
20552         initialization.
20553         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
20554         initialization.
20555         (dump_cost): Avoid string concatenation
20557 2002-07-21  Richard Henderson  <rth@redhat.com>
20559         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
20560         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
20562 2002-07-21  Richard Henderson  <rth@redhat.com>
20564         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
20565         that are not unrolled completely.
20567 2002-07-21  Richard Henderson  <rth@redhat.com>
20569         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
20570         * loop.c (strength_reduce): Update.
20571         * toplev.c (rest_of_compilation): Do unrolling in the first
20572         loop pass, not the second.
20574 2002-07-21  Richard Henderson  <rth@redhat.com>
20576         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
20577         when flag_argument_noalias == 2.
20578         * alias.c (nonoverlapping_memrefs_p): Handle that.
20579         * print-rtl.c (print_mem_expr): Likewise.
20581 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
20583         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
20584         instead of __negdi2 directly.
20586 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20588         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
20589         * function.c (SYMBOL__MAIN): Remove definition.
20590         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
20591         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
20592         * profile.c (GCOV_INDEX_TO_BB): Remove.
20593         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
20594         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
20596 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20598         * c-lex.c (GET_ENVIRONMENT): Remove.
20599         * collect2.c (GET_ENV_PATH_LIST): Remove.
20600         (prefix_from_env): Use GET_ENVIRONMENT.
20601         * cppinit.c (GET_ENV_PATH_LIST): Remove.
20602         (init_standard_includes): Use GET_ENVIRONMENT.
20603         * defaults.h (GET_ENVIRONMENT): Define here if not already.
20604         * gcc.c (GET_ENV_PATH_LIST): Remove.
20605         (make_relative_prefix, process_command): Update.
20606         * protoize.c (GET_ENV_PATH_LIST): Remove.
20607         (do_processing): Update.
20609 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
20611         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
20612         (grokdeclarator): Likewise.
20613         * c-format.c (C_STD_NAME): Likewise.
20614         * c-lex.c (interpret_integer): Likewise.
20615         * c-typeck.c (build_array_ref): Likewise.
20616         * cpplex.c (_cpp_lex_direct): Likewise.
20617         * toplev.c (documented_lang_options): Likewise.
20619 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20621         * c-format.c (T99_I, T99_UI): Remove.
20623 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
20625         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
20627 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
20629         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
20630         do_local_cprop.
20632 2002-07-21  Andreas Jaeger  <aj@suse.de>
20634         * reload1.c (fixup_abnormal_edges): Remove unused variable.
20636 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
20638         Improvements for the ifcvt pass from Michael Meissner, with patches
20639         by Richard Sandiford <rsandifo@redhat.com>
20640         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
20641         * ifcvt.c (cond_exec_changed_p): New static variable.
20642         (last_active_insn): New function, renamed from last_active_insn_p
20643         and changed to return the last active insn in a basic block. All
20644         callers updated.
20645         (block_fallthru): New function.
20646         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
20647         IFCVT_MODIFY_INSN.  All callers updated.
20648         Return false if START or END are NULL.
20649         Handle case where we're processing an insn that is already
20650         conditional.
20652         (noce_process_if_block): CE_INFO argument rather than
20653         multiple args containing the involved basic blocks.  All callers
20654         changed.
20655         (process_if_block, merge_if_block, find_if_block,
20656         cond_exec_process_if_block): Likewise.
20658         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
20659         changed.
20660         Use new function last_active_insn to simplify some code.
20661         New code to handle multiple tests.
20662         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
20663         cond_exec_changed_p to TRUE.
20665         (process_if_block): New code to handle multiple tests.
20666         (merge_if_block): Likewise.
20667         (find_if_header): New arg PASS.  Changed to return the currently
20668         processed basic block or NULL instead of true/false. All callers
20669         changed.
20670         Call IFCVT_INIT_EXTRA_FIELDS.
20671         (block_jumps_and_fallthru_p): New function.
20672         (find_if_block): Discover opportunities to convert multiple tests.
20673         Add additional debugging output.
20674         Update the ce_info structure before returning.
20676         (if_convert): Run multiple passes of if-conversion.
20677         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
20678         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
20679         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
20680         these macros.
20682 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
20684         * gcse.c: Include cselib.h
20685         (constptop_register): Break out from ...
20686         (cprop_insn): ... here; kill basic_block argument.
20687         (do_local_cprop, local_cprop_pass): New functions.
20688         (one_cprop_pass): Call local_cprop_pass.
20690 2002-07-20  Roger Sayle  <roger@eyesopen.com>
20692         * simplify-rtx.c (simplify_relational_operation): Optimize
20693         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
20695 2002-07-20  Michae Matz  <matz@suse.de>
20697         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
20699 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
20701         * cppexp.c (struct op): Add token pointer.
20702         (check_promotion, CHECK_PROMOTION): New.
20703         (optab): Update.
20704         (_cpp_parse_expr): Update, use token pointer of struct op.
20705         (reduce): Warn about change of sign owing to promotion.
20706         * cppinit.c (cpp_handle_option): New warning if -Wall.
20707         * cpplib.h (struct cpp_options): New member.
20709 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
20711         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
20712         fpu list.  Separate Power4 compare and delayed_compare.  Correct
20713         Power4 fpcompare.
20714         (fix_truncdfsi2_internal): Restore FPR preference.
20715         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
20716         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
20718 2002-07-19  Momchil Velikov <velco@fadata.bg>
20720         * reload1.c (reload_as_needed): Duplicate oldpat.
20722 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
20724         PR optimization/7130
20725         * loop.h (struct loop_info): Add "preconditioned".
20726         * unroll.c (unroll_loop): Set it.
20727         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
20729 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
20731         * rtl.def (CODE_LABEL): Remove slot 8.
20732         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
20733         (LABEL_ALTERNATE_NAME): Delete.
20734         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
20735         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20737         * final.c (output_alternate_entry_point): New.
20738         (final_scan_insn): Use it instead of
20739         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
20740         of a case label being an alternate entry point.
20742         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
20743         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
20744         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
20745         (field deleted).
20746         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
20748         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
20749         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
20750         * doc/tm.texi: Delete documentation of
20751         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
20753 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
20755         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
20756         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
20757         (LINK_SPEC): Define.
20758         (STARTFILE_SPEC): Define.
20759         (ENDFILE_SPEC): Define.
20761         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
20762         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
20764         * config/mips/iris6-o32-gas.h: New file.
20765         * config.gcc (mips-sgi-irix6*o32): Use it.
20767         * config/mips/t-iris5-gas: New file.
20768         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
20770 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
20772         * cppexp.c (ALWAYS_EVAL): Remove.
20773         (optab, reduce): Always evaluate.
20774         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
20775         only if not skipping evaluation.
20777 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20779         * config/avr/avr.c (debug_hard_reg_set): Remove.
20781 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
20783         * gcc.c (cpp_options): Include "%1" (cc1_spec).
20785 2002-07-19  Richard Henderson  <rth@redhat.com>
20787         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
20789 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
20791         * prefix.c (update_path): Don't zap single `.' path components
20792         unless followed by another `.' and fix typo last patch.
20794 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
20796         * cppexp.c (cpp_num_mul): Remove unused parameter.
20797         (UNARY, BINARY, OTHER, binary_handler): Remove.
20798         (ALWAYS_EVAL): New.
20799         (optab): Update.
20800         (reduce): Refactor to a large switch, don't use a function
20801         pointer.
20803 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
20805         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
20807 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
20809         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
20810         (sh_expand_binop_v2sf): Likewise.
20811         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
20812         (int_gpr_dest, trunc_hi_operand): New functions.
20813         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
20814         trunc_hi_operand.
20815         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
20816         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
20817         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
20818         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
20819         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
20820         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
20821         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
20822         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
20823         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
20824         (movsf_ie+1): Likewise.
20825         (loaddi_trunc): Use int_gpr_dest predicate.
20826         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
20827         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
20828         (casesi_worker_0+[12], casesi_worker): Likewise.
20829         (shcompact_preserve_incoming_args): Likewise.
20830         (mov_nop): Use any_register_operand predicate.
20831         (mperm_w0): Use trunc_hi_operand predicate.
20833 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20835         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
20836         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
20837         numbering.
20839 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20841         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
20843 2002-07-18  Richard Henderson  <rth@redhat.com>
20845         PR optimization/7147
20846         * ifcvt.c (noce_get_condition): Make certain that the condition
20847         is valid at JUMP.
20849 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
20851         * sh.c (barrier_align, push): Shut up compiler warnings.
20852         (initial_elimination_offset,sh_media_init_builtins): Likewise.
20853         (reg_no_subreg_operand): Delete.
20855 2002-07-17  Bo Thorsen  <bo@suse.de>
20857         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
20858         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
20859         (STARTFILE_SPEC): Remove hardcoded library paths.
20860         (ENDFILE_SPEC): Likewise.
20862 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
20864         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
20866         * gcse.c (try_replace_reg): Do not return false positives.
20868 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
20870         * prefix.c: (update_path): Strip ".." components when prior dir
20871         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
20873         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
20874         (ASM_OUTPUT_REG_POP): Likewise.
20876 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
20878         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
20879         adjustments to first_reg for profiling case.
20880         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
20881         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
20882         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
20883         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
20884         (ASM_OUTPUT_REG_POP): Define.
20885         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
20886         (ASM_OUTPUT_REG_POP): Undef.
20888 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
20890         * cpplib.c (do_sccs): Handle #sccs on all systems.
20891         * system.h (SCCS_DIRECTIVE): Poison.
20892         * config/darwin.h, config/freebsd.h, config/netbsd.h,
20893         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
20894         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
20895         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
20896         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
20897         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
20898         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
20899         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
20900         Remove all references to SCCS_DIRECTIVE.
20901         * doc/cpp.texi, doc/tm.texi: Update.
20903 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
20905         * regrename.c (maybe_mode_change): New function.
20906         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
20908 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
20910         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
20911         suppress addition when either ct or cf are zero.
20913 2002-07-17  Eric Botcazou <ebotcazou@multimania.com>
20914             Glen Nakamura <glen@imodulo.com>
20916         PR optimization/6713
20917         * loop.c (loop_givs_rescan): Explicitly delete the insn that
20918         sets a non-replaceable giv after issuing the new one.
20920 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
20922         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
20923         eval_token): Clarify and correct use of "bool" variables.
20924         * cpplib.h (struct cpp_options): Similarly.
20925         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
20926         * cpptrad.c (recursive_macro): Similarly.
20928 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
20930         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
20931         SHmedia code.
20933         * sh.md (cmpgtudi_media): Remove spurious @.
20935         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
20936         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
20938         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
20939         * sh-protos.h (sh_initialize_trampoline): Declare.
20940         * sh.c (sh_initialize_trampoline): New function.
20941         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
20942         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
20943         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
20944         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
20945         * sh.md (initialize_trampoline, double_shori): New patterns.
20946         (initialize_trampoline_compact): Likewise.
20947         (shmedia32_initialize_trampoline_big): Remove.
20948         (shmedia32_initialize_trampoline_little): Likewise.
20950         * sh-protos.h (binary_float_operator): Remove declaration.
20951         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
20952         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
20953         (unary_float_operator, sh_expand_unop_v2sf): New functions.
20954         (sh_expand_binop_v2sf): Likewise.
20955         (zero_vec_operand): Delete.
20956         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
20957         all non-shared ones.
20958         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
20959         Enable nsb and byterev.
20960         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
20961         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
20962         in general regs.
20963         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
20964         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
20965         immediate operands.
20966         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
20967         Add DF_HI_REGS.
20968         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
20969         lowpart fp regs - only for big endian for now.
20970         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
20971         when FPU is in use.
20972         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
20973         (LOAD_EXTEND_OP): NIL for SImode.
20974         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
20975         general and fp registers is 4.
20976         PREDICATE_CODES: Amend binary_float_operator entry.
20977         Remove zero_vec_operand.  Add unary_float_operator.
20978         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
20979         subreg SET_DEST.
20980         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
20981         (truncdiqi2): Do sign extension.
20982         (movsi_media, movdi_media): Allow to use r63 to an fp register.
20983         (movdf_media, movsf_media): Likewise.
20984         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
20985         Collapse to one define_insn_and_split.  Allow immediate sources.
20986         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
20987         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
20988         (movv4sf): Allow immediate sources.
20989         (movsf_media_nofpu+1): Don't split moves to FP registers.
20990         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
20991         (movv8qi_i+3): Check against CONST0_RTX.
20992         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
20993         for input and output operands.  Fix argument 3 to gen_mextr_rl.
20994         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
20995         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
20996         (mshf0_w, fipr, ftrv): Likewise.
20997         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
20999 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
21001         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
21002         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
21003         * arm.c: Similarly.
21005 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
21007         * config/mips/mips-protos.h (mips_sign_extend): Declare.
21008         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
21009         (TARGET_SWITCHES): Remove debugh.
21010         (ISA_HAS_TRUNC_W): New macro.
21011         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
21012         (PREDICATE_CODES): Remove se_nonimmediate_operand.
21013         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
21014         any SImode move_operand.
21015         (se_nonimmediate_operand): Remove.
21016         (mips_sign_extend): New.
21017         (mips_move_2words): Use it for sign-extended source operands.
21018         (override_options): Allow integers to be put into single FPRs.
21019         (mips_secondary_reload_class): Handle integers in float registers.
21020         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
21021         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
21022         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
21023         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
21024         (fix_truncdfdi2): Provide only a single alternative, in which the
21025         integer is in a float register.  Depend on TARGET_FLOAT64 rather
21026         than TARGET_64BIT.
21027         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
21028         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
21029         (movdi_internal2): Don't allow the source operand to be sign-extended.
21030         Add alternatives for float registers.
21031         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
21032         allows sign-extension.
21033         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
21034         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
21035         float registers.  Remove TARGET_DEBUG_H_MODE test.
21036         (movhi_internal1): Rename to movhi_internal.  Don't check
21037         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
21038         (movqi_internal1): Rename to movqi_internal and remove
21039         TARGET_DEBUG_H_MODE dependency.
21040         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
21042 2002-07-16  Jim Wilson  <wilson@redhat.com>
21044         * toplev.c (lang_dependent_init): Create function context for
21045         init_expr_once.
21047 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
21049         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
21050         --gc-sections if -r.
21051         * config/cris/cris.h: Ditto.
21053 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
21055         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
21056         the comparison directly gives a mask suppress addition when cf is
21057         zero by complementing the mask.
21059 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
21061         * Makefile.in: Delete references to enquire.
21062         * enquire.c: Move to contrib.
21064 2002-07-16  Stan Shebs  <shebs@apple.com>
21066         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
21067         config/rs6000/darwin.h.
21068         (ASM_OUTPUT_SKIP): Ditto.
21069         (TEXT_SECTION_ASM_OP): Ditto.
21070         (DATA_SECTION_ASM_OP): Ditto.
21071         (ASM_APP_ON): Define.
21072         (ASM_APP_OFF): Define.
21073         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
21074         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
21076         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
21077         (machopic_function_base_name): Declare result to be const.
21078         (machopic_non_lazy_ptr_name): Ditto.
21079         (machopic_stub_name): Ditto.
21080         * config/darwin-protos.h: Ditto for the prototypes.
21082 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
21084         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
21086 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
21088         * i386.md (prefetch): Fix for 64bit mode.
21089         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
21091 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
21093         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
21094         * i386.c (x86_machine_dependent_reorg): New function.
21095         * i386-protos.h (x86_machine_dependent_reorg): Declare.
21097 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
21099         * builtins.c (std_expand_builtin_va_start): Remove unused
21100         first argument.
21101         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
21102         std_expand_builtin_va_start with just two arguments.
21103         * expr.h: Update prototypes.
21105         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
21106         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
21107         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
21108         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
21109         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
21110         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
21111         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
21112         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
21113         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
21114         argument from all implementations of EXPAND_BUILTIN_VA_START
21115         and all uses of std_expand_builtin_va_start.
21117 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
21119         * regrename.c (copy_value): Don't record high part copies.
21121 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
21123         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
21124         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
21125         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
21127 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
21129         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
21131         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
21132         into addsi3 using register class "x" and "y".
21134         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
21135         "earlyclobber" constraint modifier for some alternative.
21137         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
21138         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
21139         unordered.
21140         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
21142         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
21143         (TARGET_SWITCHES): Add -mieee-compare option.
21144         (OVERRIDE_OPTIONS): 32332 is a subset of
21145         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
21146         (TARGET_SWITCHES): Fix description of bitfield option.
21147         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
21148         -mieee-compare option. Remove 32332 flag.
21150 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
21152         * explow.c (convert_memory_address): Remove special handling
21153         when POINTERS_EXTEND_UNSIGNED < 0.
21154         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
21155         (movedi_symbolic): Fix typo.
21156         (load_fptr): Remove mode restriction so it works for SI and DI.
21157         (load_fptr_internal1): Ditto.
21158         (load_gprel): Ditto.
21159         (load_symptr_internal1): Ditto.
21160         (call_pic): Ditto.
21161         * config/ia64.c (call_operand): Modify mode check.
21162         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
21163         (ia64_expand_move): Ditto.
21164         (ia64_assemble_integer): Handle SImode function pointers.
21165         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
21166         (ia64_expand_op_and_fetch): Ditto.
21167         (ia64_expand_compare_and_swap): Ditto.
21168         (ia64_expand_lock_test_and_set): Ditto.
21169         (ia64_expand_lock_release): Ditto.
21171 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21173         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
21175 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
21176             Richard Earnshaw  <rearnsha@arm.com>
21178         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
21179         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
21181 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
21183         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
21184         understands to be a memory clobber.
21185         * arm.c (arm_expand_prologue): Use it.
21187 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
21189         * ra-rewrite.c: #include reload.h, insn-config.h
21190         * ra-build.c: #include reload.h
21191         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
21192         depend on reload.h, insn-config.h.
21194 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
21196         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
21197         the same size as a word.
21199         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
21200         BYTES_BIG_ENDIAN into account.
21202 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
21204         * i386.md (prefetch): Fix for 64bit mode.
21205         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
21207         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
21209 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21211         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
21213 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
21215         * ginclude/varargs.h: Replace with stub which issues #error.
21216         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
21217         __builtin_va_start.
21219         * builtins.def (BUILT_IN_VARARGS_START): Delete.
21220         (BUILT_IN_VA_START): New.
21221         * builtins.c (expand_builtin_va_start): Eliminate first
21222         argument and code to implement pre-ISO varargs.
21223         (std_expand_builtin_va_start): Ignore first argument; it is
21224         always 1.
21225         (expand_builtin): Handle BUILT_IN_VA_START and
21226         BUILT_IN_STDARG_START identically.  Delete
21227         BUILT_IN_VARARGS_START case.
21229         * function.c (assign_parms): Delete hide_last_arg and all
21230         its uses.
21231         (mark_varargs): Delete function.
21232         * function.h (struct function): Delete 'varargs' bit.
21233         (current_function_varargs): Delete macro.
21234         * tree.h: Don't declare mark_varargs.
21236         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
21237         (c_expand_body): Don't call mark_varargs.
21238         * c-objc-common.c: Handle BUILT_IN_VA_START and
21239         BUILT_IN_STDARG_START identically.  Delete
21240         BUILT_IN_VARARGS_START case.
21241         * c-tree.h: Don't declare c_mark_varargs.
21242         * c-parse.in: Remove grammar rules for '&...' (which has been
21243         commented out since before 2.7.2) and for '...' in K+R
21244         argument declarations.
21246         * builtins.c, function.c, integrate.c, sibcall.c,
21247         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
21248         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
21249         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
21250         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
21251         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
21252         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
21253         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
21254         config/stormy16/stormy16.c: Delete all references to
21255         current_function_varargs, and code predicated on that flag.
21257         * config/alpha/alpha.c (alpha_va_start),
21258         config/arc/arc.c (arc_va_start),
21259         config/i386/i386.c (ix86_va_start),
21260         config/mips/mips.c (mips_va_start),
21261         config/mn10300/mn10300.c (mn10300_va_start),
21262         config/rs6000/rs6000.c (rs6000_va_start),
21263         config/s390/s390.c (s390_va_start),
21264         config/sh/sh.c (sh_va_start),
21265         Ignore first argument; it is always 1.
21267         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
21268         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
21269         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
21270         Delete m68hc11_va_start.
21271         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
21272         No need to define EXPAND_BUILTIN_VA_START.
21274         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
21275         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
21277 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
21279         PR optimization/7153
21280         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
21281         dies in more than one insn.
21283 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
21285         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
21287 2002-07-15  Michael Matz  <matz@suse.de>,
21288             Daniel Berlin  <dberlin@dberlin.org>,
21289             Denis Chertykov  <denisc@overta.ru>
21291         Add a new register allocator.
21293         * ra.c: New file.
21294         * ra.h: New file.
21295         * ra-build.c: New file.
21296         * ra-colorize.c: New file.
21297         * ra-debug.c: New file.
21298         * ra-rewrite.c: New file.
21300         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
21301         (ra-rewrite.o): New .o files for libbackend.a.
21302         (GTFILES): Add basic-block.h.
21304         * toplev.c (flag_new_regalloc): New.
21305         (f_options): New option "new-ra".
21306         (rest_of_compilation): Call initialize_uninitialized_subregs()
21307         only for the old allocator.  If flag_new_regalloc is set, call
21308         new allocator, instead of local_alloc(), global_alloc() and
21309         friends.
21311         * doc/invoke.texi: Document -fnew-ra.
21312         * basic-block.h (FOR_ALL_BB): New.
21313         * config/rs6000/rs6000.c (print_operand): Write small constants
21314         as @l+80.
21316         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
21317         (df_reg_table_realloc): Make size at least as large as max_reg_num().
21318         (df_insn_table_realloc): Size argument now is absolute, not relative.
21319         Changed all callers.
21321         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
21322         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
21324         2002-06-20  Michael Matz  <matz@suse.de>
21326         * df.h (struct ref.id): Make unsigned.
21327         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
21329         2002-06-13  Michael Matz  <matz@suse.de>
21331         * df.h (DF_REF_MODE_CHANGE): New flag.
21332         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
21333         involving subregs with invalid mode changes, when
21334         CLASS_CANNOT_CHANGE_MODE is defined.
21336         2002-05-07  Michael Matz  <matz@suse.de>
21338         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
21340         2002-05-03  Michael Matz  <matz@suse.de>
21342         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
21344         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
21346         * regclass.c (regclass): Work with all regs which have sets or
21347         refs.
21348         (reg_scan_mark_refs): Count regs inside (clobber ...).
21350         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
21352         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
21353         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
21354         add new refs.
21355         (df_bb_refs_update): Don't clear insns_modified here, ...
21356         (df_analyse): ... but here.
21358         * sbitmap.c (dump_sbitmap_file): New.
21359         (debug_sbitmap): Use it.
21361         * sbitmap.h (dump_sbitmap_file): Add prototype.
21363         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
21365         * df.c (df_insn_modify): Grow the UID table if necessary, rather
21366         than assume all emits go through df_insns_modify.
21368         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
21370         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
21371         increase REG_N_REFS (like flow does), so that regclass doesn't
21372         think a reg is useless, and thus, not calculate a class, when it
21373         really should have.
21375         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
21377         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
21378         dataflow analysis.
21380 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
21382         PR middle-end/7245
21383         * config/i386/i386.c (const_int_1_31_operand): New.
21384         * config/i386/i386.h (PREDICATE_CODES): Add it.
21385         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
21386         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
21387         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
21389 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
21391         PR target/7282
21392         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
21393         (floatunssidf2): Likewise.
21394         (floatsidf_ppc64): New insn_and_split.
21395         (floatunssidf_ppc64): Likewise.
21397 2002-07-14  Andreas Jaeger  <aj@suse.de>
21399         * config.gcc (sh64): Remove unused
21400         target_requires_64bit_host_wide_int.
21402 2002-07-12  Roger Sayle  <roger@eyesopen.com>
21404         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
21405         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
21406         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
21407         whether clear_by_pieces should be used to clear storage.
21408         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
21410         * doc/tm.texi: Document these two new target macros.
21412 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
21414         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
21415         the scratch register.
21416         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
21417         of it, forbid reload to use it.
21419 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21421         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
21422         usage on 64-bit hosts, return value was truncated to 32 bits.
21424 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
21426         * simplify-rtx.c (simplify_subreg): Handle floating point
21427         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
21428         the element mode is requested, compute a subreg with an
21429         integer mode of the same size as the element mode first.
21431 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
21433         * combine.c (try_combine): When converting a paradoxical subreg
21434         to an extension, take LOAD_EXTEND_OP into account.
21436 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21438         * config.gcc (mips-sgi-irix6*o32): New configuration.
21440         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
21441         configurations.
21442         * configure: Regenerate.
21444         * config/mips/iris6-o32-as.h: New file.
21445         * config/mips/iris6-o32.h: New file.
21447         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
21448         (NM_FLAGS): Define.
21449         (HAVE_AS_SHF_MERGE): Undefine.
21451         * config/mips/t-iris5-as: New file.
21452         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
21454         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
21455         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
21456         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
21457         dp-bit.c, fp-bit.c): Move ...
21458         * config/mips/t-iris5-6: ... here.
21459         New file, shared by IRIX 5 and IRIX 6.
21460         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
21461         mips-sgi-irix5*): Use it.
21463         * config/mips/iris6.h: Remove duplicate comment.
21465         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
21466         !TARGET_IRIX6]: Define.
21467         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
21469         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
21471 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21473         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
21474         and delete code to force constant to register.
21475         * pa-protos.h (adddi3_operand): Add prototype.
21476         * pa.c (adddi3_operand): New function.
21478 2002-07-11  Roger Sayle  <roger@eyesopen.com>
21480         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
21481         non-ANSI builtin functions.
21483 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
21485         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
21486         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
21487         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
21488         (gen_const_vector_0): Use it.
21490 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21492         * pa.md (adddi3): For 32-bit targets, force constants to a register
21493         if they don't fit in an 11-bit immediate.  Change insn predicate to
21494         arith11_operand.  Remove comment.
21495         * pa.c (cint_ok_for_move): Fix comment.
21496         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
21497         targets.
21499 2002-07-11  Tim Josling  <tej@melbpc.org.au>
21501         Remove front end hard coding from gengtype.c.
21503         * Makefile.in
21504         (STAGESTUFF): add gtyp-gen.h
21505         (GTFILES): Remove front end specific files.
21506         (GTFILES_FILES_LANGS): New, from configure..
21507         (GTFILES_FILES_FILES): Likewise.
21508         (GTFILES_LANG_DIR_NAMES): Likewise.
21509         (GTFILES_SRCDIR): Likewise.
21510         (gtyp-gen.h): Build from configure information.
21511         (s-gtype): Remove command line parameters from gengtype.
21512         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
21513         (mostlyclean): Delete files generated by and for gengtype.
21515         * c-config-lang.in: New file.
21517         * configure.in (all_gtfiles_files_langs): New. Accumulate files
21518         for each language.
21519         (all_gtfiles_files_files): New. Accumulate language for each file
21520         accumulated.
21521         (gtfiles): Pick up value for C.
21522         (srcdir): AC-SUBST this variable.
21523         (all_gtfiles_files_langs): AC-SUBST this variable.
21524         (all_gtfiles_files_files): AC-SUBST this variable.
21526         * configure: Regenerate.
21528         * gengtype-lex.l (parse_file): Make parameter const.
21530         * gengtype.c (toplevel): include gtyp-gen.h.
21531         (BASE_FILE_<language> unnamed enum): Delete.
21532         (lang_names): Delete (replaced by gtyp-gen.h)
21533         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
21534         all references.
21535         (NUM_GT_FILES): New.
21536         (NUM_LANG_FILES): New.
21537         (srcdir_len): New.
21538         (NUM_BASE_FILES): Change calculation.
21539         (open_base_files): Change prototype to avoid warning.
21540         (startswith): Delete.
21541         (get_file_basename): Iterate through generated language list not
21542         hard coded list.
21543         (get_base_file_bitmap): Use generated list of files and languages.
21544         (close_output_files): Add prototype to rmove warning.
21545         (main): Iterate through list of generated files from gtyp-gen.h
21546         rather than command line paramaters.  Ignore duplicated file
21547         names.
21549         * gengtype.h (parse_file): Amend prototype for const parameter.
21551         * doc/sourcebuild.texi: Document gtfiles variable.
21553         * doc/gty.texi: Document changes to gtfiles variable for front
21554         ends.
21556         * objc/config-lang.in (gtfiles): Add files needed for objc front
21557         end.
21559 2002-07-10  Roger Sayle  <roger@eyesopen.com>
21561         PR c/2454
21562         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
21563         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
21565 2002-07-10  Roger Sayle  <roger@eyesopen.com>
21566             Zack Weinberg <zack@codesourcery.com>
21568         * builtins.def: Make the argument types of abort and exit
21569         independent of the front-end.
21571 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
21573         * config/rs6000/linux64.h (ASM_SPEC): Define.
21575 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
21577         * config/rs6000/rs6000.c (emit_frame_save): New.
21578         (rs6000_frame_related): Replace reg2 before reg.
21579         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
21580         and eh_return registers.
21582 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
21584         Revert all patches for optimization of Complex .op. Real.
21585         * complex_part_zero_p: Remove
21586         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
21587         with x.
21588         * expand_cmplxdiv_wide: Ditto.
21589         * expand_binop: Ditto.
21591 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21593         * config/avr/avr.md: Fix two 0x80000000 constants to make them
21594         negative also on 64-bit hosts.
21596         Default to -fno-reorder-blocks when optimizing for size.
21597         * config/avr/avr-protos.h (avr_optimization_options): Declare.
21598         * config/avr/avr.c (avr_optimization_options): New function.
21599         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
21601         Optimize returning from simple functions.
21602         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
21603         * config/avr/avr.c (avr_simple_epilogue): New function.
21604         * config/avr/avr.md (return): New insn.
21606 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
21608         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
21609         HAS_INIT_SECTION to protection.
21611 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
21613         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
21614         deprecated.
21616 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
21618         * combine.c (gen_lowpart_for_combine): Handle vector modes.
21619         Supply non-VOID mode to simplify_gen_subreg.
21621 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
21623         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
21625 2002-07-10  Jeffrey A Law  <law@redhat.com>
21627         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
21628         as appropriate.
21630         * mn10200.c (expand_epilogue): Fix test to determine which scratch
21631         register to use.
21633 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
21635         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
21636         Get mode from dest.
21637         If simplify_gen_subreg fails, try next equivalent.
21639 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
21641         * diagnostic.h: #include location.h
21642         (location_t): Move definition to..
21643         * location.h: ... here.  New file.
21644         * tree.h: #include location.h
21645         (DECL_SOURCE_LOCATION): New macro.
21646         (DECL_SOURCE_FILE): Use.
21647         (DECL_SOURCE_LINE): Likewise.
21648         (struct tree_decl): REplace filename and linenum with locus.
21649         * Makefile.in (TREE_H): add location.h
21650         (diagnostic.o): Depends on gt-location.h
21651         (gt-location.h): Depends on s-gtype
21653 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
21655         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
21656         TARGET_OS_CPP_BUILTINS.
21657         * config/rs6000/aix31.h: Likewise.
21658         * config/rs6000/aix41.h: Likewise.
21659         * config/rs6000/aix43.h: Likewise.
21660         * config/rs6000/aix51.h: Likewise.
21661         * config/rs6000/beos.h: Likewise.
21662         * config/rs6000/darwin.h: Likewise.
21663         * config/rs6000/eabi.h: Likewise.
21664         * config/rs6000/eabisim.h: Likewise.
21665         * config/rs6000/linux.h: Likewise.
21666         * config/rs6000/linux64.h: Likewise.
21667         * config/rs6000/lynx.h: Likewise.
21668         * config/rs6000/mach.h: Likewise.
21669         * config/rs6000/rtems.h: Likewise.
21670         * config/rs6000/sysv4.h: Likewise.
21671         * config/rs6000/vxppc.h: Likewise.
21673 2002-07-09 Devang Patel <dpatel@apple.com>
21674         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
21675         Do not allow ObjC objects as a parameter type for Objective-C methods.
21676         My previous patch restricted  'struct' also.
21678 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
21680         * cpperror.c (cpp_error): Default to directive_line within
21681         directives here.
21682         * cppexp.c (cpp_interpret_integer): Only use traditional
21683         number semantics in directives.
21684         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
21685         (do_include_common): Similarly.
21686         * cpptrad.c (scan_out_logical_line): Implement accurate
21687         quoting of <> in #include.
21688         * doc/cpp.texi: Update.
21690 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
21691                           J"orn Rennecke <joern.rennecke@superh.com>
21693         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
21694         * sh.md (attribute issues): Replace with:
21695         (attribute pipe_model).  All users changed.
21696         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
21697         All users changed.
21698         (function units sh5issue, sh5fds): New.
21699         (attribute is_mac_media): New.
21700         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
21701         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
21702         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
21703         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
21704         (call_media, call_value_media, sibcall_media): Likewise.
21705         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
21706         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
21707         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
21708         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
21709         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
21710         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
21711         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
21712         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
21713         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
21714         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
21715         (truncdfsf2_media): Likewise.
21716         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
21717         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
21719 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
21721         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
21722         * sh.c (general_extend_operand, inqhi_operand): New functions.
21723         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
21724         alternatives using 'N' modifier.  Add type.
21725         (adddi3z_media): Likewise.  Enable generator function generation.
21726         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
21727         exact predicates / constraints.  Add type.
21728         (subsi3): Allow 0 for SHMEDIA.
21729         (udivsi3_i4_media): Use match_operand for input values
21730         rather than hard registers.
21731         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
21732         unnecessarily through hard registers.  Keep copies of pseudo
21733         registers outside of the libcall sequence.
21734         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
21735         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
21736         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
21737         (extendhidi2, extendqidi2): Likewise.
21738         (andsi3_compact): Name.
21739         (andcdi3): Enable generator function generation.
21740         (zero_extendhisi2, zero_extendqisi2): Rename to
21741         (zero_extendhisi2_compact, zero_extendqisi2_compact).
21742         (extendhisi2, extendqisi2): Rename to
21743         (extendhisi2_compact, extendqisi2_compact).
21744         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
21745         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
21746         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
21747         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
21748         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
21749         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
21750         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
21751         (shmedia32_initialize_trampoline_big): Likewise.
21752         (shmedia32_initialize_trampoline_little): Likewise.
21753         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
21754         (negdi2): Remove spurious T clobber.
21755         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
21756         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
21757         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
21758         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
21759         (ic_invalidate_line_media): Write back data cache before invalidating
21760         instruction cache.  Add type.
21761         (movsf_media): Sign-extend when the destination is a general
21762         purpose register.  Add type.
21763         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
21764         (casesi_worker_0+1): Only increment ref count for proper label.
21765         (casesi_worker_0+2): Likewise.
21767 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
21769         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
21771 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
21773         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
21774         from Pmode to ptr_mode.
21775         (get_exception_pointer): Ditto.
21776         (connect_post_landing_pads): Ditto.
21777         (dw2_build_landing_pads): Ditto.
21779 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
21780         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
21781         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
21782         (handle_pragma_redefine_extname): Change to use new function.
21784 2002-07-08  Roger Sayle  <roger@eyesopen.com>
21786         * combine.c (combine_simplify_rtx): Add an explicit cast
21787         to avoid signed/unsigned comparison warning.
21788         (simplify_if_then_else): Likewise.
21789         (extended_count): Likewise.
21790         (simplify_shift_const): Likewise.
21791         (simplify_comparison): Likewise.
21793 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
21795         * config/mips/mips.md: Add imadd type.  Update scheduler description
21796         to use imadd as well as imul.
21797         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
21798         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
21799         (*mul_sub_si): Likewise for first alternative.  Change second
21800         alternative from imul to multi.
21802 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
21804         * c-common.c (c_common_post_options): Update prototype;
21805         don't init backends if preprocessing only.
21806         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
21807         * langhooks.h (struct lang_hooks): Update post_options to
21808         return a boolean.
21809         * toplev.c (parse_options_and_default_flags, do_compile,
21810         lang_independent_init): Update prototypes.  Allow the
21811         front end to specify that there is no need to initialize
21812         the back end.
21813         (general_init): Move call to hex_init here...
21814         (toplev_main): ...from here.  Pass flag for back end init
21815         suppression.
21817 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
21819         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
21820         (PREDICATE_CODES): Add entries for equality_comparison_operator,
21821         greater_comparison_operator and less_comparison_operator.
21822         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
21823         more operators.
21824         (equality_comparison_operator): New function.
21825         (greater_comparison_operator, less_comparison_operator): Likewise.
21826         * sh.md (beq_media_i): Disable generator function generation.
21827         Use match_operator to handle a whole class of comparisons.  Add
21828         modifier in output template to provide branch prediction.  Add type.
21829         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
21830         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
21831         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
21832         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
21834 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
21836         Emit MMIX function prologue and epilogue as rtl.
21837         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
21838         not unprototyped get_hard_reg_initial_val.
21839         ("call_value", "nonlocal_goto_receiver"): Ditto.
21840         ("return"): Make define_expand.  Move real insn to...
21841         ("*expanded_return"): New pattern.
21842         ("prologue", "epilogue"): New define_expands.
21843         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
21844         (struct machine_function): New member in_prologue.
21845         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
21846         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
21847         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
21848         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
21849         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
21850         (LOCAL_REGNO): Define.  Adjust comment.
21851         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
21852         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
21853         leaf_function_p.
21854         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
21855         the prologue.
21856         (mmix_target_asm_function_prologue): Make static.  Just mark that
21857         the prologue is being emitted.  Move guts to...
21858         (mmix_expand_prologue): New function.  Adjust for emitting
21859         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
21860         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
21861         \n.  Move guts to...
21862         (mmix_expand_epilogue): New function.  Adjust for emitting
21863         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
21864         (mmix_target_asm_function_end_prologue): Mark that the prologue
21865         has ended.
21866         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
21867         (mmix_conditional_register_usage): Improve comments.
21868         (mmix_local_regno): New function.
21869         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
21870         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
21871         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
21872         (mmix_get_hard_reg_initial_val): Ditto.
21874 2002-07-06  Andreas Jaeger  <aj@suse.de>
21876         * toplev.c (set_fast_math_flags): Don't use ISO C style function
21877         definitions.
21878         * gengtype.c (open_base_files): Likewise.
21879         (close_output_files): Likewise.
21880         * tracer.c (find_best_predecessor): Likewise.
21881         (find_best_successor): Likewise.
21882         (ignore_bb_p): Likewise.
21884 2002-07-05  Roger Sayle  <roger@eyesopen.com>
21886         PR c++/7099
21887         * builtin-attrs.def: Define new attribute lists for use in
21888         builtins.def.
21889         * builtins.def [DEF_BUILTIN]: Modify to take an additional
21890         ATTRS argument, an enumerated value defined in builtin-attrs.def
21891         that represents the attribute list for the builtins.  Modify
21892         all builtin functions to pass an appropriate attribute list.
21893         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
21894         their required noreturn attributes.
21895         * tree.h (enum_builtin_function): Ignore the additional parameter
21896         to DEF_BUILTIN.
21897         * builtins.c (built_in_names): Likewise.
21898         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
21899         argument with a tree representing the functions attribute list.
21900         Pass this "attrs" argument to builtin_function.  No longer handle
21901         the noreturn_p processing manually.
21902         (built_in_attributes): Move the definitions from builtin-attrs.def
21903         before c_common_nodes_and_builtins.
21904         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
21905         DEF_BUILTIN, passing it to both builtin_function and the changed
21906         builtin_function_2.
21908         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
21909         __builtin__exit and __builtin__Exit.
21911 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21913         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
21914         QI mode registers in soft registers.
21915         ("zero_extendqihi2"): Do not take into account soft registers
21916         for register allocation (use '*' constraint).
21918 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21920         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
21921         it is dead.
21922         ("*ashrsi3"): Likewise.
21923         ("*lshrsi3"): Likewise.
21925 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21927         * genautomata.c (output_max_insn_queue_index_def): Take latencies
21928         into account.
21930 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
21932         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
21933         address computation and memory moves.
21935 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
21937         PR c++/6706
21938         * dwarfout.c (output_reg_number): Fix warning message.
21939         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
21940         before using it.
21942 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
21944         * gcc/gcc.c (asm_debug): Move initialization ...
21945         (init_spec): ... here.
21947 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
21949         * c-parse.in (extdef): Append ';'.
21950         (old_style_parm_decls): Append ';'.
21952 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
21954         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
21955         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
21956         to gcc_cv_as_gstabs_flag.
21957         * configure: Rebuilt.
21959 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
21961         * ggc.h (ggc_add_root): Document as obsolete.
21963 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
21965         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
21966         (mshflo_w): Likewise.
21968 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
21970         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
21971         vector mode subregs of constants to finding integer mode
21972         subregs of constants.
21973         * cse.c (cse_insn): Use simplify_gen_subreg.
21974         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
21975         From a vector mode expression of different size than the
21976         target mode.
21978 2002-07-03  Eric Christopher  <echristo@redhat.com>
21980         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
21981         * config/mips/mips.h: Remove deprecated -m<processor> options
21982         and cc1_cpu_spec associated.
21983         (CONSTANT_ADDRESS_P): Fix last patch.
21984         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
21985         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
21986         sunge_sf): Remove.
21988 2002-07-03  Stan Shebs  <shebs@apple.com>
21990         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
21991         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
21992         (CPP_SPEC): Remove insertion of APPLE_CC definition.
21994 2002-07-03  Roger Sayle  <roger@eyesopen.com>
21996         * combine.c (struct_undo): Change types of recorded substitutions
21997         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
21998         (do_SUBST_INT): Change types of the substitution from unsigned int
21999         to int, to avoid compilation warning from SUBST_INT's only caller.
22001         (make_extraction): Add cast to avoid compilation warning.
22002         (force_to_mode): Remove cast to avoid compilation warning.
22004 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
22005             Jeff Law  <law@redhat.com>
22007         * i386.md (length_immediate attribute): Fix typo.
22008         (length_address attribute): Likewise.
22009         (modrm attribute): Set it to 0 for immediate call instructions.
22010         (jcc_1 pattern): Set modrm attribute to 0.
22011         (jcc_2 pattern ): Likewise.
22012         (jump pattern): Likewise.
22013         (doloop_end_internal pattern): Explicitly set length.
22014         (leave pattern): Fix typo.
22015         (leave_rex64 pattern): Likewise.
22017 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
22019         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
22020         in FPR as preference.
22021         (fctiwz): Same.
22022         (floatdidf2, fix_truncdfdi2): Same.
22023         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
22024         (floatditf2): Same.
22025         (floatsitf2, fix_trunctfsi2): SImode in GPR.
22026         (ctrdi): Remove FPR alternative and splitter.
22028 2002-07-03  Will Cohen  <wcohen@redhat.com>
22030         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
22032 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
22034         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
22035         than UNITS_PER_WORD, unless this is little endian and the first unit
22036         in this word.  Let extract_bit_field decide how to load an element.
22037         Force arguments to matching mode.
22038         (expand_vector_unop): Likewise.
22040         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
22041         consist of word_mode elements.
22042         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
22043         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
22044         (build_unary_op): Allow vector types for BIT_NOT_EPR.
22045         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
22046         CONST_VECTOR.
22047         * optabs.c (expand_vector_binop): Try to perform operation in
22048         smaller vector modes with same inner size.  Add handling of AND, IOR
22049         and XOR.  Reject expansion to inner-mode sized scalars when using
22050         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
22051         (expand_vector_unop): Try to perform operation in smaller vector
22052         modes with same inner size.  Add handling of one's complement.
22053         When there is no vector negate operation, try a vector subtract
22054         operation.  Use simplify_gen_subreg on constants.
22055         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
22056         constants into smaller vectors with same inner mode, and to
22057         integer CONST_DOUBLEs.
22059 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22061         * c-parse.in (parsing_iso_function_signature): New variable.
22062         (extdef_1): New, copied from...
22063         (extdef): ... here.  Reset parsing_iso_function_signature.
22064         (old_style_parm_decls):  Reset parsing_iso_function_signature.
22065         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
22066         Warn about ISO C style function definitions.
22067         (nested_function, notype_nested_function): Reset
22068         parsing_iso_function_signature.
22069         (parmlist_2): Set parsing_iso_function_signature.
22071         * doc/invoke.texi (-Wtraditional): Document new behavior.
22073 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
22075         * config.gcc (mips*el-*-*): Use tm_defines to set
22076         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
22077         * config/mips/little.h: Remove.
22079 2002-07-02 Devang Patel <dpatel@apple.com>
22081         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
22082         object as parameter. Prevent something like 'NSObject' to be
22083         used as the type for a method argument.
22085 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
22087         * cpptrad.c: Update comment.
22089 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
22091         * doc/cpp.texi: Update for traditional preprocessing changes.
22092         * goc/cppopts.texi: Similarly.
22094 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
22096         * c-parse.in (designator): Enable designated initializers if ObjC.
22097         (objcmessageexpr): Remove references to objc_receiver_context.
22098         * objc/objc-act.h (objc_receiver_context): Remove decl.
22099         * objc/objc-act.c (objc_receiver_context): Remove.
22100         (lookup_objc_ivar): Test objc_method_context instead of
22101         objc_receiver_context.
22103 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
22105         * sh.c (print_operand, case 'N'): Allow zero vector.
22106         (arith_reg_or_0_operand): Likewise.
22107         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
22108         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
22109         IOR, XOR, PLUS and SET and take their respective constant
22110         ranges into account.
22111         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
22112         * sh.md (subdi3, subdi3_media): Allow zero operand.
22113         (movv8qi_i+3): Only vector that is not split is the zero vector.
22114         Fix operand 3 to simplify_subreg.
22115         (movv2si_i): Split alternative 1.
22116         (mshfhi_l_di_rev+1): New splitter.
22118 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
22120         PR preprocessor/7029
22121         * cppinit.c (cpp_handle_option):  Suppress warnings with an
22122         implicit "-w" for "-M" and "-MM".
22123         * doc/cppopts.texi: Update.
22125 2002-07-01  Roger Sayle  <roger@eyesopen.com>
22127         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
22128         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
22129         builtin_function.
22131 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
22133         * README.Portability: Fix typos.
22135 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
22137         PR target/7177
22138         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
22139         of indirections for register inside sign-extended mem part.
22141 2002-07-01  Roger Sayle  <roger@eyesopen.com>
22143         * tree.h:  Modify builtin_function interface to take an extra
22144         argument ATTRS, which is a tree representing an attribute list.
22146         * c-decl.c (builtin_function): Accept additional parameter.
22147         * objc/objc-act.c (builtin_function): Likewise.
22148         * f/com.c (builtin_function): Likewise.
22149         * java/decl.c (builtin_function): Likewise.
22150         * ada/utils.c (builtin_function): Likewise.
22151         * cp/decl.c (builtin_function): Likewise.
22152         (builtin_function_1): Likewise.
22154         * c-common.c (c_common_nodes_and_builtins): Pass an additional
22155         NULL_TREE argument to builtin_function.  (builtin_function_2):
22156         Likewise.
22157         * cp/call.c (build_java_interface_fn_ref): Likewise.
22158         * objc/objc-act.c (synth_module_prologue): Likewise.
22159         * java/decl.c (java_init_decl_processing): Likewise.
22160         * f/com.c (ffe_com_init_0): Likewise.
22162         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
22163         NULL_TREE argument to builtin_function.
22164         * config/arm/arm.c (def_builtin): Likewise.
22165         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
22166         * config/i386/i386.c (def_builtin): Likewise.
22167         * config/ia64/ia64.c (def_builtin): Likewise.
22168         * config/rs6000/rs6000.c (def_builtin): Likewise.
22170 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
22172         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
22173         * config/mips/t-isa3264: Likewise.
22174         * config/mmix/t-mmix: Likewise.
22176 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22178         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
22180 2002-07-01  Roger Sayle  <roger@eyesopen.com>
22182         PR opt/4046
22183         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
22184         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
22185         B are truth values.
22187 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
22189         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
22191 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
22193         * README.Portability (Function prototypes): Give an example of
22194         declaring and defining a function with no arguments.
22196         * README.Portability (Function prototypes): Document new
22197         variable-argument function macros.
22199 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
22201         * sh.c (langhooks.h): Include.
22202         (sh_init_builtins, sh_media_init_builtins): New functions.
22203         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
22204         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
22205         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
22206         (builtin_description): New struct tag.
22207         (signature_args, bdesc): New arrays.
22208         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
22209         (print_operand): Add 'N' modifier.
22210         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
22211         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
22212         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
22213         (CONST_COSTS): Add special case for SHmedia AND.
22214         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
22215         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
22216         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
22217         target_operand can also be const or unspec.
22218         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
22219         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
22220         (attribute type): Add new types.
22221         (anddi3): Add splitter.
22222         (movdi_const_16bit+1): Add code to handle vector constants and
22223         bitmasks efficiently.
22224         (shori_media): Have generator function made.
22225         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
22226         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
22227         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
22228         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
22229         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
22230         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
22231         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
22232         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
22233         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
22234         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
22235         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
22236         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
22237         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
22238         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
22239         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
22240         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
22241         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
22242         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
22243         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
22244         (ftrv): Likewise.
22246         (fpu_switch+1, fpu_switch+2): Remove constraint.
22248 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
22250         * tree.c (build_function_type_list): Update function comment.
22251         Rename first argument to return_type.
22253 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
22255         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
22256         tradcif.y and related files.
22258 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
22260         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
22262 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22264         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
22266 See ChangeLog.7 for earlier changes.