OSDN Git Service

* dwarf2out.c (output_file_names): Cast size_t to unsigned long
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-03-18  Andreas Schwab  <schwab@suse.de>
2
3         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
4         for format.
5
6 2003-03-17  Jason Merrill  <jason@redhat.com>
7
8         PR c++/10091
9         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
10         an unaligned member of TREE_ADDRESSABLE type.
11
12 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
13
14         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
15         (TARGET_PROFILE_KERNEL): Define.
16         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
17         (PROFILE_BEFORE_PROLOGUE): Don't define.
18         (PROFILE_KERNEL): Remove hacks.
19         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
20         (rs6000_stack_info): No need to save lr if just for profiling when
21         TARGET_KERNEL_PROFILE.
22         (output_profile_hook): Output nothing when TARGET_KERNEL_PROFILE.
23         (output_function_profiler): Localize label generation.  Emit code
24         for kernel profiling.
25
26 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
27
28         * config/h8300/h8300-protos.h: Add a prototype for
29         byte_accesses_mergeable_p.
30         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
31         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
32         (a splitter): Likewise.
33         (*iorsi3_ashift_16_ashift_24): Likewise.
34         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
35
36 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
37
38         * dwarf2asm.h: Delete obsolete comment.
39         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
40         dw2_asm_output_pcrel, dw2_asm_output_addr,
41         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
42         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
43         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
44         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
45
46 2003-03-17  Zack Weinberg <zack@codesourcery.com>
47
48         * c-tree.h (struct lang_identifier): Remove error_locus field.
49         (IDENTIFIER_ERROR_LOCUS): Kill.
50         (record_function_scope_shadow): New prototype.
51         * c-typeck.c (build_external_ref): Don't complain if
52         decl is error_mark_node.  When not at file scope, bind the
53         decl's local value to error_mark_node to suppress further
54         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
55
56         * c-decl.c (get_function_binding_level): New static function.
57         (record_function_scope_shadow): New exported function.
58         (c_make_fname_decl): Use get_function_binding_level.
59
60 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
61
62         * stmt.c (tail_recursion_args): Call promote_mode to set
63         unsignedp flag correctly before calling convert_move.
64
65 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
66
67         * loop-unroll.c (decide_peel_completely,
68         decide_unroll_constant_iterations, decide_unroll_stupid,
69         decide_unroll_runtime_iterations, decide_peel_simple): Set
70         loop->has_desc.
71
72 Mon Mar 17 18:57:01 CET 2003  Jan Hubicka  <jh@suse.cz>
73
74         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
75
76 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
77
78         * function.c (assign_parms): For a struct value address passed as
79         first argument, delay the function's result RTL setup code until
80         after the emission of parameter conversions.
81
82 2003-03-17  Dave Love  <fx@gnu.org>
83             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
84
85         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
86         __arch64__ to match Compaq cc.
87
88 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
89
90         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
91         (c_common_init): Set EBCDIC in cpp options.
92         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
93         not conditional compilation.
94         * cpplib.h (struct cpp_options): New entry EBCDIC.
95
96 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
97
98         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
99
100 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
101
102         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
103         argument to 0 for redirect_jump.
104
105 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
106
107         PR c++/8805
108         * except.c (eh_region_u_cleanup): Add prev_try.
109         (expand_eh_region_end_cleanup): Set it.
110         (reachable_handlers): Use it to skip over cleanup blocks.
111
112 2003-03-17  Andreas Jaeger  <aj@suse.de>
113
114         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
115
116 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
117
118         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
119         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
120         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
121         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
122
123 2003-03-16  Richard Henderson  <rth@redhat.com>
124
125         * simplify-rtx (simplify_binary_operation): Don't abort for
126         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
127
128 2003-03-16  Richard Henderson  <rth@redhat.com>
129
130         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
131         optimize_size as well.
132
133 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
134
135         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
136         for D register to specify the low part of it, aka B.
137         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
138         the register if we are loading 1 or -1 to it; avoid using temp
139         register when moving X/Y to Y/X.
140         (m68hc11_gen_movqi): Likewise.
141         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
142
143 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
144
145         PR optimization/9016
146         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
147         into the constant pool.
148
149 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
150
151         PR target/9164
152         * tree.c (get_narrower): For extensions with unchanged bit number,
153         return the unsignedness of the outer mode.
154
155 2003-03-16  Roger Sayle  <roger@eyesopen.com>
156
157         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
158         to avoid "may be used uninitialized" warning on ia64-hpux.
159         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
160
161 2003-03-16  Andreas Jaeger  <aj@suse.de>
162
163         * configure.in: Improve check for memcheck.h.
164         * configure: Regenerated.
165
166 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
167
168         * doc/cppopts.texi: Remove documentation of -A-.
169
170 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
171
172         * doc/libgcc.texi: Remove @tie.
173
174 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
175
176         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
177         (rtx_pair): Added new element update_label_nuses, renamed to
178         replace_label_data.
179         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
180         replace_label_data instead of rtx_pair.
181         * loop.c (load_mems): Likewise.
182         * rtlanal.c (replace_label): Replace label in pool constants and in
183         INSN_LIST (in REG_LABEL note).
184         (subrtx_p): Renamed to rtx_referenced_p.
185         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
186         LABEL_REF with CODE_LABEL, traverse constants from pool.
187
188 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
189             Zack Weinberg  <zack@codesourcery.com>
190
191         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
192         * doc/libgcc.texi: New file.
193         * doc/interface.texi: Delete paragraph about libgcc interface.
194         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
195
196 2003-03-15  Jason Merrill  <jason@redhat.com>
197
198         PR debug/9039
199         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
200
201         PR debug/6387
202         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
203         function DIEs at toplevel.
204         (decls_for_scope): At -g1, don't descend into subblocks.
205
206 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
207
208         * varasm.c (struct rtx_const): Change type of un.addr member
209         to struct holding an additional 'symbol' member.
210         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
211         with equal string addresses as equal.
212         (simplify_subtraction): Adapt to struct rtx_const change.
213
214 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
215
216         * fix-header.c (read_scan_file): Read main file before handling -D.
217
218 2003-03-15  Roger Sayle  <roger@eyesopen.com>
219
220         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
221         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
222         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
223         (find_sub_basic_blocks): Likewise.
224         * cgraphunit.c (cgraph_expand_functions): Likewise.
225         * dwarf2out.c (prune_unused_types): Likewise.
226         * expr.c (store_field): Likewise.
227         * genextract.c (print_path): Likewise.
228         * haifa-sched.c (schedule_insn): Likewise.
229         * lcm.c (compute_antinout_edge): Likewise.
230         * loop-unroll.c (decide_peel_once_rolling): Likewise.
231         * ra-colorize.c (ra_colorize_free_all): Likewise.
232         * ra-debug.c (dump_igraph): Likewise.
233         (debug_hard_reg_set): Likewise.
234         * reg-stack.c (reg_to_stack): Likewise.
235         * rtlanal.c (refers_to_regno_p): Likewise.
236         * tracer.c (layout_superblocks): Likewise.
237
238 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
239
240         * fix-header.c (read_scan_file): Fix thinko.
241
242 2003-03-15  Glen Nakamura  <glen@imodulo.com>
243
244         * reload1.c (choose_reload_regs): Use && instead of ||
245         with REG_CANNOT_CHANGE_MODE_P condition.
246
247 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
248
249         * Makefile.in: Update.
250         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
251         * c-lex.c (init_c_lex): Register builtins hook is dead.
252         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
253         (c_common_decode_option): Don't call cpp_handle_option.
254         Handle -A, -D and -U.
255         (handle_deferred_opts): Simplify.
256         (finish_options): Define builtins and command line macros.
257         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
258         * cppinit.c: Don't include intl.h.
259         (init_builtins): Rename cpp_init_builtins.  No hook to call.
260         (init_library): Don't need to sort options.
261         (cpp_create_reader): Don't set pending.
262         (cpp_destroy): Don't free pending.
263         (struct pending_option, cl_directive_handler, struct cpp_pending,
264         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
265         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
266         cl_options, cpp_handle_option): Remove.
267         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
268         cpp_finish_options): Remove.
269         (cpp_init_builtins): New.
270         * fix-header.c (read_scan_file): Update to handle -D.  Fix
271         handling of -I.  Replace call to cpp_finish_options.
272
273 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
274
275         PR optimization/9387
276         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
277         for conditional returns.
278
279 2003-03-14  Jason Merrill  <jason@redhat.com>
280
281         PR optimization/6871
282         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
283
284 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
285
286         * c-opts.c (finish_options): New.
287         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
288         (missing_arg): Handle OPT_include and OPT_imacros.
289         (c_common_init, c_common_parse_file): Use finish_options.
290         (handle_deferred_opts): Update.
291         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
292         (cpp_finish_options): Don't handle -imacros here.
293         (no_fil): Remove.
294         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
295
296 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
297
298         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
299         rs6000_maybe_dead if !fromprolog.
300
301 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
302
303         * Makefile.in: Update.
304         * c-common.h (fe_file_change, pp_file_change): New.
305         * c-lex.c (init_c_lex): Don't set cb_file_change.
306         (c_common_parse_file): Move to c-opts.c.
307         (cb_file_change): Rename fe_file_change.
308         * c-opts.c: Include debug.h.
309         (warn_unused_macros, include_cursor): New.
310         (push_command_line_include, cb_file_change): New.
311         (COMMAND_LINE_OPTIONS): Handle -include.
312         (c_common_decode_option): Use local warn_unused_macros.
313         Handle OPT_include.
314         (c_common_post_options): Set file change callback.
315         (handle_deferred_opts): Skip -include.  Don't free the array.
316         (c_common_init): Call cpp_finish_options here, and push an
317         initial -include file.
318         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
319         (preprocess_file): Don't call cpp_finish_options.
320         (init_pp_output): Don't set the file change callback.
321         (pp_file_change): Return if no line commands or no output.
322         * cpphash.h (next_include_file, first_unused_line): Remove.
323         * cppinit.c (include_head, include_tail): Remove.
324         (cpp_destroy): Don't free -include chain.
325         (cpp_finish_options): Don't handle -include, or worry about
326         -Wunused-macros.
327         (_cpp_maybe_push_include_file): Remove.
328         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
329         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
330         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
331         Used flag is set based upon the state of the warn_unused_macros
332         flag, and so use of first_unused_line is unnecessary.
333
334 Thu Mar 13 18:39:42 CET 2003  Jan Hubicka  <jh@suse.cz>
335
336         * cselib.c (clear_table): Do not take argument; always clear just
337         used slots.
338         (cselib_process_insn):  Update call of clear_table
339         (cselib_init): Do not call clear_table.
340         (cselib_finish): Clear table.
341
342         * cse.c (count_reg_usage): Do not check side_effects_p.
343         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
344         like noop.
345         (find_reg_equal_equiv_note): Do not use find_reg_note.
346
347 2003-03-14  Richard Henderson  <rth@redhat.com>
348
349         PR target/9700
350         * config/alpha/alpha.c (alpha_va_start): Account for
351         current_function_pretend_args_size in the AP offset.
352
353         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
354         (INITIAL_ELIMINATION_OFFSET): Move out of line.
355         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
356         (alpha_initial_elimination_offset) New.
357         * config/alpha/alpha-protos.h: Update.
358
359 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
360
361         * stmt.c (expand_start_case): Call emit_queue ().
362
363 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
364             Alexandre Oliva  <aoliva@redhat.com>
365
366         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
367         words in new abis.
368
369 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
370
371         PR optimization/8396
372         * tree-inline.c (initialize_inlined_parameters): Make sure the value
373         of read-only constant arguments is passed with the right type.
374
375 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
376
377         * doc/extend.texi (Function Names): Make the example compilable.
378
379 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
380
381         * config/rs6000/rs6000.c (processor_target_table): Really allow
382         GP optional instructions on Power4.
383
384 2003-03-13  Roger Sayle  <roger@eyesopen.com>
385
386         * calls.c (flags_from_decl_or_type): Factor and remove redundant
387         conditional tests.
388
389 2003-03-13  Mike Stump  <mrs@apple.com>
390
391         * ggc-page.c (struct page_entry): Remove varray.h header.
392         Add index_by_depth field.
393         Remove save_in_use_p field.
394         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
395         by_depth_max, by_depth, and save_in_use fields.
396         (INITIAL_PTE_COUNT): Add.
397         (save_in_use_p_i): Add.
398         (save_in_use_p): Add.
399         (adjust_depth): Add.
400         (move_ptes_to_front): Add.
401         (push_depth): Add.
402         (push_by_depth): Add.
403         (prefetch): Add.
404         (free_page): Add support for and use faster data structures.
405         (ggc_alloc): Likewise.
406         (init_ggc): Likewise.
407         (ggc_recalculate_in_use_p): Likewise.
408         (ggc_pop_context): Likewise.
409         (clear_marks): Likewise.
410         (ggc_pch_read): Likewise.
411         * Makefile.in (ggc-page.o): Remove varray.h.
412
413 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
414
415         * ChangeLog: Rotated last year's entries to...
416         * ChangeLog.8: New.
417
418         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
419         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
420         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
421         config/ia64/ia64-protos.h, config/ia64/ia64.c,
422         config/ia64/ia64.h, config/ia64/ia64.md,
423         config/ia64/itanium1.md, config/ia64/itanium2.md,
424         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
425         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
426
427 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
428
429         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
430         Differentiate endianness.
431         (s6000_override_options): Use cpu type instead of TARGET_SPE.
432
433 2003-03-13  Nick Clifton  <nickc@redhat.com>
434
435         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
436         LDM instructions with writeback enabled.
437         (output_return_instruction): Likewise.
438
439         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
440         (CALL_USED_REGISTERS): Remove definition.
441         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
442
443 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
444
445         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
446         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
447         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
448         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
449         (rs6000_legitimize_address): Formatting.
450         (rs6000_emit_move): Likewise.
451         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
452         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
453         (rs6000_elf_select_section): Comment reason for shlib being
454         set for ABI_AIX.
455         (rs6000_elf_unique_section): Likewise.
456         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
457         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
458         as well as flag_pic.
459         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
460         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
461         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
462
463 2003-03-13  Richard Henderson  <rth@redhat.com>
464
465         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
466
467         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
468         (ia64_gp_save_reg): Remove.
469         (struct ia64_frame_info): Move to the beginning of the file;
470         add reg_save_gp.
471         (ia64_expand_call): Rearrange for new call patterns.
472         (ia64_reload_gp): New.
473         (ia64_split_call): New.
474         (ia64_compute_frame_size): Allocate reg_save_gp.
475         (ia64_expand_prologue): Save reg_save_gp.
476         (ia64_expand_epilogue): Don't restore gp.
477         (ia64_hard_regno_rename_ok): Remove R4 hack.
478         (ia64_function_ok_for_sibcall): New.
479         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
480         call try_split on sibcall pattern.
481         * config/ia64/ia64-protos.h: Update.
482         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
483         Rename from nopic versions.  Confiscate 2nd argument to call as
484         a marker.
485         (call_pic, call_value_pic, sibcall_pic): Remove.
486         (call_gp, call_value_gp, sibcall_gp): New.
487         (builtin_setjmp_setup): Remove.
488         (builtin_setjmp_receiver): Call ia64_reload_gp.
489
490 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
491
492         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
493         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
494         "GNU CC" with "GCC".
495
496         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
497         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
498         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
499         GCC, not GNU CC.
500
501         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
502         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
503
504         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
505         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
506         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
507         "GNU CC" with "GCC".
508
509         * config/v850/lib1funcs.asm, config/v850/rtems.h,
510         config/v850/v850-c.c, config/v850/v850-protos.h,
511         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
512         GCC, not GNU CC.
513
514         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
515         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
516         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
517         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
518         GNU CC.
519
520 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
521
522         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
523
524 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
525
526         * fixinc/fixinc.interix: Remove dead code (most of it).
527         * fixinc/fixinc.dgux: Remove.
528
529         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
530         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
531
532 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
533
534         * pa.c (pa_init_builtins): Fix warning.
535
536 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
537
538         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
539         (ASM_OUTPUT_XDATA_SHORT): Remove.
540         (ASM_OUTPUT_XDATA_INT): Remove.
541         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
542         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
543         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
544         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
545
546 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
547
548         PR c++/7050
549         * expr.c (store_expr): Don't attempt to store void-typed trees,
550         just evaluate them for side effects.
551
552 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
553
554         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
555         * cppinit.c (push_include): Move with changes to cppfiles.c.
556         (cpp_read_main_file): Mark named operators here...
557         (cpp_finish_options): ...not here.  Update.
558         (_cpp_maybe_push_include_file): Update.
559         * cpplib.h (cpp_push_include, cpp_rename_file): New.
560
561 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
562
563         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
564         _gcc_COMPUTE_GAS_VERSION.
565         * configure.in: Use them.
566         * configure: Regenerate.
567
568 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
569
570         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
571         to detect carry.
572         (subdi3): Reorder emitted instructions.
573
574 2003-03-12  Andreas Jaeger  <aj@suse.de>
575
576         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
577         NETBSD_OS_CPP_BUILTINS_LP64.
578
579 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
580
581         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
582         Rearrange.  Reorganize.
583         * configure.in: Rearrange.
584         * configure: Regenerate.
585
586 2003-03-12  Andreas Jaeger  <aj@suse.de>
587
588         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
589         LP64 targets.
590
591         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
592         _LP64.
593
594         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
595         _LP64 macros here.
596         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
597
598         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
599         NETBSD_OS_CPP_BUILTINS_LP64.
600         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
601         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
602
603         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
604
605 Wed Mar 12 19:04:39 CET 2003  Jan Hubicka  <jh@suse.cz>
606
607         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
608
609 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
610
611         Fix PR target/9797 and PR c/9853.
612         * stmt.c (expand_decl_init): Call push_temp_slots () and
613         pop_temp_slots ().
614
615 Wed Mar 12 16:30:25 2003  J"orn Rennecke <joern.rennecke@superh.com>
616
617         * sh.c: Include basic-block.h.
618         (sh_output_mi_thunk, emit_load_ptr): New functions.
619         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
620
621 2003-03-12  Nick Clifton  <nickc@redhat.com>
622
623         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
624         (CALL_USED_REGISTERS): Likewise.
625         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
626         describing how this value is calculated.
627
628 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
629
630         * configure.in (rlim_t): Define to long if no valid definition
631         found in sys/resource.h.
632         * config.in, configure: Regenerate.
633
634 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
635
636         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
637         TARGET_OS_CPP_BUILTINS.
638         * config/mcore/mcore-pe.h: Similarly.
639         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
640         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
641
642 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
643
644         PR c/9928
645         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
646         only if it is a VAR_DECL.
647
648 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
649
650         PR optimization/9888
651         * config/i386/i386.md (jcc_1): Fix range.
652         (jcc_2): Likewise.
653         (jump): LIkewise.
654         (doloop_end_internal): Likewise.
655
656 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
657
658         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
659         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
660         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
661         DLL_IMPORT_EXPORT_PREFIX and "i."
662         (i386_pe_dllexport_name_p): Here.
663         (i386_pe_dllimport_name_p): Here.
664         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
665         not 9 chars when getting identifier name.
666         (i386_pe_mark_dllimport): Here.
667         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
668         not 9 chars when getting identifier name. Correct comment.
669         (i386_pe_strip_name_encoding): Here. Add comments for different
670         cases.
671         (gen_fastcall_suffix): Break down xmalloc() argument to
672         components.
673         (gen_stdcall_suffix): Likewise.
674         Update copyright year.
675
676 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
677
678         PR optimization/9888
679         * config/i386/i386.md (movsi_1): Remove special alternatives
680         for %eax register.
681         (movsi_1_nointernunit): Likewise.
682         (movhi_1): Likewise.
683         * config/i386/i386.c (memory_address_length): Do not use
684         short displacement when there is no base.
685         (ix86_attr_length_address_default): Handle LEA instructions.
686
687 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
688
689         * c-cppbuiltin.c (builtin_define_std): Make non-static.
690
691 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
692
693         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
694         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
695         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
696         * config/freebsd.h (CPP_PREDEFINES): Remove.
697         (TARGET_OS_CPP_BUILTINS): New.
698         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
699         instead of TARGET_OS_CPP_BUILTINS.
700         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
701
702 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
703
704         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
705
706 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
707
708         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
709         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
710
711         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
712
713 Tue Mar 11 21:19:03 2003  Alexandre Oliva  <aoliva@redhat.com>
714
715         * toplev.c (independent_decode_option): Return success for --help,
716         --target-help and --version.
717
718 Tue Mar 11 20:20:14 2003  Alexandre Oliva  <aoliva@redhat.com>
719
720         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
721         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
722         specified.
723         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
724         DRIVER_SELF_SPECS.
725         (LINK_SPEC): Let endian options affect the linker emulation name.
726
727 Tue Mar 11 22:35:39 2003  J"orn Rennecke <joern.rennecke@superh.com>
728
729         * sh.md (reload_inqi): Fix mode for source in second set.
730
731 Tue Mar 11 22:48:03 CET 2003  Jan Hubicka  <jh@suse.cz>
732
733         * cselib.c (cselib_invalidate_mem_1): Move too ...
734         (cselib_invalidate_mem): ... here; use new list
735         (dummy_val, first_containing_mem): New static variables.
736         (clear_table): Initialize first_containing_mem.
737         (discard_useless_values):  Compact the containing_mem list.
738         (add_mem_for_addr): Add to the list.
739         * cselib.h (cselib_val): Add next_containing_mem.
740
741 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
742
743         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
744         instructions for e500.
745
746 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
747
748         * Makefile.in: Update.
749         * c-cppbuiltin.c: Include tm_p.h.
750
751 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
752
753         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
754
755         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
756         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
757         (_Unwind_SetGR): Same.
758         (_Unwind_GetGRPtr): New.
759         (_Unwind_SetGRPtr): New.
760         (uw_update_context_1): Use accesor functions instead of accessing
761         context->reg[] directly.
762         (uw_install_context_1): Same.
763         (execute_cfa_program): Same.
764         (__frame_state_for): Same.
765
766         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
767         the synthetic register offset.
768
769         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
770
771 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
772
773         * config/cris/cris.md: Remove lingering EGCS reference.
774         ("*extopqihi_side_biap"): For HI operation, match
775         cris_additive_operand_extend_operator, not
776         cris_operand_extend_operator.  Adjust condition.
777         ("*extopqihi_side", "*extopqihi"): Ditto.
778         ("*extopqisi_side_biap"): Correct operand numbers in condition.
779         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
780         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
781         ("*extophisi_swap"): Ditto.
782         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
783         PLUS, not cris_operand_extend_operator.  Adjust condition and
784         output template.
785         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
786         * config/cris/cris.h (PREDICATE_CODES): Add
787         cris_additive_operand_extend_operator.
788         * config/cris/cris.c (cris_additive_operand_extend_operator):
789         New predicate.
790
791 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
792
793         * df.c (read_modify_subreg_p): Change from static to global.
794         * df.h (read_modify_subreg_p): Add prototype.
795         * sched-deps.c (sched_analyze_1): Generate true dependency for
796         strict_low_part, certain subregs and zero/sign_extract.
797
798 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
799
800         * Makefile.in: Update.
801         * c-common.c: Don't include real.h or except.h.
802         (REGISTER_PREFIX): Remove.
803         (builtin_define_std, builtin_define_with_value,
804         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
805         builtin_define_type_max, builtin_define_type_precision,
806         builtin_define_float_constants): Move to c-cppbuiltin.c.
807         (c_stddef_cpp_builtins): New.
808         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
809         * c-cppbuiltin.c: New, extracted from c-common.c.
810         (define__GNUC__): New.
811         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
812         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
813         (cpp_unique_options): Don't support no-gcc.
814         (do_spec_1): Remove support of version specs.
815         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
816         * doc/passes.texi: Update.
817         * doc/tm.texi: Update.
818
819 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
820
821         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
822
823 2003-03-10  Andrew Pinski  <apinski@apple.com>
824
825         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
826         is on should not get here.
827         (machopic_indirect_data_reference): If dynamic-no-pic is on just
828         generate high/low parts of the address.
829         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
830         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
831         symbol and labels with a new reg.  Dynamic-no-pic does not have a
832         pic_offset_table_rtx.
833         (machopic_select_section): Change references of flag_pic to
834         MACHOPIC_INDIRECT.
835         (machopic_asm_out_destructor): Likewise.
836         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
837         reference of flag_pic to MACHOPIC_INDIRECT.
838         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
839         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
840         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
841         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
842         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
843         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
844         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
845         (TARGET_DYNAMIC_NO_PIC): Define.
846         (SUBTARGET_SWITCHES): Define, have sub-target switches for
847         dynamic-no-pic.
848         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
849         rs6000_override_options to here. Dynamic-no-pic overrides
850         pic.
851         (CC1_SPEC): Change from not static then pic to not static and not
852         dynamic-no-pic then pic.
853         * config/rs6000/rs6000.c (rs6000_override_options): Move the
854         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
855         (rs6000_legitimize_reload_address): Add case for loading floating in
856         dynamic-no-pic.
857         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
858         of flag_pic to MACHOPIC_INDIRECT.
859         (secondary_reload_class): Conditional change the reference of
860         flag_pic to MACHOPIC_INDIRECT.
861         (rs6000_output_mi_thunk): Change reference of flag_pic to
862         MACHOPIC_INDIRECT.
863         (output_profile_hook): Likewise.
864         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
865         * config/rs6000/rs6000.md (movdf_low): Add the case for
866         MACHO_DYNAMIC_NO_PIC_P.
867         (call): Change references for flag_pic in TARGET_MACHO to
868         MACHOPIC_INDIRECT.
869         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
870         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
871         * doc/invoke.texi (-mdynamic-no-pic): Document.
872
873 2003-03-10  Devang Patel  <dpatel@apple.com>
874
875         PR c++/9394
876         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
877         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
878         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
879         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
880         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
881         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
882
883 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
884
885         PR optimization/7189
886         * toplev.c (rest_of_compilation):  Move
887         check_function_return_warnings up to just after
888         delete_unreachable_blocks.
889
890 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
891
892         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
893         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
894         Declare.
895         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
896         for reg rename optimization to avoid using Z and Y registers.
897
898 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
899
900         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
901         when adding to X and Y since leax/leay are fast.
902         ("*addhi3"): Accept 'I' constraint when adding to address register.
903         ("rotlhi3"): Operand 1 must be a register_operand.
904         (peephole2): New peephole to optimize some adds.
905         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
906         to represent -2 .. 2 small integer range.
907
908 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
909
910         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
911         each 16-bit rotation.
912
913 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
914
915         * c-opts.c (add_prefixed_path): Don't use concat.  When
916         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
917         cpp_GCC_INCLUDE_DIR_len characters.
918
919 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
920
921         * testsuite/gcc.dg/altivec-9.c: New file.
922
923         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
924         (rs6000_emit_prologue): Use rs6000_frame_related instead.
925
926 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
927
928         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
929         vectors.
930         (__ev_convert_u64): Remove macro.  Define as inline.
931         (__ev_convert_s64): Same.
932
933 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
934
935         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
936         (rs6000_stack_t): Add spe_64bit_regs_used.
937
938         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
939         spe_64bit_regs_used, and use it to determine the size of the
940         frame.
941         (spe_func_has_64bit_regs_p): New.
942         (spe_synthesize_frame_save): New.
943         (rs6000_frame_related): Handle SPE synthetic registers.
944         (rs6000_emit_prologue): Only save in 64-bits if the function used
945         any registers in 64-bit mode.
946         (rs6000_emit_epilogue): Same, but for restore.
947
948 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
949
950         * arm.h (enum floating_point_type): Delete.  Replace with...
951         (enum fputype): ... new.
952         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
953         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
954         * arm.md (attr fpu): Reworked for new underlying enum values.
955         * arm.c (arm_fpu_arch): Now enum fputype.
956         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
957         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
958         Update uses of arm_fpu_arch and arm_fpu_tune.
959
960 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
961
962         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
963         (try_crossjump_to_edge): Replace refereces to one jump table by
964         references to identical jump table.
965         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
966         (replace_label): Moved to rtlanal.c.
967         (struct rtx_pair): Moved to rtl.h.
968         * rtl.h (struct rtx_pair): Moved from loop.c.
969         (replace_label): New extern function.
970         (subrtx_p): New extern function.
971         (tablejump_p): New extern function.
972         * rtlanal.c (replace_label): Moved from loop.c.
973         (subrtx_p_1): New static function.
974         (subrtx_p): New function.
975         (tablejump_p): New function.
976
977 Mon Mar 10 15:30:36 CET 2003  Jan Hubicka  <jh@suse.cz>
978
979         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
980
981         * cfgcleanup.c (merge_blocks): Return where to iterate next.
982         (try_optimize_cfg): Use return value of merge_blocks
983
984 2003-03-10  Michael Matz  <matz@suse.de>
985
986         * cfg.c (unchecked_make_edge): New.
987         (cached_make_edge): Use it.
988         * basic-block.h (unchecked_make_edge): Declare.
989         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
990
991 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
992
993         * fpa.md: New file.  Move all patterns relating to FPA co-processor
994         to here...
995         * arm.md: ... from here.
996         (cirrus.md, fpa.md): Include at end of description.
997         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
998         (pic_load_addr_based): Remove register constraint from expander.
999         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
1000         (sordered, sungt, sunle, sunge, sunlt): Likewise.
1001         (eh_epilogue, tablejump): Likewise.
1002
1003 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
1004             Mostafa Hagog
1005
1006         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
1007         condition.
1008
1009 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
1010
1011         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
1012         * config/ip2k/ip2k.h: Similarly.
1013         * config/m32r/m32r.h: Similarly.
1014         * config/m68hc11/m68hc11.h: Similarly.
1015         * config/mn10200/mn10200.h: Similarly.
1016         * config/mn10300/mn10300.h: Similarly.
1017         * config/pdp11/pdp11.h: Similarly.
1018         * config/v850/v850.h: Similarly.
1019         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
1020         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
1021         * config/mips/iris3.h: Remove #if 0 block.
1022
1023 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1024             Joern Rennecke <joern.rennecke@superh.com>
1025
1026         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
1027         pending argument upon return from handle_braces here.
1028         (do_spec_2): Instead handle it upon return from do_spec_1 here.
1029
1030 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1031             Joern Rennecke <joern.rennecke@superh.com>
1032
1033         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
1034         pending argument upon return from handle_braces here.
1035         (do_spec_2): Instead handle it upon return from do_spec_1 here.
1036
1037 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1038
1039         * varasm.c (make_decl_one_only): Use declare_weak().
1040
1041 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1042
1043         PR middle-end/9986
1044         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
1045         after the common builtins.
1046         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
1047         * pa.c (TARGET_INIT_BUILTINS): Define.
1048         (pa_init_builtins): New function.
1049
1050         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
1051         space has been allocated for the outgoing arguments, set the arg
1052         pointer for a call emitted after virtuals have been instantiated
1053         using the stack pointer offset, otherwise abort.
1054
1055 2003-03-09  DJ Delorie  <dj@redhat.com>
1056
1057         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
1058
1059 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
1060
1061         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
1062         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
1063         conversion to integer.
1064         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
1065
1066 2003-03-09  Roger Sayle  <roger@eyesopen.com>
1067
1068         * builtins.def: Fix typo and improve grammar.
1069         * loop-unroll.c (decide_peel_completely): Tidy log message.
1070
1071 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1072
1073         * config/h8300/h8300.md (*tstsi_upper_bit): New.
1074         (*iorsi3_e2f): Likewise.
1075
1076 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1077
1078         * config/h8300/h8300.c (h8300_and_costs): Return the number of
1079         assembly instructions needed.
1080         (h8300_shift_costs): Likewise.
1081
1082 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
1083
1084         * config/cris/aout.h (ENDFILE_SPEC): Undef.
1085
1086         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
1087         moves from here ...
1088         * expr.c (emit_move_insn_1): ... to here.
1089
1090         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
1091         (TARGET_OS_CPP_BUILTINS): New macro.
1092         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
1093         (TARGET_OS_CPP_BUILTINS): New macro.
1094         (CPP_PREDEFINES): Don't define.  Move old definitions and...
1095         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
1096         (TARGET_CPU_CPP_BUILTINS): New macro.
1097         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
1098         definitions and the optional __PIC__, __pic__ and
1099         __NO_UNDERSCORES__ definitions to...
1100         (TARGET_OS_CPP_BUILTINS): New macro.
1101
1102         * flags.h (flag_leading_underscore): Declare.
1103
1104         * c-opts.c (c_common_post_options): On fopen failure, return
1105         false, not NULL.
1106
1107 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1108
1109         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
1110         config.h.
1111         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
1112         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
1113
1114 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1115
1116         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
1117         CPP_PREDEFINES.
1118         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
1119         CPP_PREDEFINES.
1120
1121 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1122
1123         * c-common.h (c_common_init, c_common_post_options): Update.
1124         * c-objc-common.c (c_objc_common_init): Update for new prototype.
1125         * c-opts.c (saved_lineno): New.
1126         (c_common_post_options, c_common_init): Update prototypes,
1127         move call to cpp_read_main_file from latter to former.
1128         * c-tree.h (c_ojbc_common_init): Update.
1129         * langhooks-def.h (lhd_post_options): New.
1130         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
1131         * langhooks.c (lhd_post_options): New.
1132         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
1133         * toplev.c (no_backend): New.
1134         (process_options): Call post_options hook and set main_input_filename
1135         and input_filename here.
1136         (lang_dependent_init, do_compile): post_options hook moved to
1137         process_options.
1138         * objc/objc-act.c (objc_init): Update prototype.
1139         * objc/objc-act.h (objc_init): Update prototype.
1140
1141 2003-03-08  Roger Sayle  <roger@eyesopen.com>
1142
1143         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
1144         a complex or vector type, using a load in the original mode.
1145
1146 Sat Mar  8 19:22:30 CET 2003  Jan Hubicka  <jh@suse.cz>
1147
1148         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
1149         * gt-cgraph.h: New GC file.
1150         * cgraph.c (known_fns): New static variable.
1151         (cgraph_node): Add the decl into varray.
1152
1153 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1154
1155         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
1156
1157 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
1158
1159         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
1160         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
1161         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
1162         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
1163         All callers changed.
1164         * arm.md, arm.h, arm-protos.h: Updated.
1165
1166         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
1167         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
1168         * arm.c (arm_regno_class, f_register_operand): Updated.
1169
1170 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
1171
1172         * config/cris/cris.h: Remove EGCS references.
1173         (CPP_SPEC): Remove "-$".
1174         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
1175
1176 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1177
1178         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
1179         preference to CPP_PREDEFINES.
1180
1181 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
1182
1183         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
1184
1185 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1186
1187         * config/h8300/h8300.md (*extzv_16_8): New.
1188
1189 Sat Mar  8 14:13:35 CET 2003  Jan Hubicka  <jh@suse.cz>
1190
1191         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
1192         * cgraph.h: (cgraph_local_info): Add can_inline_once
1193         (cgraph_global_info): Add inline_once.
1194         (cgraph_node): Add previous.
1195         (cgraph_remove_node): New.
1196         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
1197         function.
1198         (cgraph_optimize): Call it.
1199         (cgraph_finalize_function):  Set inlinable flags.
1200         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
1201         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
1202         (cgraph_expand_function): Likewise.
1203         * cgraph.c
1204         (cgraph_node): Put nodes into doubly linked chain.
1205         (cgraph_remove_node): New function.
1206         * flags.h (flag_inline_functions_called_once): Declare.
1207         * tree-inline.c: Include cgraph.h
1208         (inlinable_functions_p): Add extra argument to bypass limits.
1209         (expand_call_inline):  Obey cgraph flag.
1210         * tree-inline.h (tree_inlinable_function_p): Update prototype.
1211
1212 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1213
1214         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
1215         irreducible loops.
1216
1217         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
1218         loops info correctly.
1219
1220 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
1221
1222         PR middle-end/7796
1223         * unroll.c (calculate_giv_inc): Handle constants being
1224         loaded with LSHIFTRT.
1225
1226 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
1227
1228         * config/rs6000/rs6000.c (processor_target_table): Do not disable
1229         GP optional instructions on Power3, Power4, 620, and 630.
1230
1231 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1232
1233         * calls.c: Fix comment formatting.
1234         * cfgloopanal.c: Likewise.
1235         * cfgloopmanip.c: Likewise.
1236         * combine.c: Likewise.
1237         * dwarf2out.c: Likewise.
1238         * ggc-common.c: Likewise.
1239         * langhooks.c: Likewise.
1240         * loop-unroll.c: Likewise.
1241         * loop.c: Likewise.
1242         * ra-build.c: Likewise.
1243         * sbitmap.c: Likewise.
1244         * toplev.c: Likewise.
1245
1246 2003-03-07  James E Wilson  <wilson@tuliptree.org>
1247
1248         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
1249
1250 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
1251
1252         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
1253         support -no-integrated-cpp.
1254
1255         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
1256         than langhooks.name.
1257
1258 2003-03-07  Michael Matz  <matz@suse.de>
1259
1260         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
1261         (DF_FOR_REGALLOC): New.
1262         * df.c (df_ref_record): Set DF_REF_STRIPPED.
1263         (read_modify_subreg_p): Simplify.
1264         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
1265         Use DF_FOR_REGALLOC.
1266         * ra.h (struct web): New member subreg_stripped.
1267         (invalid_mode_change_regs): Declare.
1268         * ra.c (invalid_mode_change_regs): New.
1269         (init_ra): Initialize it.
1270         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
1271         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1272         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
1273         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
1274         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
1275
1276 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
1277
1278         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
1279         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
1280         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
1281         machine description file from ...
1282         * cirrus.md: ... here.
1283
1284 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1285
1286         * config/h8300/h8300.md (a peephole2): Don't use
1287         reg_overlap_mentioned_p.
1288
1289 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
1290
1291         * c-pch.c: Include langhooks.h.
1292         (IDENT_LENGTH): New.
1293         (get_ident): New.
1294         (pch_ident): Delete.
1295         (pch_init): Use get_ident, IDENT_LENGTH.
1296         (c_common_valid_pch): Likewise.  Also, use actual language
1297         in warning message.
1298         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
1299
1300         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
1301         c-parse.in.
1302         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
1303         gt-objc-objc-act.h.
1304         (gt-objc-objc-act.h): New rule.
1305         * objc/lang-specs.h: Support PCH.
1306         * objc/objc-act.c: Include gt-objc-objc-act.h.
1307         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
1308         (build_selector_reference_decl): Move idx out, mark for PCH.
1309         (build_class_reference_decl): Likewise.
1310         (build_objc_string_decl): Move *_idx out, mark for PCH.
1311         (build_tmp_function_decl): Move xxx out, mark for PCH.
1312
1313 2003-03-06  Dale Johannesen  <dalej@apple.com>
1314
1315         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
1316         global functions for inlining on Darwin.
1317
1318 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
1319
1320         * haifa-sched.c (schedule_block): Don't call reorder when sorting
1321         is prohibited.
1322
1323 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
1324
1325         * Makefile.in (c-ppoutput.o): Update.
1326         * c-common.h (init_pp_output): New.
1327         (preprocess_file): Update.
1328         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
1329         Register builtins.
1330         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
1331         Make call to cpp_read_main_file common to whether preprocessing
1332         or not.  Don't register builtins.
1333         * c-ppoutput.c: Include c-pragma.h.
1334         (setup_callbacks): Rename init_pp_output.
1335         (preprocess_file): No longer setup callbacks or call
1336         cpp_read_main_file.
1337         * cpphash.h (_cpp_init_mbchar): New.
1338         * cppinit.c (init_library): Call _cpp_init_mbchar.
1339         * cpplex.c (_cpp_init_mbchar): New.
1340
1341 2003-03-06  Roger Sayle  <roger@eyesopen.com>
1342
1343         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
1344         MEM, try loading the MEM into a register and taking the low-part
1345         of that, to help CSE see the use of the MEM in its true mode.
1346
1347 2002-03-05  Tom Tromey  <tromey@redhat.com>
1348
1349         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
1350         Define.
1351
1352 2002-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
1353
1354         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
1355         operand 2.
1356         ("*ineqbranchsi"): Likewise.
1357
1358 2002-03-05  Andrew Haley  <aph@cambridge.redhat.com>
1359
1360         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
1361         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
1362         register store followed by a stack increment.
1363
1364 2002-03-05  Chris Moller  <cmoller@redhat.com>
1365
1366         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
1367         to inhibit saving CARRY_REGS.
1368
1369         * config/stormy16/stormy16.c (xs_hi_general_operand):
1370         added predicate to detect and error-out on out-of-range
1371         const_ints for movhi.
1372         * config/stormy16/stormy16.md (movhi): use
1373         xs_hi_general_operand.
1374
1375         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
1376         added a check for local vbl size overflow.
1377         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
1378         added predicate to detect and error-out on out-of-range
1379         const_ints for addhi and subhi.
1380         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
1381         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
1382
1383         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
1384         add a term to accept PRE_MODIFY addresses.
1385         * config/stormy16/stormy16.c (xstormy16_expand_move):
1386         add code to expand PRE_MODIFY addresses to an add followed
1387         by a move.
1388
1389 2003-03-06  Jason Merrill  <jason@redhat.com>
1390
1391         * tree-inline.c (inlinable_function_p): Revert earlier change
1392         pending investigation.
1393
1394 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1395
1396         * config/h8300/h8300.md (a new peephole2): New.
1397
1398 Thu Mar  6 14:20:15 CET 2003  Jan Hubicka  <jh@suse.cz>
1399
1400         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
1401
1402 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1403
1404         * dwarf2out.c (size_of_die): Compute size of external reference to
1405         die correctly.
1406
1407 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
1408
1409         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
1410         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
1411         expanders.
1412
1413 2003-03-05  Roger Sayle  <roger@eyesopen.com>
1414
1415         * expr.h (lang_expand_expr): Delete obsolete prototype.
1416
1417 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1418
1419         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
1420
1421 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1422
1423         * config/h8300/h8300.md (a peephole2): Generalize to
1424         accept a memory operand.
1425
1426 Wed Mar  5 19:34:18 2003  Olivier Hainque <hainque@act-europe.fr>
1427
1428         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
1429         * config/alpha/alpha.c (print_operand, case '+'): New.
1430         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
1431         (call_value_osf_1_noreturn): Likewise.
1432
1433 Wed Mar  5 18:55:02 2003  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1434
1435         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
1436         (expand_end_bindings): Likewise.
1437
1438 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1439
1440         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
1441         (epilogue): Don't generate return_external_pic when emitting PA 2.0
1442         code.
1443
1444 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
1445
1446         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
1447
1448         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
1449
1450         * hooks.c (hook_rtx_rtx_null): New.
1451
1452         * hooks.h (hook_rtx_rtx_null): Protoize.
1453
1454         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
1455         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
1456
1457         * target.h (struct gcc_target): Add dwarf_register_span.
1458
1459         * dwarf2out.c (multiple_reg_loc_descriptor): New.
1460         (one_reg_loc_descriptor): New.
1461         (reg_loc_descriptor): Add support for values that span more than
1462         one register.
1463
1464 Wed Mar  5 23:16:57 CET 2003  Jan Hubicka  <jh@suse.cz>
1465
1466         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
1467         * alias.c:  Include cgraph.h
1468         (mark_constant_function): Use cgraph_rtl_info.
1469         * calls.c:  Include cgraph.h
1470         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
1471         calls.
1472         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
1473         * cgraph.c (cgraph_rtl_info): New function.
1474         * cgraph.h (cgraph_rtl_info): Declare
1475         (cgraph_rtl_info): Likewise.
1476         * function.h (struct function): Add recursive_call_emit.
1477         * toplev.c: Include cgraph.h.
1478         (rest_of_compilation): Set preferred_incoming_stack_boundary.
1479
1480 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1481
1482         * config/h8300/h8300.c (output_simode_bld): Clear the
1483         destination first if possible.
1484         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
1485         alternative.
1486         (extzv_1_r_inv_h8300hs): Likewise.
1487
1488 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1489
1490         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
1491         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
1492         * cfgloop.c (flow_loop_free): Made global.
1493         (establish_preds): New static function.
1494         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
1495         (get_loop_exit_edges): New.
1496         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
1497         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
1498         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
1499         loops.
1500         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
1501         removability of an edge.
1502         (fix_irreducible_loops): New static function.
1503         (find_path, remove_path): Add ability to remove enclosing loops.
1504         (unloop): New.
1505         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
1506         flags.
1507         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
1508         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
1509         not neccessary.
1510         (decide_peel_completely, peel_loops_completely): Allow complete peeling
1511         of non-duplicable once rolling loops.
1512         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
1513
1514 Wed Mar  5 21:40:57 2003  J"orn Rennecke <joern.rennecke@superh.com>
1515
1516         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
1517         for align_jumps is 4.
1518
1519         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
1520         use GENERAL_REGS.
1521
1522 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
1523
1524         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
1525         according to va_arg type.
1526         (EXPAND_BUILTIN_VA_ARG): Remove.
1527         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
1528         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
1529
1530 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
1531
1532         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
1533         else clauses.
1534
1535 2003-03-05  Michael Matz  <matz@suse.de>
1536
1537         * i386/i386.c (ix86_save_reg): Also test
1538         current_function_uses_const_pool.
1539
1540 2003-03-05  Michael Matz  <matz@suse.de>
1541
1542         * unwind.h: Add the GPL exception.
1543         * Makefile.in (USER_H): Add unwind.h.
1544
1545 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1546
1547         PR c/9799
1548         * c-typeck.c (push_init_level): Add sanity check.
1549
1550 Wed Mar  5 02:04:04 CET 2003  Jan Hubicka  <jh@suse.cz>
1551
1552         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
1553         RTL inlining is done.
1554
1555         * cgraphunit.c (cgraph_mark_local_functions): New local function.
1556         (cgraph_optimize): Mark local functions.
1557         * i386-protos.h (init_cumulative_args): Update prototype.
1558         * i386.c (init_cumulative_args): Use register passing convention for
1559         local functions.
1560
1561         * cgraph.c (cgraph_global_info_ready): New global variable
1562         (cgraph_local_info, cgraph_global_info): New functions.
1563         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
1564         structures.
1565         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
1566         Declare.
1567         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
1568         (cgraph_mark_functions_to_output): Use inline_many.
1569         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
1570         (cgraph_expand_functions): Expand inline functions last.
1571         (cgraph_optimize): Do not emit uneeded functions.
1572
1573 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
1574
1575         * expr.c (convert_modes): Check for legal hard register.
1576
1577 2003-03-04  Tom Tromey  <tromey@redhat.com>
1578
1579         * doc/sourcebuild.texi (Front End Directory): Document tags.
1580         * configure: Rebuilt.
1581         * configure.in (target_list): Added tags.
1582         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
1583         TAGS files by reference.
1584         * objc/Make-lang.in (objc.tags): New target.
1585
1586 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1587
1588         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
1589         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
1590         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
1591         gcov_read_string, gcov_write_length): Modified to enable reading/
1592         writing of whole .da file just once.
1593         (da_file_open, da_file_close, da_file_eof, da_file_error,
1594         da_file_position, da_file_seek, da_file_write, da_file_read): New
1595         functions.
1596         (actual_da_file, actual_da_file_position, actual_da_file_length,
1597         actual_da_file_buffer, actual_da_file_buffer_size): New static
1598         functions.
1599         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
1600         just once.
1601
1602
1603 2003-03-04  Andreas Schwab  <schwab@suse.de>
1604
1605         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
1606         offset without frame pointer.
1607
1608 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
1609
1610         * expr.c (expand_expr): Call promote_mode to set unsignedp.
1611
1612 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
1613
1614         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
1615         * configure: Regenerated.
1616         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
1617
1618 2003-03-04  Andreas Jaeger  <aj@suse.de>
1619
1620         * configure.in: Check for <memcheck.h>.
1621         * configure: Regenerated.
1622
1623         * config.in: Define HAVE_MEMCHECK_H.
1624
1625         * ggc-common.c: Use <memcheck.h> if available instead of
1626         <valgrind.h>.
1627         * ggc-page.c: Likewise.
1628         * cppfiles.c: Likewise.
1629
1630 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1631
1632         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
1633
1634 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1635
1636         PR c/9262
1637         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
1638         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
1639
1640 Tue Mar  4 11:30:04 CET 2003  Jan Hubicka  <jh@suse.cz>
1641
1642         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
1643         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
1644         for -O3.
1645
1646 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
1647
1648         * configure.in: Delete three unused variables.  Move a variable
1649         definition closer to its use.  Simplify use_collect2 logic.  Start to
1650         organize.  Simplify tests for in-tree gas and ld.
1651         * configure: Regenerate.
1652
1653 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
1654
1655         * Makefile.in: Update.
1656         * c-common.c (flag_no_line_commands, flag_no_output,
1657         flag_dump_macros, flag_dump_includes): New.
1658         * c-common.h (flag_no_line_commands, flag_no_output,
1659         flag_dump_macros, flag_dump_includes, preprocess_file): New.
1660         (init_c_lex): Update prototype.
1661         * c-lex.c (init_c_lex): Update prototype; move some code to
1662         c_common_init.
1663         * c-opts.c (preprocess_file): Subsume into c_common_init.
1664         (c_common_decode_option): Update flags.
1665         (c_common_init): Move code from preprocess_file and init_c_lex.
1666         (sanitize_cpp_opts): Update.
1667         * c-ppoutput.c: New, cppmain.c almost verbatim.
1668         * cpphash.h (struct printer): Remove.
1669         (struct cpp_reader): Remove print.
1670         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
1671         cpp_preprocess_file): Remove.
1672         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
1673         and dump_includes.
1674         * cppmain.c: Remove.
1675         * doc/passes.texi: Update.
1676
1677 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1678
1679         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
1680         (assign_stack_local_1): Perform overall stack alignment only when
1681         STACK_ALIGNMENT_NEEDED is non-zero.
1682         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
1683
1684         * pa.c (compute_frame_size): Rename fsize to size.  Account for
1685         alignment to a word boundary before general register save block.  Only
1686         account for double-word alignment before floating point register save
1687         block if one or more are saved.  Don't allocate space for %r3 when
1688         frame pointer is needed.
1689         (hppa_expand_prologue): Include alignment to word boundary in local
1690         frame size.
1691         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
1692         (STACK_ALIGNMENT_NEEDED): Define.
1693
1694 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
1695
1696         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
1697         global register variables.
1698
1699 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
1700
1701         * reload.c (reload_adjust_reg_for_mode): New function.
1702         (subst_reloads): Call it.
1703         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
1704         * reload.h (reload_adjust_reg_for_mode): Declare.
1705         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
1706         Call it.
1707
1708 2003-03-03  James E Wilson  <wilson@tuliptree.org>
1709
1710         * optabs.c (add_equal_note): Delete SUBREG_REG use.
1711         Fixes PR c/7872.
1712
1713 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1714
1715         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
1716         (*ixorsi3_lshiftrt_16): New.
1717         (*iorsi3_ashift_16): Remove.
1718
1719 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1720
1721         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
1722         pattern.
1723
1724 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
1725
1726         * doc/install.texi (Specific): Update entry for powerpc-darwin.
1727
1728 2003-03-03  Richard Henderson  <rth@redhat.com>
1729
1730         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
1731
1732 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
1733
1734         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
1735         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
1736         (rs6000_variable_issue): Do not return negative value.
1737         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
1738         scheduling pass.
1739
1740 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1741
1742         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
1743         prune_unused_types calls.
1744
1745 2003-03-03  Jason Merrill  <jason@redhat.com>
1746
1747         * tree-inline.c (find_builtin_longjmp_call): Save and restore
1748         lineno and input_filename.
1749         (find_alloca_call): Likewise.
1750         (inlinable_function_p): Run the langhook earlier.
1751
1752         * calls.c (compute_argument_addresses): Give the new MEMs a
1753         minimum alignment of PARM_BOUNDARY.
1754
1755 Mon Mar  3 20:45:25 2003  J"orn Rennecke <joern.rennecke@superh.com>
1756
1757         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
1758         subtarget_asm_isa_spec.
1759         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
1760         (ASM_SPEC): Define as SH_ASM_SPEC.
1761         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
1762         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
1763         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
1764         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
1765
1766         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
1767         and align_jumps if not set.
1768         Force align_jumps to be at least 2.
1769         When relaxing, force align_functions to be at least the maximum of
1770         align_loops, align_jumps and 4.
1771         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
1772         (sh_loop_align): Honour align_loops_log.
1773
1774         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
1775         to check for indirect_jump_scratch.
1776         (indirect_jump_scratch): Add second set.
1777         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
1778         when looking for indirect_jump_scratch.
1779         Extract scratch register taking new structure of indirect_jump_scratch
1780         into account.
1781         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
1782
1783 Mon Mar  3 19:07:21 CET 2003  Jan Hubicka  <jh@suse.cz>
1784
1785         * calls.c (rtx_for_function_call): Take the address as an argument
1786         (expand_call): Do not modify the expression.
1787
1788         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
1789         optimizing.
1790
1791 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1792
1793         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
1794         TARGET_H8300H and TARGET_H8300S.
1795
1796 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1797
1798         * config/h8300/h8300.md (a peephole2): New.
1799
1800 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1801
1802         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
1803         operands[0] and operands[1] are different.
1804
1805 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1806
1807         * reload1.c (reload_cse_move2add): Remove variable success.
1808
1809 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1810
1811         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
1812         warnings.
1813
1814 2003-03-02  Richard Henderson  <rth@redhat.com>
1815
1816         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
1817         * config.in, configure: Rebuild.
1818         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
1819         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
1820         paired ldtoffx and ldxmov annotations.
1821         (load_symptr_internal1): Remove.
1822         (load_symptr_high, load_symptr_low): New.
1823
1824 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
1825
1826         * c-incpath.c (add_path): Fix sysp assignment.
1827
1828 2003-03-02  Kurt Garloff  <garloff@suse.de>
1829
1830         * params.def: Introduce parameter max-inline-insns-rtl for
1831         a separate limit for the RTL inliner.
1832         * params.h: Likewise.
1833         * integrate.c (function_cannot_inline_p): Use it.
1834         * toplev.c (decode_f_option): Set multiple parameters
1835         controlling inlining with -finline-limit.
1836         * params.def: Fix orthographic and typographic errors.
1837         * doc/invoke.texi: Document parameters controlling inlining
1838         and the way -finline-limit sets multiple of them.
1839
1840         * tree.h (struct tree_decl): Introduce inlined_function_flag,
1841         recording whether the function became eligible for inlining
1842         by a compiler flag rather than the declaration.
1843         Provide DID_INLINE_FUNC macro to access it.
1844         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
1845         * cp/decl.c (grokfndecl): Likewise.
1846         * toplev.c (rest_of_compilation): Likewise.
1847         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
1848         * print-tree.c (print_node): Report it.
1849         * params.def: Introduce new max-inline-insns-auto limit.
1850         * params.h: Likewise.
1851         * tree-inline.c (inlinable_function_p): Apply it to functions
1852         with DID_INLINE_FUNC set.
1853         * toplev.c (decode_f_option): Initialize it from -finline-limit
1854         value.
1855         * doc/invoke.texi: Document new parameter.
1856
1857 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
1858
1859         * fix-header.c (read_scan_file): Don't reference simplify_path.
1860
1861 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1862
1863         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
1864         min/max instructions by default as may result in reload errors.
1865
1866 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1867
1868         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
1869         avoid reload problems; define split for it.
1870
1871 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1872
1873         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
1874         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
1875         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
1876         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
1877         rotatert and rotate.
1878         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
1879         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
1880         ("*rotrhi3_addr"): New split for shift insns on address register.
1881         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
1882         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
1883         (___rotrhi3): Likewise.
1884         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
1885
1886 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
1887
1888         * toplev.c (aux_base_name): Moved from toplev.h.
1889         (filename): Constify.
1890         (lang_dependent_init): Don't duplicate name.
1891         (process_options): Set aux_base_name here, not...
1892         (do_compile): ...here.  Change protoype.
1893         (toplev_main): Move some code from do_compile.
1894         * toplev.h: Remove aux_base_name.
1895
1896 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1897
1898         * config/h8300/h8300-protos.h: Add a prototype for
1899         iorxor_operator.
1900         * config/h8300/h8300.c (print_operand): Handle 'c'.
1901         (iorxor_operator): New.
1902         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
1903         * config/h8300/h8300.md (*iorhi3_zext): Remove.
1904         (*iorsi3_zexthi): Likewise.
1905         (*iorsi3_zextsi): Likewise.
1906         (*xorhi3_zextqi): Likewise.
1907         (*xorsi3_zexthi): Likewise.
1908         (*xorsi3_zextsi): Likewise.
1909         (*ixorhi3_zext): New.
1910         (*ixorsi3_zext_qi): Likewise.
1911         (*ixorsi3_zext_hi): Likewise.
1912
1913 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
1914
1915         * c-incpath.c (remove_component_p, simplify_path): Move back to
1916         cppfiles.c.
1917         (remove_duplicates): Use cpp_simplify_path.
1918         * c-incpath.h (simplify_path): Remove.
1919         * c-lex.c: Don't include c-incpath.h.
1920         (init_c_lex): Remove simplify_path.
1921         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
1922         (find_or_create_entry, validate_pch): Revert.
1923
1924 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
1925
1926         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
1927           an external cpp during compilation.
1928         (option_map): Likewise.
1929         * objc/lang-specs.h (default_compilers): Similarly.
1930         * doc/invoke.texi: Document -no-integrated-cpp flag.
1931
1932 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1933
1934         * config/h8300/h8300.md (zero_extendqisi2): Change to an
1935         expander.
1936         (*zero_extendqisi2_h8300): New.
1937         (*zero_extendqisi2_h8300hs): New.
1938         (two splitters): New.
1939
1940 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1941
1942         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
1943
1944 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1945
1946         * config/h8300/h8300.md (a peephole2): Remove dead code.
1947
1948 2003-03-01  Roger Sayle  <roger@eyesopen.com>
1949
1950         PR c++/9367
1951         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
1952         (BT_FN_INT_CONST_STRING_VALIST_ARG,
1953         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
1954         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
1955         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
1956         BT_FN_INT_STRING_CONST_STRING_VAR,
1957         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
1958         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
1959         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
1960         ATTR_NONNULL_3): Also include the nothrow attribute.
1961         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
1962         vsnprintf, vscanf, vsscanf): Don't define attributes here.
1963         * builtins.def (putchar, puts): Make full C89 built-ins.
1964         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
1965         vsscanf, vsnprintf, vsprintf): New built-ins.
1966         * c-common.c (c_common_nodes_and_builtins): Handle new macro
1967         DEF_FUNCTION_TYPE_VAR_3.
1968
1969         * doc/extend.texi: Document these new built-in functions.
1970
1971 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1972
1973         * config/h8300/h8300.md (a peephole2): New.
1974
1975 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
1976
1977         * predict.c (estimate_bb_frequencies): Correctly set
1978         real_values_initialized after initialization.
1979
1980 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
1981
1982         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
1983         cppinit.o, cppdefault.o, fix-header): Update.
1984         * c-incpath.c: New file.
1985         * c-incpath.h: New file.
1986         * c-lex.c: Include c-incpath.h.
1987         (init_c_lex): Register path simplifier.
1988         * c-opts.c: Include cppdefault.h and c-incpath.h.
1989         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
1990         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
1991         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
1992         (missing_arg, c_common_decode_option): Handle them.
1993         (c_common_post_options): Register include chains.
1994         (print_help): Update.
1995         * cppdefault.h (struct default include): Update.
1996         Move some macros to ...
1997         * cppdefault.c: ... here.
1998         (cpp_include_defaults): Add extra field add_sysroot.
1999         * cppfiles.c (include_file, search_from, find_or_create_entry,
2000         cpp_included, find_include_file, remap_filename): Update for
2001         renaming of search_path to cpp_path, and of the chain headers.
2002         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
2003         * cpphash.h (struct search_path): Move to cpplib.h.
2004         (struct cpp_buffer, struct cpp_reader): Update.
2005         (_cpp_simplify_pathname): Remove.
2006         * cppinit.c: Don't include prefix.h and cppdefault.h.
2007         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
2008         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
2009         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
2010         no_pth, cpp_handle_options): Remove.
2011         (struct pending_option): Remove chain members.
2012         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
2013         cpp_handle_option): Update.
2014         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
2015         (struct cpp_options): Remove quote_include, bracket_include,
2016         include_prefix, include_prefix_len, verbose, ignore_srcdir,
2017         no_standard_includes, no_standard_cplusplus_includes.
2018         (struct cpp_callbacks): Add simplify_path.
2019         (cpp_handle_options): Remove.
2020         * fix-header.c: Include c-incpath.h.
2021         (read_scan_file): Update to use c-incpath functionality.
2022         * doc/passes.texi: Update.
2023
2024 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2025
2026         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
2027         satisfies EXTRA_CONSTRAINT 'U'.
2028
2029 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2030
2031         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
2032         register.
2033         (*tst_extzv_memqi_1_n): Change to a splitter.
2034         (a peephole2): Update.
2035
2036 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
2037
2038         * predict.c (estimate_bb_frequencies): Initialize the sreal
2039         constants once per compilation.
2040
2041 2003-02-28  Richard Henderson  <rth@redhat.com>
2042
2043         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
2044
2045 2003-02-28  scott snyder  <snyder@fnal.gov>
2046
2047         * flags.h: Add flag_eliminate_unused_debug_types.
2048         * toplev.c: Add flag_eliminate_unused_debug_types.
2049         (f_options): Add -feliminate-unused-debug-types.
2050         * dwarf2out.c (struct file_table): Add emitted member.
2051         (splice_child_die): Fix the parent pointer for the child being
2052         spliced.
2053         (lookup_filename): Maintain file_table.emitted array.  Don't
2054         output .file directive here.
2055         (maybe_emit_file): (new)
2056         (init_file_table): Set up file_table.emitted.
2057         (dwarf2out_source_line): Use maybe_emit_file.
2058         (dwarf2out_start_source_file): Use maybe_emit_file.
2059         (dwarf2out_init): Use maybe_emit_file.
2060         (prune_unused_types_walk_attribs): (new)
2061         (prune_unused_types_mark): (new)
2062         (prune_unused_types_walk): (new)
2063         (prune_unused_types_prune): (new)
2064         (prune_unused_types): (new)
2065         (dwarf2out_finish): Call prune_unused_types if
2066         flag_eliminate_unused_debug_types is set.
2067         * doc/invoke.texi (Option Summary): Add
2068         -feliminate-unused-debug-types.
2069         (Debugging Options): Likewise.
2070
2071 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
2072
2073         * doc/invoke.texi: Change .pch to .gch.
2074         * cppfiles.c (open_file_pch): Likewise.
2075         * gcc.c (default_compilers): Likewise.
2076
2077 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
2078
2079         * floatlib.c: Remove.
2080
2081 2003-02-28  Jason Merrill  <jason@redhat.com>
2082
2083         * stor-layout.c (variable_size): Leave a "minus 1" outside the
2084         SAVE_EXPR.
2085
2086 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
2087
2088         * config/rs6000/power4.md: Add compare bypass.
2089
2090 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
2091
2092         * config/netbsd.h: Update copyright years.
2093         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
2094         -pthread is specified on the command line.
2095
2096 2003-02-28  Dale Johannesen <dalej@apple.com>
2097
2098         * loop.c (struct movable): Add insert_temp, shrink savemode.
2099         (scan_loop): Accept invariants that require copying; mark as
2100         insert_temp.
2101         (combine_movables): Don't combine insert_temp movables.
2102         (move_movables): Insert copies for insert_temp movables.
2103         Don't record the info based on regno for insert_temp's.
2104
2105 2003-02-28  Joel Sherrill <joel@OARcorp.com>
2106
2107         PR 9638/other
2108         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
2109         this constant defaults to 1.
2110
2111 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
2112
2113         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
2114
2115 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
2116
2117         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
2118         ARMv5e processor, not just for XScale.  Instructions are predicable.
2119         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
2120
2121 2003-02-28  Nick Clifton  <nickc@redhat.com>
2122
2123         * config/arm/arm.c (note_invalid_constants): Change parameter type
2124         from bool to int.
2125
2126 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2127
2128         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
2129         test of bit 7.
2130         (*tst_extzv_memqi_1_n): Likewise.
2131         (a peephole2): New.
2132
2133 2002-02-28  Richard Sandiford  <rsandifo@redhat.com>
2134
2135         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
2136         #ifndef __mips16.
2137
2138 Fri Feb 28 11:09:14 CET 2003  Jan Hubicka  <jh@suse.cz>
2139
2140         * combine.c (gen_lowpart_for_combine): Update handling of
2141         subregs_of_mode
2142         * flow.c (life_analysis, mark_used_regs): Likewise.
2143         * regclass.c (subregs_of_mode): Turn into single bitmap.
2144         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
2145         dealing with subregs_of_mode
2146         * regs.h (subregs_of_mode): Update prototype.
2147
2148 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
2149
2150         * emit-rtl.c (set_reg_attrs_for_parm): New function.
2151         * rtl.h (set_reg_attrs_for_parm): New exported function.
2152         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
2153         set_reg_attrs_from_mem.
2154
2155 2003-02-27  Roger Sayle  <roger@eyesopen.com>
2156             Zack Weinberg <zack@codesourcery.com>
2157
2158         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
2159
2160 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2161
2162         * reload1.c (sext_for_mode): Remove.
2163         (reload_cse_move2add): Use trunc_int_for_mode instead of
2164         sext_for_mode.
2165         (move2add_note_store): Likewise.
2166         Reset register information if we see a set in non-integer
2167         mode.
2168
2169 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
2170
2171         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
2172         option.
2173         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
2174         * config/rs6000/aix51.h: Same.
2175         * config/rs6000/aix52.h: Same.
2176         * config/rs6000/power4.md: Additional VMX bypasses.
2177
2178 2003-02-27   Geert Bosch <bosch@gnat.com>
2179
2180         * toplev.c (print_version): Add indentation for GGC heuristics and
2181         output after printing version information.
2182
2183 2003-02-27  James E Wilson  <wilson@tuliptree.org>
2184
2185         * combine.c (simplify_comparison): Require integral mode when
2186         permuting SUBREG with AND.
2187
2188 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
2189
2190         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
2191
2192 2003-02-27  Nick Clifton  <nickc@redhat.com>
2193
2194         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
2195         deleted when cirrus instructions were added.
2196
2197 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
2198
2199         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
2200         POSIX thread support by default.
2201
2202 2003-02-27  Roger Sayle  <roger@eyesopen.com>
2203
2204         * config/i386/cygwin.h: Don't include any other files directly.
2205         * config/i386/mingw32.h: Don't include cygwin.h directly.
2206         * config.gcc (cygwin, mingw32, uwin): Instead make these files
2207         explicit in the tm_files variable.
2208
2209 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
2210
2211         * config/rs6000/rs6000.md: Add TI constant splitter.
2212
2213 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
2214
2215         * builtins.c (purge_builtin_constant_p): Handle subreg of
2216         constant_p_rtx too.
2217
2218         * function.c (assign_stack_local_1): Truncate constant added to
2219         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
2220
2221 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
2222
2223         * config.gcc: Add power4 to PowerPC with_cpu list.
2224
2225 Wed Feb 26 19:46:25 CET 2003  Jan Hubicka  <jh@suse.cz>
2226
2227         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
2228
2229 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2230
2231         * gcov-dump.c (print_prefix): Fix signedness warning.
2232         * gcov-io.h (struct counter_section, struct counter_section_data): New.
2233         (struct function_info): n_arc_counts field removed, n_counter_sections,
2234         counter_sections fields added.
2235         (struct gcov_info): arc_counts, n_arc_counts fields removed,
2236         n_counter_sections, counter_sections fields added.
2237         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
2238         profile sections.
2239         * profile.h (MAX_COUNTER_SECTIONS): New.
2240         (struct section_info): New.
2241         (struct profile_info): count_instrumented_edges,
2242         count_edges_instrumented_now fields removed, n_sections, section_info
2243         fields added.
2244         (find_counters_section): Declare.
2245         * profile.c (struct function_list): count_edges field removed,
2246         n_counter_sections, counter_sections fields added.
2247         (set_purpose, label_for_tag, build_counter_section_fields,
2248         build_counter_section_value, build_counter_section_data_fields,
2249         build_counter_section_data_value, build_function_info_fields,
2250         build_function_info_value, build_gcov_info_fields,
2251         build_gcov_info_value): New static functions.
2252         (find_counters_section): New function.
2253         (instrument_edges, get_exec_counts, compute_branch_probabilities,
2254         branch_prob, create_profiler): Modified to support multiple profile
2255         sections.
2256
2257 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2258
2259         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
2260         is 8 * STACK_BOUNDARY.
2261         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
2262
2263 2003-02-26  Michael Matz  <matz@suse.de>
2264
2265         * ra-colorize.c (merge_moves): Fix list handling.
2266
2267 2003-02-26  Nick Clifton  <nickc@redhat.com>
2268
2269         * config/arm/arm.c (is_load_address): Rename to...
2270         (arm_memory_load_p) ... this and make it check for SUBREGs and
2271         constant loads that will be converted into loads from the
2272         minipool.
2273         (is_cirrus_insn): Rename to ...
2274         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
2275         of CIRRUS_NO with CIRRUS_NOT.
2276         (cirrus_reorg): Use renamed functions.
2277         (note_invalid_constants): Change from a void function to bool.
2278         Add an extra parameter, saying whether the fixups should be
2279         pushed.  Return true if fixups are needed.
2280         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
2281         of CIRRUS_NO with CIRRUS_NOT.
2282         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
2283         other floating point co-processors can also affect this.
2284         * config/arm/arm.md ("type" attribute): Add mav_farith and
2285         mav_dmult.  Replace references to "cirrus_type" attribute with
2286         "type".
2287         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
2288         ("cirrus_type" attribute): Delete - use "type" instead.
2289         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
2290         'normal'.
2291
2292 Tue Feb 25 22:46:27 CET 2003  Jan Hubicka  <jh@suse.cz>
2293
2294         * objc-act.c: Include cgraph.h
2295         (mark_referenced_methods): New function.
2296         (objc_init): Call it.
2297         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
2298
2299         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
2300         mode.
2301
2302         * optabs.c (expand_fix): Do not widen the input operand.
2303
2304         * expr.c (emit_group_store):  Fix crash when converting single
2305         register into complex register.
2306
2307         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
2308         * alias.c: Include timevar.h
2309         (init_alias_analysis):  Set timevar
2310         * jump.c: Include timevar.h
2311         (rebuild_jump_labels):  Set timevar
2312         * regcalss.c: Include timevar.h
2313         (reg_scan):  Set timevar
2314         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
2315
2316 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2317
2318         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
2319
2320         * Makefile.in (loop-unroll.o): New.
2321         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
2322         (unroll_and_peel_loops): Declare.
2323         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
2324         flag_old_unroll_loops.
2325         * loop.c (loop_invariant_p): Ditto.
2326         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
2327         flag_old_unroll_all_loops.
2328         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
2329         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
2330         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
2331         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
2332         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
2333         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
2334         PARAM_MAX_ONCE_PEELED_INSNS): New.
2335         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
2336         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
2337         instead of old one.
2338         (flag_peel_loops): New.
2339         (lang_independent_options): The new flags added.
2340         (rest_of_compilation): Call new unroller.
2341         (process_options): Setup flags for coexistence of old and new unroller.
2342         * doc/invoke.texi: Document new options.
2343         * doc/passes.texi: Document new unroller pass.
2344
2345 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
2346
2347         * fixinc/fixincl.x: Regenerate
2348
2349 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
2350
2351         * function.c (assign_parms): Set reg_attrs for parameters passed in
2352         registers.
2353
2354 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
2355
2356         PR target/9681
2357         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
2358
2359 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
2360
2361         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
2362         pseudo-op.
2363
2364 2003-02-25  Roger Sayle  <roger@eyesopen.com>
2365
2366         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
2367         * cse.c (invalidate_skipped_set):  Likewise.
2368         * integrate.c (subst_constants):  Likewise.
2369         * jump.c (reversed_comparison_code_parts):  Likewise.
2370         * loop.c (canonicalize_condition):  Likewise.
2371         * simplify-rtx.c (simplify_relational_operation):  Likewise.
2372
2373 2003-02-25  Roger Sayle  <roger@eyesopen.com>
2374
2375         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
2376         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
2377         the appropriate macro to define built-in function.
2378         (fmod,fmodf,fmodl): New built-in functions.
2379
2380         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
2381
2382 2003-02-25  Richard Henderson  <rth@redhat.com>
2383
2384         * config/i386/i386.c (function_arg): Pass variable sized
2385         structures correctly on the stack.
2386
2387 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
2388
2389         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
2390         does not reduce the cost of SET.
2391
2392 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2393
2394         PR target/9732
2395         * config/rs6000/rs6000.c (first_reg_to_save): Handle
2396         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
2397         (rs6000_emit_prologue): Likewise.
2398         (rs6000_emit_epilogue): Likewise.
2399         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
2400         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
2401
2402 2003-02-25  Richard Henderson  <rth@redhat.com>
2403
2404         * real.c (real_to_integer2): Force overflow result only for
2405         unsigned overflow.
2406
2407 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
2408
2409         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
2410
2411 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2412             Richard Henderson  <rth@redhat.com>
2413
2414         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
2415         there is no similar load.
2416
2417 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
2418             Richard Henderson  <rth@redhat.com>
2419
2420         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
2421         sched-rgn.c.
2422         (add_forward_dependence): New function prototype.
2423
2424         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
2425         sched-init.h.
2426         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
2427         them to haifa-sched.c.
2428
2429         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
2430         haifa_classify_insn): Move them from sched-rgn.c.
2431
2432         * sched-deps.c (add_dependence): Return flag of creating a new
2433         entry.
2434         (add_forward_dependence): New function.
2435         (compute_forward_dependences): Use the function.
2436
2437         * sched-ebb.c (earliest_block_with_similiar_load): New function.
2438         (add_deps_for_risky_insns): New function.
2439         (schedule_ebb): Call the function.
2440
2441 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
2442
2443         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
2444         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
2445
2446         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
2447         opaque types fail.
2448
2449         * c-typeck.c (comptypes): Change call to vector_types_compatible
2450         to vector_opaque_p.
2451         (convert_for_assignment): Call vector_opaque_p instead of
2452         vector_types_compatible.
2453         (really_start_incremental_init): Disallow initialization of opaque
2454         types.
2455
2456         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
2457         Define TARGET_VECTOR_OPAQUE_P.
2458         (TARGET_INITIALIZER): Same.
2459
2460         * target.h (struct gcc_target): Remove vector_types_compatible.
2461         Add vector_opaque_p.
2462
2463         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
2464         Remove.
2465         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
2466         a vector type.  Change return type to bool.
2467         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
2468         (TARGET_VECTOR_OPAQUE_P): Define.
2469
2470         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
2471         target hook.
2472         Include target.h.
2473         (cp_parser_init_declarator): Fix typo in function comments.
2474
2475 Tue Feb 25 12:35:34 CET 2003  Jan Hubicka  <jh@suse.cz>
2476
2477         * Makefile.in (lcm.o):  Add dependency on function.h
2478         * lcm.c (function.h): Include.
2479         * i386.c (machine_function, ix86_stack_locals,
2480         * ix86_save_varrargs_registers) : Move to
2481         ...
2482         * i386.h (machine_function, ix86_stack_locals,
2483         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
2484         (ix86_optimize_mode_switching): New.
2485         * i386.md (fix patterns): Set ix86_optimize_mode_switching
2486
2487 2003-02-25  Nick Clifton  <nickc@redhat.com>
2488
2489         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
2490         of fourth arg is 'fndecl' not 'indirect'.  Update comment
2491         describing the function's parameters.
2492
2493 Mon Feb 24 22:08:22 CET 2003  Jan Hubicka  <jh@suse.cz>
2494
2495         * combine.c (simplify_shift_const):  Fix previous patch.
2496
2497 2003-02-24  Jeff Law  <law@redhat.com>
2498
2499         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
2500         alternative.
2501         (testsi_1, testhi_1, testqi_1): Likewise.
2502
2503 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2504
2505         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
2506         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
2507         * doc/extend.texi (Tru64 Pragmas): Reflect this.
2508
2509         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
2510         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
2511         * fixinc/fixincl.x: Regenerate.
2512         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
2513         testcase.
2514         Fixes PR c/5059, c/6126, other/9671.
2515
2516 2003-02-24  Roger Sayle  <roger@eyesopen.com>
2517
2518         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
2519         from handle_braces in "%{...}".
2520
2521 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2522
2523         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
2524         (prepare_move_operands): Handle TLS operands.
2525         (tls_symbolic_operand): New.
2526         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
2527         (legitimize_pic_address): Do nothing for the TLS symbol.
2528         (sh_encode_section_info): Handle TLS case.
2529         (sh_strip_name_encoding): Drop TLS encoding.
2530         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
2531         * config/sh/sh.h (SH_TLS_ENCODING): Define.
2532         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
2533         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
2534         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
2535         * config/sh/sh.md: Define TLS UNSPEC constants.
2536         (type): Add tls_load.
2537         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
2538         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
2539         ("tls_initial_exec"): New insn.
2540         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
2541         ("load_gbr"): New insn.
2542
2543         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
2544         * configure: Regenerate.
2545
2546 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
2547
2548         PR 9297, PR 9722
2549         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
2550         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
2551         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
2552         (enum block_op_methods): Reorder for better store_expr optimization.
2553         * expr.c (store_expr): Test bit 1 of "want_value" for call param
2554         stores, test bit 0 for original want_value meaning.  Pass
2555         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
2556         recursive calls, and calls to expand_param.
2557         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
2558         expected, set target to 0 rather than to subtarget.  Formatting.
2559
2560 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2561
2562         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
2563
2564 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2565
2566         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
2567         new default behavior.
2568         * ggc-common.c: Include sys/resource.h.
2569         (ggc_rlimit_bound): New function.
2570         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
2571         defaults to account for rlimits.
2572
2573 2003-02-22  Richard Henderson  <rth@redhat.com>
2574
2575         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
2576
2577 2003-02-22  Kelley Cook <kelley@dwhoops.info>
2578
2579         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
2580         (ix86_tune_string): Rename from ix86_cpu_string.
2581
2582 2003-02-22  Kelley Cook <kelleycook@comcast.net>
2583
2584         * config/i386/i386.c: Replace "mcpu" with "mtune".
2585         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
2586         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
2587         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
2588         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
2589
2590 2003-02-23  Andreas Schwab  <schwab@suse.de>
2591
2592         * config.gcc: Delete references to m68k/t-linux and
2593         m68k/t-linux-aout.
2594         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
2595
2596 Sat Feb 22 20:22:19 CET 2003  Jan Hubicka  <jh@suse.cz>
2597
2598         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
2599         of track scheduling patch.
2600
2601 Sat Feb 22 19:29:28 CET 2003  Jan Hubicka  <jh@suse.cz>
2602
2603         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
2604         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
2605
2606 Sat Feb 22 12:42:16 CET 2003  Jan Hubicka  <jh@suse.cz>
2607
2608         * c-decl.c (c_expand_body_1): Fix.
2609
2610 Sat Feb 22 03:13:36 CET 2003  Jan Hubicka  <jh@suse.cz>
2611
2612         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
2613
2614         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
2615         when not optimizing.
2616         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
2617         when not expensive.
2618         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
2619         optimizing;  Delete trivially dead insns early; fix optimize check.
2620
2621         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
2622         dependency on cgraph.h
2623         * c-decl.c: Include cgraph.h
2624         (finish_function): Update call of tree_inlinable_function_p.
2625         * c-objc-common.c: Include cgraph.h
2626         * cgraph.h: New file.
2627         * cgraphunit.c: New file.
2628         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
2629         (cgraph_nodes, cgraph_n_nodes): Globalize.
2630         (cgraph_finalize_function, cgraph_finalize_compilation_unit
2631         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
2632         Move into cgraphunit.c
2633         * tree-inline.c: Include cgraph.h
2634         * tree-inline.c: Include cgraph.h
2635
2636 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
2637
2638         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
2639         for copying a register.
2640
2641 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2642
2643         PR other/3782
2644         * toplev.c (process_options): If flag_detailed_statistics is set,
2645         then set time_report as well.
2646
2647         PR c/8828
2648         * jump.c (never_reached_warning): Don't fall through BARRRIER
2649         insns.  Update comments to reflect what the function really does.
2650
2651 2003-02-21  Roger Sayle  <roger@eyesopen.com>
2652
2653         * fold-const.c (omit_one_operand): No longer static.
2654         * tree.h (omit_one_operand): Prototype here.
2655         (div_and_round_double): Keep fold-const.c prototypes together.
2656         * builtins.c (builtin_mathfn_code): Handle binary built-in
2657         funtions, such as "pow" and "atan2".
2658         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
2659         Simplify optimizations using "type" the builtin's return type.
2660
2661 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
2662
2663         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
2664         Fix functionalization typo.
2665
2666         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
2667         in an asm.
2668
2669 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2670
2671         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
2672         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
2673         documentation.
2674         * ggc-common.c: Include params.h
2675         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
2676         init_ggc_heuristics): New functions.
2677         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
2678         init_ggc_heuristics): Prototype.
2679         * toplev.c (print_version):  Output GGC heuristics.
2680         (parse_options_and_default_flags): Call init_ggc_heuristics.
2681
2682 Sat Feb 22 02:35:07 CET 2003  Jan Hubicka  <jh@suse.cz>
2683
2684         * i386.c (def_builtin):  Special case 64bit builtins.
2685         (MASK_SSE164, MASK_SSE264): New constants.
2686         (builtin_description): Add 64bit builtins.
2687         (ix86_init_mmx_sse_builtins): Likewise.
2688         * i386.h (enum ix86_builtins): Likewise.
2689         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
2690         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
2691         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
2692         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
2693         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
2694         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
2695         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
2696
2697 Sat Feb 22 00:48:22 CET 2003  Jan Hubicka  <jh@suse.cz>
2698
2699         * i386.c (builtin_description): Add __builtin_ia32_paddq and
2700         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
2701          and __builtin_ia32_psubq128.
2702         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
2703         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
2704         (mmx_adddi3, mmx_subdi3): New.
2705         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
2706         * xmmintrin.h (_mm_movepi64_pi64): New.
2707         (_mm_add_epi64, _mm_sub_epi64): fix.
2708         (_mm_mul_pu16): Rename to...
2709         (_mm_mul_su32): ... this one.
2710
2711         * builtins.c (expand_builtin_expect):  Do not predict
2712         flag_guess_branch_prob is not set.
2713         * c-semantics.c (expand_stmt): Likewise.
2714         * predict.c (predict_insn): Likewise.
2715         * stmt.c (expand_continue_loop): Likewise.
2716         * toplev.c (rest_of_compilation): Do not call
2717         note_prediction_to_br_prob and note_prediction_to_br_prob
2718         when not optimizing.
2719
2720 Fri Feb 21 23:10:13 CET 2003  Jan Hubicka  <jh@suse.cz>
2721
2722         * cfgrtl.c (commit_edge_insertions):  Call
2723         find_many_sub_basic_block only when some code has been emitted.
2724         (commit_edge_insertions_watch_calls): Bring into sync with
2725         commit_edge_insertions
2726
2727 Fri Feb 21 20:41:29 2003  J"orn Rennecke <joern.rennecke@superh.com>
2728
2729         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
2730
2731         * sh.md (binary_sf_op): Use extra constant operand instead of
2732         negating constant operand 4.
2733         * sh.c (sh_expand_binop_v2sf): Supply it.
2734
2735 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
2736
2737         * cpphash.h (struct lexer_state): Add directive_wants_padding.
2738         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
2739         for directives of type INCL.
2740         (glue_header_name, parse_include): Use get_token_no_padding.
2741         * cppmacro.c (replace_args): If directive_wants_padding,
2742         provide padding tokens.
2743
2744 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
2745
2746         * config/h8300/h8300.md (a peephole2): New.
2747
2748 Fri Feb 21 11:05:44 CET 2003  Jan Hubicka  <jh@suse.cz>
2749
2750         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
2751         (commit_edge_insertions): Call find_many_sub_basic_blocks
2752
2753         * reg-stack.c (convert_regs): Cleax aux for blocks.
2754
2755 Fri Feb 21 10:29:52 CET 2003  Jan Hubicka  <jh@suse.cz>
2756
2757         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
2758
2759 2003-02-21  Glen Nakamura  <glen@imodulo.com>
2760
2761         PR optimization/8613
2762         * builtins.c (expand_builtin): Emit postincrements before expanding
2763         builtin functions.
2764
2765 2003-02-21  Ben Elliston  <bje@redhat.com>
2766
2767         PR other/5634
2768         * doc/install.texi (Configuration): Explain using $HOME instead of
2769         the ~ metacharacter when referring to home directories.
2770
2771 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2772
2773         * configure.in (TARGET_SYSTEM_ROOT): Set default to
2774         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
2775         '${exec_prefix}' (in addition to the expansion thereof) as
2776         relocatable.
2777         * configure: Rebuilt.
2778
2779 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2780
2781         * config/h8300/h8300.md (addhi3_incdec): Change the name to
2782         *addhi3_incdec.
2783         (addsi3_incdec): Change the name to *addsi3_incdec.
2784
2785 2003-02-20  Roger Sayle  <roger@eyesopen.com>
2786
2787         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
2788
2789 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
2790
2791         PR fortran/9038
2792         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
2793         options to be ignored.
2794         (c_common_decode_option): Ignore them when preprocessing.
2795
2796 Thu Feb 20 21:41:19 CET 2003  Jan Hubicka  <jh@suse.cz>
2797
2798         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
2799         global variables.
2800         (lang_independent_options):  Add -fsched2-use-superblocks
2801         -fsced2-use-traces.
2802         (rest_of_compilation): Deal with it.
2803         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
2804         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
2805         Declare.
2806         * rtl.h (reg_to_stack):  Update prototype.
2807         * reg-stack.c (reg_to_stack): Return when something has changed;
2808         update liveness when executing after superblock scheduling.
2809
2810         * combine.c (simplify_shift_const):  Simplify few special cases
2811         into constants.
2812
2813 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
2814
2815         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
2816         (add.,subf.,neg.): Change attribute to fast_compare.
2817         All DFA descriptions updated.
2818
2819 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
2820
2821         Change base class access representation.
2822         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
2823         TREE_VIA_PRIVATE): Remove.
2824         (BINFO_BASEACCESSES): New binfo elt.
2825         (BINFO_BASEACCESS): New accessor.
2826         (BINFO_ELTS): Increase.
2827         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
2828         (access_public_node, access_protected_node,
2829         access_private_node): New global nodes.
2830         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
2831         * dbxout.c (dbxout_type): Adjust.
2832         * dwarf2out.c (gen_inheritance_die): Add access parameter.
2833         (gen_member_die): Adjust.
2834         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
2835         (output_type): Adjust.
2836         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
2837
2838         Change base class access representation. Share virtual base
2839         binfos.
2840         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
2841         call.
2842         * cp/class.c (build_base_path): Likewise.
2843         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
2844         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
2845         (make_new_vtable): Adjust.
2846         (force_canonical_binfo_r): Delete.
2847         (force_canonical_binfo): Delete.
2848         (mark_primary_virtual_base): Delete.
2849         (dfs_unshared_virtual_bases): Delete.
2850         (mark_primary_bases): Adjust.
2851         (maybe_warn_about_overly_private_class): Adjust.
2852         (dfs_base_derived_from): Delete.
2853         (base_derived_from): Follow the inheritance chain.
2854         (struct find_final_overrider_data): Add vpath member.
2855         (dfs_find_final_overrider): Adjust.
2856         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
2857         (find_final_overrider): Adjust.
2858         (update_vtable_entry_for_fn): Adjust.
2859         (modify_all_vtables): Adjust.
2860         (walk_subobject_offsets): Adjust.
2861         (layout_nonempty_base_or_field): Adjust.
2862         (layout_empty_base): Remove last parameter. Adjust.
2863         (build_base_field): Adjust.
2864         (build_base_fields): Adjust.
2865         (propagate_binfo_offsets): Remove last parameter. Adjust.
2866         (dfs_set_offset_for_unshared_vbases): Delete.
2867         (layout_virtual_bases): Adjust.
2868         (finish_struct_1): Adjust.
2869         (init_class_processing): Don't init access nodes.
2870         (dfs_get_primary_binfo): Delete.
2871         (get_primary_binfo): Adjust.
2872         (dump_class_hierarchy_r): Remove most derived arg, add IGO
2873         parameter. Adjust.
2874         (dump_class_hierarchy): Adjust.
2875         (finish_vtbls): Adjust.
2876         (get_original_base): Delete.
2877         (build_vtt_inits): Adjust.
2878         (dfs_build_secondary_vptr_vtt_inits): Adjust.
2879         (dfs_ctor_vtable_bases_queue_p): Adjust.
2880         (build_ctor_vtbl_group): Adjust.
2881         (dfs_accumulate_vtbl_inits): Adjust.
2882         (build_vtbl_initializer): Adjust.
2883         (build_vbase_offset_vtbl_entries): Adjust.
2884         (add_vcall_offset_vtbl_entries_1): Adjust.
2885         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
2886         (access_*_node): Remove.
2887         (CANONICAL_BINFO): Delete.
2888         (BINFO_UNSHARED_MARKED): Remove.
2889         (BINFO_MARKED): Set LANG_FLAG_0 directly.
2890         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
2891         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
2892         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
2893         Delete.
2894         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
2895         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
2896         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
2897         Delete.
2898         (BINFO_DEPENDENT_BASE_P): New.
2899         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
2900         index.
2901         (markedp, unmarkedp): Adjust.
2902         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
2903         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
2904         find_vbase_instance, binfo_for_vbase): Delete.
2905         (copied_binfo, original_binfo): Declare.
2906         (finish_base_specifier): Add virtual_p arg.
2907         (unshare_base_binfos): Delete.
2908         (copy_base_binfos): Declare.
2909         (reverse_path): Delete.
2910         * cp/decl.c (xref_basetypes): Access and virtuality passed
2911         differently. Don't copy direct base binfos here. Call
2912         copy_base_binfos.
2913         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
2914         (initialize_vtbl_ptrs): Adjust.
2915         (expand_member_init): Adjust.
2916         * cp/parser.c (cp_parser_base_specifier): Adjust.
2917         * cp/pt.c (instantiate_class_template): Adjust.
2918         (get_template_base_recursive): Adjust.
2919         * cp/rtti.c (get_pseudo_ti_init): Adjust.
2920         (get_pseudo_ti_desc): Adjust.
2921         * cp/tree.c (unshare_base_binfos): Rename to ...
2922         (copy_base_binfos): ... here, reimplement.
2923         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
2924         (reverse_path): Remove.
2925         * cp/typeck.c (get_delta_difference): Adjust error messages.
2926         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
2927         * cp/search.c (lookup_base_r): Adjust.
2928         (dynamic_cast_base_recurse): Adjust.
2929         (canonical_binfo): Remove.
2930         (dfs_canonical_queue): Remove.
2931         (dfs_assert_unmarked_p): Remove.
2932         (assert_canonical_unmarked): Remove.
2933         (shared_marked_p, shared_unmarked_p): Remove.
2934         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
2935         (dfs_access_in_type): Adjust.
2936         (access_in_type): Adjust.
2937         (dfs_accessible_queue_p): Adjust.
2938         (dfs_accessible_p): Adjust.
2939         (is_subobject_of_p_1, is_subobject_of_p): Remove.
2940         (struct lookup_field_info): Remove from_dep_base_p field.
2941         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
2942         (lookup_field_r): Remove dependent base code.
2943         (lookup_member): Likewise.
2944         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
2945         (dfs_unmarked_real_bases_queue_p): Remove.
2946         (dfs_marked_real_bases_queue_p): Remove.
2947         (dfs_skip_vbases): Remove.
2948         (dfs_get_pure_virtuals): Adjust.
2949         (markedp, unmarkedp): Adjust.
2950         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
2951         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
2952         (dfs_unmark): Adjust.
2953         (dfs_get_vbase_types):Remove.
2954         (dfs_build_inheritance_graph_order): Remove.
2955         (get_vbase_types): Remove
2956         (dfs_find_vbase_instance): Remove.
2957         (find_vbase_instance): Remove.
2958         (dfs_debug_unmarkedp): Adjust.
2959         (dependent_base_p): Remove.
2960         (dfs_push_type_decls): Adjust.
2961         (dfs_push_decls): Adjust.
2962         (dfs_no_overlap_yet): Adjust.
2963         (copied_binfo): New function.
2964         (original_binfo): New function.
2965         (binfo_for_vbase): Remove.
2966
2967         Change base class access representation.
2968         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
2969         (add_interface_do): Likewise.
2970
2971 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
2972
2973         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
2974         * config/rs6000/power4.md (power4-store,power4-vecstore): New
2975         insn reservations.
2976         (power4-fpstore): Compact.
2977
2978 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
2979
2980         * config/h8300/h8300.md (*iorsi3_w): New.
2981
2982 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
2983
2984         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
2985         * rtl.c (reg_note_name): Likewise.
2986         * rtl.h (enum reg_note): Likewise.
2987         * doc/invoke.texi: Likewise.
2988         * doc/rtl.texi: Likewise.
2989
2990 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
2991
2992         * bb-reorder.c (find_traces_1_round): Fix comment typo.
2993
2994 2003-02-19  Roger Sayle  <roger@eyesopen.com>
2995
2996         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
2997         addition in the presence of signaling NaNs.
2998
2999 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
3000
3001         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
3002
3003 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3004
3005         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
3006         ORing with 0xffff??00 with the highest bit of the ?? part set.
3007         (compute_logical_op_length): Update.
3008         (compute_logical_op_cc): Likewise.
3009
3010 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
3011
3012         * bb-reorder.c (find_traces_1_round): Fixed condition for small
3013         destination block with multiple predecessors.
3014         (connect_traces): Check whether the block is a start of trace.
3015
3016 Wed Feb 19 19:00:24 CET 2003  Jan Hubicka  <jh@suse.cz>
3017
3018         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
3019         * function.c (assign_params): Likewise.
3020         * arm-protos.h (arm_init_cumulative_args): Update prototype.
3021         * arm.c (arm_init_cumulative_args): Update function.
3022         * arm.h (INIT_CUMULATIVE_ARGS): Update.
3023         * avr-protos.h (init_cumulative_args): Update prototype.
3024         * avr.c (init_cumulative_args): Update function.
3025         * avr.h (INIT_CUMULATIVE_ARGS): Update.
3026         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
3027         * d30v.c (d30v_init_cumulative_args): Update function.
3028         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
3029         * frv-protos.h (frv_init_cumulative_args): Update prototype.
3030         * frv.c (frv_init_cumulative_args): Update function.
3031         * frv.h (INIT_CUMULATIVE_ARGS): Update.
3032         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
3033         * pa.h (INIT_CUMULATIVE_ARGS): Update.
3034         * sparc-protos.h (init_cumulative_args): Update prototype.
3035         * sparc.c (init_cumulative_args): Update function.
3036         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
3037         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
3038
3039 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3040
3041         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
3042         (*ashiftsi_sextqi_7): Likewise.
3043
3044 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3045
3046         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
3047         ISO C99 and C++.
3048
3049         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
3050         for C++ on IRIX 6.5.1[89].
3051         * fixinc/tests/base/internal/sgimacros.h: New file.
3052
3053         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
3054         * fixinc/tests/base/internal/wchar_core.h: New file.
3055
3056         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
3057         socklen_t definition.
3058         * fixinc/fixincl.x: Regenerate.
3059         * fixinc/tests/base/sys/socket.h: New file.
3060         Fixes PR libgcj/9652.
3061
3062 Wed Feb 19 17:22:51 CET 2003  Jan Hubicka  <jh@suse.cz>
3063
3064         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
3065
3066 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
3067
3068         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
3069         align_jumps_max_skip and align_loops_max_skip.
3070
3071 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
3072
3073         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
3074         test size if named section.
3075
3076 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
3077
3078         * expr.c (expand_expr): Use gen_int_mode for the argument
3079         to gen_rtx_MULT.
3080
3081 Wed Feb 19 14:22:42 CET 2003  Jan Hubicka  <jh@suse.cz>
3082
3083         * i386.md (cosxf2):  Fix conditional.
3084
3085 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3086
3087         * config/h8300/h8300.md (extendqisi2): Change to an expander.
3088         (*extendqisi2_h8300): New.
3089         (*extendqisi2_h8300hs): Likewise.
3090
3091 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3092
3093         * config/h8300/h8300-protos.h: Update the prototype for
3094         split_adds_subs.  Remove the prototypes for
3095         const_int_le_2_operand and const_int_le_6_operand.
3096         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
3097         (const_int_le_2_operand): Remove.
3098         (const_int_le_6_operand): Likewise.
3099         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
3100         for const_int_le_2_operand and const_int_le_6_operand.
3101         * config/h8300/h8300.md: Update all uses of split_adds_subs.
3102         (a peephole2): New.
3103
3104 Tue Feb 18 23:50:59 CET 2003  Jan Hubicka  <jh@suse.cz>
3105
3106         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
3107         (cgraph_expand_function): Rewrite.
3108
3109 2003-02-18  Matt Austern <austern@apple.com>
3110
3111         * toplev.c, langhooks.c, langhooks-def.h: Move
3112         write_global_declarations from toplev.c to langhooks.c.
3113
3114 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3115
3116         * config/h8300/h8300.c (general_operand_src): Always check
3117         MODE.
3118         (general_operand_dst): Likewise.
3119
3120 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3121
3122         * convert.c (convert_to_real): Also optimize (float)log(x) into
3123         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
3124
3125 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3126
3127         * config/sh/sh.c (unspec_caller_rtx_p): New.
3128         (sh_cannot_copy_insn_p): New.
3129         (TARGET_CANNOT_COPY_INSN_P): New.
3130
3131 2003-02-18  Richard Henderson  <rth@redhat.com>
3132
3133         * c-common.c (handle_used_attribute): Accept static data too.
3134
3135 2003-02-18  Nick Clifton  <nickc@redhat.com>
3136             Aldy Hernandez  <aldyh@redhat.com>
3137
3138         * testsuite/gcc.dg/20030218-1.c: New.
3139
3140         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
3141
3142         * target-def.h (TARGET_INITIALIZER): Add
3143         TARGET_VECTOR_TYPES_COMPATIBLE.
3144         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
3145
3146         * target.h (struct gcc_target): Add field vector_types_compatible.
3147
3148         * c-typeck.c (comptypes): Take into account
3149         TARGET_VECTOR_TYPES_COMPATIBLE.
3150         (convert_for_assignment): Same.
3151
3152         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
3153         (rs6000_spe_vector_types_compatible): New.
3154         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
3155
3156 2003-02-19  Andreas Schwab  <schwab@suse.de>
3157
3158         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
3159         * toplev.c: Include langhooks-def.h.
3160
3161 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
3162
3163         * config/mips/mips.h (enum processor_type): Sort entries
3164         alphabetically.
3165         * config/mips/mips.md (define_attr cpu): Sync with processor_type
3166         enum values, including adding entries that were missing.
3167
3168 Tue Feb 18 20:15:54 2003  J"orn Rennecke <joern.rennecke@superh.com>
3169
3170         * sh.c (calc_live_regs): Also check GET_CODE when checking if
3171         initial value for PR_REG is still the PR_REG register.
3172
3173 2003-02-18  Jim Wilson  <wilson@redhat.com>
3174
3175         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
3176         instruction in output template.
3177         (bsp_value): Change output template from string to C code, add %,
3178         before actual instruction.
3179         (flushrs): Mark as not predicable.
3180
3181 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
3182
3183         * inclhack.def (netbsd_bogus_semicolon): New fix.
3184         * fixincl.x: Rebuilt.
3185         * tests/base/ctype.h: Update.
3186
3187 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3188
3189         * fold-const.c (negate_expr_p): New function to determine whether
3190         an expression can be negated cheaply.
3191         (fold) [MINUS_EXPR]: Use it to determine whether to transform
3192         -A - B into -B - A for floating point types.
3193
3194 2003-02-18  Roger Sayle  <roger@eyesopen.com>
3195
3196         * sbitmap.c (sbitmap_resize): New function.
3197         * sbitmap.h (sbitmap_resize): Prototype here.
3198         * recog.c (split_all_insns): Use sbitmap_resize.
3199
3200 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3201
3202         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
3203         insn length.
3204         (extendqisi2): Likewise.
3205         (*extendhisi2_h8300): Likewise.
3206
3207 2003-02-18  Matt Austern <austern@apple.com>
3208
3209         * langhooks.h, langhooks-def.h: introduce new langhook,
3210         final_write_globals, with write_global_declarations as default.
3211         * toplev.c: Move invocation of wrapup_global_declarations from
3212         compile_file to new function, write_global_declarations.  Change
3213         compile_file to use final_write_globals hook.  Change
3214         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
3215         conditional.
3216
3217 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3218
3219         * pa.md: Correct and enhance comment.
3220
3221 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
3222
3223         * gcc.c (validate_switches): Don't scan past closing '}'.
3224
3225 2003-02-18  Ben Elliston  <bje@redhat.com>
3226
3227         PR c++/1607
3228         * doc/extend.texi (Function Attributes): Document the effect of
3229         the C++ "this" parameter on the counting of arguments for the
3230         "format" and "format_arg" attributes.
3231
3232 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
3233
3234         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
3235         (__ev_stdw): Same.
3236         (__ev_stdh): Same.
3237
3238 Mon Feb 17 16:16:54 CET 2003  Jan Hubicka  <jh@suse.cz>
3239
3240         * recog.c (split_all_insns):  Fix memory overflow.
3241
3242 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3243
3244         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
3245         (cmphi): Likewise.
3246         (*cmphi_h8300): Likewise.
3247         (*cmphi_h8300hs): Likewise.
3248         (cmpsi): Likewise.
3249         (7 peephole2): Likewise.
3250
3251 Sun Feb 16 23:07:52 CET 2003  Jan Hubicka  <jh@suse.cz>
3252
3253         * c-typeck.c (build_c_cast):  Fold constant variables into
3254         initial values.
3255
3256 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3257
3258         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
3259         (Binaries): Ditto for Sinix/Reliant Unix.
3260
3261 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
3262
3263         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
3264         not overlap the final result register.
3265
3266 2003-02-16 Arend Bayer <arend.bayer@web.de>
3267            Richard Henderson  <rth@redhat.com>
3268
3269         PR c/8068
3270         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
3271         rearrange mult arguments for less recursion.
3272         (extract_muldiv): New.  Prevent runaway recursion.
3273
3274 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
3275
3276         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
3277         MASK_ALIGN_DOUBLE.
3278
3279 2003-02-15  Roger Sayle  <roger@eyesopen.com>
3280
3281         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
3282         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
3283         (ext_80387_constants_table): Global table of 80387 special constants
3284         guarded by ext_80387_constants_init flag when not initialized.
3285         (init_ext_80387_constants): New function to initialize this table.
3286         (standard_80387_constant_p): Extend to recognize extra 80387
3287         constants, in XFmode, on processors where this is a win.
3288         (standard_80387_constant_opcode): New function to return the
3289         opcode associated with standard_80387_constant_p.
3290         (standard_80387_constant_rtx): New function to return the XFmode
3291         CONST_DOUBLE associated with standard_80387_constant_p.
3292         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
3293
3294         * config/i386/i386-protos.h (standard_80387_constant_opcode):
3295         Prototype here.
3296         (standard_80387_constant_rtx): Likewise.
3297
3298         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
3299         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
3300         *movtf_integer): Simplify using new standard_80387_constant_opcode.
3301
3302 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
3303
3304         * doc/invoke.texi (Optimize Options): Correct @option syntax.
3305
3306 2003-02-15  Richard Henderson  <rth@redhat.com>
3307
3308         * Makefile.in (cfglayout.o): Depend on TARGET_H.
3309         * cfglayout.c: Include target.h.
3310         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
3311         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
3312         * target.h (struct gcc_target): Add cannot_copy_insn_p.
3313
3314         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
3315         (TARGET_CANNOT_COPY_INSN_P): New.
3316         (override_options): Revert 2003-02-08 hack.
3317
3318 2003-02-15  Richard Henderson  <rth@redhat.com>
3319
3320         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
3321         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
3322
3323 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
3324
3325         * config/rs6000/rs6000.h (processor_type): Add PPC440.
3326         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
3327         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
3328         TARGET_SCHED_VARIABLE_ISSUE): Define.
3329         (rs6000_use_dfa_pipeline_interface): New function.
3330         (rs6000_multipass_dfa_lookahead): New Function.
3331         (rs6000_variable_issue): New function.
3332         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
3333         (rs6000_issue_rate): Add PPC440.
3334         * config/rs6000/rs6000.md (unspec list): Correct typo.
3335         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
3336         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
3337         cmp, delayed_cr, mfcr, mtcr.
3338         (automata_option): Set "ndfa".
3339         (extendMMNN2): Update attributes.
3340         (movcc_internal1): Discourage move to non-cr0.  Update
3341         attributes.
3342         (movMM_update): Update attributes.
3343         (cmpMM_internal): Update attributes.
3344         (sCC CR materialization): Update attributes.
3345         (branch patterns): Do not discourage non-cr0.
3346         (cr logical patterns): Prefer destructive register allocation.
3347         Update attributes.
3348         (movesi_from_cr): Update attribute.
3349         (mtcrf_operation): Update attribute.
3350         (mtcrfsi): Update attribute.
3351         * config/rs6000/40x.md: New file.
3352         * config/rs6000/603.md: New file.
3353         * config/rs6000/6xx.md: New file.
3354         * config/rs6000/7450.md: New file.
3355         * config/rs6000/7xx.md: New file.
3356         * config/rs6000/mpc.md: New file.
3357         * config/rs6000/power4.md: New file.
3358         * config/rs6000/rios1.md: New file.
3359         * config/rs6000/rios2.md: New file.
3360         * config/rs6000/rs64.md: New file.
3361         [Some DFA descriptions based on work by Michael Hayes]
3362
3363 2003-02-15  Richard Henderson  <rth@redhat.com>
3364
3365         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
3366         successors with multiple predecessors.
3367         (connect_traces): Try harder to copy traces of length 1.
3368
3369         * function.h (struct function): Add computed_goto_common_label,
3370         computed_goto_common_reg.
3371         * function.c (free_after_compilation): Zap them.
3372         * stmt.c (expand_computed_goto): Use them to produce one
3373         indirect branch per function.
3374
3375 2003-02-15  Richard Henderson  <rth@redhat.com>
3376
3377         * cfgcleanup.c: Include params.h.
3378         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
3379         too many outgoing edges from a block.
3380         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
3381         * params.def (max-crossjump-edges): New.
3382         * doc/invoke.texi: Document it.
3383
3384 2003-02-15  Richard Henderson  <rth@redhat.com>
3385
3386         * recog.c (split_all_insns): Include new blocks in life update;
3387         do a global life update.
3388
3389 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
3390
3391         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
3392         Update copyright.
3393         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
3394         -mno-cygwin case.
3395
3396 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3397
3398         PR optimization/7702
3399         * reload1.c (reload_cse_simplify_set): Honor
3400         CANNOT_CHANGE_MODE_CLASS.
3401
3402 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
3403
3404         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
3405         function.
3406         * config/mn10300/mn10300-protos.h: Declare it.
3407         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
3408         attribute cc of instructions that may use clr.
3409
3410 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
3411
3412         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
3413         (x - (x & y)) is found.
3414
3415 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3416
3417         * configure.in: Fix typo.
3418         * configure: Regenerate.
3419
3420 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
3421
3422         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
3423
3424 2003-02-13  Adam Nemet  <anemet@lnxw.com>
3425
3426         PR opt/2391
3427         * combine.c: Fix spelling in comment.
3428         (cached_nonzero_bits): New function.
3429         (cached_num_sign_bit_copies): New function.
3430         (nonzero_bits_with_known): New macro.
3431         (num_sign_bit_copies_with_known): New macro.
3432         (nonzero_bits1): Rename from nonzero_bits.  Add three new
3433         arguments.  Change calls from nonzero_bits to
3434         nonzero_bits_with_known.
3435         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
3436         three new arguments.  Change calls from num_sign_bit_copies to
3437         num_sign_bit_copies_with_known.
3438         (nonzero_bits): New macro.
3439         (num_sign_bit_copies): New macro.
3440         (update_table_tick): Don't traverse identical subexpression more
3441         than once.
3442         (get_last_value_validate): Likewise.
3443
3444 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
3445
3446         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
3447         * function.h (struct emit_status): Length of regno_pointer_align
3448         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
3449         not regno_pointer_align_length (i.e. length actually used, not
3450         length as allocated)
3451
3452         * config/i386/i386.c (struct stack_local_entry): New.
3453         (struct machine_function): Replace huge array with alist.
3454         (assign_386_stack_local): Change to match.
3455
3456 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
3457
3458         * inclhack.def (hpux_long_double): Tighten select and add bypass
3459         regexp.
3460         * fixincl.x: Rebuilt.
3461
3462 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
3463
3464         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
3465         edge and block ends with a jump insn it must be simple jump.
3466
3467 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
3468
3469         * Makefile.in (PREPROCESSOR_DEFINES): Add
3470         @TARGET_SYSTEM_ROOT_DEFINE@.
3471         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
3472         is specified or if building a cross compiler.
3473         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
3474         if the sysroot is under $exec_prefix.
3475         * configure: Regenerated.
3476         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
3477         defined.
3478         (struct default_include): Add add_sysroot field.
3479         (cpp_SYSROOT): Declare.
3480         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
3481         field.
3482         (cpp_SYSROOT): New variable.
3483         * cppinit.c (cpp_create_reader): Initialize
3484         CPP_OPTION (pfile, sysroot).
3485         (init_standard_includes): Handle add_sysroot.  Do not
3486         add unrelocated copies of relocated directories.
3487         (COMMAND_LINE_OPTIONS): Add -isysroot.
3488         (cpp_handle_option): Handle -isysroot.
3489         * cpplib.h (struct cpp_options): Add sysroot member.
3490         * gcc.c (The Specs Language): Update description of %I.
3491         (target_system_root_changed): New variable.
3492         (process_command): Conditionalize make_relative_prefix call
3493         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
3494         target_system_root_changed.
3495         (do_spec_1): Add -isysroot to %I.
3496         * doc/invoke.texi (Spec Files): Update description of %I.
3497         * doc/install.texi (--with-sysroot): Update comment about
3498         relocation.
3499
3500 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
3501
3502         * config/h8300/h8300.md (a peephole2): New.
3503
3504 2003-02-13  Robert Lipe <robertlipe@usa.net>
3505             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3506
3507         * doc/install.texi (Specific): Update three SCO-related URLs.
3508
3509 2003-02-13  Andreas Schwab  <schwab@suse.de>
3510
3511         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
3512         Parenthesize properly.
3513         (NPREDECESORS): Parenthesize properly.
3514
3515 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3516
3517         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
3518
3519 2003-02-12  Roger Sayle  <roger@eyesopen.com>
3520
3521         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
3522         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
3523
3524         * reg-stack.c (subst_stack_regs_pat): Add support for binary
3525         UNSPEC instructions (e.g. "fpatan").
3526
3527 2003-02-12  Mike Stump  <mrs@apple.com>
3528
3529         * varray.c (element_size): Remove.
3530         (uses_ggc): Remove.
3531         (element): Add.
3532         (varray_init): Use new interface.
3533         (varray_grow): Use new interface.
3534         (varray_clear): Use new interface.
3535
3536 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
3537
3538         * config/rs6000/spe.h: Add casts to the arguments of the following
3539         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
3540         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
3541         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
3542         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
3543         __ev_get_u16, __ev_get_s16.
3544
3545 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
3546
3547         * config/h8300/h8300.md (a peephole2): New.
3548
3549 Wed Feb 12 22:47:18 CET 2003  Jan Hubicka  <jh@suse.cz>
3550
3551         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
3552         (OBJS): Add callgraph.o
3553         (callgraph.o): New.
3554         * c-decl.c (expand_body_1): Break out from ...
3555         (expand_body): This one;  change calling convention
3556         (finish_function): Move some of expand_body logic here.
3557         (c_expand_deferred_function): Update call of expand_body
3558         (c_expand_stmt): Use c_expand_body_1.
3559         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
3560         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
3561         * c-tree.h (c_expand_body): Declare.
3562         * callgraph.c: New file.
3563         * flags.h (flag_unit_at_a_time): Declare.
3564         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
3565         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
3566         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
3567         * langhooks.h (struct lang_hooks_for_callgraph): New.
3568         (struct lang_hooks): Add callgraph field.
3569         * toplev.c (flag_unit_at_a_time): New.
3570         (lang_independent_options): Add flag_unit_at_a_time.
3571         (process_options): Disable unit-at-a-time mode for frontends not
3572         supporting callgraph.
3573         * tree-inline.c (typedef struct inline_data): Add "decl"
3574         (expand_call_inline): Update callgraph.
3575         (optimize_inline_calls): Set id.decl.
3576         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
3577         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
3578         cgraph_calls_p): Declare.
3579         * invoke.texi (-funit-at-a-time): Document
3580
3581 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
3582
3583         * config/rs6000/spe.h: Fix misc formatting.
3584         (__ev_create_ufix32_fs): Cast ev argument.
3585         (__ev_create_sfix32_fs): Same.
3586         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
3587         (__ev_get_ufix32_fs_internal): Same.
3588
3589 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
3590
3591         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
3592         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
3593
3594 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
3595
3596         * cpplib.c (do_include_common): Move warnings for
3597         #include_next and #import out to callers.  Use early-return
3598         instead of nested ifs.  Don't do check_eol here.
3599         (parse_include): Do check_eol here with the rest of the
3600         parsing stuff.
3601         (do_include_next, do_import): Now handle warnings.
3602
3603 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3604
3605         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
3606
3607 Wed Feb 12 15:19:42 CET 2003  Jan Hubicka  <jh@suse.cz>
3608
3609         * predict.c (estimate_probability):  Fix roundoff error.
3610
3611 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
3612
3613         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
3614         (two peephole2): New.
3615
3616 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
3617
3618         * config/h8300/h8300.md (several peephole2): Replace
3619         find_regno_note with peep2_reg_dead_p.
3620
3621 2003-02-11  Richard Henderson  <rth@redhat.com>
3622
3623         * gcse.c (lookup_set): Remove unused argument PAT.  Update
3624         both callers.
3625
3626 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
3627
3628         * diagnostic.c (real_abort): New.
3629         (diagnostic_report_diagnostic): Call real_abort on error.
3630         * diagnostic.h (diagnostic_abort_on_error): New.
3631         (struct diagnostic_context): Add abort_on_error field.
3632         * toplev.c (setup_core_dumping): New.
3633         (decode_d_option): Handle 'H' case.
3634         * doc/invoke.texi (Debugging Options): Document -dH.
3635
3636 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
3637
3638         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
3639         which refers to obsolete directories.
3640
3641 2003-02-11  Richard Henderson  <rth@redhat.com>
3642
3643         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
3644
3645 Mon Oct 21 17:07:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
3646
3647         * i386.c (contains_128bit_aligned_vector_p): New function.
3648         (ix86_function_arg_boundary): Properly align vector modes.
3649
3650 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
3651
3652         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
3653         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
3654         as a SET pattern.
3655
3656 2003-02-11  Roger Sayle  <roger@eyesopen.com>
3657
3658         * builtins.c:  Fix failure caused by commiting wrong patch.
3659
3660 2003-02-11  Dale Johannesen  <dalej@apple.com>
3661         * ra-build.c (compare_and_free_webs):  Relax checking.
3662         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
3663         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
3664
3665 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
3666
3667         PR optimization/9651
3668         * rtlanal.c (may_trap_p): Handle FIX.
3669
3670 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
3671
3672         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
3673         * doc/invoke.texi: Extra alias.
3674
3675 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
3676
3677         * config/rs6000/host-darwin.c: Fix comment.
3678
3679 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
3680
3681         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
3682         predicate for mod result.
3683
3684 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3685
3686         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
3687         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
3688         * fixincl.x: Rebuilt.
3689         * tests/base/stdlib.h: Update.
3690         * tests/base/ctype.h: New file.
3691
3692 Tue Feb 11 20:44:45 CET 2003  Jan Hubicka  <jh@suse.cz>
3693
3694         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
3695
3696 2003-02-11  Richard Henderson  <rth@redhat.com>
3697
3698         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
3699         appropriated as globals.
3700         (ix86_expand_clrstr): Similarly.
3701         * config/i386/i386.md (cmpstrsi): Similarly.
3702
3703 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3704
3705         * config/h8300/h8300.md (a peephole2): Add a case of 255.
3706
3707 2003-02-11  Roger Sayle  <roger@eyesopen.com>
3708
3709         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
3710         (pow_optab, atan2_optab): Define corresponding macros.
3711         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
3712         * genopinit.c (optabs): Implement pow_optab and atan2_optab
3713         using pow?f3 and atan2?f3 patterns.
3714         * builtins.c (expand_errno_check): New function to update errno
3715         if necessary, split out from expand_builtin_mathfn.
3716         (expand_builtin_mathfn): Use expand_errno_check.
3717         (expand_builtin_mathfn_2): New function to handle expanding binary
3718         math functions, reusing the code in expand_errno_check.
3719         (expand_builtin): Handle the pow and atan2 math built-ins,
3720         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
3721         expand_builtin_mathfn_2.
3722
3723         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
3724
3725 Tue Feb 11 19:03:22 MET 2003  Jan Hubicka  <jh@suse.cz>
3726
3727         * combine.c (combine_simplify_rtx): Fix folding of
3728         nested float_truncates.
3729
3730 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3731
3732         * config/h8300/h8300.md (a peephole2): Fix a typo.
3733
3734 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
3735
3736         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
3737         register number.
3738
3739 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
3740
3741         * config/h8300/h8300-protos.h: Add a prototype for
3742         gtuleu_operator.
3743         * config/h8300/h8300.c (gtuleu_operator): New.
3744         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
3745         * config/h8300/h8300.md (a peephole2): New.
3746
3747 Tue Feb 11 13:32:12 CET 2003  Jan Hubicka  <jh@suse.cz>
3748
3749         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
3750
3751 Tue Feb 11 10:02:54 CET 2003  Jan Hubicka  <jh@suse.cz>
3752
3753         * predict.c (choose_function_section): Choose sections correctly.
3754
3755 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3756
3757         * reload1.c (first_label_num): New.
3758         (reload): Index offsets_known_at and offsets_at using difference of
3759         label number and first label number.  Don't use offset pointers.
3760         (set_label_offsets, set_initial_label_offsets): Likewise.
3761
3762 2003-02-10  Roger Sayle  <roger@eyesopen.com>
3763
3764         * mips-tfile.c (init_file): Add missing initializers in the
3765         "#ifdef __alpha" case.
3766         (file_offset, max_file_offset): Declare as unsigned long.
3767         (write_varray): Cast to "unsigned long" in comparisons against
3768         either file_offset or max_file_offset.
3769         (write_object): Likewise.
3770         (read_seek): Likewise.
3771         (copy_object): Likewise. Declare "ifd" as int to match its use
3772         in add_ext_symbol, and avoid signed/unsigned conditional warning.
3773
3774 2003-02-10  Nick Clifton  <nickc@redhat.com>
3775             Aldy Hernandez  <aldyh@redhat.com>
3776
3777         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
3778         override options which have been specified on the command line.
3779
3780 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
3781
3782         * config/h8300/h8300.md (abssf2): New.
3783         (*abssf2_h8300): Likewise.
3784         (*abssf2_h8300hs): Likewise.
3785
3786 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
3787
3788         * tree.c (build_tree_list):  Fix parameter names in comment.
3789
3790 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
3791
3792         * config/rs6000/ppc64-fp.c: New file.
3793         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
3794
3795 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
3796
3797         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3798         * bb-reorder.c (make_reorder_chain): Deleted.
3799         (make_reorder_chain_1): Deleted.
3800         (find_traces): New function.
3801         (rotate_loop): New function.
3802         (mark_bb_visited): New function.
3803         (find_traces_1_round): New function.
3804         (copy_bb): New function.
3805         (bb_to_key): New function.
3806         (better_edge_p): New function.
3807         (connect_traces): New function.
3808         (copy_bb_p): New function.
3809         (get_uncond_jump_length): New function.
3810         (reorder_basic_blocks): Use new functions (Software Trace Cache).
3811         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
3812         boundaries.
3813
3814 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
3815
3816         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
3817
3818 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
3819
3820         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3821         (DECL_LIVE_RANGE_RTL): Remove.
3822
3823 2003-02-10  Nick Clifton  <nickc@redhat.com>
3824
3825         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
3826         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
3827         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
3828         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
3829         config/arm/freebsd.h, config/arm/linux-elf.h,
3830         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
3831         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
3832         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
3833         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
3834         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
3835         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
3836         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
3837         and reformat as appropriate.
3838
3839 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
3840
3841         * config/h8300/clzsi2.c: Remove.
3842         * config/h8300/ctzsi2.c: Likewise.
3843         * config/h8300/paritysi2.c: Likewise.
3844         * config/h8300/popcountsi2.c: Likewise.
3845         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
3846         ctzsi2, paritysi2, and popcountsi2.
3847
3848 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3849             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
3850
3851         PR c/7741
3852         * c-decl.c (duplicate_decls): Discard the initializer of the
3853         new decl when the types are conflicting.
3854
3855 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
3856
3857         * Makefile.in (sreal.o): Added.
3858         (predict.o): Depends on sreal.h instead of real.h.
3859         * sreal.c: New file.
3860         * sreal.h: New file.
3861         * predict.c: Use sreal.c instead of real.c.
3862
3863 2003-02-10  Nick Clifton  <nickc@redhat.com>
3864
3865         * Contributed support for the Cirrus EP9312 "Maverick"
3866         floating point co-processor.  Written by Aldy Hernandez
3867         <aldyh@redhat.com>.
3868         (config/arm/arm.c): Add Cirrus support.
3869         (config/arm/arm.h): Likewise.
3870         (config/arm/aout.h): Likewise.
3871         (config/arm/arm.md): Likewise.
3872         (config/arm/arm-protos.h): Likewise.
3873         (config.gcc): Likewise.
3874         (doc/invoke.texi): Describe new -mcpu value and new
3875         -mcirrus-fix-invalid-insns switch,
3876         (cirrus.md): New file.
3877
3878 Mon Feb 10 11:40:18 CET 2003  Jan Hubicka  <jh@suse.cz>
3879
3880         * combine.c (combine_simplify_rtx): Simplify using
3881         (float_truncate (float x)) is (float x)
3882         (float_extend (float_extend x)) is (float_extend x).
3883
3884 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
3885
3886         * calls.c (try_to_integrate): Tidy stack_usage_map access.
3887         (emit_library_call_value_1): Likewise.  Formatting.
3888         (store_one_arg): Likewise.
3889
3890 2003-02-09  Nick Clifton  <nickc@redhat.com>
3891             Aldy Hernandez  <aldyh@redhat.com>
3892
3893         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
3894         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
3895         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
3896         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
3897         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
3898         docs.  Add range test for immediate value.
3899
3900 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
3901
3902         Rename spe_evxor to xorv2si3.
3903         (xorv4hi3): New.
3904         (xorv1di3): New.
3905
3906 2003-02-10  Glen Nakamura  <glen@imodulo.com>
3907
3908         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
3909         tag.
3910
3911 Mon Feb 10 00:29:17 CET 2003  Jan Hubicka  <jh@suse.cz>
3912
3913         * i386.c (vector_move_operand): New predicate.
3914         (ix86_expand_vector_move): Be happy about 0.
3915         * i386.h (PREDICATE_CODES): Add sse-move_operand.
3916         * i386.md (mov*_internal): Add 'C' alternative.
3917
3918 Sun Feb  9 23:58:33 CET 2003  Jan Hubicka  <jh@suse.cz>
3919
3920         * i386.md (floathi*): Deal with SSE.
3921
3922 Sun Feb  9 23:54:59 CET 2003  Jan Hubicka  <jh@suse.cz>
3923
3924         * simplify-rtx.c (simplify_unary_operation,
3925         simplify_binary_operation):  Deal with vector modes
3926         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
3927
3928 2002-02-09  Richard Sandiford  <rsandifo@redhat.com>
3929
3930         * toplev.c (rest_of_compilation): Recompute register usage after
3931         split_all_insns.
3932
3933 2003-02-09  Richard Henderson  <rth@redhat.com>
3934
3935         * libgcc-std.ver (__clztf2): New.
3936         (__ctztf2, __popcounttf2, __paritytf2): New.
3937         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
3938         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
3939         adjust code to match the different type sizes.
3940         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
3941         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
3942
3943         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
3944         TImode; select word_mode and twice that.
3945         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
3946         select the modes from float, double, and long double.
3947         (init_optabs): Remove duplicate initializations.
3948
3949 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
3950
3951         * doc/install.texi: Squeeze and streamline section on
3952         testing and regression checking.
3953
3954 Sun Feb  9 13:33:34 CET 2003  Jan Hubicka  <jh@suse.cz>
3955
3956         * i386.md (ahi?v*3): Set third operand type to TImode.
3957         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
3958
3959         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
3960         integer mode.
3961
3962         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
3963         Change code so they are arithmetic expressions now.
3964         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
3965         simplify_ternary_operation): Deal with VEC_* expressions.
3966
3967         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
3968
3969 Sat Feb  8 00:21:22 CET 2003  Jan Hubicka  <jh@suse.cz>
3970
3971         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
3972         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
3973         possibly got duplicated.
3974
3975 2003-02-08  Richard Henderson  <rth@redhat.com>
3976
3977         * config/alpha/alpha.c (override_options): Turn off explicit
3978         relocs until post-peep2 code duplication resolved.
3979
3980 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3981
3982         * optabs.c (expand_unop): Widen clz properly when clz is done
3983         via libcall.
3984
3985 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
3986
3987         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
3988         * config/h8300/crti.asm: Likewise.
3989         * config/h8300/crtn.asm: Likewise.
3990         * config/h8300/ctzsi2.c: Likewise.
3991         * config/h8300/fixunssfsi.c: Likewise.
3992         * config/h8300/h8300-protos.h: Likewise.
3993         * config/h8300/h8300.c: Likewise.
3994         * config/h8300/h8300.h: Likewise.
3995         * config/h8300/h8300.md: Likewise.
3996         * config/h8300/paritysi2.c: Likewise.
3997         * config/h8300/popcountsi2.c: Likewise.
3998         * config/h8300/rtems.h: Likewise.
3999
4000 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4001
4002         * doc/invoke.texi: Documentation for my previous commit.
4003         * doc/passes.texi: Ditto.
4004
4005 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4006
4007         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
4008         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
4009         Declare.
4010         (DLTHE_FLAG_UPDATE_FREQ): New.
4011         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
4012         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
4013         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
4014         fix_bb_placement, fix_bb_placements, place_new_loop,
4015         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
4016         New static functions.
4017         (fix_loop_placement, can_duplicate_loop_p,
4018         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
4019         New functions.
4020
4021         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
4022         unswitch_loops): Declare.
4023         * loop-init.c: New file.
4024         * loop-unswitch.c: New file.
4025         * Makefile.in (loop-init.o, loop-unswitch.o): New.
4026         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
4027         * toplev.c (DFI_loop2): New dump.
4028         (flag_unswitch_loops): New.
4029         (lang_independent_options): Add it.
4030         (rest_of_compilation): Call new loop optimizer.
4031         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
4032
4033 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
4034
4035         * config/h8300/clzsi2.c: New.
4036         * config/h8300/ctzsi2.c: Likewise.
4037         * config/h8300/paritysi2.c: Likewise.
4038         * config/h8300/popcountsi2.c: Likewise.
4039         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
4040
4041 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
4042
4043         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4044         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
4045         (ctzsi2): New pattern.
4046         (ffssi2): Use clz instead of unspec.
4047         (clzdi2): Rename from cntlzd2.
4048         (ctzdi2): New pattern.
4049         (ffsdi2): Use clz instead of unspec.
4050
4051 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
4052
4053         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
4054         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
4055         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
4056         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
4057
4058 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
4059
4060         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
4061
4062 2003-02-07  Richard Henderson  <rth@redhat.com>
4063
4064         PR 9226
4065         * gcse.c (local_cprop_find_used_regs): New.
4066         (local_cprop_pass): Use it.
4067
4068 2003-02-07  Fred Fish  <fnf@intrinsity.com>
4069
4070         * mips-tfile.c (parse_def): Parenthesize assignments to fix
4071         precedence bugs.
4072
4073 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
4074
4075         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
4076
4077 2003-02-07  Roger Sayle  <roger@eyesopen.com>
4078
4079         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
4080         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
4081         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
4082         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
4083         builtin functions (and their __builtin_* variants).
4084         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
4085         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
4086         when not optimizing.
4087
4088         * doc/extend.texi: Document new pow and atan2 builtins, and
4089         their float and long double variants.  Realphabetize builtins.
4090
4091 Fri Feb  7 23:24:28 CET 2003  Jan Hubicka  <jh@suse.cz>
4092
4093         * i386.md (sse2_nandv2di3): Fix.
4094
4095 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
4096
4097         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
4098         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
4099         definition.
4100         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
4101         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
4102
4103 Fri Feb  7 22:22:40 CET 2003  Jan Hubicka  <jh@suse.cz>
4104
4105         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
4106
4107 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
4108
4109         * cfg.c (dump_flow_info): Add back accidently deleted line.
4110
4111 2003-02-07  Andrey Petrov <petrov@netbsd.org>
4112
4113         * optabs.c (expand_float): Search wider integer modes first.
4114
4115 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
4116
4117         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
4118         based on preprocessor flag.
4119
4120 2003-02-07  Roger Sayle  <roger@eyesopen.com>
4121             Richard Henderson  <rth@redhat.com>
4122
4123         * gcse.c (implicit_sets): New.
4124         (compute_hash_table_work): Include them in hash table.
4125         (find_implicit_sets, fis_get_condition): New.
4126         (one_cprop_pass): Allocate and free implicit_sets; call
4127         find_implicit_sets before building hash table.
4128
4129 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
4130
4131         * config/t-netbsd (USER_H): Revert previous change.
4132
4133 2003-02-07  Gabor Greif  <ggreif@lucent.com>
4134
4135         * doc/c-tree.texi (Namespaces): Fix typo.
4136
4137 Fri Feb  7 02:18:57 CET 2003  Jan Hubicka  <jh@suse.cz>
4138
4139         * regrename.c (do_replace, find_oldest_value_reg,
4140         copyprop_hardreg_forward_1): Update register attributes.
4141
4142 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
4143
4144         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
4145         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
4146         variables starting with underscore.
4147         (struct unit_usage): New structure.
4148         (unit_usages, cycle_alt_unit_usages): New global variables.
4149         (check_unit_distribution_in_reserv): Remove it.
4150         (store_alt_unit_usage): New function.
4151         (check_regexp_units_distribution): Rewrite it.
4152
4153 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4154
4155         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
4156         target_cpu_default.
4157         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
4158         if not MASK_NO_SPACE_REGS.
4159         (output_call): Adjust return pointer, don't load new space register
4160         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
4161         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
4162         TARGET_NO_SPACE_REGS is true.
4163         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
4164         conditions.
4165         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
4166         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
4167         true.  Use bve when TARGET_64BIT is true.
4168
4169 2003-02-06  Richard Henderson  <rth@redhat.com>
4170
4171         * combine.c (nonzero_bits): Fix double break.
4172
4173 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
4174             Richard Henderson <rth@redhat.com>
4175
4176         PR c/9530
4177         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
4178         from functions that return a float to functions that don't.
4179
4180 Thu Feb  6 00:18:38 CET 2003  Jan Hubicka  <jh@suse.cz>
4181
4182         * i386.c (x86_inter_unit_moves): New variable.
4183         (ix86_secondary_memory_needed): Fix 64bit case, honor
4184         TARGET_INTER_UNIT_MOVES
4185         * i386.h (x86_inter_unit_moves): Declare.
4186         (TARGET_INTER_UNIT_MOVES): New macro.
4187         * i386.md (movsi_1): Cleanup constraints; disable
4188         when not doing inter-unit moves.
4189         (movsi_1_nointernunit): New.
4190         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
4191         (movdi_1_rex64_nointerunit): New.
4192         (mivsf_1): disable when not doing inter-unit moves.
4193         (movsf_1_nointerunit): New.
4194
4195         * basic-block.h (inside_basic_block_p):  Declare.
4196         * cfgbuild.c (inside_basic_block_p): Make global.
4197         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
4198         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
4199         update CFG.
4200         (fix_basic_block_boundaries, add_missing_bbs): New.
4201         (rank): Use profile.
4202         (scheudle_ebbs): Rely on CFG; update coments.
4203
4204 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
4205
4206         * Makefile.in (host_hook_obj): New.
4207         (OBJS): Add $(host_hook_obj).
4208         (host_default.o): New rule.
4209         * config.gcc (host_hook_obj): New, default to host-default.o.
4210         (powerpc-*-darwin*): Use host-darwin.o.
4211         (out_host_hook_obj): New.
4212         * configure: Regenerate.
4213         * configure.in: Print information about out_host_hook_obj, substitute
4214         into output files.
4215         * host-default.c: New file.
4216         * hosthooks.h: New file.
4217         * toplev.c (general_init): Call host_hooks.extra_signals.
4218         * config/rs6000/host-darwin.c: New file.
4219         * config/rs6000/x-darwin: New file.
4220         * doc/hostconfig.texi: Add documentation for new host hook.
4221         Rearrange existing documentation.
4222
4223 2003-02-05  Roger Sayle  <roger@eyesopen.com>
4224
4225         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
4226         with *targetm.delegitimize_address.
4227         (rtl_for_decl_location): Likewise.
4228         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
4229         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
4230
4231         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
4232         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
4233         prototype.
4234         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
4235         i386_simplify_dwarf_addr.  Made static.  Prototyped.
4236         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
4237         i386_simplify_dwarf_addr to ix86_delegitimize_address.
4238         (ix86_find_base_term): Likewise.
4239         (maybe_get_pool_constant): Likewise.
4240
4241         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
4242         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
4243         prototype.
4244         * config/s390/s390.c (s390_delegitimize_address): Renamed from
4245         s390_simplify_dwarf_addr.  Made static.  Prototyped.
4246         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
4247
4248 2003-02-05  Richard Henderson  <rth@redhat.com>
4249
4250         PR c/8602
4251         * integrate.c (output_inline_function): Reset input_filename
4252         and lineno from the decl before rest_of_compilation.
4253
4254 2003-02-05  Richard Henderson  <rth@redhat.com>
4255
4256         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
4257         (CTZ_DEFINED_VALUE_AT_ZERO): New.
4258         * doc/rtl.texi, doc/tm.texi: Document them.
4259
4260         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
4261         of the value at zero properly.
4262         * fold-const.c (tree_expr_nonnegative_p): Likewise.
4263         * simplify-rtx.c (simplify_unary_operation): Likewise.
4264
4265         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
4266         (CTZ_DEFINED_VALUE_AT_ZERO): New.
4267
4268         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
4269         (TARGET_EXPAND_BUILTIN): Remove.
4270         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
4271         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
4272         (enum arm_builtins): Remove.
4273         * config/arm/arm.md (UNSPEC_CLZ): Remove.
4274         (clzsi2): Rename from clz; use clz instead of unspec.
4275         (ctzsi2): New.
4276         * config/arm/arm-protos.h: Update.
4277
4278 Wed Feb  5 23:12:57 CET 2003  Jan Hubicka  <jh@suse.cz>
4279
4280         * i386-protos.h (x86_emit_floatuns):  Declare.
4281         * i386.c (x86_emit_floatuns): New global function.
4282         * i386.md (floatunssisf2, floatunsdisf2,
4283         floatunsdidf2):  New patterns.
4284
4285 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4286
4287         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
4288
4289 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
4290
4291         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
4292           config/ia64/linux.h
4293
4294 2002-02-05  Roger Sayle  <roger@eyesopen.com>
4295
4296         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
4297
4298 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
4299
4300         PR optimization/8555
4301         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
4302         instead of aborting.
4303
4304 2003-02-04  Richard Henderson  <rth@redhat.com>
4305
4306         * config/i386/i386.md (UNSPEC_BSF): Remove.
4307         (ffssi2): Split into cmove and no_cmove insns and splitters;
4308         lose pentium float trick for now.
4309         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
4310         (ctzsi2, clzsi2, bsr): New.
4311
4312 2003-02-04  Richard Henderson  <rth@redhat.com>
4313
4314         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
4315         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
4316         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
4317         (ffsdi2): Use popcount instead of unspec.
4318         (popcountdi2): Rename from *popcnt.
4319         (ctzdi2, clzdi2, getf_exp_tf): New.
4320
4321 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
4322
4323         * genconfig.c (main): Generate CC0_P.
4324         * rtl.h (CC0_P): Remove.
4325
4326 2003-02-04  Richard Henderson  <rth@redhat.com>
4327
4328         * libgcc2.h, libgcc2.c (__ffsSI2): New.
4329         (__ffsDI2): Rename from __ffsdi2.
4330         * mklibgcc.in (lib2funcs): Add _ffssi2.
4331
4332 2003-02-04  Richard Henderson  <rth@redhat.com>
4333
4334         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
4335         rounds with a "bit table" lookup.
4336
4337 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
4338
4339         * reload.c (find_reloads): Do not use the mode specified in the insn
4340         pattern as reload mode for address operands.  Do not generate optional
4341         reloads for operands where a mandatory reload was already pushed.
4342
4343 2003-02-04  Richard Henderson  <rth@redhat.com>
4344
4345         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
4346         builtins instead of inline assembly.
4347
4348 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4349
4350         PR c/9376
4351         * libgcc2.c (__subvdi3): Fix typo.
4352
4353 Tue Feb  4 21:46:05 CET 2003  Jan Hubicka  <jh@suse.cz>
4354
4355         * i386.md (movti_rex64):  Fix constraint.
4356
4357 Tue Feb  4 18:40:42 CET 2003  Jan Hubicka  <jh@suse.cz>
4358
4359         * i386.md (vector push splitters):  Fix typo in resolving conflict.
4360
4361 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
4362
4363         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
4364
4365 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
4366
4367         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
4368         for recent libstdc++.  Remove formatting cruft.
4369
4370 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
4371
4372         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
4373         attribute even if input file name is absolute, but one of the
4374         includes is relative.
4375
4376 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
4377
4378         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
4379         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
4380         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
4381
4382 2003-02-03  Richard Henderson  <rth@redhat.com>
4383
4384         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4385         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
4386         return type to "int".  Shuffle declarations and undef int trap.
4387         * libgcc2.h: Remove their declarations.
4388         * optabs.c (expand_unop): Force outmode to int for bitops.
4389
4390 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
4391
4392         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
4393         coprocessor registers before floating-point registers.
4394         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
4395         to account for a previously removed register.
4396         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
4397         Delete unused macros.
4398
4399 Mon Feb  3 21:19:11 CET 2003  Jan Hubicka  <jh@suse.cz>
4400
4401         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
4402         (mov*_internal): Fix predicates; require one of operands to not be
4403         memory.
4404         (SSE?MMX move expanders):  Fix predicates; force one of operands to
4405         register.
4406         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
4407         (movups/movupd/movdqu patterns): Force one of operands to not be
4408         memory.
4409
4410 2002-02-03  Roger Sayle  <roger@eyesopen.com>
4411
4412         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
4413         takes a single rtx and returns it unmodified.
4414         * hooks.h (hook_rtx_rtx_identity): Prototype here.
4415         * target.h (struct gcc_target): Add "delegitimize_address"
4416         field to target structure.
4417         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
4418         for delegitimize_address target using hook_rtx_rtx_identity.
4419         (TARGET_INITIALIZER): Initialize delegitimize_address field
4420         using TARGET_DELEGITIMIZE_ADDRESS macro.
4421         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
4422         extensions of constant pool references.  Use delegitimize_address
4423         to undo the obfuscation of "-fpic".
4424         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
4425
4426         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
4427         i386_simplify_dwarf_addr.
4428         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
4429         (maybe_get_pool_constant): Likewise.
4430
4431 Mon Feb  3 16:01:17 CET 2003  Jan Hubicka  <jh@suse.cz>
4432
4433         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
4434
4435 Mon Feb  3 01:30:11 CET 2003  Jan Hubicka  <jh@suse.cz>
4436
4437         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
4438
4439 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4440
4441         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
4442         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
4443
4444 2003-02-02  Andreas Schwab  <schwab@suse.de>
4445
4446         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
4447
4448 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
4449
4450         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
4451         (epilogue_insns): Likewise.
4452
4453 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4454
4455         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
4456
4457 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4458
4459         * pa-protos.h (attr_length_millicode_call): Remove second argument.
4460         (attr_length_indirect_call, attr_length_indirect_call,
4461         attr_length_save_restore_dltp): New prototypes.
4462         * pa.c (attr_length_millicode_call): Remove second argument.  Check
4463         INSN_ADDRESSES_SET_P in distance calculation.
4464         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
4465         INSN_ADDRESSES.
4466         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
4467         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
4468         Call attr_length_call directly.
4469         (attr_length_indirect_call, output_indirect_call,
4470         attr_length_save_restore_dltp): New functions.
4471         * pa.md (attr_length_millicode_call): Drop second argument from all
4472         patterns.
4473         (return_internal_pic): Delete.
4474         (return_external_pic): Remove use of PIC register and pic operand and
4475         flag checks.
4476         (epilogue): Use return_internal for both normal and pic code.
4477         (call, call_value): Emit new 32-bit pic patterns for symref and
4478         indirect calls.  Remove uses for arg pointer and pic register.
4479         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
4480         call_reg_pic_post_reload, call_val_symref_pic,
4481         call_val_symref_pic_post_reload, call_val_reg_pic,
4482         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
4483         Implement define_split and define_peephole2 patterns for pre reload
4484         patterns.
4485         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
4486         call_value_internal_reg_64bit): Shorten names.
4487         (all call patterns): Explicitly indicate registers used and clobbered.
4488         Use attr_length_indirect_call and attr_length_save_restore_dltp for
4489         attribute length calculation.  Move code generation for indirect calls
4490         to output_indirect_call.
4491         (sibcall, sibcall_value): Don't restore PIC register.
4492         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
4493         register retore.
4494
4495 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4496
4497         * doc/install.texi (Testing): Simplify and compress instructions
4498         concerning Dejagnu.
4499
4500 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4501
4502         * collect2.c (pexecute_pid): Rename to pid.
4503         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
4504         pid.
4505
4506 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
4507
4508         * doc/extend.texi (Function Attributes): Remove documentation
4509         for PowerPC Windows NT function attributes..
4510
4511 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
4512
4513         * dwarf2out.c (gen_type_die): Check for typedefs before calling
4514         for TYPE_MAIN_VARIANT.
4515
4516 2003-02-01  Richard Henderson  <rth@redhat.com>
4517
4518         * libgcc2.c: Include auto-host.h.
4519         (ATTRIBUTE_HIDDEN): New.
4520         (__clz_tab): Don't declare here for clz and ctz.
4521         (__clzsi2, __clzdi2): Use count_leading_zeros.
4522         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
4523         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
4524         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
4525         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
4526
4527 2003-02-01  Richard Henderson  <rth@redhat.com>
4528
4529         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
4530         to the conditional.
4531         (ashlsi3_1_zext splitter): Likewise.
4532
4533 2003-02-01  Richard Henderson  <rth@redhat.com>
4534
4535         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
4536         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4537         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
4538         return type to Wtype.
4539
4540         * libgcc-std.ver (GCC_3.4): Fix inheritance.
4541
4542         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
4543         expander input constraint.
4544
4545 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4546
4547         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
4548         OTI_parity.
4549         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
4550         * optabs.c (widen_clz, expand_parity): New.
4551         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
4552         for libcalls to clz, ctz, popcount, and parity.
4553         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
4554         parity_optab, and set up libfunc handlers.
4555         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
4556         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
4557         __popcount_tab): New.
4558         * libgcc2.h: Declare them.
4559         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
4560         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
4561         and parity_optab.
4562         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
4563         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
4564         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
4565         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
4566         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
4567         BUILT_IN_PARITYLL): New.
4568         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
4569         and add optab argument.
4570         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
4571         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
4572         * expr.c (expand_expr): Handle them.
4573         * fold-const.c (tree_expr_nonnegative_p): Likewise.
4574         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
4575         * reload1.c (eliminate_regs): Handle them.
4576         (elimination_effects): Likewise.
4577         * function.c (instantiate_virtual_regs_1): Likewise
4578         * genattrtab.c (check_attr_value): Likewise.
4579         * simplify-rtx.c (simplify_unary_operation): Likewise.
4580         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
4581         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
4582         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
4583         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
4584         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
4585         __builtin_arm_clz.
4586         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
4587         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
4588         * doc/extend.texi (Other Builtins): Add new builtins.
4589         * doc/md.texi (Standard Names): Add new patterns.
4590
4591 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
4592
4593         * reload.c: Revert 2003-01-31 change.
4594
4595 Sat Feb  1 14:14:40 CET 2003  Jan Hubicka  <jh@suse.cz>
4596
4597         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
4598
4599 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
4600
4601         * flags.h (flag_volatile): Remove declaration.
4602         (flag_volatile_global, flag_volatile_static): Likewise.
4603         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
4604         * toplev.c (flag_volatile): Remove definition.
4605         (flag_volatile_global, flag_volatile_static): Likewise.
4606         (f_options): Remove corresponding entries here.
4607         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
4608         or flag_volatile_static.
4609         * doc/invoke.texi: Remove documentation of -fvolatile,
4610         -fvolatile-global and -fvolatile-static.
4611
4612 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4613
4614         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
4615         updating of total_code_bytes from prologue to epilogue.
4616
4617 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
4618
4619         * reload.c (find_reloads): Do not use the mode specified in the insn
4620         pattern as reload mode for address operands.  Do not generate optional
4621         reloads for operands where a mandatory reload was already pushed.
4622         Generate optional reloads only in the final pass though find_reloads.
4623         (have_replacement_p): New function.
4624
4625 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4626
4627         * doc/install.texi (Testing): Remove a reference to our obsolete
4628         /testresults web pages and strip redundant information concerning
4629         test results.
4630         (Binaries): Refer to Microsoft Windows instead of listing all
4631         possible variants.
4632
4633 Sat Feb  1 00:28:30 CET 2003  Jan Hubicka  <jh@suse.cz>
4634
4635         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
4636         RTL chain.
4637
4638         * combine.c (simplify_set): Reverse order of ragumetns to
4639         REG_CANNOT_CHANGE_MODE_P
4640         * df.c (df_def_record_1): Likewise.
4641         * recog.c (register_operand): Likewise.
4642         * simplify-rtx.c (simplify_subreg): Likewise.
4643         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
4644         CANNOT_CHANGE_MODE_CLASS.
4645         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
4646         Likewise.
4647         * reload.c (push_reload): Likewise.
4648         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4649         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4650         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4651         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
4652         * mips.c (mips_cannot_change_mode_class): Update.
4653         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4654         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4655         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4656         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
4657         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
4658         * sh.c (sh_cannot_change_mode_class): Update.
4659         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
4660         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
4661
4662 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
4663
4664         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
4665         change to LINK_COMMAND_SPEC in gcc.c.
4666
4667 2003-01-31  Jan Hubicka  <jh@suse.cz>
4668
4669         PR c/9506
4670         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
4671
4672 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4673
4674         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
4675         duplicated code.
4676
4677 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
4678
4679         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
4680         (BINFO_ELTS): New #define.
4681         * stor-layout.c (finalize_record_size): Don't set them.
4682         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
4683         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
4684         (BINFO_LANG_ELTS): New #define.
4685         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
4686         * java/class.c (make_class): Use BINFO_ELTS.
4687         (set_super_info): Likewse.
4688         (add_interface_do): Likewise.
4689         * objc/objc-act.c (start_class): Use BINFO_ELTS.
4690
4691 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4692
4693         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
4694         (times): Don't ever declare if not HAVE_TIMES.
4695         (clock): Don't ever declare if not HAVE_CLOCK.
4696
4697 2003-01-30  Richard Henderson  <rth@redhat.com>
4698
4699         * flow.c (update_life_info): Zap life info after cleanup_cfg.
4700         (regno_uninitialized): Use correct live at function entry set.
4701         (regno_clobbered_at_setjmp): Likewise.
4702
4703         * expr.c (store_expr): Promote all MEM intermediates to regs.
4704
4705 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4706
4707         * config/arm/arm.c: Fix comment typos.
4708         * config/arm/arm.h: Likewise.
4709         * config/arm/netbsd-elf.h: Likewise.
4710         * config/arm/netbsd.h: Likewise.
4711
4712 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
4713
4714         * gengtype.c (struct walk_type_data): Add needs_cast_p.
4715         (walk_type): Set needs_cast_p in walk_type_data.
4716         (write_types_process_field): Supply casts when required to suppress
4717         warnings.
4718         (write_root): Cast gt_pch_n_S to suppress warning.
4719         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
4720         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
4721         when they might exist.
4722         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
4723         insn-conditions.o, and rs6000.o.
4724
4725 2003-01-30  Richard Henderson  <rth@redhat.com>
4726
4727         * ggc-page.c (G.context_depth_allocations): New.
4728         (G.context_depth_collections): New.
4729         (alloc_page): Set G.context_depth_allocations.
4730         (ggc_collect): Set G.context_depth_collections.
4731         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
4732         (ggc_pop_context): Early exit for no allocations or collections.
4733
4734 2003-01-30  Richard Henderson  <rth@redhat.com>
4735
4736         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
4737
4738 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
4739
4740         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
4741         size, the link register is always saved if any other register is
4742         saved.
4743
4744 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4745
4746         * config/h8300/h8300-protos.h: Update the prototype for
4747         compute_plussi_cc.
4748         (cpp_reader): Declare before it is used.
4749         * config/h8300/h8300.c (compute_plussi_cc): Change the return
4750         type to int.
4751         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
4752         see an unknown H8 variant.
4753
4754 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
4755
4756         PR target/9316
4757         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
4758         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
4759         * config/rs6000/t-rtems: New file. multilib variants to match OS.
4760         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
4761         rs6000/t-ppcgas so we get the desired multilibs.
4762
4763 2003-01-30  Nick Clifton  <nickc@redhat.com>
4764
4765         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
4766         when popping saved IP register off the stack.
4767
4768 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4769
4770         * config/rs6000/aix43.h: Fix comment typos.
4771         * config/rs6000/aix51.h: Likewise.
4772         * config/rs6000/aix52.h: Likewise.
4773         * config/rs6000/altivec.h: Likewise.
4774         * config/rs6000/rs6000.c: Likewise.
4775         * config/rs6000/rs6000.h: Likewise.
4776         * config/rs6000/rs6000.md: Likewise.
4777         * config/rs6000/spe.md: Likewise.
4778
4779 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
4780
4781         * c-common.c (builtin_define_float_constants): Define
4782         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
4783
4784 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
4785
4786         * config/sh/lib1funcs.asm: Fix comment typos.
4787         * config/sh/linux.h: Likewise.
4788         * config/sh/sh.c: Likewise.
4789         * config/sh/sh.md: Likewise.
4790
4791 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
4792
4793         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
4794
4795 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
4796
4797         * config/fp-bit.h (__make_dp): Declare if TMODES.
4798
4799 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
4800
4801         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
4802         general_operand_src and general_operand_dst.
4803
4804 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
4805
4806         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
4807         Return true for variable sized types.
4808         (rs6000_va_arg): Handle variable sized types passed by reference
4809         on non-SVR4 ABI.
4810
4811 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
4812
4813         * arm.c (arm_legtimize_address): New function.
4814         * arm-protos.h (arm_legtimize_address): Add prototype.
4815         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
4816         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
4817         do ... while (0)
4818
4819 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4820
4821         PR bootstrap/9296
4822         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
4823         depended on it being defined until now.
4824
4825 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4826
4827         PR target/9295
4828         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
4829         RTEMS code knows which C++ initialization style the toolset
4830         configuration is using.
4831
4832 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4833
4834         PR bootstrap/9293
4835         * config/m68k/t-crtstuff: Replace spaces with tabs, add
4836          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
4837
4838 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
4839
4840         PR bootstrap/9292
4841         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
4842         RTEMS threads.
4843         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
4844
4845 2003-01-29  Nick Clifton  <nickc@redhat.com>
4846
4847         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
4848         not $(srcdir).
4849
4850 2003-01-29  Andrew Haley  <aph@redhat.com>
4851
4852         * tree-inline.c (walk_tree): Add CHAR_TYPE.
4853
4854 Wed Jan 29 10:26:12 CET 2003  Jan Hubicka  <jh@suse.cz>
4855
4856         * i386.md (subdi3_carry_rex64): Fix typo.
4857
4858 2003-01-28  Stan Shebs  <shebs@apple.com>
4859
4860         * coretypes.h (cpp_reader): Forward declare struct.
4861         * c-pragma.h (cpp_reader): Remove forward declaration.
4862         * hashtable.h (cpp_reader): Likewise.
4863         * scan.h (cpp_reader): Likewise.
4864         * tree.h (cpp_reader): Likewise.
4865         * config/darwin-protos.h (cpp_reader): Likewise.
4866         * config/arm/arm-protos.h (cpp_reader): Likewise.
4867         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
4868         struct cpp_reader in prototypes.
4869
4870 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
4871
4872         * doc/install.texi: Add documentation for installation into
4873         tooldirs and with DESTDIR.
4874
4875 2003-01-28  Richard Henderson  <rth@redhat.com>
4876
4877         * config.gcc (ia64*-*-aix*): Remove.
4878         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
4879         * config/ia64/unwind-aix.c: Remove file.
4880
4881 2003-01-28  Andreas Schwab  <schwab@suse.de>
4882
4883         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
4884         register.
4885         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
4886         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
4887         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
4888         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4889         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
4890         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4891         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
4892
4893 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
4894
4895         * combine.c (nonzero_bits): Fix check for negative divide operands.
4896
4897 2003-01-28  Richard Henderson  <rth@redhat.com>
4898
4899         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
4900         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
4901
4902 2003-01-28  Richard Henderson  <rth@redhat.com>
4903
4904         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
4905
4906         * config/cris/cris.c (cris_address_cost): Make static.
4907         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
4908         * config/cris/cris.h (ADDRESS_COST): Remove.
4909         * config/cris/cris-protos.h: Update.
4910
4911 2003-01-23  Mike Stump  <mrs@apple.com>
4912
4913         * regclass.c (init_reg_autoinc): New function.
4914         (regclass): Move initialization of forbidden_inc_dec_class from
4915         here...
4916         (init_regs): to here.  Avoids reinitialization for each function,
4917         saving compilation time.
4918
4919 2003-01-28  Jason Merrill  <jason@redhat.com>
4920
4921         * cpplib.h (struct cpp_options): Add warn_deprecated field.
4922         * cppinit.c (cpp_create_reader): Turn it on by default.
4923         * c-opts.c (c_common_decode_option): Set it.
4924         * cpplib.c (do_pragma_once): Only complain about #pragma once
4925         if warn_deprecated is set.
4926
4927 2003-01-28  Dale Johannesen  <dalej@apple.com>
4928
4929         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
4930         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
4931         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
4932
4933 2003-01-28  Richard Henderson  <rth@redhat.com>
4934
4935         * target.h (targetm.address_cost): New.
4936         * target-def.h (TARGET_ADDRESS_COST): New.
4937         (TARGET_RTX_COSTS): Uncomment.  Oops.
4938         * cse.c (address_cost): Use new target hook.
4939         (default_address_cost): New.
4940         * output.h (default_address_cost): Declare.
4941         * hooks.c (hook_int_rtx_0): New.
4942         * hooks.h (hook_int_rtx_0): Declare.
4943         * loop.c (combine_givs_p): Remove if 0 code.
4944         * system.h (ADDRESS_COST): Poison.
4945
4946         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
4947         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
4948         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
4949         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
4950         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
4951         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
4952         config/xtensa/xtensa.c, config/xtensa/xtensa.h
4953         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
4954         (ADDRESS_COST): Remove.
4955
4956         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
4957         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
4958         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
4959         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
4960         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
4961         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
4962         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
4963         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
4964         config/mips/mips.c, config/mips/mips.h,
4965         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
4966         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
4967         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
4968         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
4969         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
4970         config/vax/vax.c, config/vax/vax.h
4971         (foo_address_cost): Make static.
4972         (TARGET_ADDRESS_COST): New.
4973         (ADDRESS_COST): Remove.
4974
4975         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
4976         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
4977         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
4978         config/stormy16/stormy16.h
4979         (ADDRESS_COST): Move code ...
4980         (foo_address_cost): ... here.
4981         (TARGET_ADDRESS_COST): New.
4982
4983         * config/m32r/m32r.c (m32r_address_cost): Remove.
4984         * config/m32r/m32r-protos.h: Update.
4985
4986         * config/mmix/mmix.c (mmix_address_cost): Remove.
4987         * config/mmix/mmix-protos.h: Update.
4988
4989         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
4990         mn10300_address_cost; move unsig allocation ...
4991         (mn10300_address_cost): ... here.
4992         (TARGET_ADDRESS_COST): New.
4993         * config/mn10300/mn10300-protos.h: Update.
4994         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
4995
4996         * doc/tm.texi: Update.
4997
4998 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
4999
5000         * haifa-sched.c (schedule_insn): Return necessary cycle advance
5001         after issuing the insn.
5002         (rank_for_schedule): Make a insn with /S the highest priority
5003         insn.
5004         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
5005         (choose_ready): Check SCHED_GROUP_P.
5006         (schedule_block): Advance cycle after issuing insn if it is
5007         necessary.  Don't reorder insns if there is an insn with /S.
5008         (set_priorities): Ignore schedule groups.
5009
5010         * sched-deps.c (remove_dependence, group_leader): Remove the
5011         functions.
5012         (add_dependence): Ignore schedule groups.
5013         (set_sched_group_p): Don't make copy of dependencies from previous
5014         insn of the schedule group.  Add anti-dependency to the previous
5015         insn of the schedule group.
5016         (compute_forward_dependences): Ignore schedule groups.
5017
5018         * sched-ebb.c (init_ready_list): Ignore schedule groups.
5019
5020         * sched-rgn.c (init_ready_list): Ditto.
5021         (can_schedule_ready_p): Ditto.
5022
5023 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
5024
5025         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
5026         register to another one.
5027
5028 2003-01-28  Richard Henderson  <rth@redhat.com>
5029
5030         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
5031
5032 2003-01-28  Roger Sayle  <roger@eyesopen.com>
5033
5034         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
5035
5036 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
5037
5038         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
5039         class contains a floating-point register, return the size of the
5040         mode in half words.
5041
5042 Tue Jan 28 12:15:13 CET 2003  Jan Hubicka  <jh@suse.cz>
5043
5044         * i386.c (ix86_carry_flag_operator):  New predicate.
5045         (fcmov_operator): Fix whitespace.
5046         (ix86_expand_carry_flag_compare):  Deal with floating point.
5047         (ix86_expand_int_movcc): Deal with fp; update insn expansion
5048         (ix86_expand_int_addcc): Likewise.
5049         (ix86_expand_strlensi_unroll_1): likewsie.
5050         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
5051         * i386.md (add?i_carry_rex64): Use new predicate.
5052         (sub?i3_carry_rex64): Likewise.
5053         (x86_mov?icc_0_m1*): Likewise.
5054
5055 2003-01-28  Andreas Schwab  <schwab@suse.de>
5056
5057         * cfgloopmanip.c (create_preheader): Initialize src to avoid
5058         warning.
5059
5060         * expmed.c (emit_store_flag): Fix cast to avoid sign
5061         comparison warning.
5062
5063         * combine.c (force_to_mode): Add cast to fix warning when
5064         STORE_FLAG_VALUE is negative.
5065
5066 2003-01-27  Richard Henderson  <rth@redhat.com>
5067
5068         * Makefile.in (cse.o): Depend on TARGET_H.
5069         * cse.c (rtx_cost): Use targetm.rtx_costs.
5070         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
5071         * doc/tm.texi: Update.
5072
5073         * target.h (targetm.rtx_costs): New.
5074         * target-def.h (TARGET_RTX_COSTS): New.
5075         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
5076         * hooks.h: Update.
5077
5078         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
5079         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
5080         * config/alpha/alpha.h (PROCESSOR_MAX): New.
5081         (CONST_COSTS, RTX_COSTS): Remove.
5082
5083         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
5084         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
5085         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
5086         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
5087         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
5088         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
5089         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
5090         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
5091         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
5092         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
5093         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
5094         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
5095         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
5096         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
5097         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
5098         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
5099         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
5100         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
5101         config/v850/v850.c, config/v850/v850.h,
5102         config/xtensa/xtensa.c, config/xtensa/xtensa.h
5103         (CONST_COSTS, RTX_COSTS): Move code ...
5104         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
5105
5106         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
5107         (arm_rtx_costs, TARGET_RTX_COSTS): New.
5108         * config/arm/arm-protos.h: Update.
5109         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
5110
5111         * config/avr/avr.h (CONST_COSTS): Move code ...
5112         * config/avr/avr.c (avr_rtx_costs): ... here.
5113         (default_rtx_costs): Make static.
5114         * config/avr/avr-protos.h: Update.
5115
5116         * config/h8300/h8300.c (const_costs): Make static.
5117         (h8300_and_costs, h8300_shift_costs): Likewise.
5118         * config/h8300/h8300-protos.h: Update.
5119
5120         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
5121         (CONST_COSTS): Move code ...
5122         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
5123         default_rtx_costs; update for signature change.
5124         * config/ip2k/ip2k-protos.h: Update.
5125
5126         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
5127         (CONST_COSTS): Move code ...
5128         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
5129         (TARGET_RTX_COSTS): New.
5130         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
5131         * config/m68hc11/m68hc11-protos.h: Update.
5132
5133         * config/m68k/m68k.c (const_int_cost): Make static.
5134         * config/m68k/m68k-protos.h: Update.
5135
5136         * config/mcore/mcore.c (mcore_const_costs): Make static.
5137         (mcore_and_cost, mcore_ior_cost): Likewise.
5138         * config/mcore/mcore-protos.h: Update.
5139
5140         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
5141         (mmix_rtx_cost_recalculated): Remove.
5142         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
5143         * config/mmix/mmix-protos.h: Update.
5144
5145         * config/sh/sh.c (shiftcosts): Make static.
5146         (addsubcosts, andcosts, multcosts): Likewise.
5147         * config/sh/sh-protos.h: Update.
5148
5149         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
5150         (sparc_rtx_costs): Make static; update for change in signature.
5151         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
5152         * config/sparc/sparc-protos.h: Update.
5153
5154         * config/v850/v850.c (const_costs): Make static.
5155         * config/v850/v850-protos.h: Update.
5156
5157         * config/vax/vax.h (RTX_COSTS): Remove.
5158         (CONST_COSTS): Move code ...
5159         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
5160         from vax_rtx_cost.
5161         (vax_rtx_costs, TARGET_RTX_COSTS): New.
5162
5163 2003-01-27  Richard Henderson  <rth@redhat.com>
5164
5165         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
5166         * config/vax/vax-protos.h: Update.  Really.
5167
5168 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
5169
5170         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
5171         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
5172         zero if no hardware floating point.
5173         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
5174         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
5175         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
5176         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
5177         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
5178         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
5179         even FP registers on N32 and N64.
5180         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
5181         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
5182         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
5183         even-register-like alignment to 128-bit arguments.
5184         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
5185         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
5186         on N32 or N64.
5187         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
5188         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
5189         (TPBIT): Set to tp-bit.c.
5190         (tp-bit.c): Create out of fp-bit.c.
5191
5192 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5193
5194         * c-parse.in: Remove '%expect 32' directive in objc mode.
5195
5196 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
5197
5198         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
5199         (LIBGCOV): New variable.
5200         (libgcc.mk): Add LIBGCOV.
5201         (LIBGCC_DEPS): Add libgcov.c.
5202         (libgcov.a): New target.
5203         (clean): Remove libgcov.a.
5204         (install-libgcc): Do libgcov too.
5205         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
5206         with libgcov.a.
5207         * libgcc2.c (L_gcov): Move into ...
5208         * libgcov.c: ... here. New file.
5209         * mklibgcc.in: Add libgcov rules.
5210         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
5211
5212         * doc/invoke.texi (profile-arcs, test-coverage): Update and
5213         clarify.
5214
5215         * profile.c (index_counts_file): Remove duplicate check for open file.
5216
5217 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
5218
5219         * gcc/doc/invoke.texi (Optimization Options): Group together
5220         optional and experimental flags.  Move trapv and bounds-check
5221         out of this section.  Group floating point flags together.
5222         (Code Gen Options): Move trapv and bounds-check to here.
5223
5224 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
5225
5226         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
5227
5228 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
5229
5230         PR optimization/9090
5231         * function.c (purge_addressof_1): After pushing an addressed register
5232         onto the stack, simplify the result.
5233
5234 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5235
5236         * doc/extend.texi: Fix typo.
5237
5238 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5239
5240         * doc/cppopts.texi: Fix typo.
5241         * doc/objc.texi: Likewise.
5242         * doc/passes.texi: Likewise.
5243
5244 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
5245
5246         * real.c (ibm_extended_format): Add 53 to minimum exponent.
5247         (encode_ibm_extended): Adjust.
5248
5249 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
5250
5251         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
5252         timevar_id enumerations.
5253
5254 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5255
5256         * combine.c: Fix formatting.
5257
5258 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5259
5260         * doc/gccint.texi: Update the copyright.
5261
5262 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5263
5264         * doc/cpp.texi: Fix typos.
5265         * doc/extend.texi: Likewise.
5266         * doc/gty.texi: Likewise.
5267         * doc/install.texi: Likewise.
5268         * doc/passes.texi: Likewise.
5269         * doc/rtl.texi: Likewise.
5270         * doc/tm.texi: Likewise.
5271
5272 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5273
5274         * config/ia64/fde-glibc.c: Fix comment typos.
5275         * config/ia64/hpux.h: Likewise.
5276         * config/ia64/ia64.c: Likewise.
5277         * config/ia64/ia64.h: Likewise.
5278         * config/ia64/unwind-ia64.c: Likewise.
5279
5280 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
5281
5282         * config/i386/i386-modes.def: Fix comment typos.
5283         * config/i386/i386.c: Likewise.
5284         * config/i386/i386.md: Likewise.
5285
5286 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5287
5288         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
5289         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
5290         ASM_FINISH_DECLARE_OBJECT before defining it.
5291         * toplev.c (rest_of_decl_compilation):  Don't define
5292         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
5293         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
5294         parameters for DWARF2 targets because they _are_ used.
5295
5296 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
5297
5298         * fp-bit.h: Define macros for TFmode floating-point constants
5299         in IBM-extended TFmode types.
5300         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
5301         widths.
5302         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
5303         TFmode type.
5304
5305         * config/fp-bit.h: Define macros for TFmode floating-point
5306         constants in IEEE quad TFmode type.  Declare functions according
5307         to L_ macros.
5308         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
5309         (TFtype, TItype, UTItype): Define if TMODES is defined.
5310         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
5311         (F_T_BITOFF, D_T_BITOFF): Define.
5312         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
5313         guaranteed to be wide enough.
5314         * config/fp-bit.c: Check for L_ macros for tf functions.
5315         (__thenan_tf): New.
5316         (nan): Adjust.
5317         (pack_d, unpack_d): Support IEEE 854 quad type.
5318         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
5319         from FRAC_NBITS, FRAC_BITS and NGARDS.
5320         (usi_to_float): Cast constants to be shifted to fractype
5321         instead of assuming long long is wide enough.
5322         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
5323
5324 2003-01-26  Andreas Jaeger  <aj@suse.de>
5325
5326         * df.c: Remove prototype of unused function df_regno_rtl_debug.
5327
5328 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
5329
5330         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
5331         (DBBIT_FUNCS): Added _df_to_tf.
5332         (TPBIT_FUNCS): New.
5333         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
5334         (LIBGCC_DEPS): Added TPBIT.
5335         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
5336
5337         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
5338         been able to move the result to target.
5339
5340         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
5341         for the appropriate mode.
5342
5343         * calls.c (emit_library_call_value_1): Handle return values
5344         in a PARALLEL.
5345
5346         * rtl.c (get_mode_alignment): Moved to...
5347         * stor-layout.c: ... here.
5348
5349         * print-rtl.c (print_rtx): Don't print MEM details in
5350         GENERATOR_FILEs.
5351
5352 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
5353
5354         * df.h: Update comments, tidy formatting.
5355         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
5356         REVERSE, UNION, INTERSECTION.  All uses updated.
5357         (OLD_DF_INTERFACE): Remove.
5358         (struct insn_info): Remove commented out insn field.
5359         * df.c: Update comments, tidy formatting.
5360         (df_def_table_realloc): Remove.
5361
5362
5363 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
5364
5365         * calls.c (save_fixed_argument_area): Tidy.
5366         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
5367         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
5368         call chain loop at 1 if !try_tail_call.  Formatting.
5369         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
5370         Use save_fixed_argument_area and restore_fixed_argument_area.
5371
5372 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5373
5374         * df.c (df_uses_record): Handle CC0.
5375
5376 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
5377
5378         * reload.c (maybe_memory_address_p): New function.
5379         (find_reloads_address): Use it instead of memory_address_p.
5380
5381 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5382
5383         * final.c (shorten_branches): Align the address of code label
5384         when computing initial lengths and addresses.
5385
5386 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
5387
5388         * config/m68hc11/m68hc11.md: Fix a comment typo.
5389
5390 2003-01-25  Andreas Jaeger  <aj@suse.de>
5391
5392         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
5393         TARGET_MACHO.
5394
5395 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5396
5397         * gcse.c (bypass_last_basic_block): New global variable.
5398         (bypass_block):  Use redirect_edge_and_branch_force to redirect
5399         fall-through edges.  Use bypass_last_basic_block to determine
5400         which blocks have valid PRE information.
5401         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
5402
5403 Sat Jan 25 22:31:59 CET 2003  Jan Hubicka  <jh@suse.cz>
5404
5405         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
5406
5407 Sat Jan 25 21:04:33 CET 2003  Jan Hubicka  <jh@suse.cz>
5408                               Eric Botcazou <ebotcazou@libertysurf.fr>
5409         PR opt/8492
5410         * gcse.c (one_cprop_pass): Delete unreachable blocks.
5411
5412 2003-01-25  Richard Henderson  <rth@redhat.com>
5413
5414         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
5415         from ia64_aix_select_rtx_section.
5416         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
5417         instead of saving and restoring flag_pic.
5418         (ia64_rwreloc_unique_section): Similarly.
5419         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
5420         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
5421         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
5422         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
5423
5424 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
5425
5426         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
5427         comment.
5428
5429 2002-01-25  Richard Henderson  <rth@redhat.com>
5430
5431         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
5432
5433 2002-01-25  Kelley Cook <kelleycook@comcast.net>
5434
5435         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
5436
5437 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
5438
5439         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
5440         type for bitmaps.  Use unsigned long.
5441         (nBITMAP_WORD_BITS): New macro.
5442         (BITMAP_WORD_BITS): New macro.
5443         (rest of file): Use it.
5444         * bitmap.c: Use it.
5445
5446 2003-01-25  Richard Henderson  <rth@redhat.com>
5447
5448         2002-02-19  Robert Lipe  <robertlipe@usa.net>
5449         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
5450
5451 2002-01-25  Roger Sayle  <roger@eyesopen.com>
5452
5453         * builtins.c (purge_builtin_constant_p): Scan insn stream
5454         sequentially rather than by basic block.
5455         * function.c (purge_addressof): Simplify test with INSN_P.
5456
5457 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
5458
5459         * combine.c (simplify_comparison, case AND): Remove a redundant test.
5460
5461 2002-01-25  Roger Sayle  <roger@eyesopen.com>
5462
5463         * function.h (struct function): New field calls_constant_p.
5464         (current_function_calls_constant_p): New macro for above.
5465         * function.c (prepare_function_start): Initialize calls_eh_return
5466         and calls_constant_p.
5467         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
5468         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
5469         when the current_function_calls_constant_p.
5470         * integrate.c (expand_inline_function): Set calls_constant_p if
5471         the function being inlined has calls_constant_p set.
5472
5473 2002-01-25  Roger Sayle  <roger@eyesopen.com>
5474
5475         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
5476         optimizing, even if flag_gcse is true.
5477         * toplev.c (rest_of_compilation): purge_builtin_constant_p
5478         only needs to be called when "optimize > 0 && flag_gcse".
5479
5480 2003-01-25  Roger Sayle  <roger@eyesopen.com>
5481
5482         * stmt.c (emit_case_bit_tests): New routine to implement suitable
5483         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
5484         (case_bit_test_cmp): New comparison function for "qsort" to order
5485         case_bit_tests by decreasing number of destination nodes.
5486         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
5487         (expand_end_case_type): Use emit_case_bit_tests to implement
5488         suitable switch statments.
5489         (CASE_USE_BIT_TESTS): New target macro to disable the above.
5490         * Makefile.in (stmt.o): Add dependency on optab.h.
5491         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
5492
5493 2003-01-23  Andreas Schwab  <schwab@suse.de>
5494
5495         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
5496         __do_global_ctors_aux hidden global and don't put it in
5497         .init_array.
5498         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
5499         instead so that it comes first.
5500
5501 Sat Jan 25 16:11:22 CET 2003  Jan Hubicka  <jh@suse.cz>
5502
5503         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
5504         subreg is read/modify.
5505
5506 Sat Jan 25 15:55:08 CET 2003  Jan Hubicka  <jh@suse.cz>
5507
5508         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
5509         do libcall for large blocks.
5510         * i386.md (comi patterns): Set type to ssecomi.
5511         (sse2_unpck?pd): Fix mode of vec_select.
5512
5513         * cse.c: Include except.h
5514         (cse_set_around_loop):  Do not create new basic blocks.
5515         * Makefile.in (cse.o): Add dependnecy on except.h
5516
5517 Sat Jan 25 12:05:17 CET 2003  Jan Hubicka  <jh@suse.cz>
5518
5519         * builtins.c (fold_trunc_transparent_mathfn): New function.
5520         (fold_builtin): Use it.
5521         * convert.c (convert_to_real): Re-enable code to convert
5522         math functions; add support for floor familly functions.
5523
5524 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5525
5526         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
5527         dependencies on coretypes.h and $(TM_H).
5528
5529 Sat Jan 25 11:10:03 CET 2003  Jan Hubicka  <jh@suse.cz>
5530
5531         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
5532
5533 2002-01-24  Stuart Hastings  <stuart@apple.com>
5534
5535         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
5536
5537 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
5538
5539         * config/c4x/c4x.md (UNSPEC_BU): New constants.
5540         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
5541         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
5542         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
5543         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
5544         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
5545         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
5546         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
5547
5548 Fri Jan 24 23:44:12 CET 2003  Jan Hubicka  <jh@suse.cz>
5549
5550         * emit-rtl.c (reg_attrs_htab): New static variable.
5551         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
5552         functions.
5553         (reg_rtx): Do not maintain regno_decl.
5554         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
5555         set_mem_attrs_from_reg): New global function.
5556         (init_emit): Do not initialize regno_decl.
5557         (init_emit_once): initialize reg_attrs_htab.
5558         * final.c (alter_subreg): Do not replace REG by SUBREG.
5559         (gen_mem_expr_from_op): Improve output.
5560         (output_asm_operands): Likewise.
5561         * function.c (assign_params): Do not set REGNO_DECL.
5562         * function.h (struct function): Kill regno_decl.
5563         (REGNO_DECL): Kill.
5564         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
5565         * print_rtl.c (print_rtx): Output REG information.
5566         * regclass.c (reg_scan_mark_refs): Update attrs.
5567         * reload1.c (alter_reg): Likewise.
5568         * simplify_rtx.c (simplify_subreg): Likewise.
5569         * stmt.c (expand_decl): Likewise.
5570         * rtl.def (REG): Add new field.
5571         * rtl.h (struct reg_attrs): New.
5572         (rtunion_def): At rtreg.
5573         (X0MEMATTR): Add checking.
5574         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
5575         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
5576         Declare.
5577         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
5578
5579 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
5580
5581         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
5582         (xtensa_emit_call, print_operand): Fix printf format strings
5583         to avoid compile warnings.
5584         (xtensa_function_prologue, xtensa_function_epilogue): Change type
5585         of "size" argument to HOST_WIDE_INT to fix compile warnings.
5586         * config/xtensa/xtensa-protos.h
5587         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
5588
5589 Fri Jan 24 23:03:32 CET 2003  Jan Hubicka  <jh@suse.cz>
5590
5591         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
5592         (implicit_built_in_decls): New global array.
5593         (mathfn_built_in): New global function.
5594         (fold_trunc_transparent_mathfn): New static function
5595         (expand_builtin_strstr, expand_bultin_strchr,
5596         expand_builtin_strpbrk, expand_builtin_strcpy,
5597         expand_builtin_strncpy, expand_bultin_strcmp,
5598         expand_bultin_strncat, expand_builtin_fputs): Use
5599         implicint_built_in_decls.
5600         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
5601         * builtins.def: Fix comments.
5602         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
5603         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
5604         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
5605         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
5606         (DEF_C99_C90RES_BULTIN): New.
5607         (*f, *l builtins): Update.
5608         * c-common.c (DEF_BUILTIN): Initialize implicit array.
5609         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
5610         * convert.c (strip_float_extensions): New global function.
5611         * tree.h (DEF_BUILTIN): Accept 10 arguments.
5612         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
5613         Declare.
5614         * java/builtins.c (define_builtin): Handle implicit.
5615         (DEF_BUILTIN): Update.
5616         * tm.texi (TARGET_C99_FUNCTIONS): Document.
5617         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
5618         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
5619         when using glibc2.
5620
5621 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
5622
5623         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
5624         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
5625         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
5626         * config/xtensa/crti.asm: New file.
5627         * config/xtensa/crtn.asm: New file.
5628         * config/xtensa/t-elf: New file.
5629         * config/xtensa/t-linux: New file.
5630         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
5631         Move various CFLAGS settings to new t-elf file.
5632
5633 2003-01-24  Richard Henderson  <rth@redhat.com>
5634
5635         PR optimization/4382
5636         * tree-inline.c (find_builtin_longjmp_call_1): New.
5637         (find_builtin_longjmp_call): New.
5638         (inlinable_function_p): Use it.
5639
5640 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5641
5642         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
5643         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5644         * config/i386/i386.c (function_arg_pass_by_reference): New.
5645         (ix86_va_arg): Support arguments passed by reference.
5646
5647 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5648
5649         * cfgloopanal.c: New file.
5650         * cfgloopmanip.c: New file.
5651         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
5652         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
5653         cfglayout.o): Add dependency on cfgloop.h.
5654         (cfgloop.o): Add flags.h dependency.
5655         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
5656         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
5657         (struct loop, struct loops, flow_loops_find, flow_loops_update,
5658         flow_loops_free, flow_loops_dump, flow_loop_dump,
5659         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
5660         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
5661         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
5662         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
5663         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
5664         find_common_loop, verify_loop_structure): Declarations moved to ...
5665         * cfgloop.h: New file.
5666         * bb-reorder.c (reorder_basic_blocks): Modified.
5667         * cfglayout.c: Include cfgloop.h.
5668         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
5669         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
5670         (break_superblocks): New static function.
5671         (cfg_layout_finalize): Use it.
5672         (cfg_layout_split_block): New function.
5673         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
5674         fields.
5675         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
5676         changed.
5677         (cfg_layout_split_block): Declare.
5678         * cfgloop.c: Include cfgloop.h and flags.h.
5679         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
5680         get_loop_body): Avoid signed versus unsigned comparison warnings.
5681         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
5682         loop_latch_edge): Modified.
5683         (verify_loop_structure): Modified to use flags stored in loop structure;
5684         check irreducible loops.
5685         (cancel_loop, cancel_loop_tree): New functions.
5686         (estimate_probability): Use loop analysis code for predictions.
5687         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
5688         warnings.
5689         * doloop.c: Include cfgloop.h.
5690         * loop.c: Include cfgloop.h.
5691         * predict.c: Include cfgloop.h.
5692         * toplev.c: Include cfgloop.h.
5693         * unroll.c: Include cfgloop.h.
5694         * tracer.c (tracer): Modified.
5695
5696 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
5697
5698         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
5699
5700 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
5701
5702         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
5703         * configure: Regenerate.
5704
5705         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
5706         (tls_symbolic_reference_mentioned_p): Add prototype.
5707         (s390_tls_get_offset): Add prototype.
5708         (emit_pic_move): Remove prototype, replace by ...
5709         (emit_symbolic_move): .. this new prototype.
5710
5711         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
5712         (tls_model_chars): New global variable.
5713         (s390_encode_section_info): Encode TLS model.
5714         Use targetm.binds_local_p to check for local symbols.
5715         (s390_strip_name_encoding): New function.
5716         (TARGET_STRIP_NAME_ENCODING): Define.
5717
5718         (get_thread_pointer): New function.
5719         (legitimize_tls_address): New function.
5720         (legitimize_address): Call it.
5721         (emit_pic_move): Remove, replace by ...
5722         (emit_symbolic_move): ... this new function.
5723
5724         (larl_operand): Handle TLS operands.
5725         (legitimate_constant_p): Likewise.
5726         (s390_decompose_address): Likewise.
5727         (s390_cannot_force_const_mem): New function.
5728         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5729
5730         (s390_output_symbolic_const): Handle TLS unspecs.
5731         (print_operand): New code 'J'.
5732         (machine_function): Add struct member 'some_ld_name'.
5733         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
5734
5735         (enum s390_builtin): New type.
5736         (code_for_builtin_64, code_for_builtin_31): New global variables.
5737         (s390_init_builtins, s390_expand_builtin): New functions.
5738         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5739
5740         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
5741         (ASM_OUTPUT_LABELREF): Define.
5742         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
5743
5744         * config/s390/s390.md: Define TLS UNSPEC constants.
5745         ("movdi", "movsi"): Handle TLS operands.
5746         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
5747         ("*tls_load_64", "*tls_load_31"): New insns.
5748         ("call_value_tls", "call_value_tls_exp"): New expanders.
5749         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
5750         "bas_tls_64", "bas_tls_31"): New insns.
5751
5752 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
5753
5754         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
5755         spe ABI is configured, if requested.
5756
5757 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5758
5759         * doc/passes.texi: Fix typo.
5760
5761 2003-01-24  Andreas Schwab  <schwab@suse.de>
5762
5763         * stor-layout.c (excess_unit_span): Only define if used.
5764
5765 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
5766
5767         * gcc/doc/invoke.texi (Optimization Options): List -O levels
5768         for each optimization flag.
5769
5770 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
5771
5772         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
5773
5774 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5775
5776         * doc/bugreport.texi: Use @command instead of @code for commands.
5777         * doc/collect2.texi: Likewise.
5778         * doc/headerdirs.texi: Likewise.
5779         * doc/invoke.texi: Likewise.
5780         * doc/standards.texi: Likewise.
5781         * doc/tm.texi: Likewise.
5782         * doc/trouble.texi: Likewise.
5783
5784 2003-01-24  Nick Clifton  <nickc@redhat.com>
5785
5786         * config/arm/arm.c (use_return_insn): Do not use a single return
5787         instruction for interrupt handelrs which have to create a stack
5788         frame.
5789         (arm_expand_prologue): Do not pre-bias the return address of
5790         interrupt handlers which create a stack frame.
5791
5792 2003-01-24  Nick Clifton  <nickc@redhat.com>
5793
5794         * Add sh2e support:
5795
5796         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
5797
5798                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
5799                 med_cbranches.  Fix logic in short_cbranches.
5800
5801         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
5802
5803                 * config/sh/sh.md (delay for cbranch): Don't annul delay
5804                 slots on SH2e.
5805                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
5806                 cbranch with unfilled delay slot on SH2e.
5807                 (output_branch): Fill with a nop the delay slot of a
5808                 branch that required a delay slot but didn't get one.
5809
5810         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
5811
5812                 * doc/invoke.texi (SH options): Document -m2e.
5813                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
5814                 * config/sh/lib1funcs.asm: Likewise.
5815                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
5816                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
5817                 not __sh1__.
5818                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
5819                 SH2E up.
5820                 (SH3E_BIT): Renamed to...
5821                 (SH_E_BIT): ... this.  Replace all uses.
5822                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
5823                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
5824                 (TARGET_SWITCHES): Added 2e.
5825                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
5826                 (processor_type): Added PROCESSOR_SH2E.
5827                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
5828                 TARGET_SH2E, except in sqrtsf2_i.
5829                 (attribute cpu): Added sh2e.
5830                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
5831                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
5832                 * config.gcc: Add sh2e target support.
5833
5834 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
5835
5836         Rename -W to -Wextra.
5837         * c-decl.c:  Update comments.
5838         * c-typeck.c:  Likewise.
5839         * flags.h:  Likewise.
5840         * function.c:  Likewise.
5841         * stmt.c:  Likewise.
5842         * toplev.c:  Update comments.
5843         (W_options):  Add 'extra'.
5844         (display_help):  Remove '-W'.
5845         (decode_W_option):  Special warn_uninitialized treatment in the case
5846         of -Wextra.
5847         * doc/invoke.texi:  Update with new entries.
5848
5849 2003-01-23  Richard Henderson  <rth@redhat.com>
5850
5851         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
5852         in no-else-block case.  Add commentary.
5853
5854 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5855
5856         * configure.in: Revert last change.
5857
5858 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5859
5860         * configure.in: Don't include ansidecl.h in tconfig.h.
5861         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
5862         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
5863         ATTRIBUTE_UNUSED.
5864
5865         * configure: Regenerate.
5866
5867 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5868
5869         PR java/6748
5870         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
5871         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
5872         kernels.
5873
5874 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5875
5876         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
5877
5878 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
5879
5880         * genattrtab.c (write_attr_get): Mark 'insn' paramter
5881         as ATTRIBUTE_UNUSED.
5882
5883 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
5884
5885         * arm.c (thumb_base_register_rtx_p): New function.
5886         (thumb_index_register_rtx_p): New function.
5887         (thumb_legitimate_address_p): New function.
5888         (thumb_legitimate_offset_p): New function.
5889         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
5890         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
5891         definitions.
5892         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
5893         (THUMB_LEGITIMATE_OFFSET): Delte.
5894         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
5895         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
5896         (thumb_legitimate_offset_p): Likewise.
5897
5898 2003-01-23  Andreas Schwab  <schwab@suse.de>
5899
5900         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
5901
5902 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5903
5904         * fixinc/Makefile.in (FL_LIST): Revert last change.
5905
5906 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5907
5908         PR other/7341
5909         * invoke.texi (ftest-coverage): Fix broken cross-reference.
5910         Change @code to @command for gcov command.
5911
5912         * gcc.texi: Adjust title of gcov section.
5913         Adjust copyright.
5914         * gcov.texi: Likewise.
5915
5916 2003-01-22  Roger Sayle  <roger@eyesopen.com>
5917
5918         PR optimization/8423
5919         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
5920         its argument is constant, or 0 if !flag_gcse.
5921         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
5922         if it's argument is constant.
5923         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
5924         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
5925         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
5926         * builtins.c (purge_builtin_constant_p): New function to force
5927         instantiation of any remaining CONSTANT_P_RTX nodes.
5928         * rtl.h (purge_builtin_constant_p): Prototype here.
5929         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
5930         pass after GCSE and before loop.
5931         (flag_gcse): No longer static.
5932         * flags.h (flag_gcse): Prototype here.
5933
5934 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
5935
5936         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
5937         introduced by last change.
5938
5939 2003-01-22  Andreas Schwab  <schwab@suse.de>
5940
5941         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
5942
5943 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
5944
5945         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
5946         request a scratch reg on H8S when the shift count is 8.
5947
5948 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
5949
5950         * config/s390/s390-protos.h (preferred_la_operand_p):
5951         Remove second parameter.
5952         * config/s390/s390.c (preferred_la_operand_p): Likewise.
5953         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
5954         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
5955         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
5956         Add peepholes to transform ADD to LOAD ADDRESS.
5957
5958 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
5959
5960         * arm.c (arm_address_register_rtx_p): New function.
5961         (arm_legitimate_address_p): New function.
5962         (arm_legitimate_index_p): New function.
5963         (legitimize_pic_address): Use arm_legitimate_index_p.
5964         * arm-protos.h (arm_legtimate_address_p): Add prototype.
5965         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
5966         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
5967
5968 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
5969
5970         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
5971         * config/s390/2064.md (define_bypass): Correct 'Load' and
5972         'Load-address' bypass values.
5973
5974 2003-01-22  Andreas Schwab  <schwab@suse.de>
5975
5976         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
5977
5978 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
5979
5980         * genautomata.c (output_internal_insn_latency_func,
5981         output_print_reservation_func): Short circuit when there is no
5982         automaton to generate code for.
5983
5984 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5985
5986         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
5987         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
5988
5989 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
5990
5991         * config/rs6000/rs6000.md: Remove warning.
5992         (builtin_setjmp_receiver): Likewise.
5993         * config/darwin.c (update_stubs): Slightly improve terrible hack
5994         with identifiers.  Add comment pointing out problems with it.
5995         (update_non_lazy_ptrs): Likewise.
5996
5997 2003-01-21  Richard Henderson  <rth@redhat.com>
5998
5999         * dwarf2out.c (lookup_filename): Fix printf format warning.
6000         * system.h (fread_unlocked, fwrite_unlocked): Undef.
6001
6002         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
6003         (fixincl.o-warn, gnu-regex.o-warn): New.
6004         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
6005         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
6006         * fixinc/fixincl.c (process): Fix printf format warning.
6007
6008 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
6009
6010         * dwarf2out (output_file_names): Don't crash if called
6011         with empty file_table.
6012
6013 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
6014
6015         * genautomata.c (output_internal_insn_latency_func): Add
6016         missing break statement to generated code.
6017
6018 2003-01-21  Roger Sayle  <roger@eyesopen.com>
6019
6020         * stmt.c (same_case_target_p): New function to determine whether
6021         two case labels branch to the same target.  Split out from...
6022         (group_case_nodes): ... here.  Use same_case_target_p instead.
6023         (strip_default_case_nodes): Remove explicit case nodes
6024         that branch to the default destination.
6025         (expand_end_case_type): Call strip_default_case_nodes after
6026         group_case_nodes, to simplify the case-list before we count it.
6027         Only generate table_label RTX when actually needed.  Try to share
6028         thiscase->exit_label and thiscase->data.case_stmt.default_label
6029         when a switch has no explicit default case.  Simplify test for
6030         constant index.
6031
6032 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6033
6034         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
6035         \t.
6036         (*negsf2_h8300hs): Likewise.
6037         (*addsi3_lshiftrt_16_zexthi): Likewise.
6038         (*iorhi3_lshiftrt_8): Likewise.
6039
6040 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
6041
6042         * dwarf2out.c (fde_table_in_use): Mark GTY.
6043         (dwarf2out_cfi_label_num): New variable, marked GTY.
6044         (dwarf2out_cfi_label): Use it instead of static label_num.
6045         * emit-rtl.c (label_num): Mark GTY.
6046
6047 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
6048
6049         * config/h8300/h8300.c (output_plussi): Support H8/300.
6050         (compute_plussi_length): Likewise.
6051         (compute_plussi_cc): Likewise.
6052         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
6053         output assembly instructions.
6054
6055 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6056
6057         * calls.c (fix_unsafe_tree): Prototype.
6058
6059         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
6060         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
6061         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
6062         c-parse.o-warn): Add -Wno-error.
6063         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
6064
6065         * configure.in (--enable-werror): Add new flag.
6066         * doc/install.texi (--enable-werror): Document.
6067         * configure: Regenerate.
6068
6069         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
6070
6071 2003-01-21  Andreas Schwab  <schwab@suse.de>
6072
6073         * genautomata.c (output_internal_insn_latency_func): Fix missing
6074         close paren in output.
6075
6076 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
6077
6078         * genautomata.c: Space savings in generated code:
6079         (output_dfa_insn_code_func): Split out the table-enlargement
6080         path to an out-of-line static function, dfa_insn_code_enlarge.
6081         (output_internal_insn_latency_func): Use a lookup table for the
6082         default latencies.
6083         (output_print_reservation_func): Use a lookup table for the
6084         strings.
6085
6086 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
6087
6088         PR opt/7507
6089         * calls.c (fix_unsafe_tree): Split out from ...
6090         (expand_call): ... here.  Use it on the function address too.
6091
6092 2003-01-20  Richard Henderson  <rth@redhat.com>
6093
6094         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
6095
6096 2003-01-20  Richard Henderson  <rth@redhat.com>
6097
6098         PR opt/7154
6099         * stmt.c (expand_asm_operands): Validize memory operands.
6100
6101 2003-01-20  Richard Henderson  <rth@redhat.com>
6102
6103         PR opt/8848
6104         * ifcvt.c (noce_process_if_block): Correct arguments to
6105         modified_between_p for no-else-block case.
6106
6107 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6108
6109         * config/h8300/h8300.c (const_costs): Remove a warning.
6110         (output_plussi): Likewise.
6111         (compute_plussi_length): Likewise.
6112         (compute_plussi_cc): Likewise.
6113
6114 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6115
6116         * config/h8300/h8300.md (addsi_h8300): Remove the last
6117         alternative.
6118
6119 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6120
6121         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
6122
6123 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6124
6125         * system.h (__NO_STRING_INLINES): Define.
6126
6127 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6128
6129         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
6130         is not a scalar int mode.
6131
6132 2003-01-20  Roger Sayle  <roger@eyesopen.com>
6133
6134         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
6135         insn's notes following a substitution inside a libcall.
6136
6137 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
6138
6139         * configure.in: Check for system-provided 'uchar' type.
6140         * configure, config.in: Regenerate.
6141         * cpphash.h: Only typedef 'uchar' if the system doesn't.
6142
6143 2003-01-20  Richard Henderson  <rth@redhat.com>
6144
6145         * expr.h (MUST_PASS_IN_STACK): Move implementation...
6146         * calls.c (default_must_pass_in_stack): ... here.
6147
6148 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
6149
6150         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
6151
6152         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
6153
6154         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
6155         Wrap up definition of `insn_alts'.
6156
6157         * genattrtab.c (main): Wrap up `insn_alts'.
6158
6159 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6160
6161         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
6162         prototyping.
6163         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
6164
6165         * config.in, configure: Regenerate.
6166
6167 2003-01-20  Nick Clifton  <nickc@redhat.com>
6168
6169         * config/arm/arm.md (sibcall_epilogue): Add an
6170         UNSPEC_PROLOGUE_USE to prevent the link register from being
6171         considered dead.
6172
6173 Mon Jan 20 14:36:23 CET 2003  Jan Hubicka  <jh@suse.cz>
6174
6175         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
6176
6177 2003-01-20  Andreas Schwab  <schwab@suse.de>
6178
6179         * system.h: Don't declare strsignal if the decl test hasn't been
6180         run yet.
6181
6182 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
6183
6184         * config/h8300/h8300.c (notice_update_cc): Don't assume that
6185         recog_data.operands[0] is always associated with cc0.
6186
6187 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
6188
6189         * collect2.c (ldgetname): Expand declaration to prototype.
6190         * read-rtl.c (atoll): Add prototype.
6191         * system.h (strsignal): Also declare if no declaration found.
6192
6193 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
6194
6195         * config.gcc (mips64*-*-linux*): Added.
6196         * config/mips/linux64.h, config/mips/t-linux64: New file.
6197         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
6198         * config/mips/mips.c (override_options): Use it.
6199         * config/mips/mips.h (TARGET_SWITCHES): Added...
6200         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
6201         * Makefile.in (SPECS): New.
6202         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
6203         * gcc.c (process_command): Move self-spec processing past spec
6204         file loading.
6205         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
6206         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
6207         CRTSTUFF_T_CFLAGS.
6208         (SPECS): Document.
6209         * doc/invoke.texi (-mabi-fake-default): Document.
6210
6211 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
6212
6213         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
6214         z_reg, z_reg_qi): Declare static and GTY().
6215         (da_reg): Remove.
6216         (create_regs_rtx): Don't create da_reg.
6217         ("gt-m68hc11.h"): Include for GTY roots.
6218         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
6219         and GTY() here.
6220         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
6221         (m68hc11_soft_tmp_reg): Likewise.
6222         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
6223
6224 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
6225
6226         * basic-block.h: Fix comment formatting.
6227         * calls.c: Likewise.
6228         * combine.c: Likewise.
6229         * convert.c: Likewise.
6230         * gcov.c: Likewise.
6231         * haifa-sched.c: Likewise.
6232         * libgcc2.c: Likewise.
6233         * loop.c: Likewise.
6234         * profile.c: Likewise.
6235         * system.h: Likewise.
6236
6237 2003-01-18  Roger Sayle  <roger@eyesopen.com>
6238
6239         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
6240
6241 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6242
6243         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
6244
6245 2003-01-17  Dale Johannesen  <dalej@apple.com>
6246
6247         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
6248           (*floatunssidf2_internal):  Ditto.
6249
6250 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
6251
6252         * alias.c: Fix comment typos.
6253         * basic-block.h: Likewise.
6254         * c-common.c: Likewise.
6255         * c-common.h: Likewise.
6256         * c-decl.c: Likewise.
6257         * c-opts.c: Likewise.
6258         * c-pragma.c: Likewise.
6259         * c-pretty-print.h: Likewise.
6260         * cfg.c: Likewise.
6261         * cfganal.c: Likewise.
6262         * cfgbuild.c: Likewise.
6263         * cfgcleanup.c: Likewise.
6264         * cfglayout.c: Likewise.
6265         * cfgrtl.c: Likewise.
6266         * convert.c: Likewise.
6267         * cpphash.h: Likewise.
6268         * cpplex.c: Likewise.
6269         * cpplib.h: Likewise.
6270         * df.h: Likewise.
6271         * diagnostic.c: Likewise.
6272         * diagnostic.h: Likewise.
6273         * dwarf2.h: Likewise.
6274
6275 2003-01-17  Stan Shebs  <shebs@apple.com>
6276
6277         * config/darwin-protos.h: Forward-declare struct cpp_reader.
6278
6279 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
6280
6281         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
6282         mistake in last checkin.
6283
6284 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
6285
6286         * et-forest.c: Fix comment typos.
6287         * et-forest.h: Likewise.
6288         * except.c: Likewise.
6289         * expr.c: Likewise.
6290         * flags.h: Likewise.
6291         * flow.c: Likewise.
6292         * gcc.c: Likewise.
6293         * gcse.c: Likewise.
6294         * genattrtab.c: Likewise.
6295         * genautomata.c: Likewise.
6296         * gengtype.c: Likewise.
6297         * genrecog.c: Likewise.
6298         * global.c: Likewise.
6299         * gthr-rtems.h: Likewise.
6300
6301 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6302
6303         * i386.c (x86_function_profiler): Fix format specifier.
6304
6305 2003-01-17  Richard Henderson  <rth@redhat.com>
6306
6307         * gengtype.c (walk_type): Allow paramN_is.
6308
6309 2003-01-17  Nick Clifton  <nickc@redhat.com>
6310
6311         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
6312
6313 2003-01-16  Richard Henderson  <rth@redhat.com>
6314
6315         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
6316
6317 2003-01-16  Richard Henderson  <rth@redhat.com>
6318
6319         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
6320         (alpha_next_sequence_number): Likewise.
6321         (alpha_this_literal_sequence_number): Likewise.
6322         (alpha_this_gpdisp_sequence_number): Likewise.
6323         (struct alpha_funcs, alpha_funcs_num): Likewise.
6324         (struct alpha_links): Fix branch merge error.
6325         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
6326
6327 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
6328
6329         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
6330         R. Ghazi.
6331
6332 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
6333
6334         * ifcvt.c: Fix comment typos.
6335         * lcm.c: Likewise.
6336         * libgcc2.c: Likewise.
6337         * local-alloc.c: Likewise.
6338         * loop.c: Likewise.
6339         * predict.c: Likewise.
6340         * ra-build.c: Likewise.
6341         * ra.c: Likewise.
6342         * ra-colorize.c: Likewise.
6343         * ra.h: Likewise.
6344         * ra-rewrite.c: Likewise.
6345         * regmove.c: Likewise.
6346         * reload.h: Likewise.
6347         * rtlanal.c: Likewise.
6348         * toplev.c: Likewise.
6349         * tree.h: Likewise.
6350         * unwind-dw2-fde-glibc.c: Likewise.
6351         * vmsdbgout.c: Likewise.
6352
6353 2003-01-16  Richard Henderson  <rth@redhat.com>
6354
6355         * dwarf2out.c (struct file_table): Remove.
6356         (FILE_TABLE_INCREMENT): Remove.
6357         (file_table): Make a varray; mark for GC.  Update all users.
6358         (file_table_last_lookup_index): Extract from struct file_table.
6359         (output_file_names): Fix unsigned compare warnings.
6360         (add_name_attribute): Remove inline marker.
6361         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
6362         (lookup_filename): Don't manage size of file_table.
6363         (init_file_table): Allocate file_table with GC.
6364         (dwarf2out_init): Don't record main_input_filename here.
6365         (dwarf2out_finish): Do it here instead.
6366
6367 2003-01-16  Bruce Korb  <bkorb@gnu.org>
6368
6369         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
6370
6371 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
6372
6373         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
6374         instead of rotldi3_mextr.
6375
6376 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
6377
6378         * haifa-sched.c (move_insn): Restore moving all schedule group.
6379         (set_priorities): Restore taking SCHED_GROUP_P into account.
6380
6381         * sched-deps.c (add_dependence): Restore processing the last group
6382         insn.
6383         (remove_dependence, group_leader): Restore the functions.
6384         (set_sched_group_p): Restore adding dependencies from previous insn
6385         in the group.
6386         (compute_forward_dependences): Restore usage of group_leader.
6387
6388         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
6389         account.
6390
6391         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
6392         account.
6393         (can_schedule_ready_p): Ditto.
6394         (add_branch_dependences): Restore skipping over the group insns.
6395
6396 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
6397
6398         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
6399         68HC12 pre/post inc/dec side effects.
6400
6401 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
6402
6403         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
6404
6405 Thu Jan 16 21:50:25 2003  J"orn Rennecke <amylaar@onetel.net.uk>
6406
6407         * sh.md (mshflo_w_x): Fix description of operation.
6408
6409 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
6410
6411         * config/rs6000/rs6000.h: Mention Altivec registers in
6412         commentary.  Fix typo.
6413
6414 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
6415
6416         * config/rs6000/rs6000.md (movti_string): Remove clobber.
6417         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
6418         generate PARALLEL with clobber for TARGET_POWER.
6419
6420 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6421
6422         * ra-colorize.c (colorize_one_web): Initialize variable.
6423         * regmove.c (fixup_match_1): Likewise.
6424         * reload1.c (reload_as_needed): Likewise.
6425         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
6426
6427 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6428
6429         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
6430
6431 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6432
6433         * dbxout.c (lastfile, cwd): Fix `unused' warning.
6434         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
6435         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
6436         is_main_source, file_table, decl_die_table_in_use,
6437         abbrev_die_table_in_use, line_info_table_in_use,
6438         separate_line_info_table_in_use, pubname_table_in_use,
6439         arange_table_in_use, ranges_table_in_use,
6440         current_function_has_inlines): Likewise.
6441         * flow.c (life_analysis): Likewise.
6442         * genemit.c (gen_insn): Likewise.
6443         * protoize.c (cplus_suffix): Likewise.
6444
6445         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
6446         * arm.h (ROUND_UP_WORD): Likewise.
6447
6448         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
6449         warning.
6450         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
6451         init_emit_once): Likewise.
6452         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
6453         Likewise.
6454         * function.c (assign_stack_temp_for_type): Likewise.
6455         * loop.c (loop_invariant_p): Likewise.
6456         * recog.c (push_operand): Likewise.
6457         * regclass.c (init_reg_sets_1): Likewise.
6458         * reload.c (update_auto_inc_notes): Likewise.
6459         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
6460         * stmt.c (expand_asm_operands): Likewise.
6461         * stor-layout.c (start_record_layout): Likewise.
6462
6463 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
6464
6465         * config/c4x/c4x.md (epilogue): Correct last patch.
6466
6467 2003-01-15  Richard Henderson  <rth@redhat.com>
6468
6469         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
6470         also check that GP is being used.
6471         (alpha_find_lo_sum_using_gp): New.
6472         (alpha_does_function_need_gp): Use get_attr_usegp.
6473         * config/alpha/alpha-protos.h: Update.
6474         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
6475         as needed.
6476
6477 2003-01-15  Roger Sayle  <roger@eyesopen.com>
6478
6479         * gcse.c (one_cprop_pass): Change function arguments to take both
6480         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
6481         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
6482         (bypass_jumps): New function to perform separate jump bypassing pass.
6483         * rtl.h (bypass_jumps): Add function prototype.
6484         * timevar.def (TV_BYPASS): New timing variable.
6485         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
6486         (dump_file): New entry for the bypass RTL dump file.
6487         (rest_of_compilation): Insert new jump bypassing optimization
6488         pass after loop.
6489         * doc/passes.texi: Document new pass.
6490
6491 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6492
6493         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
6494         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
6495         * pa.h (TARGET_SOM_SDEF): Define.
6496         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
6497
6498 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
6499
6500         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
6501         allocate 4-bytes of locals on 68HC11.
6502         (expand_epilogue): Likewise.
6503         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
6504
6505 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
6506
6507         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
6508         and -mshort-double to the assembler to specify the ABI.
6509         (LINK_SPEC): Likewise.
6510         (CPP_SPEC): Pass HCS12 specific define.
6511         (MASK_M68S12): New define.
6512         (TARGET_M68S12): Likewise.
6513         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
6514         (TARGET_VERSION): Update.
6515         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
6516         (LINK_SPEC): Update.
6517         (ASM_SPEC): Update.
6518         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
6519         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
6520
6521 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
6522
6523         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
6524         the return code.
6525
6526 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
6527
6528         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
6529         flag before setting it.
6530
6531 2003-01-15  Roger Sayle  <roger@eyesopen.com>
6532
6533         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
6534         when loop condition is known true, i.e.  "while (1) { ... }".
6535         (genrtl_for_stmt): Similarly for "for" statements.
6536
6537 2003-01-15  Roger Sayle  <roger@eyesopen.com>
6538
6539         * real.c (real_sqrt): Return a bool result indicating whether
6540         a floating point exception or trap should be raised.
6541         * real.h (real_sqrt): Update function prototype.
6542         * builtins.c (fold_builtin): Only fold non-trapping square
6543         roots unless we're ignoring errno and trapping math.
6544
6545 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
6546
6547         * expr.h (emit_conditional_add): Add PARAMS to declaration.
6548         * gengtype-lex.l (malloc, realloc): Move defines after include of
6549         system.h.  Remove duplicate include of system.h.
6550
6551 2003-01-15  Roger Sayle  <roger@eyesopen.com>
6552
6553         PR middle-end/9009
6554         * optabs.c (expand_unop):  When manipulating the FP sign bit
6555         using integer operations, account for targets with different
6556         integer and FP word orders.
6557         (expand_abs): Likewise.
6558
6559 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
6560
6561         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
6562         file extension in section name.
6563
6564 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
6565
6566         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
6567         constant offset.
6568
6569 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
6570
6571         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
6572         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
6573         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
6574         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
6575
6576 Wed Jan 15 12:23:21 CET 2003  Jan Hubicka  <jh@suse.cz>
6577
6578         PR f/9258
6579         * global.c (struct allocno): Add no_stack_reg.
6580         (global_conflicts): Set no_stack_reg.
6581         (find_reg): Use it.
6582
6583         * convert.c (convert_to_real): Fold - and abs only when profitable.
6584         * fold-const.c (fold): Fold truncates in - and abs.
6585
6586 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
6587
6588         Segher Boessenkool  <segher@koffie.nl>
6589
6590         * predict.c (real_inv_br_prob_base): New variable.
6591         (propagate_freq): Use multiply by reciprocal instead of
6592         division.  Don't divide by 1.0 at all.
6593         (estimate_bb_frequencies): Similar.
6594
6595 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
6596
6597         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
6598         * configure: Rebuilt.
6599
6600 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
6601
6602         * config/s390/s390.c (s390_safe_attr_type): New function.
6603         (s390_use_dfa_pipeline_interface): New function, return true for z900.
6604         (s390_issue_rate): New function.
6605         (s390_agen_dep_p): New function.
6606         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
6607         (s390_adjust_cost): Return 'cost' if new DFA is used.
6608         (s390_adjust_priority): Delete function.
6609         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
6610         * config/s390/s390.md (atype attribute): Attribute 'atype' default
6611         determined by 'op_type'.
6612         (type attribute): Added more type attributes.
6613         * config/s390/2064.md: New DFA description for z900 pipeline.
6614
6615 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
6616
6617         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
6618         forced to memory.  Fixes PR bootstrap/9036.
6619
6620         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
6621         to set $gp before the call.
6622
6623 2003-01-14  Richard Henderson  <rth@redhat.com>
6624
6625         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
6626         for force_const_mem.
6627
6628 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6629
6630         * genattr.c (main): Rearrange output to avoid prototype warning.
6631         * genautomata.c (transform_3): Fix ambiguous-else warning.
6632         * local-alloc.c (requires_inout): Add parentheses around
6633         assignment used as truth-value.
6634         * timevar.c: Move system includes above local includes.  Include
6635         toplev.h
6636         * Makefile.in (timevar.o): Depend on toplev.h.
6637
6638 2003-01-14  Denis Chertykov  <denisc@overta.ru>
6639
6640         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
6641         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
6642
6643         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
6644         attributes.
6645         (TARGET_ATTRIBUTE_TABLE): New macro.
6646         (valid_machine_type_attribute): Remove.
6647         (valid_machine_decl_attribute): Remove.
6648         (ip2k_handle_progmem_attribute): New function.
6649         (ip2k_handle_fndecl_attribute): New function.
6650
6651 2003-01-10  Andrew Haley  <aph@redhat.com>
6652
6653         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
6654         registers to be in correct order.  Add rip.
6655
6656 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
6657
6658         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
6659         (*iorsi3_and_lshiftrt_9_sb): Likewise.
6660
6661 Tue Jan 14 00:45:33 CET 2003  Jan Hubicka  <jh@suse.cz>
6662
6663         * convert.c (strip_float_extensions):  Look for narrowest type handling
6664         FP constants.
6665
6666         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
6667         float1 CMP float2.
6668         * convert.c (strip_float_extensions): Make global.
6669         * tree.h (strip_float_extensions): Declare.
6670
6671 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6672
6673         * timevar.def: define TV_NAME_LOOKUP.
6674         * timevar.c (timevar_pop): Be verbose when aborting.
6675
6676 2003-01-13  Andreas Schwab  <schwab@suse.de>
6677
6678         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
6679         $(parsedir), just move the temporary file at the end.
6680         ($(parsedir)/gengtype-yacc.c): Likewise.
6681
6682 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
6683
6684         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
6685         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
6686         splitting.
6687         * configure: Rebuilt.
6688
6689 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6690
6691         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
6692         internal_mcount): Don't use PARAMS.
6693         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
6694         ISO C style.
6695         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
6696
6697 2003-01-13  Andreas Schwab  <schwab@suse.de>
6698
6699         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
6700         directive.
6701
6702 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
6703
6704         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
6705         (*iorsi3_and_lshiftrt_n_sb): Likewise.
6706
6707 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
6708
6709         PR c++/9264
6710         * c-lex.c (c_lex): Set the token value to error_mark_node for
6711         invalid numeric constants.
6712
6713 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6714
6715         * c-pch.c (asm_file_startpos): Change to `long'.
6716         (pch_init): Use ftell, not ftello.
6717         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
6718         Use `long' instead of `off_t'.
6719         (c_common_read_pch): Likewise.
6720         * ggc-common.c (gt_pch_save): Use long/ftell instead of
6721         off_t/ftello.
6722
6723 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
6724
6725         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
6726
6727 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
6728
6729         * arm-protos.h (struct cpp_reader): Add declaration.
6730
6731 Sat Jan 11 11:02:58 CET 2003  Jan Hubicka  <jh@suse.cz>
6732
6733         PR target/9068
6734         * i386.c (output_fp_compare): Fix typo.
6735
6736 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
6737
6738         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
6739
6740 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
6741
6742         * Makefile.in (parsedir): New variable.
6743         (docobjdir): New variable.
6744         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
6745         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
6746         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
6747         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
6748         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
6749         Use docobjdir.
6750         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
6751         objc.maintainer-clean): Use parsedir.
6752
6753         * varasm.c (struct constant_descriptor_rtx): Remove unused
6754         `label' field.
6755
6756         * toplev.c (documented_lang_options): Document -Winvalid-pch.
6757
6758 2003-01-10  Richard Henderson  <rth@redhat.com>
6759
6760         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
6761         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
6762
6763 2003-01-10  Richard Henderson  <rth@redhat.com>
6764
6765         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
6766         not INTEGRAL_MODE_P when widening extensions.
6767
6768 2003-01-10  Richard Henderson  <rth@redhat.com>
6769
6770         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
6771
6772 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
6773
6774         * ggc-page.c (ggc_collect): Avoid overflow computing
6775         min_expand.
6776
6777         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
6778         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
6779         Remove calls.
6780         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
6781
6782 Fri Jan 10 22:05:35 CET 2003  Jan Hubicka  <jh@suse.cz>
6783
6784         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
6785         with weird operands.
6786
6787 2003-01-10  Dale Johannesen <dalej@apple.com>
6788
6789         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
6790         parameters.  Call check_sibcall_argument_overlap if indicated.
6791         (check_sibcall_argument_overlap):  Add mark_stored_args_map
6792         parameter.  Don't mark parameter area as clobbered if not set.
6793         (expand_call):  Adjust calls to above.
6794
6795 2003-01-10 Kelley Cook <kelleycook@comcast.net>
6796
6797         * configure.in (linker read-only and read-write section mixing):
6798         Squelch some assembler warnings.
6799         * configure: Likewise.
6800
6801 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
6802
6803         * doc/invoke.texi: Document -mtune, delete -mcpu
6804         option for S/390 and zSeries.
6805         * config/s390/s390.c (s390_tune_string) New variable.
6806         (s390_cpu_string) Delete variable.
6807         (override_options): Use s390_tune_string instead of
6808         s390_cpu_string.
6809         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
6810
6811 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
6812
6813         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
6814
6815 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
6816
6817         * jump.c (next_nonnote_insn_in_loop): New function.
6818         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
6819         next_nonnote_insn.
6820         (duplicate_loop_exit_test). Likewise.
6821
6822 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
6823
6824         Merge from pch-branch:
6825
6826         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
6827
6828         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
6829         load.
6830
6831         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
6832
6833         * cpplib.c (count_registered_pragmas): New function.
6834         (save_registered_pragmas): New function.
6835         (_cpp_save_pragma_names): New function.
6836         (restore_registered_pragmas): New function.
6837         (_cpp_restore_pragma_names): New function.
6838         * cpphash.h (_cpp_save_pragma_names): Prototype.
6839         (_cpp_restore_pragma_names): Likewise.
6840         * cpppch.c (struct save_macro_item): Split from save_macro_data.
6841         (struct save_macro_data): New field 'saved_pragmas'.
6842         (save_macros): Update for changes to struct save_macro_data.
6843         (cpp_prepare_state): Call _cpp_save_pragma_names, update
6844         for changes to struct save_macro_data.
6845         (cpp_read_state): Call _cpp_restore_pragma_names, update
6846         for changes to struct save_macro_data.
6847
6848         * cpppch.c (cpp_read_state): Restore the hashtable references
6849         in the cpp_reader.
6850
6851         * tree.h (built_in_decls): Mark for PCH.
6852
6853         * dbxout.c (lastfile): Don't mark for PCH.
6854
6855         * ggc.h: Document PCH calls into memory managers.
6856
6857         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
6858
6859         * doc/invoke.texi (Precompiled Headers): Document the
6860         directory form of PCH.
6861         * cppfiles.c (validate_pch): New function.
6862         (open_file_pch): Search suitably-named directories for PCH files.
6863
6864         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
6865
6866         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
6867         reorder options.
6868         (Type Information): Mention that the information is also
6869         used to implement PCH.
6870         * doc/passes.texi (Passes): Improve documentation of
6871         language-specific files.
6872
6873         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
6874
6875         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
6876         (struct walk_type_data): Add reorder_fn field.
6877         (walk_type): Process 'reorder' option.
6878         (write_types_process_field): Reorder parameters to gt_pch_note_object,
6879         call reorder_note_routine.
6880         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
6881         (ggc_wtd): Update for change to struct write_types_data.
6882         (pch_wtd): Likewise.
6883         * ggc.h (gt_pch_note_object): Reorder parameters.
6884         (gt_handle_reorder): New definition.
6885         (gt_pch_note_reorder): New prototype.
6886         * ggc-common.c (struct ptr_data): Add reorder_fn.
6887         (gt_pch_note_object): Reorder parameters.
6888         (gt_pch_note_reorder): New.
6889         (gt_pch_save): Call reorder_fn.
6890         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
6891
6892         * dbxout.c (cwd): Don't mark for PCH.
6893
6894         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
6895
6896         * gengtype.c (finish_root_table): Fix some warnings.
6897         (write_root): Handle TYPE_STRING.
6898         * ggc.h (gt_ggc_m_S): Add prototype.
6899         * stringpool.c (gt_ggc_m_S): New function.
6900
6901         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
6902
6903         * dwarf2out.c (dw2_string_counter): New.
6904         (AT_string_form): Use it.
6905         (same_dw_val_p): Update for removal of hashtable.h hash tables.
6906
6907         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
6908
6909         * dbxout.c: Include gt-dbxout.h.
6910         (lastfile): Mark for PCH/GGC.
6911         (cwd): Likewise.
6912         (struct typeinfo): Likewise.
6913         (typevec): Likewise.
6914         (typevec_len): Likewise.
6915         (next_type_number): Likewise.
6916         (struct dbx_file): Likewise.
6917         (current_file): Likewise.
6918         (next_file_number): Likewise.
6919         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
6920         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
6921         (dbxout_end_source_file): Don't free struct dbx_file.
6922         (dbxout_type): Use GGC to allocate typevec.
6923         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
6924         (GTFILES): Add dbxout.c.
6925         (gt-dbxout.h): New rule.
6926
6927         * Makefile.in (c-pch.o): Add debug.h as dependency.
6928         * c-pch.c: Include debug.h.
6929         (pch_init): Call start_source_file to keep nesting right.
6930         (c_common_read_pch): Add orig_name parameter.  Call
6931         start_source_file debug hook.  Call end_source_file debug hook.
6932         * c-common.h (c_common_read_pch): Update prototype.
6933         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
6934         callback.
6935         * cppfiles.c (struct include_file): Add new field `header_name'.
6936         (find_or_create_entry): Default it to `name'.
6937         (open_file_pch): Set it to the original header file searched for.
6938         (stack_include_file): Don't stack an empty buffer, just handle
6939         PCH files immediately.  Pass header_name field to read_pch callback.
6940
6941         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
6942
6943         * function.c (funcdef_no): Mark to be saved in a PCH.
6944
6945         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
6946
6947         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
6948
6949         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
6950
6951         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
6952
6953         * optabs.h (code_to_optab): Add GTY marker.
6954
6955         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
6956
6957         * Makefile.in (GTFILES): Add cpplib.h.
6958         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
6959         * c-decl.c (build_compound_literal): Don't use var_labelno.
6960         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
6961         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
6962         * varasm.c (const_labelno): Use gengtype to mark.
6963         (var_labelno): Likewise.
6964         (in_section): Likewise.
6965         (in_named_name): Likewise.
6966         (struct in_named_entry): Likewise.
6967         (in_named_htab): Likewise.
6968         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
6969         (init_varasm_once): Use GGC to allocate in_named_htab.
6970         * config/darwin.c (current_pic_label_num): Mark for PCH.
6971
6972         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
6973
6974         * ggc-simple.c (init_ggc_pch): New stub procedure.
6975         (ggc_pch_count_object): Likewise.
6976         (ggc_pch_total_size): Likewise.
6977         (ggc_pch_this_base): Likewise.
6978         (ggc_pch_alloc_object): Likewise.
6979         (ggc_pch_prepare_write): Likewise.
6980         (ggc_pch_write_object): Likewise
6981         (ggc_pch_finish): Likewise.
6982         (ggc_pch_read): Likewise.
6983
6984         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
6985
6986         * c-pch.c (c_common_write_pch): Write the macro definitions after
6987         the GCed data.
6988         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
6989         definitions after the GCed data.
6990         * cpplib.c (save_macros): New.
6991         (reset_ht): New.
6992         (cpp_write_pch_deps): Split out of cpp_write_pch.
6993         (cpp_write_pch_state): Split out of cpp_write_pch.
6994         (cpp_write_pch): Delete.
6995         (struct save_macro_data): Delete.
6996         (cpp_prepare_state): New.
6997         (cpp_read_state): Erase and restore initial macro definitions.
6998         * cpplib.h (struct save_macro_data): Forward-declare.
6999         (cpp_write_pch_deps): Prototype.
7000         (cpp_write_pch_state): Prototype.
7001         (cpp_write_pch): Delete prototype.
7002         (cpp_prepare_state): Prototype.
7003         (cpp_read_state): Add fourth argument.
7004
7005         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
7006
7007         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
7008         (write_array): Remove warning.
7009
7010         * gengtype.c (contains_scalar_p): New.
7011         (finish_root_table): Add the table to all languages, even if it's
7012         empty.
7013         (write_roots): Output gt_pch_scalar_rtab.
7014         * ggc-common.c (gt_pch_save): Write out scalars.
7015         (gt_pch_restore): Read scalars back.
7016
7017         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
7018         (struct page_entry): Delete pch_page field.
7019         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
7020         (clear_marks): Likewise.
7021         (sweep_pages): Likewise.
7022         (poison_pages): Likewise.
7023         (ggc_print_statistics): Likewise.
7024         (ggc_pch_read): Don't free objects read from a PCH.
7025         Properly set up in_use_p and page_tails.
7026
7027         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
7028
7029         * gengtype.c (struct write_types_data): New.
7030         (struct walk_type_data): Make `cookie' const; add extra
7031         prev_val item; add `orig_s' field.
7032         (walk_type): Update prev_val[3].
7033         (write_types_process_field): New.
7034         (write_func_for_structure): Take write_types_data structure.
7035         (write_types): New.
7036         (ggc_wtd): New.
7037         (pch_wtd): New.
7038         (write_types_local_process_field): New.
7039         (gc_mark_process_field): Delete.
7040         (write_local_func_for_structure): New.
7041         (gc_mark_func_name): Delete.
7042         (write_gc_types): Delete.
7043         (write_local): New.
7044         (finish_root_table): Don't include 'ggc_' in PFX.
7045         (write_root): Rename from write_root.  Fill pchw field of structures.
7046         (write_array): New.
7047         (write_roots): Rename from write_gc_roots.  Split out to write_array.
7048         Update to changes to other routines.  Write gt_pch_cache_rtab table.
7049         (main): Write PCH walking routines.
7050         * ggc-common.c: Include toplev.h, sys/mman.h.
7051         (ggc_mark_roots): For cache hashtables, also mark the hash table
7052         and the array of entries.
7053         (saving_htab): New.
7054         (struct ptr_data): New.
7055         (POINTER_HASH): New.
7056         (gt_pch_note_object): New.
7057         (saving_htab_hash): New.
7058         (saving_htab_eq): New.
7059         (struct traversal_state): New.
7060         (call_count): New.
7061         (call_alloc): New.
7062         (compare_ptr_data): New.
7063         (relocate_ptrs): New.
7064         (write_pch_globals): New.
7065         (struct mmap_info): New.
7066         (gt_pch_save): New.
7067         (gt_pch_restore): New.
7068         * ggc-page.c (ROUND_UP_VALUE): New.
7069         (ROUND_UP): New.
7070         (struct page_entry): Add field `pch_page'.
7071         (init_ggc): Use ROUND_UP.
7072         (struct ggc_pch_data): Declare.
7073         (init_ggc_pch): New.
7074         (ggc_pch_count_object): New.
7075         (ggc_pch_total_size): New.
7076         (ggc_pch_this_base): New.
7077         (ggc_pch_alloc_object): New.
7078         (ggc_pch_prepare_write): New.
7079         (ggc_pch_write_object): New.
7080         (ggc_pch_finish): New.
7081         (ggc_pch_read): New.
7082         * ggc.h (gt_pointer_operator): New.
7083         (gt_note_pointers): New.
7084         (gt_pch_note_object): New prototype.
7085         (gt_pointer_walker): New.
7086         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
7087         (LAST_GGC_ROOT_TAB): Update.
7088         (gt_pch_cache_rtab): Declare.
7089         (gt_pch_scalar_rtab): Declare.
7090         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
7091         (LAST_GGC_CACHE_TAB): Update.
7092         (gt_pch_save_stringpool): Declare.
7093         (gt_pch_restore_stringpool): Declare.
7094         (gt_pch_p_S): Declare.
7095         (gt_pch_n_S): Declare.
7096         (struct ggc_pch_data): Forward-declare.
7097         (init_ggc_pch): Declare.
7098         (ggc_pch_count_object): Declare.
7099         (ggc_pch_total_size): Declare.
7100         (ggc_pch_this_base): Declare.
7101         (ggc_pch_alloc_object): Declare.
7102         (ggc_pch_prepare_write): Declare.
7103         (ggc_pch_write_object): Declare.
7104         (ggc_pch_finish): Declare.
7105         (ggc_pch_read): Declare.
7106         (gt_pch_save): Declare.
7107         (gt_pch_restore): Declare.
7108         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
7109         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
7110         const_double_htab, mem_attrs_htab using GGC.
7111         * c-pch.c: Include ggc.h.
7112         (pch_init): Allow reading PCH file back.
7113         (c_common_write_pch): Call gt_pch_save.
7114         (c_common_read_pch): Call gt_pch_restore.
7115         * c-parse.in (init_reswords): Delete now-untrue comment.
7116         Allocate ridpointers using GGC.
7117         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
7118         calling expand_deferred_fns.
7119         * c-common.h (ridpointers): Mark for GTY machinery.
7120         * Makefile.in (stringpool.o): Update dependencies.
7121         (c-pch.o): Update dependencies.
7122         (ggc-common.o): Update dependencies.
7123         * stringpool.c: Include gt-stringpool.h.
7124         (gt_pch_p_S): New.
7125         (gt_pch_n_S): New.
7126         (struct string_pool_data): New.
7127         (spd): New.
7128         (gt_pch_save_stringpool): New.
7129         (gt_pch_restore_stringpool): New.
7130         * tree.c (init_ttree): Make type_hash_table allocated using GC.
7131
7132         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
7133
7134         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
7135         (output_mangled_typename): Don't pass size_t to printf.
7136
7137         * tree.h (union tree_type_symtab): Add tag to `address' field.
7138         (union tree_decl_u2): Add tag to 'i' field.
7139         * varasm.c (union rtx_const_un): Add tags to all fields.
7140         * gengtype.c (struct walk_type_data): New.
7141         (output_escaped_param): Take struct walk_type_data parameter.
7142         (write_gc_structure_fields): Delete.
7143         (walk_type): New.
7144         (write_gc_marker_routine_for_structure): Delete.
7145         (write_func_for_structure): New.
7146         (gc_mark_process_field): New.
7147         (gc_mark_func_name): New.
7148         (gc_counter): Delete.
7149         (write_gc_types): Use write_func_for_structure.
7150         (write_gc_roots): Use walk_type.
7151
7152         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
7153
7154         * ggc-common.c (ggc_mark_roots): Delete 'x'.
7155         (ggc_splay_dont_free): Fix warning about unused 'x'.
7156         (ggc_print_common_statistics): Remove warnings.
7157
7158         2002-10-01  Mike Stump  <mrs@apple.com>
7159
7160         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
7161         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
7162
7163         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
7164             Catherine Moore  <clm@redhat.com>
7165
7166         * Makefile (c-pch.o): Update dependencies.
7167         (LIBCPP_OBJS): Add cpppch.o.
7168         (cpppch.o): New.
7169         * c-common.c (c_common_init): Don't call pch_init here.
7170         * c-common.h (c_common_read_pch): Update prototype.
7171         * c-lex.c (c_common_parse_file): Call pch_init here.
7172         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
7173         (c_common_decode_option): Handle them.
7174         * c-pch.c: Include c-pragma.h.
7175         (save_asm_offset): Delete.
7176         (pch_init): Move contents of save_asm_offset into here, call
7177         cpp_save_state.
7178         (c_common_write_pch): Call cpp_write_pch.
7179         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
7180         cpp_valid_state.
7181         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
7182         * cppfiles.c (stack_include_file): Update for change to
7183         parameters of cb.read_pch.
7184         * cpphash.h (struct cpp_reader): Add `savedstate' field.
7185         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
7186         `restore_pch_deps' fields.
7187         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
7188         (cpp_save_state): Prototype.
7189         (cpp_write_pch): Prototype.
7190         (cpp_valid_state): Prototype.
7191         (cpp_read_state): Prototype.
7192         * cpppch.c: New file.
7193         * flags.h (version_flag): Remove prototype.
7194         * mkdeps.c (deps_save): New.
7195         (deps_restore): New.
7196         * mkdeps.h (deps_save): Prototype.
7197         (deps_restore): Prototype.
7198         * toplev.c (late_init_hook): Delete.
7199         (version_flag): Make static again.
7200         (compile_file): Don't call late_init_hook.
7201         * toplev.h (late_init_hook): Delete.
7202         * doc/cppopts.texi: Document -fpch-deps.
7203         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
7204
7205         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
7206
7207         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
7208         callers.
7209         (c_common_valid_pch): Rename from c_valid_pch, change callers.
7210         (c_common_read_pch): Rename from c_read_pch, change callers.
7211
7212         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
7213         a space between it and its argument.
7214
7215         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
7216
7217         * c-pch.c: New file.
7218         * toplev.h (late_init_hook): Declare.
7219         * toplev.c (late_init_hook): Define.
7220         (version_flag): Make globally visible.
7221         (compile_file): Call late_init_hook.
7222         (init_asm_output): Make output file seekable.
7223         * gcc.c (default_compilers): Update c-header rule.
7224         * flags.h (version_flag): Declare.
7225         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
7226         fields.
7227         * cppfiles.c (struct include_file): Add 'pch' field.
7228         (INCLUDE_PCH_P): New.
7229         (open_file_pch): New.
7230         (stack_include_file): Handle PCH files specially.
7231         (find_include_file): Call open_file_pch instead of open_file.
7232         (_cpp_read_file): Explain why open_file is used instead of
7233         open_file_pch.
7234         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
7235         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
7236         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
7237         in cpplib callbacks.
7238         * c-common.c (pch_file): Correct comment.
7239         (allow_pch): Define.
7240         (c_common_init): Call pch_init.
7241         * c-common.h (allow_pch): Declare.
7242         (pch_init): Declare.
7243         (c_valid_pch): Declare.
7244         (c_read_pch): Declare.
7245         (c_write_pch): Declare.
7246         * Makefile.in (c-pch.o): New.
7247         (C_AND_OBJC_OBJS): Add c-pch.o.
7248         * doc/invoke.texi (Precompiled Headers): Add index entries,
7249         complete truncated paragraph.
7250
7251         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
7252
7253         * c-common.c: (pch_file): Define.
7254         * c-common.h (pch_file): Declare.
7255         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
7256         (missing_arg): Require --output-pch= to have an argument.
7257         (c_common_decode_option): Handle --output-pch=.
7258         * gcc.c: Document new %V.
7259         (default_compilers): Handle compiling C header files.
7260         (do_spec_1): Implement %V.
7261         (main): Handle "gcc foo.h" without trying to run linker.
7262         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
7263         (Overall Options): Document what the driver does with header files,
7264         document new -x option possibilities.
7265         (Invoking G++): More documentation for PCH.
7266         (Precompiled Headers): New.
7267
7268         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
7269
7270         * ggc.h: Don't include varray.h.  Rearrange functions to be more
7271         organized.
7272         (ggc_add_root): Delete.
7273         (ggc_mark_rtx): Delete.
7274         (ggc_mark_tree): Delete.
7275         (struct ggc_statistics): Remove contents.
7276         * ggc-common.c: Remove unneeded includes.
7277         (struct ggc_root): Delete.
7278         (roots): Delete.
7279         (ggc_add_root): Delete.
7280         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
7281         (ggc_print_common_statistics): Remove most of the contents.
7282         * Makefile.in (GGC_H): No longer uses varray.h.
7283         (ggc-common.o): Update dependencies.
7284         (c-parse.o): Add varray.h to dependencies.
7285         (c-common.o): Add varray.h.
7286         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
7287         (mark_ident_hash): Rename to ggc_mark_stringpool.
7288         (init_stringpool): Don't use ggc_add_root.
7289         * c-parse.in: Include varray.h.
7290         * c-common.c: Include varray.h.
7291         * objc/Make-lang.in (objc-act.o): Add varray.h.
7292         * objc/objc-act.c: Include varray.h.
7293
7294         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
7295
7296         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
7297         (dw_cfi_oprnd1_desc): Likewise.
7298
7299         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
7300
7301         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
7302         move out of ifdef.
7303         (alpha_links): Use gengtype to mark; move out of ifdef.
7304         (mark_alpha_links_node): Delete.
7305         (mark_alpha_links): Delete.
7306         (alpha_need_linkage): Use GGC to allocate splay tree, struct
7307         alpha_links, strings.  Don't use ggc_add_root.
7308         * ggc-common.c (ggc_splay_alloc): New.
7309         (ggc_splay_dont_free): New.
7310         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
7311         (ggc_mark_tree): Likewise.
7312         (splay_tree_new_ggc): New.
7313         (ggc_splay_alloc): Declare.
7314         (ggc_splay_dont_free): Declare.
7315         * dwarf2asm.c: Include gt-dwarf2asm.h.
7316         (mark_indirect_pool_entry): Delete.
7317         (mark_indirect_pool): Delete.
7318         (indirect_pool): Use gengtype to mark.
7319         (dw2_force_const_mem): Don't use ggc_add_root.
7320         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
7321         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
7322         (gt-dwarf2asm.h): Depend on s-gtype.
7323
7324         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
7325
7326         * tree.h (union tree_type_symtab): Mark `die' field.
7327         * Makefile.in (dwarf2out.o): Update dependencies.
7328         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
7329         hash tables.
7330         (dw_cfi_oprnd1_desc): New function.
7331         (dw_cfi_oprnd2_desc): New function.
7332         (indirect_string_alloc): Delete.
7333         (debug_str_do_hash): New function.
7334         (debug_str_eq): New function.
7335         (mark_limbo_die_list): Delete.
7336         (dwarf2out_init): Don't call ggc_add_root.
7337
7338 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
7339
7340         The following changes are merged from itanium-sched-branch:
7341
7342         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
7343
7344         * doc/md.texi: Clarify assignment of units to automata description.
7345
7346         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
7347
7348         * genautomata.c (unit_decl): Remove members
7349         `the_same_automaton_unit' and
7350         `the_same_automaton_message_reported_p'.
7351         (process_unit_to_form_the_same_automaton_unit_lists,
7352         form_the_same_automaton_unit_lists_from_regexp,
7353         form_the_same_automaton_unit_lists, the_same_automaton_lists):
7354         Remove them.
7355         (annotation_message_reported_p): New global variable.
7356         (check_unit_distribution_in_reserv,
7357         check_regexp_units_distribution): New functions.
7358         (check_unit_distributions_to_automata): Rewrite it.
7359
7360         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
7361
7362         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
7363         Use continue instead of break if cycle is too big.
7364
7365         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
7366
7367         * genautomata.c (check_unit_distributions_to_automata): Output at
7368         most one message for a unit.
7369         (process_unit_to_form_the_same_automaton_unit_lists): Check
7370         automaton of units instead of units themself.
7371
7372         * doc/md.texi: Describe the constraint about assigning unit to
7373         automata.
7374
7375         2002-12-20  Jan Hubicka  <jH@suse.cz>
7376                     Vladimir Makarov  <vmakarov@redhat.com>
7377
7378         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
7379         and `in_set_p'.
7380         (gen_cpu_unit): Initialize the new members.
7381         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
7382         up `min_occ_cycle_num'.
7383         (evaluate_max_reserv_cycles): Change the function call.
7384         (CLEAR_BIT): New macro.
7385         (states_union, state_shift): Use the mask.
7386         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
7387         (form_reservs_matter): New function.
7388         (make_automaton): Call the function and use the mask.
7389         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
7390         account.
7391
7392         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7393
7394         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
7395
7396         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7397
7398         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
7399         for Itanium.
7400
7401         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7402
7403         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
7404         default cpu.
7405
7406         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
7407                 2002-10-31  Dale Johannesen <dalej@apple.com>
7408
7409         * haifa-sched.c (find_set_reg_weight): New function.
7410         (find_insn_reg_weight): Use the new function.
7411         (schedule_block): Do sorting ready queue always
7412         after insn issue.
7413
7414         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
7415
7416         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
7417
7418         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
7419
7420         * haifa-sched.c (choice_entry): New structure.
7421         (choice_stack, cycle_issued_insns): New variables.
7422         (max_issue): Rewrite it.
7423         (choose_ready): Set up ready_try for unknown insns too.
7424         (schedule_block): Allocate and free choice_stack.  Set up
7425         and modify cycle_issued_insns.
7426
7427         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
7428         with and without filling the bundle.
7429         (bundling): Combine calls of issue_nops_and_insn.
7430
7431         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
7432
7433         * config/ia64/itanium1.md: New file.
7434
7435         * config/ia64/itanium2.md: New file.
7436
7437         * config/ia64/ia64.md: Move DFA descriptions into the new files.
7438         Remove the old pipeline description.
7439
7440         * config/ia64/ia64.c (ia64_override_options): Add aliases of
7441         itanium processor names.
7442
7443         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
7444
7445         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
7446         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
7447
7448         * config/ia64/ia64.md: Add descriptions for Itanium2.
7449
7450         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
7451
7452         * config/ia64/ia64.h (processor_type): New enumeration.
7453         (ia64_tune, ia64_tune_string): New external declarations.
7454         (TARGET_OPTIONS): Add option `tune='.
7455
7456         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
7457         variables.
7458         (ia64_override_options): Set up `ia64_tune'.
7459         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
7460         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
7461         (bundling): Add nops for MM-insns only for Itanium.
7462         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
7463         Itanium.
7464
7465         * config/ia64/ia64.md (cpu): New attribute.
7466         (DFA description): Enable it only for Itanium.
7467
7468         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
7469                     Richard Henderson  <rth@redhat.com>
7470
7471         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
7472         MASK_EARLY_STOP_BITS.
7473         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
7474         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
7475         `early-stop-bits'.
7476
7477         * config/ia64/ia64.c (ia64_dfa_new_cycle,
7478         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
7479         instead of TARGET_TUNE_STOP_BITS.
7480
7481         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
7482         `-mearly-stop-bits'.
7483
7484         * config/ia64/ia64.c (automata_option "v"): Comment it.
7485
7486         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
7487
7488         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
7489         New macros.
7490         (TARGET_SWITCHES): Add entries for the new option.
7491
7492         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
7493         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
7494         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
7495         global variables.
7496         (ia64_sched_reorder2): Set up `clocks'.
7497         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
7498         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
7499         queue when TARGET_TUNE_STOP_BITS.
7500         (bundling): Insert additional nops for MM-insns.
7501         (final_emit_insn_group_barriers): Add insertion of stop bits
7502         according `stops_p'.
7503         (ia64_reorg): Initiate the new varibales.
7504
7505         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
7506
7507         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
7508
7509         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
7510         insns at the end of block insn scheduling.
7511
7512         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
7513
7514         * sched-deps.c (remove_dependence, group_leader): Remove it.
7515         (add_dependence): Add dependence to group leader to.
7516         (set_sched_group_p): Add dependence to the first insn of the
7517         schedule group too.
7518         (sched_analyze_insn): Make dependence to jump as anti-dependence.
7519         Change true dependence by anti-dependence when
7520         `reg_pending_barrier'.
7521
7522         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
7523         add_branch_dependences): Ignore schedule groups.
7524
7525         * sched-ebb.c (init_ready_list): Ditto.
7526
7527         * (move_insn, set_priorities): Ditto.
7528
7529         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
7530         flag is clear after reload.
7531         (adjust_cost): Change cost only for output dependencies.
7532
7533         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
7534
7535         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
7536
7537         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
7538
7539         * target.h (gcc_target): Add member
7540         `dependencies_evaluation_hook'.
7541
7542         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
7543         macro.
7544         (TARGET_SCHED): Add initiatialization of the new member.
7545
7546         * sched-ebb.c: Include `target.h'.
7547         (schedule_ebb): Call `dependencies_evaluation_hook'.
7548
7549         * sched-rgn.c (schedule_region): Call
7550         `dependencies_evaluation_hook'.
7551
7552         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
7553         New macro.
7554         (ia64_dependencies_evaluation_hook): New function.
7555
7556         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
7557         Describe the new hook.
7558
7559         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
7560
7561         * target.h (gcc_target): Add members
7562         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
7563
7564         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
7565         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
7566         macros.
7567         (TARGET_SCHED): Add initiatialization of the new members.
7568
7569         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
7570         insn scheduling too.
7571         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
7572         initialize `ready_try'.
7573         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
7574         `dfa_new_cycle' says not to do it.
7575
7576         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
7577         bundling.
7578
7579         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
7580
7581         * config/ia64/ia64.c: Include `hashtab.h'.
7582         (ia64_first_cycle_multipass_dfa_lookahead_guard,
7583         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
7584         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
7585         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
7586         bundle_state_eq_p, insert_bundle_state,
7587         initiate_bundle_state_table, finish_bundle_state_table,
7588         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
7589         get_template, get_next_important_insn, bundling): New functions.
7590         (ia64_internal_sched_reorder): Remove it.
7591         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
7592         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
7593         (ia64_safe_itanium_requires_unit0): Remove it.
7594         (group_barrier_needed_p): Place group barrier right before a real
7595         insn.
7596         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
7597         Remove them.
7598         (bundle_name): New variable.
7599         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
7600         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
7601         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
7602         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
7603         temp_dfa_state, prev_cycle_state): New global variables.
7604         (insn_matches_slot, maybe_rotate, finish_last_head,
7605         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
7606         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
7607         find_best_packet, itanium_reorder, dump_current_packet,
7608         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
7609         (sched_data, sched_ready, sched_types): Remove them.
7610         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
7611         `init_insn_group_barriers'.
7612         (ia64_sched_reorder, ia64_sched_reorder2): Call
7613         ia64_dfa_sched_reorder.
7614         (ia64_variable_issue): Rewrite it.
7615         (bundle_state): New structure.
7616         (index_to_bundle_states, bundle_states_num,
7617         allocated_bundle_states_chain, free_bundle_state_chain): New
7618         global variables.
7619         (ia64_sched_finish): Add stop bits and call `bundling' after the
7620         2nd insn scheduling.
7621         (ia64_use_dfa_pipeline_interface): Return zero always.
7622         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
7623         insn scheduling.
7624         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
7625         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
7626         (ia64_reorg): Add bundling insns.
7627
7628         * doc/tm.texi
7629         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
7630         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
7631
7632         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
7633
7634         * config/ia64/ia64.md: Add Itanium1 DFA description.
7635         (itanium_class): Add `nop' and `pre_cycle'.  Add
7636         define_function_unit for `nop'.
7637         (nop): Change attribute `itanium_class'.
7638         (pre_cycle): New define_insn.
7639
7640         * config/ia64/ia64-protos.h (bundling_p): New external variable.
7641         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
7642         ia64_produce_address_p): New function prototypes.
7643
7644         * config/ia64/ia64.c (bundling_p): New global variable.
7645         (ia64_use_dfa_pipeline_interface,
7646         ia64_first_cycle_multipass_dfa_lookahead,
7647         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
7648         functions.
7649         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7650         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7651         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7652         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
7653         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
7654         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
7655         (dfa_pre_cycle_insn): New variable.
7656
7657         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
7658
7659         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
7660         constructions.
7661
7662         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
7663         New function prototypes.
7664
7665         * genattrtab.c (main): Process the new constructions.
7666
7667         * genautomata.c (gen_presence_absence_set,
7668         process_presence_absence_names, process_presence_absence_patterns,
7669         add_presence_absence, check_absence_pattern_sets): Add parameter
7670         `final_p'.
7671         (unit_decl): Add new members `final_presence_list' and
7672         `final_absence_list'.
7673         (unit_pattern_rel_decl): Add new member `final_p'.
7674         (gen_final_presence_set, gen_final_absence_set): New functions.
7675         (process_decls): Use member `final_p'.
7676         (temp_reserv): New global variable.
7677         (reserv_sets_are_intersected): Add processing `final_presence_set'
7678         and `final_absence_set'.
7679         (initiate_states): Allocate `temp_reserv'.
7680         (unit_final_presence_set_table, unit_final_absence_set_table): New
7681         gloabal variables.
7682         (initiate_presence_absence_pattern_sets): Initiate them.
7683         (NDFA_to_DFA): Fix typo.
7684         (output_description): Output `final_presence_set' and
7685         `final_absence_set'.
7686
7687         * doc/md.texi (final_presence_set, final_absence_set): Describe
7688         them.
7689
7690         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
7691
7692         * genautomata.c (transform_3): Process a missing case (nothing on
7693         unit place).
7694
7695         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
7696
7697         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
7698         comments about queried units and the minimization.
7699
7700         * doc/md.texi: Ditto.
7701
7702         * genautomata.c (create_composed_state): Return nonzero if the new
7703         state has been created.
7704         (first_cycle_unit_presence): New function.
7705         (state_is_differed): Add new parameter.  Use the new function.
7706         Take queried units into account.
7707         (partition_equiv_class): Pass additional parameter to
7708         `state_is_differed'.
7709         (merge_states): Process composed states too.
7710         (build_automaton, create_automata, output_min_issue_delay_table,
7711         output_tables, output_statistics): Output more information.
7712         (output_reserved_units_table): Use function
7713         `first_cycle_unit_presence'.
7714         (output_tables): Output table of queried units even if the
7715         minimization is switched on.
7716         (write_automata): Output code for querying units even if the
7717         minimization is switched on.
7718
7719         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
7720
7721         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
7722         syntax of the constructions.
7723
7724         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
7725         extended syntax of the constructions.
7726
7727         * genautomata.c (unit_rel_decl): Rename it to
7728         `unit_pattern_rel_decl'.
7729         (pattern_set_el, pattern_reserv): New structures.
7730         (pattern_set_el_t, pattern_reserv_t): New types.
7731         (gen_presence_absence_set): New function.
7732         (process_presence_absence): Remove it.
7733         (process_presence_absence_names,
7734         process_presence_absence_patterns): New functions.
7735         (get_presence_absence_set): Remove it.
7736         (initiate_presence_absence_sets): Rename it on
7737         `initiate_presence_absence_pattern_sets'.  Use new function
7738         `form_reserv_sets_list'.
7739         (form_reserv_sets_list, check_presence_pattern_sets,
7740         check_absence_pattern_sets, output_pattern_set_el_list): New
7741         functions.
7742         (unit_decl): Change types of members `presence_list' and
7743         `absence_list'.
7744         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
7745         (decl): Change types of members `excl', `presence', and `absence'.
7746         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
7747         at the end of the vector.
7748         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7749         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
7750         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
7751         (gen_presence_set, gen_absence_set): Use new function
7752         `gen_presence_absence_set'.
7753         (add_presence_absence): Process `pattern_list' instead of
7754         `source_list'.
7755         (process_decls): USe new functions
7756         `process_presence_absence_names' and
7757         `process_presence_absence_patterns'.
7758         (reserv_sets_are_intersected): Use new function
7759         `check_presence_pattern_sets'.
7760         (presence_set, absence_set): Remove them.
7761         (unit_presence_set_table, unit_absence_set_table): New global
7762         variables.
7763         (output_description): Use new function
7764         `output_pattern_set_el_list'.
7765         (generate): Use `initiate_presence_absence_pattern_sets'.
7766
7767         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
7768
7769         * genattr.c (main): Add output of prototype of new interface
7770         function `dfa_clean_insn_cache'.
7771
7772         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
7773         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
7774         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
7775         the generated code.
7776         (write_automata): Call the new function.
7777
7778 Thu Jan  9 22:47:38 CET 2003  Jan Hubicka  <jh@suse.cz>
7779
7780         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
7781         correctly.
7782
7783 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
7784
7785         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
7786
7787 Thu Jan  9 17:26:40 2003  J"orn Rennecke <joern.rennecke@superh.com>
7788
7789         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
7790         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
7791         (CONSTRAINT_LEN): Provide default definition.
7792         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7793         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
7794         (EXTRA_CONSTRAINT_STR): Likewise.
7795         (REG_CLASS_FROM_CONSTRAINT): Define.
7796         * genoutput.c (check_constraint_len, constraint_len): New functions.
7797         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
7798         constraint / modifier.
7799         (gen_insn): Call check_constraint_len.
7800         * local-alloc.c (block_alloc): Update to use new macros / pass
7801         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
7802         * ra-build.c (handle_asm_insn): Likewise.
7803         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7804         (constrain_operands, peep2_find_free_register): Likewise.
7805         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
7806         * regmove.c (find_matches): Likewise.
7807         * reload.c (push_secondary_reload, find_reloads): Likewise.
7808         (alternative_allows_memconst): Likewise.
7809         * reload1.c (maybe_fix_stack_asms): Likewise.
7810         (reload_cse_simplify_operands): Likewise.
7811         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7812         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
7813         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
7814         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
7815         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
7816         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
7817
7818         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
7819
7820 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
7821
7822         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
7823         length.
7824         (*extzv_1_r_h8300hs): Likewise.
7825         (*extzv_1_r_inv_h8300): Likewise.
7826         (*extzv_1_r_inv_h8300hs): Likewise.
7827
7828 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
7829
7830         * config/h8300/h8300.h (PREDICATE_CODES): New.
7831
7832 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
7833
7834         * config/h8300/h8300.md (*addsi3_upper): New.
7835         (*iorsi3_shift): Likewise.
7836         (two splitters): Likewise.
7837         (*addsi3_shift): Likewise.
7838         (two splitters): Likewise.
7839
7840 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
7841
7842         * Makefile.in (optabs.o): Add dependency on basic-block.h.
7843         * basic-block.h (control_flow_insn_p): Fuction was exported.
7844         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
7845         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
7846         notes only when the region is contained in a single basic block.
7847
7848 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7849
7850         PR inline-asm/8832
7851         * tree.h (expand_asm): New prototype.
7852         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
7853         to do so.
7854         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
7855         down to expand_asm.
7856         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
7857         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
7858         (volatile_refs_p) [ASM_INPUT]: Likewise.
7859         (side_effects_p) [ASM_INPUT]: Likewise.
7860
7861 Thu Jan  9 12:00:36 CET 2003  Jan Hubicka  <jh@suse.cz>
7862
7863         * i386.md (*mul*): FIx constraints; remove confused comment; fix
7864         athlon_decode attributes
7865         (imul/k8 optimization peep2s): New.
7866
7867         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
7868         * i386.md (type attribute): Add ssecomi.
7869         (unit, memory, prefix attributes): Handle ssecomi.
7870         (cvt?2? patterns): Fix athlon_decode attribute
7871         (comi patterns): Set attribute to ssecomi.
7872
7873         PR target/8343
7874         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
7875
7876 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
7877
7878         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
7879         that match register_operands.
7880         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
7881         register_operand the default case.
7882
7883 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
7884
7885         PR c/8032
7886         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
7887         an empty element, do not advance the pointer to unfilled
7888         fields if there are pending initializers.
7889
7890 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
7891
7892         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
7893         (install-gcc-tooldir, install-cpp, installdirs,
7894         install-common, install-driver, install-info, install-man,
7895         install-headers, install-include-dir, install-headers-tar,
7896         install-headers-cpio, install-headers-cp, install-mkheaders,
7897         install-collect2, uninstall): Prepend $(DESTDIR) to
7898         destination paths in all (un)installation commands.
7899         (install-driver): Rewrite $(LN) commands to support DESTDIR
7900         with "ln" as well as with "ln -s".
7901         (installdirs): Simply use mkinstalldirs.
7902         (install-libgcc, install-multilib): Also pass DESTDIR.
7903         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
7904         installation destination variable ldir.
7905         * config/alpha/t-osf4, config/arm/t-netbsd,
7906         config/ia64/t-hpux, config/mips/t-iris5-6,
7907         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
7908         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
7909         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
7910         in the definition of SHLIB_INSTALL.
7911         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
7912         $(libsubdir) in the installation commands.
7913
7914 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7915
7916         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
7917         non-optimizing compile.
7918         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
7919         compile.
7920
7921 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
7922
7923         * config/i386/i386.c (ix86_attribute_table): Add new attributes
7924         ms_struct and gcc_struct.
7925         (ix86_handle_struct_attribute): New function.
7926         (ix86_ms_bitfield_layout_p): Update to take new attributes
7927         into account.
7928         * doc/extend.texi: Document new attributes.
7929         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
7930
7931 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
7932
7933         PR optimization/8750
7934         * config/i386/i386.c (ix86_expand_prologue): Don't allow
7935         scheduling pass to move insns across __alloca call.
7936
7937 2003-01-08  Dale Johannesen  <dalej@apple.com>
7938
7939         * config/rs6000/rs6000.md:  Replace *store_multiple_string
7940         with *stmsi[3-8].
7941
7942 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
7943
7944         PR target/9210
7945         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
7946         Set SYMBOL_REF_FLAG on local data sym_ref.
7947
7948 2003-01-08  Dale Johannesen  <dalej@apple.com>
7949
7950         * function.c (assign_parms):  Don't set pretend_args_size if
7951           REG_PARM_STACK_SPACE.
7952           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
7953           pretend_args_size.
7954
7955 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
7956
7957         * gcc.hlp: Delete.
7958
7959 Thu Jan  9 00:57:15 CET 2003  Jan Hubicka  <jh@suse.cz>
7960
7961         * i386.c  (ix86_expand_int_addcc): Fix thinko.
7962
7963 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
7964
7965         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
7966         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
7967         as hook_bool_tree_hwi_hwi_tree_true.
7968         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
7969         (rs6000_emit_epilogue): Same.
7970         (rs6000_output_mi_thunk): Re-implement as RTL.
7971         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
7972         xcoffout_declare_function if any debugging enabled.
7973
7974 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
7975
7976         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
7977         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
7978         * config/mips/mips.h (enum processor_type): Rename
7979         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
7980         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
7981         Add PROCESSOR_M4K.
7982         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
7983         (ISA_MIPS32R2): New define.
7984         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
7985         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
7986         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
7987         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
7988         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
7989         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
7990         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
7991         compiling MIPS16 code.
7992         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
7993         comment.
7994         (ISA_HAS_SEB_SEH): New define.
7995         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
7996         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
7997         processor_type value renaming.  Add support for MIPS32R2.
7998         Clean up comments, and move "sb1" entry with other MIPS64 CPU
7999         entries.
8000         (override_options): Reimplement -mipsN option handling so that
8001         it will work correctly for -mips32r2.  Avoid branch-likely
8002         instructions on MIPS32R2.
8003         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
8004         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
8005         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
8006         (extendhisi2_hw, extendqisi2_hw): New.
8007         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
8008         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
8009         MIPS32R2, and MIPS64.
8010         (LINK_SPEC): Pass -mips32r2 to linker.
8011         * config/mips/t-isa3264: Built -mips32r2 multilibs.
8012         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
8013         for mips32r2 in the -march description.  Alphabetically sort
8014         CPU names in the -march description.  Add long-missed -mips32
8015         and -mips64 to MIPS option summary.
8016
8017         * config.gcc: Update copyright years to include 2003.
8018         * config/mips/mips.c: Likewise.
8019         * config/mips/mips.h: Likewise.
8020         * config/mips/mips.md: Likewise.
8021         * config/mips/netbsd.h: Likewise.
8022         * doc/invoke.texi: Likewise.
8023
8024 2003-01-08  Andreas Schwab  <schwab@suse.de>
8025
8026         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
8027         variable.
8028         * configure: Regenerated.
8029
8030 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
8031
8032         * config/h8300/h8300.c (output_logical_op): Replace byte/word
8033         extraction of det with b0, b1, w0, w2, etc.
8034         (compute_logical_op_length): Likewise.
8035         (compute_logical_op_cc): Likewise.
8036
8037 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
8038
8039         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
8040         HIGH on all variants.
8041
8042 Wed Jan  8 14:06:34 CET 2003  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
8043
8044         * Makefile.in (PARTITION_H): New.
8045         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
8046         * basic-block.h: Include hard-reg-set.h.
8047
8048 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
8049
8050         * arm.h (ENABLE_XF_PATTERNS): Delete.
8051         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
8052         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
8053         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
8054         (cmpxf_trap): Delete.
8055         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
8056
8057 Wed Jan  8 12:10:57 CET 2003  Jan Hubicka  <jh@suse.cz>
8058
8059         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
8060         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
8061         (add??cc): New expanders.
8062         * i386.c (expand_int_addcc): New function.
8063         * i386-protos.h (expand_int_addcc): Declare.
8064
8065         * alias.c (memory_modified_1): New static function.
8066         (memory_modified): New static varaible.
8067         (memory_modified_in_insn_p): New global function.
8068         * rtl.h (memory_modified_in_insn_p): Declare.
8069         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
8070         references.
8071
8072         * expr.h (emit_conditional_add): Declare.
8073
8074 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
8075
8076         PR other/8947
8077         * doc/invoke.texi (-malign-double): Explain that the option breaks
8078         binary compatibility.
8079
8080 2003-01-08  Andreas Schwab  <schwab@suse.de>
8081
8082         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
8083         should come from the generic *-*-linux* entry.
8084
8085 Tue Jan  7 22:29:56 CET 2003  Jan Hubicka  <jh@suse.cz>
8086
8087         * cselib.c (cselib_current_insn_in_libcall): New static variable.
8088         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
8089         we are inside libcall.
8090         * cselib.h (elt_loc_list): Add in_libcall.
8091         * gcse.c (do_local_cprop): Do not copy propagate using insns
8092         in libcalls.
8093
8094 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
8095
8096         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
8097         not normally affect to issue rate.
8098
8099 Tue Jan  7 21:46:57 CET 2003  Jan Hubicka  <jh@suse.cz>
8100
8101         * genopinit.c (optabs): Add addc_optab.
8102         * ifcvt.c (noce_try_store_flag): Rename to ...
8103         (noce_try_addcc): ... this one; handle generic conditional increment.
8104         (noce_process_if_block): Update noce_try_addcc call.
8105         * optabs.c (emit_conditional_add): New.
8106         (init_obtabs): Initialize addc_optab.
8107         * optabs.h (optab_index): Add OTI_addcc.
8108         (addcc_optab): New macro.
8109         * md.texi: Document addMcc
8110
8111         PR target/8322
8112         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
8113         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
8114         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
8115
8116         * reload1.c (delete_output_reload): Avoid repeated attempts
8117         to delete insn.
8118
8119 2003-01-07  Andreas Schwab  <schwab@suse.de>
8120
8121         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
8122         Move --enable-initfini-array check ...
8123         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
8124         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
8125         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
8126         * configure: Rebuild.
8127
8128 2003-01-07  Richard Henderson  <rth@redhat.com>
8129
8130         * alias.c (find_base_value): Only use new_reg_base_value shortcut
8131         if the register is set once.
8132
8133 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
8134
8135         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
8136         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
8137         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
8138
8139 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
8140             Sunil Davasam  <sunil.k.davasam@intel.com>
8141
8142         PR libstdc++/9076
8143         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
8144         DW_CFA_same_value, read next and ignore.
8145
8146 2003-01-07  Richard Henderson  <rth@redhat.com>
8147
8148         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
8149
8150 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
8151
8152         * cfg.c: Include alloc-pool.h
8153         (edge_pool): New pool.
8154         (bb_pool): New pool.
8155         (first_deleted_edge): Remove.
8156         (first_deleted_block): Remove.
8157         (init_flow): Alloc/free the pools.
8158         (free_edge): Use pools.
8159         (alloc_block): Ditto.
8160         (expunge_block): Ditto.
8161         (cached_make_edge): Ditto.
8162
8163         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
8164
8165 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
8166
8167         * et-forest.c: Include alloc-pool.h.
8168         (struct et_forest): Add node_pool and occur_pool.
8169         (et_forest_create): Create the new pools.
8170         (et_forest_delete): Delete them.
8171         (et_forest_add_node): Allocate and free using pools.
8172         (et_forest_add_edge): Ditto.
8173         (et_forest_remove_node): Ditto.
8174         (et_forest_remove_edge): Ditto.
8175
8176         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
8177
8178 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
8179
8180         * config/h8300/h8300.c (output_logical_op): Simplify and
8181         optimize the handling of SImode.
8182         * config/h8300/h8300.c (compute_logical_op_length): Update
8183         accordingly.
8184         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
8185
8186 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
8187
8188         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
8189         big-endian correction to indirect arguments too.
8190
8191 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
8192
8193         Segher Boessenkool  <segher@koffie.nl>
8194
8195         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
8196         (alt_reg_names): Ditto, fix formatting.
8197         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
8198
8199 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8200
8201         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
8202         (output_logical_op): Constify intval and det.
8203         (compute_logical_length): Likewise.
8204         (compute_logical_cc): Likewise.
8205         (output_a_shift): Constify mask.
8206         (h8300_encode_label): Constify len.
8207
8208 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8209
8210         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
8211         (h8300_expand_epilogue): Likewise.
8212
8213 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
8214
8215         Segher Boessenkool  <segher@koffie.nl>
8216
8217         * config/rs6000/altivec.md: Remove spaces from assembler
8218         instruction argument lists.
8219
8220 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8221
8222         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
8223         c4x_assembler_function_p.
8224         (c4x_null_epilogue_p): Complement return value, all uses updated.
8225         (c4x_insert_attributes): Add naked.
8226         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
8227         * doc/extend.texi: Update C4x function attributes.
8228
8229 2003-01-06  Richard Henderson  <rth@redhat.com>
8230
8231         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
8232         properly when changing "local-ness".
8233         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
8234
8235 2003-01-06  Dale Johannesen  <dalej@apple.com>
8236
8237         * config/darwin-protos.h:  Add prototypes for new section functions.
8238
8239 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
8240
8241         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
8242         to EABI.
8243
8244 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
8245
8246         * hwint.h: If the current compiler has no 64-bit type at all,
8247         make HOST_WIDEST_INT 32 bits.
8248
8249 2003-01-06  Eric Christopher  <echristo@redhat.com>
8250
8251         * config/mips/mips.md (movdf_internal2): Fix constraints.
8252
8253 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
8254
8255         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
8256
8257 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
8258
8259         * config/mips/mips.md (leadi): Use dla rather than la.
8260
8261 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
8262
8263         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
8264         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
8265
8266 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8267
8268         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
8269         redefinition.
8270
8271 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8272
8273         * config/h8300/h8300.md (*extzv_8_23): New.
8274
8275 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8276
8277         * pa64-hpux.h (JCR_SECTION_NAME): Define.
8278         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
8279         USE_EH_FRAME_REGISTRY when defining.
8280
8281 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
8282
8283         * config/h8300/h8300.c (output_a_shift): Do not output a
8284         variable shift.
8285         * config/h8300/h8300.md (two splitters): New.
8286
8287 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
8288
8289         * config/mips/mips.md: Disable the movstrsi define_split.
8290
8291 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8292
8293         * alloc-pool.c: Don't include "libiberty.h".
8294         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
8295         * convert.c (convert_to_real): Hide unused variable.
8296
8297 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8298
8299         * Makefile.in (gtyp-gen.h): Const-ify.
8300         * gcov-dump.c (tag_table): Likewise.
8301
8302 2003-01-04  Bruce Korb  <bkorb@gnu.org>
8303
8304         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
8305         of *both* the file name and the fix name.
8306
8307 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
8308
8309         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
8310         collect2.
8311         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
8312         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
8313         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
8314         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
8315         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
8316         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
8317         elfos.h.
8318         (EH_FRAME_IN_DATA_SECTION): Delete define.
8319         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
8320         (STARTFILE_SPEC): Use crtbegin.o.
8321         (ENDFILE_SPEC): Use crtend.o.
8322         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
8323         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
8324         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
8325         DTOR_LIST_BEGIN): Define.
8326         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
8327         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
8328         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
8329
8330 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
8331
8332         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
8333         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
8334         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
8335         Cleanup handling of replacement text.
8336         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
8337
8338 2003-01-04  Bruce Korb  <bkorb@gnu.org>
8339
8340         * fixinc/tests/base/math.h: removed obsolete results
8341         * fixinc/tests/base/stdlib.h: ditto
8342         * fixinc/tests/base/sys/param.h: ditto
8343         * fixinc/tests/base/sys/stat.h: ditto
8344         * fixinc/tests/base/time.h: ditto
8345         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
8346         * fixinc/tests/base/sys/byteorder.h: ditto
8347         * fixinc/inclhack.def: Remove superfluous backslashes
8348
8349 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
8350
8351         * config/h8300/h8300-protos.h: Add prototypes for
8352         the new functions defined below.
8353         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
8354         define.
8355         (dosize): Emit RTL instead of assembly code.
8356         (push): Likewise.
8357         (pop): Likewise.
8358         (h8300_output_function_prologue): Remove.
8359         (h8300_expand_prologue): New.
8360         (h8300_expand_epilogue): New.
8361         (h8300_output_function_epilogue): Do only the reset of
8362         pragma_saveall.
8363         * config/h8300/h8300.md (push_h8300): New.
8364         (push_h8300hs): Likewise.
8365         (pop_h8300): Likewise.
8366         (pop_h8300hs): Likewise.
8367         (*stm_h8300s_2): Change the name to stm_h8300s_2.
8368         (*stm_h8300s_3): Change the name to stm_h8300s_3.
8369         (*stm_h8300s_4): Change the name to stm_h8300s_4.
8370         (*ldm_h8300s_2): New.
8371         (*ldm_h8300s_3): Likewise.
8372         (*ldm_h8300s_4): Likewise.
8373         (return): Likewise.
8374         (*return_1): Likewise.
8375         (prologue): Likewise.
8376         (epilogue): Likewise.
8377         (monitor_prologue): Likewise.
8378
8379 2003-01-03  Dale Johannesen  <dalej@apple.com>
8380
8381         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
8382           machopic_picsymbol_stub1.
8383           (EXTRA_SECTION_FUNCTIONS):  Ditto.
8384         * rs6000/rs6000.c:  Update copyright.
8385           (machopic_output_stub):  Use them.  Remove an insn from stub code.
8386
8387 2003-01-02  Jason Merrill  <jason@redhat.com>
8388
8389         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
8390
8391         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
8392         static/external decls.
8393
8394         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
8395         outermost scope.
8396         * c-decl.c (c_make_fname_decl): Push the decls there, too.
8397
8398 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
8399
8400         * config/h8300/h8300-protos.h: Add a prototype for
8401         h8300_current_function_interrupt_function_p.
8402         * config/h8300/h8300.c (interrupt_handler): Remove.
8403         (os_task): Likewise.
8404         (monitor): Likewise.
8405         (pragma_interrupt): New.
8406         (WORD_REG_USED): Use
8407         h8300_current_function_interrupt_function_p.
8408         (dosize): Likewise.
8409         (h8300_output_function_prologue): Likewise.
8410         Do not set interrupt_handler, os_task, monitor.
8411         (h8300_output_function_prologue): Use
8412         h8300_current_function_interrupt_function_p.
8413         Do not set interrupt_handler, os_task, monitor.
8414         (h8300_current_function_interrupt_function_p): New.
8415         (h8300_pr_interrupt): Set pragma_interrupt.
8416         (h8300_insert_attributes): Reset pragma_interrupt.
8417
8418 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8419
8420         * doc/install.texi (Configuration): Fix markup for reference to
8421         gcc/config.gcc.
8422
8423 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
8424
8425         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
8426         (*iorhi3_two_qi): Likewise.
8427         (*iorsi3_zexthi): Likewise.
8428         (*xorhi3_zextqi): Likewise.
8429         (*xorsi3_zexthi): Likewise.
8430         (*xorsi3_zextqi): Likewise.
8431
8432 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
8433
8434         * config/h8300/h8300.c (stack_pointer_operand): New.
8435         (const_int_gt_2_operand): Likewise.
8436         (const_int_ge_8_operand): Likewise.
8437         * config/h8300/h8300.md (a splitter): Likewise.
8438         (a peephole2): Likewise.
8439         * config/h8300/h8300-protos.h: Add prototypes for the new
8440         functions above.
8441
8442 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
8443
8444         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
8445         objc/objc-act.h: Fix copyright years.
8446
8447 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8448
8449         * doc/passes.texi: Fix documentation for -fssa-ccp
8450
8451 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
8452
8453         * gccbug.in: Update for new categories.
8454
8455 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8456
8457         * config/h8300/h8300.md: Reorder some patterns.
8458
8459 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8460
8461         * config/h8300/h8300.c (output_logical_op): Fix a warning.
8462
8463 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
8464
8465         * config/darwin-protos.h, config/c4x/c4x-protos.h,
8466         config/cris/cris-protos.h, config/i370/i370-protos.h,
8467         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
8468         config/v850/v850-protos.h: Use struct, and don't conditionally
8469         compile on GCC_C_PRAGMA_H.
8470
8471 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8472
8473         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
8474         * config/h8300/h8300-protos.h: Likewise.
8475         * config/sh/sh-protos.h: Likewise.
8476
8477 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8478
8479         * config/arm/arm-protos.h: Use struct cpp_reader instead of
8480         cpp_reader.
8481         * config/h8300/h8300-protos.h: Likewise.
8482         * config/sh/sh-protos.h: Likewise.
8483
8484 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
8485
8486         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
8487         arm_pr_long_calls_off): Use struct.
8488         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
8489         : Similarly.
8490         Don't include cpplib.h.
8491         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
8492         sh_pr_nosave_low_regs): Similarly.
8493
8494 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
8495
8496         * config/h8300/h8300.c: Include cpplib.h.
8497
8498 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8499
8500         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
8501           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
8502           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
8503           "GCC" in the copyright header.
8504
8505 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
8506
8507         * c-pragma.c (c_register_pragma): New.
8508         (init_pragma): Use it.
8509         * c-pragma.h (cpp_register_pragma): Don't declare.
8510         (c_register_pragma): New.
8511         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
8512         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
8513         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
8514         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
8515         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
8516         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
8517         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
8518         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
8519         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
8520         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
8521         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
8522         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
8523
8524 See ChangeLog.8 for earlier changes.