d8c9992bdbd2c8c105521d1253133be3a08e5f98
[gcc.git] / gcc / ChangeLog
1 2004-02-12 Zack Weinberg <zack@codesourcery.com>
2
3 * dbxout.c: Move declaration of dbxout_type_decl outside
4 #ifdef DBX_DEBUGGING_INFO.
5 * c-parse.in: Don't give the asmdef production a type.
6
7 2004-02-12 Zack Weinberg <zack@codesourcery.com>
8
9 * debug.h (struct gcc_debug_hooks): Add type_decl field.
10 (debug_nothing_tree_int): Prototype.
11 (dwarf_debug_hooks): Delete, unused.
12 * debug.c (do_nothing_debug_hooks): Update.
13 (debug_nothing_tree_int): New function.
14 * langhooks.h (struct lang_hooks_for_decls):
15 Remove builtin_type_decls field.
16 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
17 (LANG_HOOKS_DECLS): Update.
18 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
19 Use debug_hooks->type_decl.
20 * dbxout.c (preinit_symbols): New static.
21 (dbx_debug_hooks, xcoff_debug_hooks): Update.
22 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
23 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
24 for symbols to output.
25 (dbxout_type_decl): New function.
26 (dbxout_symbol): If called before dbxout_init has run, queue
27 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
28 to TYPE_DECLs before emitting them.
29 * xcoffout.c (assign_type_number): Delete.
30 (xcoff_type_numbers): New static table.
31 (xcoff_assign_fundamental_type_number): New function.
32 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
33 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
34 * sdbout.c: Include varray.h.
35 (deferred_global_decls): New static.
36 (sdb_debug_hooks): Update.
37 (sdbout_global_decl): If we can't emit something right now,
38 remember it in deferred_global_decls.
39 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
40 (sdbout_init): Initialize deferred_global_decls.
41 * Makefile.in: Update dependencies of sdbout.o.
42 * dwarf2out.c (dwarf2out_type_decl): New function.
43 (dwarf2_debug_hooks): Update.
44 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
45 * c-decl.c (getdecls): Just return 0.
46 (check_for_loop_decls): Don't use getdecls.
47 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
48 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
49
50 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
51
52 * config/s390/s390.c (s390_sched_reorder2): Remove.
53 (TARGET_SCHED_REORDER2): Do not redefine.
54
55 2004-02-12 Zack Weinberg <zack@codesourcery.com>
56
57 * c-parse.in (maybe_type_qual): Delete.
58 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
59 (asm_argument): New grammar rules.
60 (extdef_1): Use asmdef.
61 (maybeasm): Move down with other asm rules; use simple_asm_expr.
62 (xexpr): Move up with other expression rules.
63 (stmt): Use asm_stmt.
64
65 * c-typeck.c (build_asm_expr): New function - body mostly
66 pulled from build_asm_stmt.
67 (build_asm_stmt): Just handle tacking on the volatile qualifier.
68 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
69
70 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
71
72 PR bootstrap/13617
73 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
74 (mips_declare_object): Make variadic.
75 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
76 mips_output_aligned_decl_common.
77 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
78 (mips_declare_object): Make variadic.
79
80 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
81
82 * function.c (update_epilogue_consts): Teach about binary operations.
83
84 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
85 previous MEM_VOLATILE in REF.
86 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
87 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
88
89 2004-02-12 Gunther Nikl <gni@gecko.de>
90
91 * config.gcc: Restore support for m68k-openbsd.
92
93 2004-02-12 Jan Hubicka <jh@suse.cz>
94
95 * tree-optimize.c (tree_rest_of_compilation): Do not release
96 DECL_ARGUMENTS.
97
98 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
99
100 * doc/install.texi: Fix the spelling of "explicitly".
101
102 2004-02-11 Eric Christopher <echristo@redhat.com>
103
104 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
105 duplicate argument structure of cpp_interpret_string.
106 * cpphash.h: Move prototype...
107 * cpplib.h: Here.
108 * cpplib.c: Fix calls to match new function signature.
109
110 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
111
112 PR c/456
113 * cppexp.c (num_binary_op): Don't allow comma operators in #if
114 constant expressions at all outside C99 mode if pedantic.
115
116 2004-02-11 Uros Bizjak <uros@kss-loka.si>
117
118 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
119 (log10_optab, log2_optab): Define corresponding macros.
120 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
121 * genopinit.c (optabs): Implement log10_optab and log2_optab
122 using log10?f2 and log2?f2 patterns.
123 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
124 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
125 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
126 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
127
128 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
129 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
130 log2, log2f and log2l built-ins as inline x87 intrinsics.
131
132 2004-02-11 Richard Henderson <rth@redhat.com>
133
134 PR target/1532
135 * flow.c (insn_dead_p): A clobber of a dead hard register is a
136 dead insn after reload.
137
138 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
139
140 * tree.h (frame_base_decl): Add GTY marker.
141 * var-tracking.c (frame_base_decl): Likewise.
142
143 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
144
145 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
146 incorrect, hunk.
147 (add_location_or_const_value_attribute): Use text_section_label,
148 not TEXT_SECTION_NAME.
149
150 2004-02-11 Per Bothner <per@bothner.com>
151
152 Represent column numbers using line-map's source_location.
153 The "next available source_location" is now managed internally by
154 line-maps.c rather than by clients.
155 * line-map.h (struct line_map): New field column_bits.
156 <from_line>: Rename field to start_location.
157 (struct line_maps): New fields highest_location and max_column_hint.
158 (linemap_check_files_exited): New declaration.
159 (linemap_line_start): New declaration.
160 (linemap_add): Remove from_line parameter; use highest_location field.
161 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
162 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
163 (CURRENT_LINE_MAP): Remove macro.
164 (linemap_position_for_column): New inline function.
165 * line-map.c (linemap_init): Clear new fields.
166 (linemap_check_files_exited): New function, extracted from ...
167 (linemap_free): Use linemap_check_files_exited.
168 (linemap_add): Remove from_line parameter. Various updates.
169 (linemap_line_start): New function.
170 (linemap_lookeup): Update for new field names.
171 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
172 linemap_position_for_column may unpredictably change the current map,
173 it is cleaner and simpler for us to not cache it in cpp_reader.
174 (struct cpp_buffer): New sysp field.
175 Changed warned_cplusplus_comments and from_stage3 to bitfields.
176 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
177 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
178 current map using linemap_lookup.
179 (do_linemarker): Also set buffer's sysp field.
180 (destringize_and_run): No longer need to decrement current line.
181 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
182 (search_path_head, open_file_failed): Use buffer's sysp.
183 (cpp_make_system_header): Get current map using linemap_lookup.
184 Also set buffer's sysp flag.
185 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
186 * cpphash.h (CPP_INCREMENT_LINE): New macro.
187 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
188 (struct cpp_reader): ... and adding saved_line_base field.
189 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
190 Update accordingly. Don't adjust line.
191 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
192 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
193 (cpp_in_system_header): ... new inline function, using buffer's sysp.
194 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
195 * cpplex.c (_cpp_lex_direct): Likewise.
196 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
197 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
198 * cpplib.h (struct cpp_token): Rename line field to src_loc.
199 Remove col field as it is now subsumed by src_loc.
200 * cpperror.c: Update various field, parameter, and macro names.
201 (print_location): If col==0, try SOURCE_COLUMN of line.
202 (cpp_error): Use cur_token's src_loc field, rather than line+col.
203 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
204 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
205 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
206 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
207 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
208 (_cpp_lex_direct): Use linemap_position_for_column.
209 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
210 parameter. Instead get it from the line_table global. Adjust callers.
211 (print): Remove map field. Replace line field to src_line.
212 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
213 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
214 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
215 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
216 * cpptrad.c (copy_comment): Rename variable.
217 * c-lex.c (map): Remove static variable, for same reason we removed
218 cpp_reader's map field.
219 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
220 to call linemap_lookup.
221 (cb_line_change): Token's line field replaced by src_loc.
222 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
223 Don't save new_map.
224
225 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
226 source_location.
227
228 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
229
230 * config/rs6000/altivec.md (*movv4si_internal): At least one
231 operand must be register_operand.
232 (*movv8hi_internal1): Likewise.
233 (*movv16qi_internal1): Likewise.
234 (*movv4sf_internal1): Likewise.
235
236 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
237
238 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
239 operand.
240 (movv4hi_internal): Same.
241 (movv2sf_internal): Same.
242 (movv1di_internal): Same.
243
244 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
245
246 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
247 TARGET_OLDABI consistently.
248 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
249 mips_va_arg,override_options,compute_frame_size,
250 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
251 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
252 and TARGET_OLDABI consistently.
253 * config/mips/mips.md (exception_receiver): Likewise.
254 * config/mips/linux64.h: Likewise.
255
256 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
257
258 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
259 Set AltiVec ABI and vrsave as default for ppc64 linux.
260 (init_cumulative_args): Post error, if try to return
261 value in AltiVec register without enable AltiVec.
262 (function_arg_advance): Ditto for passing arguments.
263
264 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
265
266 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
267 a label before updating its usage count.
268
269 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
270
271 * doc/install.texi: Remove extra cd.
272
273 2004-02-10 Ziemowit Laski <zlaski@apple.com>
274
275 * c-common.c (vector_size_helper): Remove; call
276 reconstruct_complex_type() instead.
277 * tree.c (reconstruct_complex_type): New function
278 (formerly vector_size_helper() in c-common.c).
279 (make_vector): Make externally visible.
280 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
281
282 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
283
284 * config/h8300/h8300-protos.h: Add a prototype for
285 h8300_regs_ok_for_stm.
286 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
287 * config/h8300/h8300.md (stm_h8300s_2_advanced,
288 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
289 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
290 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
291 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
292 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
293 ldm_h8300s_4_normal, ldm_h8300s_4): Use
294 h8300_regs_ok_for_stm().
295
296 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
297
298 PR c/14088
299 real.c (real_from_string): Look for 'X' as well as 'x' in
300 hexfloat strings.
301
302 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
303
304 * config/h8300/h8300.md: Remove an incorrect comment about
305 peephole2. Add comments.
306
307 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
308
309 PR/14058
310 * emit-rtl.c (set_decl_incoming_rtl): New.
311 * tree.h (set_decl_incoming_rtl): New.
312 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
313 DECL_INCOMING_RTL.
314 * ada/misc.c (adjust_decl_rtl): Likewise.
315
316 2004-02-10 Per Bothner <per@bothner.com>
317
318 * c-opts.c (c_common_post_options): Don't emit working directory
319 in cpp output if -P was specified.
320
321 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
322
323 PR c/14092
324 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
325 negate_expr back to the original type.
326
327 2004-02-10 Alan Modra <amodra@bigpond.net.au>
328
329 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
330 bump retaddr here.
331
332 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
333
334 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
335 gen_lowpart_SUBREG): Move under the file in which they
336 are actually declared.
337
338 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
339
340 * doc/sourcebuild.texi: Add libada documentation.
341
342 * doc/install.texi: Update documentation on Ada build, now
343 that the GNAT lib and tools are built automatically.
344
345 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
346
347 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
348 && TARGET_IRIX.
349
350 2004-02-09 Ziemowit Laski <zlaski@apple.com>
351
352 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
353 boundaries outside build_component_ref() call (a macro in ObjC++).
354
355 2004-02-09 Bob Wilson <bob.wilson@acm.org>
356
357 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
358 (init_cumulative_args): Likewise.
359 (a7_overlap_mentioned_p): Delete prototype.
360 * config/xtensa/xtensa.c (struct machine_function): Replace
361 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
362 Add set_frame_ptr_insn field.
363 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
364 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
365 if the operand is an argument in a7. If so, copy a7 to a new pseudo
366 at the function entry and replace the operand with the pseudo.
367 (init_cumulative_args): Remove unused arguments. Add new "incoming"
368 argument and record this flag in CUMULATIVE_ARGS.
369 (function_arg): Remove result_mode and special-case code to handle
370 arguments in a7. Instead, set need_a7_copy flag when there is an
371 incoming argument in a7.
372 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
373 and use the value recorded in cfun->machine->set_frame_ptr_insn.
374 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
375 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
376 special-case code.
377 (a7_overlap_mentioned_p): Delete.
378 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
379 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
380 arguments to init_cumulative_args and pass "incoming" flag instead.
381 (BLOCK_REG_PADDING): Delete.
382 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
383 checks for reload_in_progress and reload_completed. Update calls to
384 xtensa_copy_incoming_a7.
385 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
386 to call xtensa_copy_incoming_a7.
387
388 2004-02-09 DJ Delorie <dj@redhat.com>
389
390 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
391 longer modify standard_exec_prefix, standard_bindir_prefix, or
392 standard_startfile_prefix.
393
394 2004-02-09 James E Wilson <wilson@specifixinc.com>
395
396 PR c++/11295
397 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
398 to expand_expr_real call, and pass in alt_rtl as last argument.
399
400 PR libstdc++/5625
401 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
402 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
403 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
404 * except.c (expand_builtin_extend_pointer): New.
405 * except.h (expand_builtin_extend_pointer): Declare.
406
407 2004-02-09 David Edelsohn <edelsohn@gnu.org>
408
409 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
410 unaligned loads and stores.
411
412 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
413
414 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
415 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
416
417 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
418 * config/mips/iris5.h: ... here.
419 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
420
421 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
422 * config/mips/iris5.h: ... here.
423
424 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
425
426 * configure.ac: Remove default executable files before AC_PROG_CC.
427 * configure: Regenerate.
428
429 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
430
431 PR target/13721
432 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
433 print a operand other than a register.
434
435 2004-02-09 Roger Sayle <roger@eyesopen.com>
436
437 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
438 tree code rather than call fold_convert, which doesn't specify a
439 default floating point to integer conversion.
440
441 2004-02-08 Bernardo Innocenti <bernie@develer.com>
442
443 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
444 code to support SGS assembler. Reformat adjacent code where possible.
445 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
446 definition.
447 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
448 for '%#'.
449 * config/m68k/linux.h, config/m68k/m68k.c,
450 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
451 macros and asm_printf() format strings.
452 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
453 * config/m68k/linux.h: Update copyright.
454 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
455
456 2004-02-08 Andreas Schwab <schwab@suse.de>
457 Bernardo Innocenti <bernie@develer.com>
458
459 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
460 REGISTER_PREFIX.
461 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
462 frame pointer register, overridable by OS targets.
463 * (M68K_REGNAME): Macro to obtain register name for asm output,
464 eventually replacing %a6 with M68K_FP_REG_NAME.
465 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
466 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
467 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
468 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
469 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
470
471 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
472
473 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
474 hook_rtx_tree_int_null.
475 * targhooks.c (default_struct_value_rtx): Remove.
476 * targhooks.h: Remove the prototype for
477 default_struct_value_rtx.
478 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
479 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
480 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
481 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
482 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
483 config/rs6000/rs6000.c, config/s390/s390.c,
484 config/stormy16/stormy16.c, config/v850/v850.c,
485 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
486 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
487
488 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
489
490 * README.Portability: Change "ISO C89" to "ISO C90".
491 * c-parse.in (primary, initelt): Likewise.
492
493 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
494
495 * real.c (encode_ibm_extended): Normalize the input value before
496 converting it to a double. Handle the case where a normal value
497 rounds to infinity.
498
499 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
500
501 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
502 warning.
503 * cse.c (preferrable): Change to preferable. Update all of its
504 callers.
505 * genautomata.c (ainsn): Change
506 first_ainsn_with_given_equialence_num to
507 first_ainsn_with_given_equivalence_num. Update all of its
508 references.
509
510 2004-02-08 Jan Hubicka <jh@suse.cz>
511
512 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
513
514 2004-02-07 David Edelsohn <edelsohn@gnu.org>
515
516 * function.c (assign_parms): Fix formatting.
517
518 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
519
520 * default.h (PROMOTE_PROTOTYPES): Remove.
521 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
522 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
523 EXPAND_BUILTIN_SAVEREGS): Poison.
524 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
525 hook_bool_tree_false.
526 (TARGET_PROMOTE_PROTOTYPES): Likewise.
527 * target.h: Replace SETUP_INCOMING_VARARGS with
528 targetm.calls.setup_incoming_varargs().
529 * targhooks.c (default_promote_function_return): Remove.
530 (default_promote_prototypes): Likewise.
531 (default_struct_value_rtx): Always abort().
532 (default_expand_builtin_saveregs): Always print an error
533 message.
534 (default_setup_incoming_varargs): Do nothing.
535 (default_pretend_outgoing_varargs_named): Don't depend on
536 SETUP_INCOMING_VARARGS.
537 * targhooks.h: Remove the prototype for
538 default_promote_function_return and
539 default_promote_prototypes.
540
541 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
542
543 * system.h (SHARED_SECTION_ASM_OP): Poison.
544 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
545 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
546
547 2004-02-07 Zack Weinberg <zack@codesourcery.com>
548
549 Bug 13856
550 * c-decl.c (diagnose_mismatched_decls): Only give special
551 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
552 is also true.
553 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
554 DECL_FUNCTION_CODE when defining a built-in function.
555 Don't update DECL_ESTIMATED_INSNS.
556 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
557 FUNCTION_DECLs.
558 * tree.h: Delete DECL_ESTIMATED_INSNS.
559 * tree-inline.c (struct inline_data): Delete inlined_insns field.
560 (expand_call_inline, optimize_inline_calls): Don't update
561 DECL_ESTIMATED_INSNS nor inlined_insns.
562 * cgraphunit.c (cgraph_analyze_function): Don't update
563 DECL_ESTIMATED_INSNS.
564
565 2004-02-07 Zack Weinberg <zack@codesourcery.com>
566
567 * c-common.c (shadow_warning): Delete.
568 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
569 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
570 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
571 * c-parse.in (free_parser_stacks): Delete.
572
573 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
574
575 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
576 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
577 Use the top level mkinstalldirs, not the one in the gcc subdir.
578 * mkinstalldirs: Remove (from the gcc subdir).
579
580 2004-02-07 Roger Sayle <roger@eyesopen.com>
581
582 PR middle-end/13696
583 * fold-const.c (fold_convert): New function to provide type
584 conversion to the middle-end without using convert.
585 (negate_expr, associate_trees, size_diffop, omit_one_operand,
586 operand_equal_for_comparison_p, pedantic_omit_one_operand,
587 invert_truthvalue, optimize_bit_field_compare, range_binop,
588 decode_field_reference, make_range, build_range_check, unextend,
589 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
590 fold_binary_op_with_conditional_arg, fold_inf_compare,
591 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
592 convert with calls to fold_convert.
593
594 2004-02-07 Jan Hubicka <jh@suse.cz>
595
596 * genrecog.c (find_operand): add extra argument stop.
597 (validate_pattern): Verify that mach_dup is duplicating operand
598 defined lexically earlier.
599
600 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
601
602 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
603 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
604 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
605 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
606 config/ia64/ia64.h, config/ip2k/ip2k.h,
607 config/iq2000/iq2000.h, config/mips/iris5.h,
608 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
609 config/rs6000/aix51.h, config/rs6000/aix52.h,
610 config/rs6000/darwin.h, config/rs6000/rs6000.h,
611 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
612 config/sparc/linux.h, config/sparc/linux64.h,
613 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
614 config/xtensa/xtensa.h: Remove the definitions of
615 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
616 MAX_WCHAR_TYPE_SIZE.
617 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
618 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
619
620 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
621
622 PR bootstrap/13990
623 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
624 gen_rtx_NE.
625
626 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
627
628 * var-tracking.c (vt_add_function_parameters): Surround checkings by
629 #ifdef ENABLE_CHECKING and #endif.
630
631 2004-02-07 Roger Sayle <roger@eyesopen.com>
632
633 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
634 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
635 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
636 integer types and floating point with unsafe_math_optimizations.
637 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
638 Optimize A - B as A + (-B), if B is easily negated.
639
640 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
641
642 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
643 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
644 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
645 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
646 Update copyright.
647
648 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
649
650 * c-ppoutput.c, var-tracking.c: Fix comment typos.
651
652 2004-02-06 James E Wilson <wilson@specifixinc.com>
653
654 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
655 glibc 2.3 or better.
656
657 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
658
659 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
660 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
661
662 2004-02-07 Alan Modra <amodra@bigpond.net.au>
663
664 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
665 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
666 (SHLIB_MKMAP_OPTS): Delete.
667 (TARGET_LIBGCC2_CFLAGS): Add -specs.
668 (bispecs): Add rule.
669 * config/rs6000/libgcc-ppc64.ver: New file.
670 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
671 (__floatdidf, __floatdisf): Optimize multiply.
672 (__fixunstfdi): New function.
673 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
674 real and imag parts larger than one register.
675 (function_arg): Correct type of reg used when fp arg split partially
676 to stack.
677 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
678 and __MACH__ or __powerpc64__.
679
680 2004-02-06 Roger Sayle <roger@eyesopen.com>
681 Ulrich Weigand <uweigand@de.ibm.com>
682
683 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
684 of gen_highpart or gen_lowpart when the floating point format is
685 wider than the result mode.
686
687 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
688
689 * dwarf2out.c (loclabel_num): Move into #ifdef
690 DWARF2_DEBUGGING_INFO.
691
692 2004-02-06 Ziemowit Laski <zlaski@apple.com>
693
694 * objc/objc-act.c (build_super_template) the 'class' field of
695 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
696 (get_super_receiver): Likewise.
697
698 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
699
700 * reload1.c (check_eliminable_occurrences): Optimize the reset
701 of can_eliminate.
702 (eliminate_regs_in_insn): Likewise.
703
704 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
705 Josef Zlomek <zlomekj@suse.cz>
706
707 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
708 at the beginning of function, call dwarf2out_var_location for
709 NOTE_INSN_VAR_LOCATION note.
710 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
711 decl_loc_table): New.
712 (lookup_decl_loc): New function.
713 (add_var_loc_to_decl): New function.
714 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
715 only if can_use_fbreg.
716 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
717 functions.
718 (loc_descriptor): Likewise. Process VAR_LOCATION.
719 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
720 (loc_descriptor_from_tree): Call mem_loc_descriptor with
721 can_use_fbreg == true.
722 (add_location_or_const_value_attribute): Added parameter enum
723 dwarf_attribute attr, generate attribute ATTR. Create the location list.
724 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
725 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
726 with attr == DW_AT_location.
727 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
728 if frame_base_decl is defined and has a location list.
729 (gen_variable_die): Call add_location_or_const_value_attribute with
730 attr == DW_AT_location.
731 (dwarf2out_var_location): New function.
732 (dwarf2out_begin_function): New function.
733 (dwarf2out_init): Create decl_loc_table.
734
735 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
736
737 * loop.c (force_movables): Transitively increase the priorities of
738 all insns forces by an insn, not just the first one.
739
740 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
741 Daniel Berlin <dberlin@dberlin.org>
742
743 Josef Zlomek <zlomekj@suse.cz>
744 * Makefile.in (var-tracking.o): New.
745 * common.opt (fvar-tracking): New.
746 * flags.h (flag_var_tracking): New.
747 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
748 * opts.c (common_handle_option): Add OPT_fvar_tracking.
749 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
750 * rtl.c (note_insn_name): Likewise.
751 * rtl.def (VAR_LOCATION): New.
752 * rtl.h (NOTE_VAR_LOCATION): New.
753 (NOTE_VAR_LOCATION_DECL): New.
754 (NOTE_VAR_LOCATION_LOC): New.
755 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
756 (variable_tracking_main): New exported function.
757 * timevar.def (TV_VAR_TRACKING): New.
758 * toplev.c (enum dump_file_index): Added DFI_vartrack.
759 (dump_file): "vartrack" was added (-dV).
760 (flag_var_tracking): New.
761 (f_options): "var-tracking" was added.
762 (rest_of_handle_variable_tracking): New function.
763 (rest_of_compilation): Run variable tracking.
764 (process_options): If user has not specified flag_var_tracking set it
765 according to optimize, debug_info_level and debug_hooks.
766 * tree.h (frame_base_decl): New.
767 * var-tracking.c: New file.
768 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
769 (ia64_override_options): Set flags to run variable tracking in machine
770 dependent reorg instead of toplev.c.
771 (ia64_reorg): Run variable tracking if wanted.
772 * doc/invoke.texi: Mention variable tracking in -dV,
773 add and -fvar-tracking.
774 * doc/passes.texi: Added variable tracking pass.
775
776 Daniel Berlin <dberlin@dberlin.org>
777 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
778 * dbxout.c (dbx_debug_hooks): Likewise.
779 (xcoff_debug): Likewise.
780 * debug.c (do_nothing_debug_hooks): Likewise.
781 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
782 * dwarfout.c (dwarf_debug_hooks): Likewise.
783 * sdbout.c (sdb_debug_hooks): Likewise.
784 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
785 * final.c (final_scan_insn): Call var_location debug hook for each
786 NOTE_INSN_VAR_LOCATION.
787
788 2004-02-06 Jan Hubicka <jh@suse.cz>
789
790 * flow.c (update_life_info): Allocate reg_deaths when called from
791 scheudler.
792 (attempt_auto_inc): Update life ranges accordingly.
793
794 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
795
796 PR debug/11816
797 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
798
799 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
800
801 * cfganal.c (flow_call_edges_add): Never split a libcall block.
802
803 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
804
805 * dwarf2out.c (output_loc_list): Don't use deltas if we have
806 a separate line info table in use.
807 Use the correct size for terminators.
808 (output_die): Use offset, not delta.
809
810 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
811
812 * doc/invoke.texi: Remove the pni option from -mfpmath=.
813
814 2004-02-06 Jan Hubicka <jh@suse.cz>
815
816 * recog.c (split_all_insns): Do not update reg info.
817 * regrename.c (regrename_optimize): Likewise.
818 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
819 * flow.c (struct propagate_block_info): Add insn_num field.
820 (reg_deaths): New array.
821 (life_analysis): Free reg_deaths info.
822 (allocate_reg_life_data): Allocate reg_deaths array.
823 (propagate_one_insn): Use new array.
824 (init_propagate_block): Initialize it.
825 (free_propagate_block_info): Finish compuation of
826 REG_LIVE_LENGTH
827 (attempt_auto_inc): Sanity check that REG_INFO is not
828 computed at same time.
829 (mark_used_regs): Update new array.
830
831 * reg-stack.c (subst_stack_regs): Unshare clobbers before
832 substitution.
833
834 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
835
836 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
837 *extendqisi2_short_displ.
838
839 2004-02-06 Alan Modra <amodra@bigpond.net.au>
840
841 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
842 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
843 (emit_library_call_value_1): Likewise pass nargs.
844 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
845 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
846 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
847 parameter instead of scanning TYPE_ARGS_TYPES to count args.
848 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
849 prototype.
850 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
851 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
852 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
853 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
854 INIT_CUMULATIVE_ARGS.
855 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
856 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
857 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
858 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
859 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
860 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
861 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
862 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
863 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
864 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
865 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
866 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
867
868 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
869
870 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
871 possible.
872
873 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
874
875 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
876 note containing (plus (reg) (const_int)), where reg is an
877 eliminable reg, then perform the register elimination without
878 depending on eliminate_regs().
879
880 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
881
882 * config/arc/arc.c (arc_return_in_memory): Check the return
883 value of int_size_in_bytes against -1. Don't check
884 TREE_ADDRESSABLE.
885 * config/avr/avr.c (avr_return_in_memory): Check the return
886 value of int_size_in_bytes against -1.
887 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
888 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
889 Likewise.
890 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
891 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
892 Likewise.
893
894 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
895
896 * config/frv/frv-protos.h: Remove the prototype for
897 frv_setup_incoming_varargs.
898 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
899 (frv_setup_incoming_varargs): Make it static.
900 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
901
902 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
903
904 * config/fr30/fr30-protos.h: Remove the prototype for
905 fr30_setup_incoming_varargs.
906 Update the prototypes for fr30_num_arg_regs and
907 fr30_function_arg_partial_nregs.
908 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
909 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
910 (fr30_setup_incoming_varargs): Make it static.
911 Add argument second_time. Don't do anything when second_time
912 is nonzero.
913 (fr30_num_arg_regs): Change the type of the first argument to
914 enum machine_mode.
915 (fr30_function_arg_partial_nregs): Change the type of the
916 second argument to enum machine_mode.
917 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
918 (SETUP_INCOMING_VARARGS): Remove.
919
920 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
921
922 * config/arc/arc-protos.h: Remove the prototype for
923 arc_setup_incoming_varargs.
924 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
925 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
926 (arc_setup_incoming_varargs): Make it static.
927 (arc_external_libcall): Likewise.
928 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
929 Remove the commented-out definition of
930 ASM_OUTPUT_EXTERNAL_LIBCALL.
931
932 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
933
934 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
935 to $$(slibdir) in the installation commands.
936
937 2004-02-05 David Edelsohn <edelsohn@gnu.org>
938
939 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
940 with inner_regno, not regno.
941 * rtlanal.c (refers_to_regno_p): Same.
942
943 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
944
945 * config.gcc: Remove i370 support.
946
947 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
948
949 * doc/install.texi: Update automake and autoconf version
950 requirements. Note where to find gcj automake version.
951
952 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
953
954 * Makefile.in (generate-manpages): Move dependencies to ...
955 (man): here.
956 * doc/makefile.texi: Document new targets.
957 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
958
959 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
960
961 PR/13485
962 Makefile.in (srcextra): Add a level of indirection to ...
963 (gcc.srcextra): ... here.
964 (po-generated): Delete.
965 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
966 options.c.
967 (start.encap): Remove superfluous lang.srcextra dependency.
968 objc/Make-lang.in (po-generated): Delete.
969
970 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
971
972 * config/ia64/ia64.c (REG_GP): Remove.
973
974 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
975
976 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
977
978 2004-02-05 Devang Patel <dpatel@apple.com>
979
980 * dwarf2out.c (force_type_die): Look up input type itself
981 instead of root_type() of type.
982
983 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
984
985 * config/s390/s390.md ("*tmqidi_ext"): New insn.
986 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
987 pre-reload splitters are transformed to post-reload
988 define_insn_and_split patterns.
989 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
990
991 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
992
993 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
994 TARGET_PROMOTE_PROTOTYPES.
995
996 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
997
998 PR middle-end/13750
999 Revert:
1000 2004-01-15 Geoffrey Keating <geoffk@apple.com>
1001 PR pch/13361
1002 * c-typeck.c (constructor_asmspec): Delete.
1003 (struct initializer_stack): Delete field 'asmspec'.
1004 (start_init): Delete saving of asmspec.
1005 (finish_init): Don't update constructor_asmspec.
1006 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
1007 * stmt.c (expand_asm): Duplicate strings from tree.
1008 (expand_asm_operands): Likewise.
1009 * tree.c (tree_size): Update computation of size of STRING_CST.
1010 (make_node): Don't make STRING_CST nodes.
1011 (build_string): Allocate string with tree node.
1012 * tree.def (STRING_CST): Update comment.
1013 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
1014 (tree_string): Place contents of string in tree node.
1015 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
1016 from tree.
1017
1018 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
1019
1020 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
1021 msgid.
1022
1023 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
1024
1025 * config/rs6000/altivec.md (*movv4si_internal): At least one
1026 operand must be altivec_register_operand.
1027 (*movv8hi_internal1): Likewise.
1028 (*movv16qi_internal1): Likewise.
1029 (*movv4sf_internal1): Likewise.
1030
1031 2004-02-05 David Edelsohn <edelsohn@gnu.org>
1032
1033 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
1034 * configure: Regenerate.
1035
1036 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
1037
1038 * doc/install.texi: Update description of --gxx-include-dir to
1039 give correct default value.
1040
1041 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
1042
1043 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
1044 8 with MAC_REG.
1045
1046 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
1047
1048 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
1049 gen_rtx_PARALLEL.
1050
1051 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
1052
1053 * emit-rtl.c: Update the comment about the file.
1054
1055 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
1056
1057 * sourcebuild.texi (Test Idioms): Update testcase naming
1058 conventions.
1059
1060 2004-02-04 Per Bothner <per@bothner.com>
1061
1062 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
1063 * c-ppoutput.c (pp_dir_change): New function.
1064 * c-common.h (pp_dir_change): New declaration.
1065 * cpplib.h (struct cpp_options): Remove working_directory field.
1066 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
1067 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
1068 Don't handle -fworking_directory here, but in c_common_post_options.
1069 (read_original_directory): Don't back up when done.
1070 Don't clear no-longer used working_directory flag.
1071 * cpplib.h: Update declarations to match.
1072 * c-lex.c (cb_dir_change): Move to c-opts.c.
1073 (init_c_lex): Don't set dir_change callback here, since we want
1074 to set it even if flag_preprocess_only.
1075 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
1076 (c_common_post_options): Set dir_change callback.
1077 Call pp_dir_change if approporiate.
1078 (finish_options): Don't call cpp_find_main_file here. Hence remove
1079 unneeded parameter and result. Do LC_RENAME for <built-in>.
1080 (c_common_post_options): Call cpp_read_main_file here instead.
1081 (c_common_init): Update accordingly.
1082 (push_command_line_include): Don't cpp_push_main_file.
1083 Do LC_RENAME rather than LC_LEASE to get back to main file.
1084 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
1085 (c_common_parse_file): Call cpp_read_main_file for subsequent main
1086 files, but call finish_options for all files.
1087 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
1088 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
1089 cpp_find_main_file + cpp_push_main_file.
1090 * c-lex.c (fe_file_change): Don't set main_input_filename here.
1091 * opts.c (handle_options): Only set main_input_filename first time.
1092
1093 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
1094
1095 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
1096
1097 2004-02-04 Geoffrey Keating <geoffk@apple.com>
1098
1099 * reload.c (find_equiv_reg): When checking for register overlap,
1100 don't index hard_regno_nregs with a pseudo-reg.
1101
1102 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1103
1104 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
1105
1106 2004-02-04 David Edelsohn <edelsohn@gnu.org>
1107
1108 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
1109 against FIRST_PSEUDO_REGISTER.
1110
1111 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1112
1113 * Makefile.in: Move target, host overrides after per-language
1114 fragments.
1115
1116 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
1117 (GNATLIBCFLAGS): Remove -g.
1118
1119 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1120
1121 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
1122 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
1123 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
1124 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
1125 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
1126 config/sparc/sparc.c, config/vax/vax.c: Revert the
1127 replacements of "FALLTHRU" with "Fall through" done in the
1128 previous patch.
1129
1130 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1131
1132 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
1133 config/arm/arm.c, config/arm/arm.md,
1134 config/cris/cris-protos.h, config/fr30/fr30.c,
1135 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
1136 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
1137 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
1138 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
1139 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
1140 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
1141 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
1142 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
1143 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1144 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
1145 config/s390/s390.md, config/sparc/netbsd-elf.h,
1146 config/sparc/openbsd.h, config/sparc/sparc.c,
1147 config/xtensa/lib2funcs.S: Fix comment formatting.
1148
1149 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1150
1151 * config/alpha/alpha.c, config/arc/arc.c,
1152 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
1153 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
1154 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
1155 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
1156 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
1157 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
1158 config/iq2000/iq2000.c, config/m32r/m32r.c,
1159 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1160 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
1161 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
1162 config/rs6000/rs6000.h, config/sparc/sparc.c,
1163 config/vax/vax.c: Fix comment typos. Follow spelling
1164 conventions.
1165
1166 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1167
1168 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
1169 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
1170 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
1171 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
1172 config/arm/fpa.md, config/arm/iwmmxt.md,
1173 config/arm/netbsd-elf.h, config/arm/netbsd.h,
1174 config/m68hc11/m68hc11.md, config/mips/iris5.h,
1175 config/mn10300/mn10300.md, config/rs6000/altivec.md,
1176 config/sparc/netbsd-elf.h: Update copyright.
1177
1178 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1179
1180 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
1181 for all modes whose size is greater than 8 bytes if ARCH32.
1182 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
1183 by reference if ARCH32.
1184
1185 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
1186
1187 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
1188
1189 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1190
1191 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
1192 to before adddi3 insn patterns.
1193 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
1194 "reload_insi"): Move to before addsi3 insn patterns.
1195
1196 2004-02-04 Mark Mitchell <mark@codesourcery.com>
1197
1198 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
1199 parameter. Use it instead of current_function_is_thunk.
1200 * function.h (struct function): Update documentation for is_thunk.
1201 * tree.h (CALL_FROM_THUNK_P): New macro.
1202 * config/alpha/alpha.c (alpha_sa_mask): Do not check
1203 no_new_pseudos when testing current_function_is_thunk.
1204 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
1205
1206 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1207
1208 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
1209 TARGET_SETUP_INCOMING_VARARGS.
1210
1211 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1212
1213 * emit-rtl.c (gen_rtx): Remove.
1214 * genattrtab.c: Don't mention gen_rtx in a comment.
1215 * rtl.h: Remove the prototype for gen_rtx.
1216 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
1217
1218 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1219
1220 * config/arc/arc.h, config/fr30/fr30.h
1221 (SETUP_INCOMING_VARARGS): Remove the target-independent
1222 comments.
1223 * doc/tm.texi: Don't mention deprecated target macros.
1224
1225 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1226
1227 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
1228 target-independent comment.
1229
1230 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1231
1232 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
1233 mention deprecated target macros.
1234
1235 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1236
1237 * config.gcc: Remove obsolete ports and configurations.
1238 * config/linux-aout.h, config/netware.h,
1239 config/t-linux-gnulibc1, config/d30v/abi,
1240 config/d30v/d30v-protos.h, config/d30v/d30v.c,
1241 config/d30v/d30v.h, config/d30v/d30v.md,
1242 config/d30v/libgcc1.asm, config/d30v/t-d30v,
1243 config/dsp16xx/dsp16xx-modes.def,
1244 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1245 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
1246 config/i370/README, config/i370/i370-c.c,
1247 config/i370/i370-protos.h, config/i370/i370.c,
1248 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
1249 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
1250 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
1251 config/i386/moss.h, config/i386/netware.h,
1252 config/i386/svr3.ifile, config/i386/svr3dbx.h,
1253 config/i386/svr3gas.h, config/i386/svr3z.ifile,
1254 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
1255 config/i960/i960-c.c, config/i960/i960-coff.h,
1256 config/i960/i960-modes.def, config/i960/i960-protos.h,
1257 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
1258 config/i960/rtems.h, config/i960/t-960bare,
1259 config/m68k/hp310.h, config/m68k/hp320.h,
1260 config/m68k/hp320base.h, config/m68k/m68kv4.h,
1261 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
1262 Remove.
1263 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
1264 doc/md.texi: Remove mentions of obsolete ports.
1265
1266 2004-02-04 Jan Hubicka <jh@suse.cz>
1267
1268 * alias.c (find_base_term, get_addr): Do not dereference NULL
1269 pointer when all VALUE's locations has been invalidated.
1270 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
1271
1272 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
1273
1274 * doc/invoke.texi (x86 options): Fix spelling/wording.
1275
1276 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
1277
1278 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
1279 put the original string in a comment.
1280 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
1281 * config/mips/mips.c (mips_output_ascii): Likewise.
1282 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
1283
1284 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1285
1286 * system.h (GIV_SORT_CRITERION): Poison.
1287 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
1288 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
1289
1290 2004-02-03 Roger Sayle <roger@eyesopen.com>
1291
1292 PR target/9348
1293 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
1294 multiplies with a multiplication of the wrong signedness, its the
1295 signedness of the multiplication that we've performed that needs to
1296 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
1297 if expand_mult_highpart_adjust places the result in target.
1298
1299 2004-02-03 Richard Henderson <rth@redhat.com>
1300
1301 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
1302
1303 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
1304
1305 * config.gcc (sh[234]l): Use little endian fragments.
1306
1307 2004-02-03 Paul Koning <pkoning@equallogic.com>
1308
1309 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
1310 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
1311 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
1312 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
1313 floating point format.
1314 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
1315 the above functions.
1316 (output_move_quad): Output float values in correct target format.
1317 (legitimate_const_double_p): New function.
1318 * config/pdp11/pdp11.h: Fix typos.
1319 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
1320 (TARGET_FLOAT_FORMAT): Ditto.
1321 (pdp11_f_format, pdp11_d_format): Add external declarations.
1322 (MAX_REGS_PER_ADDRESS): Corrected.
1323 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
1324 (PRINT_OPERAND): Output float literals in target format.
1325
1326 2004-02-03 Mark Mitchell <mark@codesourcery.com>
1327
1328 PR c++/13975
1329 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
1330 TI_PRIVATE.
1331 (access_public_node): Redefine.
1332 (access_protected_node): Likewise.
1333 (access_private_node): Likewise.
1334 * tree.c (build_common_tree_nodes): Create access_public_node,
1335 access_protected_node, and access_private_node.
1336
1337 2004-02-03 Steve Ellcey <sje@cup.hp.com>
1338
1339 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
1340 (MASK_INLINE_INT_DIV_THR): Ditto.
1341 (MASK_INLINE_SQRT_LAT): Ditto.
1342 (MASK_INLINE_SQRT_THR): Ditto.
1343 (MASK_DWARF2_ASM): Ditto.
1344 (MASK_EARLY_STOP_BITS): Ditto.
1345
1346 2004-02-02 Paul Brook <paul@codesourcery.com>
1347
1348 Merge from csl-arm-branch.
1349
1350 2004-01-30 Paul Brook <paul@codesourcery.com>
1351
1352 * aof.h (REGISTER_NAMES): Add vfp reg names
1353 (ADDITIONAL_REGISTER_NAMES): Ditto.
1354 * aout.h (REGISTER_NAMES): Ditto.
1355 (ADDITIONAL_REGISTER_NAMES): Ditto.
1356 * arm-protos.h: Update/Add Prototypes.
1357 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
1358 Only allow 0.0 for VFP.
1359 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
1360 (values_fp): Rename from values_fpa. Update Users.
1361 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
1362 Update users. Only check valid constants for this hardware.
1363 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
1364 Only allow consts for FPA.
1365 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
1366 Only allow consts for FPA.
1367 (use_return_insn): Check for saved VFP regs.
1368 (arm_legitimate_address_p): Handle VFP DFmode addressing.
1369 (arm_legitimize_address): Ditto.
1370 (arm_general_register_operand): New function.
1371 (vfp_mem_operand): New function.
1372 (vfp_compare_operand): New function.
1373 (vfp_secondary_reload_class): New function.
1374 (arm_float_compare_operand): New function.
1375 (vfp_print_multi): New function.
1376 (vfp_output_fstmx): New function.
1377 (vfp_emit_fstm): New function.
1378 (arm_output_epilogue): Output VPF reg restore code.
1379 (arm_expand_prologue): Output VFP reg save code.
1380 (arm_print_operand): Add 'P'.
1381 (arm_hard_regno_mode_ok): Return modes for VFP regs.
1382 (arm_regno_class): Return classes for VFP regs.
1383 (arm_compute_initial_elimination_offset): Include space for VFP regs.
1384 (arm_get_frame_size): Ditto.
1385 * arm.h (FIXED_REGISTERS): Add VFP regs.
1386 (CALL_USED_REGISTERS): Ditto.
1387 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
1388 (FIRST_VFP_REGNUM): Define.
1389 (LAST_VFP_REGNUM): Define.
1390 (IS_VFP_REGNUM): Define.
1391 (FIRST_PSEUDO_REGISTER): Include VFP regs.
1392 (HARD_REGNO_NREGS): Handle VFP regs.
1393 (REG_ALLOC_ORDER): Add VFP regs.
1394 (enum reg_class): Add VFP_REGS.
1395 (REG_CLASS_NAMES): Ditto.
1396 (REG_CLASS_CONTENTS): Ditto.
1397 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
1398 (REG_CLASS_FROM_LETTER): Add 'w'.
1399 (EXTRA_CONSTRAINT_ARM): Add 'U'.
1400 (EXTRA_MEMORY_CONSTRAINT): Define.
1401 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
1402 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1403 (REGISTER_MOVE_COST): Ditto.
1404 (PREDICATE_CODES): Add arm_general_register_operand,
1405 arm_float_compare_operand and vfp_compare_operand.
1406 * arm.md (various): Rename as above.
1407 (divsf3): Enable when TARGET_VFP.
1408 (divdf3): Ditto.
1409 (movdfcc): Ditto.
1410 (sqrtsf2): Ditto.
1411 (sqrtdf2): Ditto.
1412 (arm_movdi): Disable when TARGET_VFP.
1413 (arm_movsi_insn): Ditto.
1414 (movsi): Only split with general regs.
1415 (cmpsf): Use arm_float_compare_operand.
1416 (push_fp_multi): Restrict to TARGET_FPA.
1417 (vfp.md): Include.
1418 * vfp.md: New file.
1419 * fpa.md (various): Rename as above.
1420 * doc/md.texi: Document ARM w and U constraints.
1421
1422 2004-01-15 Paul Brook <paul@codesourcery.com>
1423
1424 * config.gcc: Add with_fpu. Allow with-float=softfp.
1425 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
1426 Break out of loop when we find a float-abi. Fix typo.
1427 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
1428 Set -mfloat-abi=.
1429 * doc/install.texi: Document --with-fpu.
1430
1431 2003-01-14 Paul Brook <paul@codesourcery.com>
1432
1433 * config.gcc (with_arch): Add armv6.
1434 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
1435 * config/arm/arm.c (arm_overrride_options): Ditto.
1436
1437 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
1438
1439 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
1440 (FL_ARCH6): Renamed from FL_ARCH6J.
1441 (arm_arch3m): Renamed from arm_fast_multiply.
1442 (arm_arch6): Renamed from arm_arch6j.
1443 * arm.h: Update all uses of above.
1444 * arm-cores.def: Likewise.
1445 * arm.md: Likewise.
1446
1447 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
1448 not arm6j. Add entry for arch armv6.
1449
1450 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
1451
1452 * arm.c (arm_emit_extendsi): Delete.
1453 * arm-protos.h (arm_emit_extendsi): Delete.
1454 * arm.md (zero_extendhisi2): Also handle zero-extension of
1455 non-subregs.
1456 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
1457 (thumb_zero_extendhisi2): Only match if not v6.
1458 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
1459 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
1460 (thumb_extendqisi2): Likewise.
1461 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
1462 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
1463 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
1464 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
1465 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
1466 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
1467 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
1468 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
1469 (arm_extendqisi2addsi): Likewise.
1470
1471 2003-12-31 Mark Mitchell <mark@codesourcery.com>
1472
1473 Revert this change:
1474 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
1475 + REG addressing modes.
1476
1477 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
1478 + REG addressing modes.
1479
1480 2003-12-30 Mark Mitchell <mark@codesourcery.com>
1481
1482 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
1483 CONSTANT_P_RTX.
1484
1485 2003-30-12 Paul Brook <paul@codesourcery.com>
1486
1487 * longlong.h: protect arm inlines with !defined (__thumb__)
1488
1489 2003-30-12 Paul Brook <paul@codesourcery.com>
1490
1491 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
1492
1493 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
1494
1495 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
1496 change.
1497
1498 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
1499
1500 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
1501 to the virtual incoming args pointer for downward stacks.
1502
1503 2003-12-29 Paul Brook <paul@codesourcery.com>
1504
1505 * config/arm/arm-cores.def: Add cost function.
1506 * config/arm/arm.c (arm_*_rtx_costs): New functions.
1507 (arm_rtx_costs): Remove
1508 (struct processors): Add rtx_costs field.
1509 (all_cores, all_architectures): Ditto.
1510 (arm_override_options): Set targetm.rtx_costs.
1511 (thumb_rtx_costs): New function.
1512 (arm_rtx_costs_1): Remove cases handled elsewhere.
1513 * config/arm/arm.h (processor_type): Add COSTS parameter.
1514
1515 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
1516
1517 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
1518 (arm926ejs.md): Include it.
1519 * config/arm/arm926ejs.md: New pipeline description.
1520
1521 2003-12-24 Paul Brook <paul@codesourcery.com>
1522
1523 * config/arm/arm.c (arm_arch6j): New variable.
1524 (arm_override_options): Set it.
1525 (arm_emit_extendsi): New function.
1526 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
1527 * config/arm/arm.h (arm_arch6j): Declare.
1528 * config/arm/arm.md: Add sign/zero extend insns.
1529
1530 2003-12-23 Paul Brook <paul@codesourcery.com>
1531
1532 * config/arm/arm.c (all_architectures): Add armv6.
1533 * doc/invoke.texi: Document it.
1534
1535 2003-12-19 Paul Brook <paul@codesourcery.com>
1536
1537 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
1538 insn patterns to match.
1539 * config/arm/arm-generic.md: Ditto.
1540 * config/arm/cirrus.md: Ditto.
1541 * config/arm/fpa.md: Ditto.
1542 * config/amm/iwmmxt.md: Ditto.
1543 * config/arm/arm1026ejs.md: Ditto.
1544 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
1545 for 11_loadb.
1546
1547 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
1548
1549 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
1550 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
1551 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
1552 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
1553 arm_no_early_mul_dep): Correctly deal with conditional execution,
1554 parallels and single shift operations.
1555 (arm_no_early_alu_shift_value_dep): Define.
1556 * arm.md (attr type): Replace 'normal' with 'alu',
1557 'alu_shift' and 'alu_shift_reg'.
1558 (attr core_cycles): Adjust.
1559 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
1560 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
1561 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
1562 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
1563 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
1564 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
1565 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
1566 attribute appropriately.
1567 * config/arm/arm1026ejs.md (alu_op): Adjust.
1568 (alu_shift_op, alu_shift_reg_op): New.
1569 * config/arm/arm1136.md: Add better bypasses for early
1570 registers. Remove load[234] and store[234] bypasses.
1571 (11_alu_op): Adjust.
1572 (11_alu_shift_op, 11_alu_shift_reg_op): New.
1573
1574 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
1575
1576 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
1577 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
1578 * config/arm/arm.c (arm_no_early_store_addr_dep,
1579 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
1580 * config/arm/arm1026ejs.md: Add load-store bypass.
1581 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
1582 Add bypasses between instructions.
1583
1584 2003-12-10 Paul Brook <paul@codesourcery.com>
1585
1586 * config/arm/arm.c (arm_fpu_model): New variable.
1587 (arm_fload_abi): New variable.
1588 (target_fpe_name): Rename from target_fp_name.
1589 (target_fpu_name): New variable.
1590 (arm_is_cirrus): Remove.
1591 (fpu_desc): New struct.
1592 (all_fpus): Define.
1593 (pf_model_for_fpu): Define.
1594 (all_loat_abis): Define.
1595 (arm_override_options): Set fp arch flags based on -mfpu=
1596 and -float-abi=.
1597 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
1598 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
1599 (*): Use new TARGET_* flags.
1600 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
1601 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
1602 (TARGET_SOFT_FLOAT): Ditto.
1603 (TARGET_SOFT_FLOAT_ABI): New.
1604 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
1605 TARGET_HARD_FLOAT.
1606 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
1607 (TARGET_OPTIONS): Add -mfpu=.
1608 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
1609 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
1610 (arm_pf_model): Define.
1611 (arm_float_abi_type): Define.
1612 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
1613 * config/arm/arm.md: Use new TARGET_* flags.
1614 * config/arm/cirrus.md: Ditto.
1615 * config/arm/fpa.md: Ditto.
1616 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
1617 * config/arm/semi.h (ASM_SPEC): Ditto.
1618 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
1619 (FPUTYPE_DEFAULT): Set to VFP.
1620 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
1621
1622 2003-11-22 Phil Edwards <phil@codesourcery.com>
1623
1624 PR target/12476
1625 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
1626 'bx' instead of 'b' to avoid branch range restrictions. Output
1627 the thunk immediately before the thunked-to function.
1628 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
1629 .thumb_func if a thunk is being generated. Emit .code 16 along
1630 with .thumb_func if a thunk is not being generated.
1631
1632 2003-11-15 Nicolas Pitre <nico@cam.org>
1633
1634 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
1635 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
1636 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
1637 (lshrdi3_iwmmxt): Renamed from lshrdi3.
1638 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
1639
1640 2003-11-12 Steve Woodford <scw@wasabisystems.com>
1641 Ian Lance Taylor <ian@wasabisystems.com>
1642
1643 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
1644 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
1645
1646 2003-11-05 Phil Edwards <phil@codesourcery.com>
1647
1648 * config/arm/arm.md (insn): Add new V6 instruction names.
1649 (generic_sched): New attr.
1650 * config/arm/arm-generic.md: Use generic_sched here.
1651 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
1652 stages of pipeline. Adjust latency counts accordingly.
1653 * config/arm/arm1136jfs.md: New file.
1654
1655 2003-10-28 Mark Mitchell <mark@codesourcery.com>
1656
1657 * config/arm/arm.h (processor_type): New enumeration type.
1658 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
1659 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
1660 (CPP_CPU_ARCH_SPEC): Likewise.
1661 * config/arm/arm.c (arm_tune): New variable.
1662 (all_cores): Use cores.def.
1663 (all_architectures): Add representative processor.
1664 (arm_override_options): Restructure way in which tuning
1665 information is deduced.
1666 * arm.md: Update "insn" and "type" attributes throughout.
1667 (insn): New attribute.
1668 (type): Compute "mult" from "insn" attribute. Add load2,
1669 load3, load4 alternatives.
1670 (arm automaton): Move to arm-generic.md.
1671 * config/arm/arm-cores.def: New file.
1672 * config/arm/arm-generic.md: Likewise.
1673 * config/arm/arm1026ejs.md: Likewise.
1674
1675 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
1676
1677 * doc/invoke.texi (SPARC options): Remove -mflat and
1678 all -mxxx (xxx:chip) options.
1679 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
1680 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
1681 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
1682 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
1683 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
1684 * config/sparc/sparc.c: Likewise.
1685 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
1686 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
1687 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
1688 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
1689 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
1690 (sparc_flat_must_save_register_p): Likewise.
1691 (sparc_flat_compute_frame_size): Likewise.
1692 (sparc_flat_save_restore): Likewise.
1693 (sparc_flat_function_prologue): Likewise.
1694 (sparc_flat_function_epilogue): Likewise.
1695 (sparc_flat_epilogue_delay_slots): Likewise.
1696 (sparc_flat_eligible_for_epilogue_delay): Likewise.
1697 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
1698 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
1699 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
1700 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
1701 (CONDITIONAL_REGISTER_USAGE): Likewise.
1702 (FRAME_POINTER_REQUIRED): Likewise.
1703 (INITIAL_ELIMINATION_OFFSET): Likewise.
1704 (BASE_RETURN_VALUE_REG): Likewise.
1705 (BASE_OUTGOING_VALUE_REG): Likewise.
1706 (BASE_PASSING_ARG_REG): Likewise.
1707 (BASE_INCOMING_ARG_REG): Likewise.
1708 (INCOMING_REGNO): Likewise.
1709 (OUTGOING_REGNO): Likewise.
1710 (LOCAL_REGNO): Likewise.
1711 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
1712 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1713 (EPILOGUE_USES): Likewise.
1714 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
1715 ("flat" attribute): Delete.
1716 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
1717 handling.
1718 (call followed by jump define_peephole's): Delete.
1719 (exception_receiver): Likewise.
1720 (builtin_setjmp_receiver): Likewise.
1721 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
1722
1723 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
1724
1725 PR c/11658
1726 PR c/13994
1727 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
1728 on langhooks.h.
1729 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
1730 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
1731 Include langhooks.h. Replace c_common_truthvalue_conversion
1732 with the truthvalue_conversion language hook throughout.
1733 (expr_no_commas): Call default_conversion before save_expr
1734 for the first term of the production 'x ? : y'.
1735 * c-common.c (c_common_truthvalue_conversion): Remove
1736 obsolete block. Invoke recursively the hook instead
1737 of this function.
1738 * c-convert.c (convert): handle ERROR_MARK_NODE.
1739 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
1740 returned by the truthvalue_conversion language hook.
1741 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
1742 c_objc_common_truthvalue_conversion.
1743 * c-objc-common.c (c_objc_common_truthvalue_conversion):
1744 New function.
1745 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
1746 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
1747 c_objc_common_truthvalue_conversion.
1748
1749 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1750
1751 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
1752 of gen_rtx.
1753 (LIBCALL_VALUE): Likewise.
1754 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
1755 gen_rtx_CC0 instead of gen_rtx.
1756 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
1757 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
1758 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
1759 gen_rtx.
1760 (m68hc11_emit_logical): Likewise.
1761
1762 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1763
1764 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
1765 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
1766 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
1767 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
1768 config/mips/mips.md, config/mmix/mmix.c,
1769 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
1770 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
1771 config/rs6000/altivec.md, config/s390/s390.c,
1772 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
1773 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
1774 Use const0_rtx instead of GEN_INT (0). Do the same for other
1775 constants that are readily available.
1776
1777 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1778
1779 * doloop.c, optabs.c, regmove.c, sched-deps.c,
1780 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
1781 instead of GEN_INT (0). Do the same for other constants that
1782 are readily available.
1783
1784 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1785
1786 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
1787 gen_rtx.
1788 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
1789 instead of gen_rtx.
1790 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
1791 gen_rtx.
1792 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
1793 gen_rtx_ASHIFT instead of gen_rtx.
1794 (udivmodqi4): Likewise.
1795
1796 2004-02-02 Richard Henderson <rth@redhat.com>
1797
1798 PR target/13789
1799 * expr.c (store_expr): Use force_operand before emit_move_insn.
1800
1801 2004-02-02 Jeff Law <law@redhat.com>
1802 Roger Sayle <roger@eyesopen.com>
1803
1804 * tree.c (commutative_tree_code, associative_tree_code): New
1805 functions.
1806 (iterative_hash_expr): Use commutative_tree_code.
1807 * tree.h (commutative_tree_code, associative_tree_code): Declare.
1808 * fold-const.c (operand_equal_p): Use commutative_tree_code
1809 rather than inlining the commutativity check.
1810 (fold): Likewise.
1811
1812 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1813
1814 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
1815 * config/frv/frv-protos.h: Remove the prototype for
1816 frv_function_arg_keep_as_reference.
1817 * config/frv/frv.c (frv_function_arg_keep_as_reference):
1818 Remove.
1819 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
1820 * config/stormy16/stormy16.h: Remove the commented-out
1821 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
1822
1823 2004-02-03 Alan Modra <amodra@bigpond.net.au>
1824
1825 PR target/13914
1826 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
1827 for retaddr_column.
1828
1829 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1830
1831 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
1832 gen_rtx.
1833
1834 2004-02-02 Eric Christopher <echristo@redhat.com>
1835 Zack Weinberg <zack@codesourcery.com>
1836
1837 * c-opts.c (c_common_handle_option): Add -finput-charset.
1838 * c.opt: Ditto.
1839 * cppcharset.c (one_iso88591_to_utf8): Remove.
1840 (convert_iso88591_utf8): Ditto.
1841 (conversion_tab): Remove 8859-1 converter.
1842 (_cpp_input_to_utf8): Remove.
1843 (_cpp_init_iconv_buffer): Ditto.
1844 (_cpp_close_iconv_buffer): Ditto.
1845 (_cpp_convert_input): New function.
1846 (_cpp_default_encoding): Ditto.
1847 * cpphash.h: Add/remove prototypes for above.
1848 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
1849 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
1850 for narrow execution and input character sets.
1851 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
1852 * doc/cppopts.texi: Document -finput-charset.
1853
1854 2004-02-02 David Edelsohn <edelsohn@gnu.org>
1855
1856 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
1857 against FIRST_PSEUDO_REGISTER.
1858
1859 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1860
1861 * doc/invoke.texi (SPARC options): Further improve.
1862
1863 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1864
1865 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
1866 config/h8300/h8300.c, config/ip2k/ip2k.md,
1867 config/iq2000/iq2000.c, config/mips/mips.c,
1868 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
1869 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
1870 config/v850/v850.md: Fix indentation.
1871
1872 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1873
1874 * config/sparc/sparc.c (function_arg_slotno): Align TImode
1875 arguments on a 16-byte boundary in the parameter array if ARCH64.
1876 Split handling of TFmode.
1877
1878 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
1879
1880 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
1881 Don't test CONSTANT_P (x).
1882 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
1883 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
1884 Fix misindentation.
1885
1886 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1887
1888 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
1889
1890 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1891
1892 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
1893 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
1894 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
1895 config/iq2000/iq2000.c, config/m32r/m32r.c,
1896 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
1897 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
1898 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
1899 config/stormy16/stormy16.c, config/v850/v850.md,
1900 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
1901
1902 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
1903
1904 * config/mcore/mcore.c (block_move_sequence): Replace
1905 gen_rtx_CONST_INT with GEN_INT.
1906
1907 2004-02-02 Jan Hubicka <jh@suse.cz>
1908
1909 * alias.c (record_set): Use hard_regno_nregs.
1910 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
1911 * builtins.c (apply_args_size): Likewise.
1912 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
1913 mark_set_regs, add_stored_regs, mark_referenced_regs,
1914 insert_restore, insert_save, insert_one_insn): Likewise.
1915 * cfgcleanup.c: Include regs.h
1916 (mark_effect, mentions_nonequal_regs): Likewise.
1917 * cfgrtl.c (mark_killed_regs): Likewise
1918 * combine.c (update_table_tick, record_value_for_reg,
1919 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
1920 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
1921 reg_bitfield_target_p, distribute_notes): Likewise.
1922 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
1923 exp_equiv_p, cse_insn): Likewise.
1924 * cselib.c (cselib_lookup): Likewise.
1925 (cselib_invalidate_regno, cselib_record_set): Likewise.
1926 * df.c (df_ref_record): Likewise.
1927 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
1928 Likewise.
1929 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
1930 count_or_remove_death_notes_bb): Likewise.
1931 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
1932 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
1933 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
1934 * integrate.c (mark_stores): Likewise.
1935 * jump.c (delete_prior_computation): Likewise.
1936 * lcm.c (reg_dies, reg_becomes_live): Likewise.
1937 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
1938 * loop.c (LOOP_REGNO_NREGS): Likewise.
1939 * postreload.c (reload_combine, reload_combine_note_store,
1940 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
1941 * ra-colorize.c (combine, color_usable_p, get_free_reg,
1942 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
1943 try_recolor_web, insert_coalesced_conflicts, check_colors,
1944 break_precolored_alias): Likewise.
1945 * ra-debug.c: Include regs.h
1946 (ra_print_rtx_object): Likewise.
1947 * ra-rewrite (choose_spill_colors): Likewise.
1948 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
1949 * ra.c (init_ra): Likewise.
1950 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
1951 peep2_find_free_register): Likewise.
1952 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
1953 * regclass.c (hard_regno_nregs): New array.
1954 (init_reg_modes_once): Initialize it.
1955 (choose_hard_reg_mode): Use it.
1956 (record_reg_classes): Likewise.
1957 * regmove.c (mark_flags_life_zones): Likewise.
1958 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
1959 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
1960 copy_value, maybe_mode_change, find_oldest_value_reg,
1961 copyprop_hardreg_forward_1):
1962 * regs.h (hard_regno_nregs): Declare.
1963 * realod.c (reload_inner_reg_of_subreg): Use it.
1964 (push_reload, combine_reloads, find_dummy_reload,
1965 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
1966 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
1967 reload_adjust_reg_for_mode): Likewise.
1968 * reload1.c (compute_use_by_pseudos, count_pseudo,
1969 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
1970 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
1971 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
1972 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
1973 delete_output_reload): Likewise.
1974 * resource.c (update_live_status, mark_referenced_resources,
1975 mark_set_resources, mark_target_live_regs): Likewise.
1976 * rtlanal.c: Include regs.h
1977 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
1978 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
1979 subreg_regno_offset, subreg_offset_representable_p,
1980 hoist_test_store): Likewise.
1981 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
1982 * sched-rgn.c (check_live_1, update_live_1): Likewise.
1983 * stmt.c: Include regs.h
1984 (decl_conflicts_with_clobbers_p): Likewise.
1985 * varasm.c (make_decl_rtl): Likewise.
1986 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
1987
1988 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
1989
1990 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
1991 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
1992 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
1993 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
1994 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
1995 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
1996 config/iq2000/iq2000.h, config/m32r/m32r.c,
1997 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1998 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
1999 config/mcore/mcore.c, config/mcore/mcore.h,
2000 config/mcore/mcore.md, config/mips/mips.c,
2001 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2002 config/rs6000/rs6000.c, config/s390/s390.c,
2003 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
2004 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
2005 "gen_rtx (FOO, " with "gen_rtx_FOO (".
2006
2007 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
2008
2009 * config/h8300/h8300.md (two peephole2's): New.
2010
2011 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2012
2013 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
2014 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
2015 (ASM_CPU_SPEC): Likewise
2016 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
2017 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
2018
2019 2004-02-01 Roger Sayle <roger@eyesopen.com>
2020
2021 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
2022 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
2023 (expand_builtin): Always call expand_builtin_pow.
2024
2025 2004-02-01 Roger Sayle <roger@eyesopen.com>
2026
2027 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
2028 BUILT_IN_SIGNBITL): New GCC builtins.
2029 * builtins.c (expand_builtin_signbit): New function to RTL expand
2030 calls to signbit, signbitf and signbitl as inline intrinsics.
2031 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
2032 (fold_builtin_signbit): New function to perform constant folding
2033 of signbit, signbitf and signbitl.
2034 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
2035
2036 * doc/extend.texi: Document new signbit{,f,l} builtins.
2037
2038 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
2039
2040 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
2041
2042 2004-02-01 Chris Demetriou <cgd@broadcom.com>
2043
2044 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
2045 "mips_const_double_ok" and "simple_memory_operand", which were
2046 removed from the MIPS port with the mips-3_4-rewrite branch merge.
2047 * config/mips/mips.c (mips16_lay_out_constants): Update comment
2048 for removal of simple_memory_operand.
2049
2050 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2051
2052 * config/c4x/c4x.md: Use GEN_INT instead of
2053 gen_rtx (CONST_INT, ...).
2054
2055 2004-01-31 Richard Henderson <rth@redhat.com>
2056
2057 * varasm.c (output_constant_pool): Don't zap the pool.
2058
2059 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2060
2061 * genrecog.c (decision_type): Add DT_const_int.
2062 (write_cond) [DT_const_int]: Print a comparison against small
2063 constant.
2064 (write_node): Simplify comparisons against small constants
2065 before printing tests.
2066
2067 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2068
2069 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
2070 instead of gen_rtx_CONST_INT.
2071
2072 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2073
2074 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
2075 instead of gen_rtx_CONST_INT.
2076
2077 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2078
2079 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
2080 hook_bool_CUMULATIVE_ARGS_false.
2081 * targhooks.c (default_strict_argument_naming): Rename to
2082 hook_bool_CUMULATIVE_ARGS_false.
2083 * targhooks.h: Update the prototype for
2084 default_strict_argument_naming.
2085
2086 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2087
2088 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
2089 * config/sh/sh.h: Likewise.
2090 * config/sh/sh.md: Likewise.
2091
2092 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
2093
2094 * doc/invoke.texi (SPARC options): Restructure and update.
2095
2096 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2097
2098 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
2099 STRICT_ARGUMENT_NAMING): Poison.
2100 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
2101 hook_bool_tree_false.
2102 * targhooks.c (default_promote_function_args): Remove.
2103 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
2104 Don't check incoming.
2105 (default_strict_argument_naming): Don't use
2106 STRICT_ARGUMENT_NAMING.
2107 * targhooks.h: Remove the prototype for
2108 default_promote_function_args.
2109
2110 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2111
2112 * config/i386/i386-protos.h: Remove the prototype for
2113 ix86_setup_incoming_varargs.
2114 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
2115 (ix86_setup_incoming_varargs): Make it static.
2116 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
2117
2118 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2119
2120 * alloc-pool.c: Fix comment typos.
2121 * builtin-types.def: Likewise.
2122 * builtins.def: Likewise.
2123 * c-pretty-print.c: Likewise.
2124 * df.h: Likewise.
2125 * reload1.c: Likewise.
2126
2127 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2128
2129 * doc/invoke.texi: Follow spelling conventions.
2130 * doc/tm.texi: Likewise.
2131
2132 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2133
2134 * doc/install.texi: Fix typos.
2135 * doc/invoke.texi: Likewise.
2136
2137 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
2138
2139 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
2140 registers as pointers.
2141 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
2142
2143 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
2144
2145 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
2146 and restore it to gen_lowpart_general on exit.
2147 (gen_lowpart_for_combine): Adjust all callers to go through
2148 gen_lowpart.
2149 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
2150 and restore it to gen_lowpart_general on exit.
2151 (gen_lowpart_if_possible): Adjust all callers to go through
2152 gen_lowpart.
2153 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
2154 (gen_lowpart): Declare as pointer to function, initialized to
2155 gen_lowpart_general.
2156 * rtl.h (gen_lowpart): Declare as pointer to function.
2157
2158 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2159
2160 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
2161 * calls.c: Likewise.
2162 * emit-rtl.c: Likewise.
2163 * function.c: Likewise.
2164 * reload1.c: Likewise.
2165 * config/i386/cygming.h: Likewise.
2166 * config/i386/i386.c: Likewise.
2167 * config/i386/winnt.c: Likewise.
2168
2169 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
2170
2171 PR bootstrap/9249
2172 * doc/install.texi: document --enable-__cxa_atexit option.
2173 * configure.ac: Disable __cxa_atexit if not supported.
2174 * configure: Regenerate.
2175
2176 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
2177
2178 * ggc-zone.c (ggc_free): New function.
2179
2180 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2181
2182 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
2183 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
2184 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
2185 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
2186 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
2187 config/alpha/alpha.c, config/alpha/alpha.h,
2188 config/alpha/alpha.md, config/alpha/unicosmk.h,
2189 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
2190 config/c4x/c4x-protos.h, config/c4x/c4x.md,
2191 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
2192 config/frv/frvend.c, config/i386/cygming.h,
2193 config/i386/djgpp.h, config/i386/emmintrin.h,
2194 config/i386/gthr-win32.c, config/i386/i386-interix.h,
2195 config/i386/i386-protos.h, config/i386/openbsd.h,
2196 config/i386/winnt.c, config/i386/xm-mingw32.h,
2197 config/i386/xmmintrin.h, config/ia64/ia64.md,
2198 config/iq2000/iq2000.md, config/m32r/m32r.md,
2199 config/m68k/m68k.md, config/mcore/mcore-elf.h,
2200 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2201 config/mips/iris5gas.h, config/mips/iris6.h,
2202 config/mips/iris6gas.h, config/mips/linux.h,
2203 config/mips/mips.md, config/mips/netbsd.h,
2204 config/mips/openbsd.h, config/mips/windiss.h,
2205 config/pa/fptr.c, config/rs6000/aix.h,
2206 config/rs6000/altivec.h, config/rs6000/darwin.h,
2207 config/rs6000/xcoff.h, config/s390/s390-protos.h,
2208 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
2209 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
2210 config/sparc/sol2.h: Update copyright.
2211
2212 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
2213
2214 * Makefile.in (abs_docdir, abs_srcdir): Define.
2215 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
2216
2217 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2218
2219 * genconfig.c (main): Have CC0_P check its operand even on a
2220 target without cc0.
2221
2222 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2223
2224 * config/alpha/alpha.c: Remove mentions of deprecates macros
2225 in comments, remove some target-independent comments about target
2226 macros, and/or add minimal function comments for target hook
2227 implementations.
2228 * config/avr/avr.c: Likewise.
2229 * config/ia64/ia64.h: Likewise.
2230 * config/ip2k/ip2k.c: Likewise.
2231 * config/iq2000/iq2000.c: Likewise.
2232 * config/m32r/m32r.h: Likewise.
2233 * config/m68hc11/m68hc11.c: Likewise.
2234 * config/mcore/mcore.c: Likewise.
2235 * config/mmix/mmix.c: Likewise.
2236 * config/mn10300/mn10300.c: Likewise.
2237 * config/pa/pa.c: Likewise.
2238 * config/pdp11/pdp11.c: Likewise.
2239 * config/rs6000/rs6000.h: Likewise.
2240 * config/sh/sh.c: Likewise.
2241 * config/sh/sh.h: Likewise.
2242 * config/sparc/sparc.c: Likewise.
2243 * config/sparc/sparc.h: Likewise.
2244 * config/stormy16/stormy16.c: Likewise.
2245 * config/xtensa/xtensa.c: Likewise.
2246
2247 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2248
2249 PR optimization/12147
2250 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
2251 RELOAD_FOR_OPADDR_ADDR.
2252 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
2253 might be reused as RELOAD_FOR_OPADDR_ADDR register.
2254
2255 2004-01-30 Jan Hubicka <jh@suse.cz>
2256
2257 * reload.c (get_secondary_mem): Fix updating of
2258 secondary_memlocs_elim_used.
2259
2260 2004-01-30 Richard Henderson <rth@redhat.com>
2261
2262 * varasm.c (struct rtx_const, struct pool_constant): Remove.
2263 (MAX_RTX_HASH_TABLE): Remove.
2264 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
2265 (first_pool, last_pool, pool_offset): Remove.
2266 (struct rtx_constant_pool): Split out from ...
2267 (struct varasm_status): ... here. Reference one via pointer.
2268 (struct constant_descriptor_rtx): Merge struct pool_constant.
2269 (SYMHASH): Remove.
2270 (decode_rtx_const): Remove.
2271 (const_hash_rtx, compare_constant_rtx): Remove.
2272 (record_constant_rtx): Remove.
2273 (const_desc_rtx_hash, const_desc_rtx_eq): New.
2274 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
2275 (const_rtx_hash_1, const_rtx_hash): New.
2276 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
2277 (simplify_subtraction): Use simplify_rtx.
2278 (force_const_mem): Rewrite to use new data structures.
2279 (find_pool_constant): Likewise.
2280 (get_pool_constant, get_pool_constant_mark,
2281 get_pool_constant_for_function, get_pool_mode,
2282 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
2283 (output_constant_pool_2): Split out from output_constant_pool.
2284 (output_constant_pool_1): Likewise. Use new pool datastructures.
2285 (output_constant_pool): Zap entire pool datastructure.
2286 (mark_constant): Use new pool datastructures.
2287 (mark_constants): Use for_each_rtx.
2288 (mark_constant_pool): Use new pool datastructures.
2289
2290 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
2291
2292 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
2293 Copy operands[1] to pseudo for simplify_gen_subreg.
2294
2295 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2296
2297 * gcse.c (bypass_block): Fix a typo in the previous check-in
2298 to the file.
2299
2300 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
2301
2302 * toplev.c: Include alloc-pool.h.
2303 * Makefile.in (toplev.c): Update dependencies.
2304
2305 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2306
2307 * combine.c (simplify_shift_const, case XOR): Be careful when
2308 commuting XOR with ASHIFTRT.
2309
2310 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2311 Eric Botcazou <ebotcazou@libertysurf.fr>
2312
2313 * config/sparc/sparc-protos.h: Remove the prototype for
2314 sparc_builtin_saveregs.
2315 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2316 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2317 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2318 (TARGET_STRUCT_VALUE_RTX): Likewise.
2319 (TARGET_RETURN_IN_MEMORY): Likewise.
2320 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2321 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2322 (sparc_builtin_saveregs): Make it static.
2323 (sparc_promote_prototypes): New.
2324 (sparc_struct_value_rtx): Likewise.
2325 (sparc_return_in_memory): Likewise.
2326 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
2327 (PROMOTE_FUNCTION_RETURN): Likewise.
2328 (RETURN_IN_MEMORY): Likewise.
2329 (STRUCT_VALUE): Likewise.
2330 (STRUCT_VALUE_INCOMING): Likewise.
2331 (EXPAND_BUILTIN_SAVEREGS): Likewise.
2332 (STRICT_ARGUMENT_NAMING): Likewise.
2333 (PROMOTE_PROTOTYPES): Likewise.
2334
2335 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
2336
2337 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
2338
2339 PR c/12818
2340 * varasm.c (const_hash_1) <STRING_CST>: Use the
2341 address to compute the hash value if flag_writable_strings.
2342 (compare_constant) <STRING_CST>: Compare the addresses
2343 if flag_writable_strings.
2344 (build_constant_desc): Do not copy the expression for a
2345 STRING_CST if flag_writable_strings.
2346
2347 2004-01-30 Jan Hubicka <jh@suse.cz>
2348
2349 * alloc-pool.c: Include hashtab.h
2350 (alloc_pool_descriptor): New structure
2351 (alloc_pool_hash): New global variable.
2352 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
2353 (create_alloc_pool): Update statistics.
2354 (free_alloc_pool): Likewise.
2355 (pool_alloc): Likewise.
2356 (output_info): New structure
2357 (print_statistics, dump_alloc_pool_statistics): New function.
2358 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
2359 (dump_alloc_pool_statistics): Declare.
2360 * toplev.c (finalize): Dump statistics.
2361
2362 * reload.c (secondary_memlocs_elim_used): New static variable.
2363 (get_secondary_mem): Update it.
2364 (find_reloads): Use it.
2365
2366 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
2367
2368 * toplev.c: Fix broken checkin of 2003-12-30, again.
2369
2370 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2371
2372 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
2373 s390*-*-* targets by specifying a 'nop' insn.
2374 * configure: Regenerate.
2375
2376 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
2377
2378 PR target/11475
2379 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
2380
2381 2004-01-29 Jakub Jelinek <jakub@redhat.com>
2382
2383 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
2384 of addr when creating MEM copy.
2385
2386 2004-01-29 Devang Patel <dpatel@apple.com>
2387
2388 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
2389
2390 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
2391
2392 PR inline-asm/6162
2393 * reload.c (find_reloads): Only support one pair of commutative
2394 operands.
2395
2396 2004-01-29 Roger Sayle <roger@eyesopen.com>
2397
2398 PR java/13824
2399 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
2400 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
2401 recursion.
2402
2403 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
2404
2405 * config/frv/frv.c: Don't mention deprecated macros in
2406 comments. Remove some target-independent comments about
2407 target macros.
2408 * config/frv/frv.h: Likewise.
2409
2410 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2411
2412 * cfghooks.c (split_block): Set probability and count of the
2413 new edge.
2414
2415 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
2416
2417 * dwarf2out.c (struct die_struct): Added field decl_id.
2418 (decl_die_table): Changed to hash table.
2419 (decl_die_table_allocated): Deleted.
2420 (decl_die_table_in_use): Deleted.
2421 (DECL_DIE_TABLE_INCREMENT): Deleted.
2422 (decl_die_table_hash): New function.
2423 (decl_die_table_eq): New function.
2424 (lookup_decl_die): Lookup in a hash table.
2425 (equate_decl_number_to_die): Insert into a hash table.
2426 (dwarf2out_init): Init hash table decl_die_table.
2427
2428 2004-01-29 Jakub Jelinek <jakub@redhat.com>
2429
2430 PR optimization/13424
2431 * expr.c (store_constructor): Revert 2003-12-03 change.
2432
2433 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
2434 expected before returning early. Avoid sharing RTL if they
2435 need to be changed.
2436
2437 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
2438 handling so that memory attributes are preserved. Don't call
2439 ix86_set_move_mem_attrs.
2440 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
2441 (ix86_expand_clrstr): Rename src argument to
2442 dst. Rework rep_stos and strset handling so that memory attributes
2443 are preserved.
2444 (ix86_expand_strlen): Pass src argument to
2445 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
2446 memory attributes are preserved.
2447 (ix86_expand_strlensi_unroll_1): Add src argument. Use
2448 change_address instead of gen_rtx_MEM.
2449 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
2450 expanders.
2451 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
2452 strmovqi, strmovqi_rex64): Remove.
2453 (rep_mov*, strmov*): Prefix insn names with *.
2454 (strset, strset_singleop, rep_stos): New expanders.
2455 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
2456 strsetqi, strsetqi_rex64): Remove.
2457 (rep_stos*, strset*): Prefix insn names with *.
2458 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
2459 to SImode.
2460 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
2461 are preserved.
2462 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
2463 Prefix insn names with *.
2464 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
2465 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
2466 (strlenqi_1): New expander.
2467 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
2468
2469 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2470
2471 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
2472 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
2473 verify_flow_info): Declaration removed.
2474 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
2475 (debug_bb, debug_bb_n): Add argument to dump_bb call.
2476 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
2477 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
2478 instead of delete_block.
2479 * cfghooks.c: Include timevar.h and toplev.h.
2480 (cfg_hooks): Define here.
2481 (verify_flow_info, dump_bb): Moved from cfg.c.
2482 (redirect_edge_and_branch, redirect_edge_and_branch_force,
2483 split_block, split_block_after_labels, move_block_after,
2484 delete_basic_block, split_edge, create_basic_block,
2485 create_empty_bb, can_merge_blocks_p, merge_blocks,
2486 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
2487 New functions.
2488 * cfghooks.h (struct cfg_hooks): Added fields name,
2489 make_forwarder_block, tidy_fallthru_edge and
2490 move_block_after. Changed type of verify_flow_info, dump_bb,
2491 split_block fields. Renamed cfgh_split_edge and delete_block
2492 fields.
2493 (redirect_edge_and_branch, redirect_edge_and_branch_force,
2494 split_block, delete_block, split_edge, create_basic_block,
2495 can_merge_blocks_p, merge_blocks): Macros removed.
2496 (cfg_hooks): Do not export.
2497 (verify_flow_info, dump_bb, redirect_edge_and_branch,
2498 redirect_edge_and_branch_force, split_block, split_block_after_labels,
2499 move_block_after, delete_basic_block, split_edge, create_basic_block,
2500 create_empty_bb, can_merge_blocks_p, merge_blocks,
2501 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
2502 Declare.
2503 (cfg_layout_rtl_cfg_hooks): Declare.
2504 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
2505 New functions.
2506 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
2507 (redirect_edge_with_latch_update): Removed.
2508 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
2509 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
2510 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
2511 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
2512 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
2513 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
2514 cfghooks.c.
2515 (rtl_create_basic_block): Coding style fix.
2516 (rtl_tidy_fallthru_edge, rtl_move_block_after,
2517 rtl_make_forwarder_block): New functions.
2518 (update_cfg_after_block_merging): Removed.
2519 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
2520 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
2521 to dump_bb.
2522 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
2523 find_if_case_2): Don't update dominators.
2524 * timevar.def (TV_CFG_VERIFY): New.
2525 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
2526 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
2527 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
2528 (remove_bbs): Don't call remove_bbs.
2529 (create_preheader): Use make_forwarder_block.
2530 (mfb_keep_just, mfb_update_loops): New static functions.
2531
2532 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
2533
2534 * config/avr/avr.h: Remove target-independent comments about
2535 target macros.
2536
2537 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
2538
2539 * timevar.c (timevar_print): Mention when checking is enabled.
2540
2541 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2542
2543 * c-lex.c (c_lex): Rename to...
2544 (c_lex_with_flags): Add new parameter to get CPP flags.
2545 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
2546 * c-pragma.h (c_lex_with_flags): Declare.
2547
2548 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2549
2550 * config/mcore/mcore.c (mcore_external_libcall): Add a
2551 comment.
2552 (mcore_return_in_memory): Likewise.
2553
2554 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2555
2556 * config/mcore/mcore-protos.h: Remove the prototype for
2557 mcore_setup_incoming_varargs.
2558 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
2559 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
2560 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2561 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2562 (TARGET_STRUCT_VALUE_RTX): Likewise.
2563 (TARGET_RETURN_IN_MEMORY): Likewise.
2564 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2565 (mcore_setup_incoming_varargs): Make it static. Receive the
2566 first argument by reference. Add argument second_time.
2567 (mcore_external_libcall): New.
2568 (mcore_return_in_memory): Likewise.
2569 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
2570 (PROMOTE_FUNCTION_RETURN): Likewise.
2571 (STRUCT_VALUE): Likewise.
2572 (RETURN_IN_MEMORY): Likewise.
2573 (SETUP_INCOMING_VARARGS): Likewise.
2574 (PROMOTE_PROTOTYPES): Likewise.
2575 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2576
2577 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2578
2579 * config/m32r/m32r-protos.h: Remove the prototype for
2580 m32r_setup_incoming_varargs.
2581 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
2582 (TARGET_STRUCT_VALUE_RTX): Likewise.
2583 (TARGET_RETURN_IN_MEMORY): Likewise.
2584 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2585 (m32r_return_in_memory): New.
2586 (m32r_setup_incoming_varargs): Make it static.
2587 * config/m32r/m32r.h: Remove #undef of
2588 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
2589 definitions of PROMOTE_FUNCTION_ARGS and
2590 PROMOTE_FUNCTION_RETURN.
2591 (PROMOTE_PROTOTYPES): Remove.
2592 (RETURN_IN_MEMORY): Likewise.
2593 (STRUCT_VALUE): Likewise.
2594
2595 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2596
2597 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
2598 (TARGET_STRUCT_VALUE_RTX): Likewise.
2599 (m68k_struct_value_rtx): Likewise.
2600 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
2601 STRUCT_VALUE_REGNUM.
2602 (PROMOTE_PROTOTYPES): Remove.
2603 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
2604 STRUCT_VALUE_REGNUM.
2605 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
2606 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
2607
2608 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2609
2610 * config/stormy16/stormy16.c
2611 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
2612 TARGET_BUILD_BUILTIN_VA_LIST.
2613
2614 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2615
2616 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
2617 (TARGET_STRUCT_VALUE_RTX): Likewise.
2618 (TARGET_RETURN_IN_MEMORY): Likewise.
2619 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2620 (v850_return_in_memory): Likewise.
2621 (v850_setup_incoming_varargs): Likewise.
2622 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
2623 (SETUP_INCOMING_VARARGS): Likewise.
2624 (RETURN_IN_MEMORY): Likewise.
2625 (STRUCT_VALUE): Likewise.
2626
2627 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2628
2629 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
2630 (fr30_setup_incoming_varargs): Don't use
2631 STRICT_ARGUMENT_NAMING.
2632 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
2633 (STRICT_ARGUMENT_NAMING): Likewise.
2634
2635 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2636
2637 * config/frv/frv-protos.h: Remove the prototype for
2638 frv_expand_builtin_saveregs.
2639 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
2640 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2641 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
2642 STRUCT_VALUE_REGNUM.
2643 (frv_expand_builtin_saveregs): Make it static.
2644 (frv_struct_value_rtx): New.
2645 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
2646
2647 2004-01-29 Jan Hubicka <jh@suse.cz>
2648
2649 PR c++/12850
2650 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
2651 initial pointers.
2652 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
2653 for functions that will be only inlined.
2654 (cgraph_mark_function_to_output): Likewise.
2655 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
2656 do not clear function body.
2657 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
2658 (tree_rest_of_compilation): Reorganize the logic releasing function
2659 body to use callgraph datastructure.
2660
2661 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2662
2663 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
2664 to register_operand.
2665
2666 2004-01-28 Zack Weinberg <zack@codesourcery.com>
2667
2668 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
2669 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
2670 match_operand expressions so that all match_dups appear
2671 lexically after their corresponding match_operands.
2672
2673 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2674
2675 * config/h8300/h8300.c (WORD_REG_USED): Use
2676 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
2677 (compute_saved_regs): Likewise.
2678 (h8300_expand_prologue): Likewise. Allocate locals after
2679 saving registers.
2680 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
2681 of FRAME_POINTER_REGNUM. Deallocate locals before saving
2682 registers.
2683 (h8300_initial_elimination_offset): Adjust for the new frame
2684 layout, which swaps flips the order of locals and saved
2685 registers.
2686 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
2687 (HARD_FRAME_POINTER_REGNUM): New.
2688 (ELIMINABLE_REGS): Add an elimination rule from
2689 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
2690 (REGISTER_NAMES): Add fp.
2691 * config/h8300/h8300.md (FP_REG): Change to 11.
2692 (HFP_REG): New.
2693
2694 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2695
2696 * genrecog.c (write_node): Remove a useless local variable.
2697
2698 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
2699
2700 * Makefile.in (options.c options.h): Use stamp file s-options to
2701 avoid unnecessary rebuilds.
2702 (options.o): New target listing dependencies.
2703 (gtyp-gen.h): Use stamp file s-gtyp-gen.
2704 (STAGESTUFF): Add s-gtyp-gen.
2705
2706 2004-01-28 Richard Henderson <rth@redhat.com>
2707
2708 * ggc.h (ggc_free): Declare.
2709 * ggc-common.c (ggc_realloc): Use it.
2710 * ggc-page.c: Remove lots of inline markers.
2711 (globals): Add free_object_list.
2712 (ggc_alloc): Tidy.
2713 (ggc_free, validate_free_objects): New.
2714 (poison_pages): Provide default.
2715 (ggc_collect): Call validate_free_objects; emit markers to
2716 the debug file.
2717
2718 2004-01-28 Zack Weinberg <zack@codesourcery.com>
2719 Jim Wilson <wilson@specifixinc.com>
2720
2721 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
2722 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
2723 scratch pointer.
2724 (ia64_secondary_reload_class): Delete case GR_REGS.
2725 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
2726 Do not allocate a scratch register.
2727 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
2728
2729 2004-01-28 Jan Hubicka <jh@suse.cz>
2730
2731 * gcse.c (bypass_block): Prevent edges to be unified when we are
2732 about to emit compenstation code.
2733
2734 2004-01-28 Nick Clifton <nickc@redhat.com>
2735
2736 * config/arm/arm.c (arm_expand_builtin): Force second argument of
2737 the setcwx insn into a register.
2738
2739 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
2740
2741 * config/fp-bit.c (pack_d): When using paired doubles to implement
2742 a long double, round the high part separately.
2743 (unpack_d): Fix the case in which the high part is a power of two
2744 and the low part is a nonzero value of the opposite sign.
2745
2746 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2747
2748 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
2749 (TARGET_STRUCT_VALUE_RTX): Likewise.
2750 (c4x_external_libcall): Likewise.
2751 (c4x_struct_value_rtx): Likewise.
2752 * config/c4x/c4x.h: Remove.
2753 (STRUCT_VALUE_REGNUM): Likewise.
2754 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2755
2756 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2757
2758 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
2759 (TARGET_STRUCT_VALUE_RTX): Likewise.
2760 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
2761 (STRUCT_VALUE): Likewise.
2762 (PROMOTE_PROTOTYPES): Likewise.
2763
2764 2004-01-27 Roger Sayle <roger@eyesopen.com>
2765
2766 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
2767 CONST_INT before using INTVAL.
2768
2769 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2770
2771 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
2772 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
2773 frame if !TARGET_BACKCHAIN.
2774 * config/s390/s390.md ("allocate_stack"): Use pattern only if
2775 TARGET_BACKCHAIN.
2776 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
2777
2778 2004-01-27 Zack Weinberg <zack@codesourcery.com>
2779
2780 * ia64.c (ia64_function_arg): When placing HFAs in integer
2781 registers, do not special case the mode used for complex
2782 types. Do not advance int_regs until the current register
2783 is full.
2784
2785 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
2786
2787 PR target/7297
2788 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
2789
2790 2004-01-27 David Edelsohn <edelsohn@gnu.org>
2791
2792 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
2793 slow, unaligned loads and stores while debugging. Fix formatting.
2794
2795 2004-01-27 David Edelsohn <edelsohn@gnu.org>
2796
2797 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
2798 of computing wmode.
2799 (restore_stack_nonlocal): Same.
2800
2801 2004-01-27 Devang Patel <dpatel@apple.com>
2802
2803 * Makefile.in (dwarf2out.o): Depend on input.h
2804 * dbxout.c (dbx_debug_hooks): Add new empty hook for
2805 imported_module_or_decl.
2806 (xcoff_debug_hooks): Same.
2807 * sdbout.c (sdb_debug_hooks): Same.
2808 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
2809 * debug.c (do_nothing_debug_hooks): Same.
2810 (debug_nothing_tree_tree): New function.
2811 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
2812 * dwarf2out.c: Include input.h.
2813 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
2814 (remove_child_TAG): New function.
2815 (dwarf_tag_name): Handle DW_TAG_imported_module.
2816 (gen_subprogram_die): Equate decl number to declaration die. Do not
2817 remove all children dies while reusing declaration die for definition.
2818 Instead, selectively remove only formal parameters.
2819 (gen_variable_die): Equate variable decl to declaration die.
2820 (gen_field_die): Equate field decl to line number.
2821 (force_namespace_die): Replace it with ...
2822 (force_decl_die): ... this.
2823 (force_type_die): New function.
2824 (setup_namespace_context): Replace use of force_namespace_die() with
2825 force_decl_die().
2826 (gen_namespace_die): Same.
2827 (dwarf2out_imported_module_or_decl): New function.
2828
2829 2004-01-27 Bob Wilson <bob.wilson@acm.org>
2830
2831 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
2832 on CQImode and CHImode incoming arguments in register a7.
2833 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
2834 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
2835 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
2836 xtensa_copy_incoming_a7 before reload.
2837
2838 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
2839
2840 * coverage.c (get_coverage_counts): Give a different message
2841 if flag_guess_branch_prob is set.
2842 * predict.c (counts_to_freqs): Return an int.
2843 (estimate_bb_frequencies): If counts_to_freqs returns zero,
2844 calculate estimates.
2845
2846 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
2847
2848 * config/iq2000/iq2000-protos.h: Remove the prototype for
2849 iq2000_setup_incoming_varargs.
2850 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2851 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2852 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2853 (TARGET_STRUCT_VALUE_RTX): Likewise.
2854 (TARGET_RETURN_IN_MEMORY): Likewise.
2855 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2856 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2857 (iq2000_return_in_memory): Likewise.
2858 (iq2000_setup_incoming_varargs): Make it static. Receive the
2859 first argument by reference.
2860 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
2861 (PROMOTE_FUNCTION_RETURN): Likewise.
2862 (PROMOTE_PROTOTYPES): Likewise.
2863 (RETURN_IN_MEMORY): Likewise.
2864 (STRUCT_VALUE): Likewise.
2865 (SETUP_INCOMING_VARARGS): Likewise.
2866 (STRICT_ARGUMENT_NAMING): Likewise.
2867
2868 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
2869
2870 * fixinc/fixinc.c (test_test): Initialize res.
2871 (start_flexer): Initialize pz_cmd_save.
2872
2873 2004-01-27 Zack Weinberg <zack@codesourcery.com>
2874
2875 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
2876 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
2877
2878 2004-01-27 Zack Weinberg <zack@codesourcery.com>
2879
2880 PR 7198
2881 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
2882 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
2883 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
2884 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
2885 Possibly rename pattern for consistency.
2886 Remove ??? comments suggesting that this be done.
2887 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
2888 New patterns.
2889 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
2890 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
2891 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
2892 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
2893 Update to match.
2894
2895 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
2896
2897 * config/arm/arm.c (output_return_instruction): Only restore IP
2898 into SP if frame_pointer_needed.
2899
2900 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2901
2902 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
2903 for SCmode and DCmode if ARCH32.
2904 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
2905 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
2906 if ARCH32.
2907 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
2908 if ARCH32.
2909 (BASE_OUTGOING_VALUE_REG): Likewise.
2910
2911 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2912
2913 PR target/10904
2914 PR target/13058
2915 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
2916 Forbid mode changes from SImode for lower FP regs if ARCH64.
2917
2918 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
2919
2920 * Makefile.in (bt-load.o): Depend on except.h.
2921 * bt-load.c (except.h): #include.
2922 (compute_defs_uses_and_gen): If insn at end of BB can throw
2923 within this function, consider registers used by it unavailable for
2924 btr migration.
2925 (move_btr_def): If insn at end of BB can throw, insert before rather
2926 than after.
2927
2928 * flags.h (flag_btr_bb_exclusive): Declare.
2929 * toplev.c (flag_btr_bb_exclusive): New variable.
2930 (f_options): Add btr-bb-exclusive.
2931 * bt-load.c (augment_live_range): Restore old behaviour if
2932 flag_btr_bb_exclusive is set.
2933 * common.opt: Add entry for -fbtr-bb-exclusive.
2934 * opts.c (common_handle_options): Same.
2935 * doc/invoke.texi: Document -fbtr-bb-exclusive.
2936
2937 * bt-load.c (btrs_live_at_end): New variable.
2938 (compute_defs_uses_and_gen): Compute its pointed-to array.
2939 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
2940 (augment_live_range): When augmenting with a new dominator,
2941 use only its btrs_live_at_end set, but also add in the full set
2942 of the old dominator.
2943 (btr_def_live_range): Use btrs_live_at_end.
2944 (move_btr_def): Set other_btr_uses_before_def, and move new set
2945 to the end of the basic block, if appropriate.
2946 (migrate_btr_defs): Allocate and free btrs_live_at_end.
2947
2948 * bt-load.c (basic_block_freq): Remove outdated comment.
2949
2950 2004-01-27 Alan Modra <amodra@bigpond.net.au>
2951
2952 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
2953 (PREDICATE_CODES): Remove duplicate.
2954 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
2955 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
2956 (MASK_PROFILE_KERNEL): Adjust define.
2957
2958 2004-01-27 Jakub Jelinek <jakub@redhat.com>
2959
2960 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
2961 of long string literals from 32 bytes to sizeof (void *) when !-Os
2962 and to 1 with -Os.
2963
2964 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2965
2966 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
2967 constant addresses in the normal mode.
2968
2969 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2970
2971 * system.h (CHAR_BITFIELD): Delete.
2972 (BOOL_BITFIELD): New.
2973 * c-decl.c (c_scope): Use BOOL_BITFIELD.
2974 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
2975
2976 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2977
2978 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2979 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2980 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2981 (TARGET_STRUCT_VALUE_RTX): Likewise.
2982 (TARGET_RETURN_IN_MEMORY): Likewise.
2983 (arc_return_in_memory): Likewise.
2984 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
2985 (PROMOTE_FUNCTION_RETURN): Likewise.
2986 (RETURN_IN_MEMORY): Likewise.
2987 (STRUCT_VALUE): Likewise.
2988
2989 2004-01-26 Richard Henderson <rth@redhat.com>
2990
2991 * c-parse.in (extension): Use itype.
2992 (SAVE_EXT_FLAGS): Don't allocate a tree.
2993 (RESTORE_EXT_FLAGS): Don't read a tree.
2994
2995 2004-01-26 Jan Hubicka <jh@suse.cz>
2996
2997 * cselib.c (discard_useless_values): Clear out value pointer pointing
2998 to datastructure to be recycled.
2999
3000 2004-01-25 Jan Hubicka <jh@suse.cz>
3001
3002 * genextract.c (main): Do not output the memset when not checking.
3003
3004 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3005
3006 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
3007 switch statement instead of a chain of if statements.
3008
3009 2004-01-26 Jeff Law <law@redhat.com>
3010
3011 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
3012 acute accents for Petur Runolfsson's entry.
3013
3014 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3015
3016 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
3017 (TARGET_RETURN_IN_MEMORY): Likewise.
3018 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
3019 (RETURN_IN_MEMORY): Likewise.
3020
3021 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
3022
3023 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
3024 unaligned load/store into smaller loads and stores.
3025
3026 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
3027
3028 * function.c (assign_parms): Do not assign
3029 long long argument to memory in prologue if
3030 is it loaded into register.
3031
3032 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
3033
3034 PR middle-end/13779
3035 * expr.c (emit_group_load): split constant
3036 correctly into register components of PARALLEL insn.
3037
3038 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
3039
3040 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
3041 Use adjust_address_nv directly with appropriate mode.
3042 (restore_stack_nonlocal): Ditto.
3043
3044 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3045
3046 * config/xtensa/xtensa-protos.h: Remove the prototype for
3047 xtensa_builtin_saveregs.
3048 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3049 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3050 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3051 (TARGET_STRUCT_VALUE_RTX): Likewise.
3052 (TARGET_RETURN_IN_MEMORY): Likewise.
3053 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3054 (xtensa_builtin_saveregs): Make it static.
3055 (xtensa_return_in_memory): New.
3056 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
3057 (PROMOTE_FUNCTION_RETURN): Likewise.
3058 (PROMOTE_PROTOTYPES): Likewise.
3059 (STRUCT_VALUE): Likewise.
3060 (RETURN_IN_MEMORY): Likewise.
3061 (EXPAND_BUILTIN_SAVEREGS): Likewise.
3062
3063 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3064
3065 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
3066 (arm_setup_incoming_varargs): Likewise.
3067 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
3068
3069 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3070
3071 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
3072 (cris_setup_incoming_varargs): Likewise.
3073 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
3074
3075 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3076
3077 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
3078 (ns32k_struct_value_rtx): Likewise.
3079 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
3080 NS32K_STRUCT_VALUE_REGNUM.
3081
3082 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3083
3084 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3085 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3086 (TARGET_STRUCT_VALUE_RTX): Likewise.
3087 (arm_struct_value_rtx): Likewise.
3088 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
3089 (STRUCT_VALUE): Likewise.
3090 (STRUCT_VALUE_REGNUM): Likewise.
3091 (PROMOTE_PROTOTYPES): Likewise.
3092
3093 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
3094
3095 * config/ia64/ia64-protos.h: Remove the prototype for
3096 ia64_setup_incoming_varargs and ia64_return_in_memory.
3097 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
3098 (TARGET_RETURN_IN_MEMORY): Likewise.
3099 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3100 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3101 (ia64_setup_incoming_varargs): Adjust the arguments to meet
3102 the requirement of TARGET_SETUP_INCOMING_VARARGS.
3103 (ia64_return_in_memory): Make it static. Change the return
3104 type to bool from int. Add an argument.
3105 (ia64_struct_value_rtx): New.
3106 * config/ia64/ia64.h: Remove commented-out definitions of
3107 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
3108 PROMOTE_PROTOTYPES.
3109 (RETURN_IN_MEMORY): Remove.
3110 (STRUCT_VALUE_REGNUM): Likewise.
3111 (STRICT_ARGUMENT_NAMING): Likewise.
3112
3113 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
3114
3115 PR target/13666
3116 * config/sparc/sparc.c (function_arg_union_value): New function.
3117 (function_arg): Use it to deal with unions.
3118 (function_value): Likewise. Define 'regbase' only for ARCH64.
3119 Replace a conditional statement by a simpler one.
3120
3121 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
3122
3123 * config/mips/mips.c (mips16_optimize_gp): Delete.
3124 (mips_reorg): Don't call it.
3125
3126 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3127
3128 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
3129 (floatunsqihf2): Remove operand 6.
3130 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
3131 fix patterns.
3132 (ldi_conditional, ldf_conditional): Validate operands.
3133
3134 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3135
3136 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
3137 (HAVE_GAS_HIDDEN): Undefine as interim measure.
3138
3139 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3140
3141 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
3142 memory references if TARGET_EXPOSE_LDP nonzero.
3143
3144 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3145
3146 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
3147
3148 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3149
3150 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
3151 invalid operand combinations.
3152
3153 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3154
3155 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
3156 c4x_legitimate_address_p. Fix post_modify check.
3157
3158 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
3159 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
3160
3161 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3162
3163 * config/pa/pa-protos.h: Remove the prototype for
3164 hppa_builtin_saveregs. Add a prototype for
3165 pa_return_in_memory.
3166 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
3167 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3168 (TARGET_STRUCT_VALUE_RTX): Likewise.
3169 (TARGET_RETURN_IN_MEMORY): Likewise.
3170 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3171 (pa_struct_value_rtx): Likewise.
3172 (pa_return_in_memory): Likewise.
3173 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
3174 PA_STRUCT_VALUE_REGNUM.
3175 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
3176 (EXPAND_BUILTIN_SAVEREGS): Remove.
3177 (PROMOTE_PROTOTYPES): Likewise.
3178 (PROMOTE_FUNCTION_RETURN): Likewise.
3179
3180 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3181
3182 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
3183 (TARGET_STRUCT_VALUE_RTX): Likewise.
3184 (vax_struct_value_rtx): Likewise.
3185 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
3186 VAX_STRUCT_VALUE_REGNUM.
3187 (PROMOTE_PROTOTYPES): Remove.
3188
3189 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3190
3191 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
3192
3193 2003-04-25 Chris Demetriou <cgd@broadcom.com>
3194
3195 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
3196 and MIPS64 have HI/LO interlocks. Update comment.
3197
3198 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3199
3200 * config/stormy16/stormy16-protos.h: Remove the prototype for
3201 xstormy16_setup_incoming_varargs.
3202 * config/stormy16/stormy16.c
3203 (xstormy16_setup_incoming_varargs): Remove.
3204 (xstormy16_return_in_memory): New.
3205 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
3206 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3207 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3208 (TARGET_STRUCT_VALUE_RTX): Likewise.
3209 (TARGET_RETURN_IN_MEMORY): Likewise.
3210 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
3211 (PROMOTE_FUNCTION_RETURN): Likewise
3212 (PROMOTE_PROTOTYPES): Likewise
3213 (RETURN_IN_MEMORY): Likewise
3214 (STRUCT_VALUE): Likewise
3215 (SETUP_INCOMING_VARARGS): Likewise
3216
3217 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
3218
3219 * config/mips/mips.c (mips_offset_within_object_p): New function.
3220 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
3221 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
3222 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
3223
3224 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3225
3226 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
3227 (PROMOTE_FUNCTION_RETURN): Likewise.
3228
3229 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3230
3231 * config/mn10300/mn10300-protos.h: Remove the prototype for
3232 mn10300_builtin_saveregs.
3233 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
3234 (TARGET_STRUCT_VALUE_RTX): Likewise.
3235 (TARGET_RETURN_IN_MEMORY): Likewise.
3236 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3237 (mn10300_return_in_memory): Likewise.
3238 (mn10300_builtin_saveregs): Make it static.
3239 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
3240 (RETURN_IN_MEMORY): Likewise.
3241 (STRUCT_VALUE): Likewise.
3242 (EXPAND_BUILTIN_SAVEREGS): Likewise.
3243
3244 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
3245
3246 PR bootstrap/13853
3247 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
3248
3249 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3250
3251 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
3252 using ccr.
3253
3254 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3255
3256 * config/i860/i860-protos.h: Remove the prototype for
3257 i860_saveregs.
3258 * config/i860/i860.c (i860_saveregs): Make it static.
3259 (i860_struct_value_rtx): New.
3260 (TARGET_STRUCT_VALUE_RTX): Likewise.
3261 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3262 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
3263 I860_STRUCT_VALUE_REGNUM.
3264 (EXPAND_BUILTIN_SAVEREGS): Remove.
3265
3266 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3267
3268 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
3269 (TARGET_RETURN_IN_MEMORY): Likewise.
3270 (m68hc11_struct_value_rtx): Likewise.
3271 (m68hc11_return_in_memory): Likewise.
3272 * config/m68hc11/m68hc11.h: Remove a commented-out definition
3273 of PROMOTE_PROTOTYPES.
3274 (RETURN_IN_MEMORY): Remove.
3275 (STRUCT_VALUE_REGNUM): Likewise.
3276
3277 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3278
3279 * config/mmix/mmix-protos.h: Remove the prototype for
3280 mmix_setup_incoming_varargs.
3281 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3282 (TARGET_STRUCT_VALUE_RTX): Likewise.
3283 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3284 (mmix_setup_incoming_varargs): Make it static.
3285 (mmix_struct_value_rtx): New.
3286 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
3287 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
3288 (STRUCT_VALUE_REGNUM): Remove.
3289 (SETUP_INCOMING_VARARGS): Likewise.
3290
3291 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3292
3293 * config/mips/mips-protos.h: Remove the prototypes for
3294 mips_setup_incoming_varargs and mips_return_in_memory.
3295 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3296 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3297 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3298 (TARGET_STRUCT_VALUE_RTX): Likewise.
3299 (TARGET_RETURN_IN_MEMORY): Likewise.
3300 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3301 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3302 (mips_setup_incoming_varargs): Match the prototype for
3303 TARGET_SETUP_INCOMING_VARARGS.
3304 (mips_return_in_memory): Make it static. Add argument fntype.
3305 (mips_strict_argument_naming): New.
3306 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
3307 (PROMOTE_FUNCTION_ARGS): Likewise.
3308 (PROMOTE_FUNCTION_RETURN): Likewise.
3309 (STRUCT_VALUE): Likewise.
3310 (RETURN_IN_MEMORY): Likewise.
3311 (SETUP_INCOMING_VARARGS): Likewise.
3312 (STRICT_ARGUMENT_NAMING): Likewise.
3313
3314 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3315
3316 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
3317 (TARGET_RETURN_IN_MEMORY): Likewise.
3318 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3319 (ip2k_return_in_memory): Likewise.
3320 (ip2k_setup_incoming_varargs): Likewise.
3321 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
3322 (STRUCT_VALUE): Likewise.
3323 (STRUCT_VALUE_INCOMING): Likewise.
3324 (SETUP_INCOMING_VARARGS): Likewise.
3325
3326 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3327
3328 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
3329 (TARGET_RETURN_IN_MEMORY): Likewise.
3330 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3331 (avr_return_in_memory): Remove.
3332 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
3333 (STRUCT_VALUE): Likewise.
3334 (STRUCT_VALUE_INCOMING): Likewise.
3335 (STRICT_ARGUMENT_NAMING): Likewise.
3336
3337 2004-01-25 Jan Hubicka <jh@suse.cz>
3338
3339 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
3340
3341 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
3342
3343 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
3344 (mips_regno_mode_ok_for_base_p): Declare.
3345 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
3346 (FRAME_POINTER_REGNUM): Renumber to 78.
3347 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
3348 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
3349 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
3350 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
3351 (REG_MODE_OK_FOR_BASE_P): Likewise.
3352 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
3353 entry for 77 to "$arg" and entry for 78 to "$frame".
3354 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
3355 (mips_reg_mode_ok_for_base_p): Remove.
3356 (mips_regno_mode_ok_for_base_p): New function, derived from old
3357 BASE_REG_P macro. Don't enforce the mips16 stack pointer
3358 restrictions unless we're being strict.
3359 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
3360
3361 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3362
3363 * c-common.h: Fix comment typos.
3364 * c-decl.c: Likewise.
3365 * cgraphunit.c: Likewise.
3366 * combine.c: Likewise.
3367 * et-forest.c: Likewise.
3368 * flow.c: Likewise.
3369 * function.c: Likewise.
3370 * ifcvt.c: Likewise.
3371 * integrate.c: Likewise.
3372 * jump.c: Likewise.
3373 * postreload.c: Likewise.
3374 * varray.c: Likewise.
3375
3376 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3377
3378 * doc/frontends.texi: Update copyright.
3379 * doc/gcov.texi: Likewise.
3380 * doc/gty.texi: Likewise.
3381 * doc/sourcebuild.texi: Likewise.
3382 * doc/standards.texi: Likewise.
3383
3384 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
3385
3386 PR target/12978
3387 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
3388 Remove movstrqi_small because it conflicts with movstrqi_large.
3389
3390 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3391
3392 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3393 (TARGET_STRUCT_VALUE_RTX): Likewise.
3394 (cris_struct_value_rtx): Likewise.
3395 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
3396 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
3397 STRUCT_VALUE_REGNUM.
3398 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
3399
3400 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
3401
3402 PR bootstrap/13848
3403 * cse.c (cse_cc_succs): Change the mode of the source expression
3404 as soon as decide we need a new mode. Don't permit changing modes
3405 if we found a match in a successor block.
3406 (cse_condition_code_reg): Save original mode of source expression
3407 so that we know whether we have to change the mode in other
3408 insns.
3409
3410 2004-01-24 Jan Hubicka <jh@suse.cz>
3411
3412 * emit-rtl.c (change_address, adjust_address_1, offset_address,
3413 widen_memory_access): Return early when there is nothing to change.
3414
3415 2004-01-24 Jakub Jelinek <jakub@redhat.com>
3416
3417 * simplify-rtx.c (simplify_relational_operation): Don't
3418 simplify address == constant into address + -constant == 0.
3419
3420 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3421
3422 * gcc.c (process_command): Don't internationalize the
3423 Copyright message.
3424 * mips-tfile.c (main): Likewise.
3425
3426 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
3427
3428 * cse.c: (cse_cc_succs) Fix comparison warning.
3429
3430 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3431
3432 * config/h8300/h8300.md: Remove extraneous USE in expanders.
3433
3434 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3435
3436 * config/h8300/h8300-protos.h: Provide prototypes for
3437 h8300_legitimate_constant_p and h8300_legitimate_address_p.
3438 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
3439 (h8300_rtx_ok_for_base_p): Likewise.
3440 (h8300_legitimate_address_p): Likewise.
3441 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
3442 h8300_legitimate_constant_p.
3443 (RTX_OK_FOR_BASE_P): Remove.
3444 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
3445
3446 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3447
3448 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
3449 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
3450 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
3451 (REG_OK_FOR_BASE_STRICT_P): Likewise.
3452 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
3453 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
3454 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
3455 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
3456
3457 2004-01-24 Jan Hubicka <jh@suse.cz>
3458
3459 * cselib.c (remove_useless_values): Do not access discarded values.
3460
3461 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
3462
3463 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
3464 arrays.
3465
3466 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
3467
3468 * recog.c: Fix a typo in copyright.
3469
3470 2004-01-23 Andrew Pinski <apinski@apple.com>
3471
3472 * config/rs6000/rs6000.md (call): Fix misappiled patch.
3473 (call_value): Likewise.
3474
3475 2004-01-23 Richard Henderson <rth@redhat.com>
3476
3477 PR opt/12941
3478 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
3479 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
3480 if SHIFT_COUNT_TRUNCATED is set.
3481
3482 2004-01-23 Bob Wilson <bob.wilson@acm.org>
3483
3484 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
3485 separate real and imaginary parts.
3486 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
3487
3488 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
3489
3490 PR target/13674
3491 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
3492 loading into GPR.
3493
3494 2004-01-23 Jan Hubicka <jh@suse.cz>
3495
3496 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
3497 change.
3498
3499 * alloc-pool.c (align_four): Kill.
3500 (create_alloc_pool): Align size to eight.
3501 (free_alloc_pool, free_pool): Invalidate deallocated data.
3502
3503 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
3504
3505 PR gcc/1532
3506 * cse.c (cse_change_cc_mode): New static function.
3507 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
3508 (cse_condition_code_reg): New function.
3509 * rtl.h (cse_condition_code_reg): Declare.
3510 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
3511 * target.h (struct gcc_target): Add fixed_condition_code_regs and
3512 cc_modes_compatible.
3513 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3514 (TARGET_CC_MODES_COMPATIBLE): Define.
3515 (TARGET_INITIALIZER): Add new initializers.
3516 * targhooks.c (default_cc_modes_compatible): New function.
3517 * targhooks.c (default_cc_modes_compatible): Declare.
3518 * hooks.c (hook_bool_intp_intp_false): New function.
3519 * hooks.h (hook_bool_intp_intp_false): Declare.
3520 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3521 (TARGET_CC_MODES_COMPATIBLE): Define.
3522 (ix86_fixed_condition_code_regs): New static function.
3523 (ix86_cc_modes_compatible): Likewise.
3524 * doc/tm.texi (Condition Code): Document new hooks.
3525
3526 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3527
3528 * fixinc/inclhack.def (bad_lval): Renamed to ...
3529 (alpha_bad_lval): ... this.
3530 Removed file list.
3531 Restrict to alpha*-dec-osf*.
3532 * fixinc/fixincl.x: Regenerate.
3533 * fixinc/tests/base/dirent.h: Remove, moving test ...
3534 * fixinc/tests/base/testing.h: ... here, reflecting new name.
3535
3536 2004-01-23 Zack Weinberg <zack@codesourcery.com>
3537
3538 PR c/13814
3539 * c-decl.c (diagnose_mismatched_decls): Also discard a
3540 built-in if we encounter an old-style definition with the
3541 same name.
3542
3543 2004-01-23 Jakub Jelinek <jakub@redhat.com>
3544
3545 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
3546 set to default{32,64}.
3547
3548 2004-01-21 Jakub Jelinek <jakub@redhat.com>
3549
3550 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
3551 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
3552
3553 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
3554 Olivier Hainque <hainque@act-europe.fr>
3555
3556 * fold-const.c (fold_binary_op_with_conditional_arg): Only
3557 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
3558
3559 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
3560
3561 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
3562 size for minipool references.
3563
3564 2004-01-23 Roger Sayle <roger@eyesopen.com>
3565
3566 * real.c (real_floor, real_ceil): Tweak to allow input and output
3567 arguments to overlap.
3568 (real_round): New function to implement round(3m) semantics.
3569 * real.h (real_round): Prototype here.
3570 * builtins.c (fold_builtin_round): New function to constant fold
3571 round, roundf and roundl.
3572 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
3573
3574 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
3575
3576 PR optimization/13819
3577 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
3578 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
3579 (sh_handle_sp_switch_attribute): Remove warning.
3580
3581 2003-11-30 Jan Hubicka <jh@suse.cz>
3582
3583 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
3584
3585 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
3586
3587 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
3588 may or may not return non-NIL.
3589 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
3590 check CANNOT_CHANGE_MODE_CLASS
3591
3592 2004-01-23 Jan Hubicka <jh@suse.cz>
3593
3594 * basic-block.h (PROP_POSTRELOAD): New macro.
3595 (CLEANUP_LOG_LINKS): New.
3596 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
3597 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
3598
3599 * cselib.c (value_pool): New.
3600 (new_cselib_val): Use pool.
3601 (cselib_init): Initialize value_pool
3602 (cselib_finish): Free pool.
3603
3604 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3605
3606 * config/sparc/sparc.c (scan_record_type): New function.
3607 (function_arg_slotno): Use it to determine which kinds of
3608 registers the record can be passed in.
3609
3610 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
3611
3612 * config/pa/fptr.c: Fix old-style definition.
3613
3614 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
3615
3616 PR optimization/13724
3617 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
3618 represents the zero bits produced by a ZERO_EXTEND operation.
3619
3620 2004-01-22 Roger Sayle <roger@eyesopen.com>
3621
3622 PR optimization/13821
3623 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
3624 correctly calculate the lowpart offset of the contracted subreg.
3625
3626 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
3627
3628 * doc/invoke.texi (Optimize Options): Note that --param arguments
3629 are subject to change without notice.
3630
3631 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3632
3633 * config.gcc (mips-sgi-irix6*o32): Removed.
3634 * config/mips/iris6-o32-as.h: Likewise.
3635 * config/mips/iris6-o32-gas.h: Likewise.
3636 * config/mips/iris6-o32.h: Likewise.
3637
3638 2004-01-22 Jan Hubicka <jh@suse.cz>
3639
3640 * cfgcleanup.c (first_pass): New static variable.
3641 (try_forward_edges): Add work limiting check for threading.
3642 (try_crossjump_bb): Add work limiting check for crossjumping.
3643 (try_optimize_cfg): Maintain first pass variable.
3644
3645 2004-01-22 Bob Wilson <bob.wilson@acm.org>
3646
3647 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
3648 handles complex and vector modes.
3649
3650 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
3651
3652 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
3653 (REG_OK_FOR_BASE_P_STRICT): Likewise.
3654 (STRICT): Likewise.
3655
3656 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
3657
3658 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
3659 (genrtl_for_stmt): Remove emit_nop calls.
3660
3661 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3662
3663 PR target/13713
3664 PR target/13324
3665 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
3666 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
3667 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
3668
3669 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
3670
3671 * config/arm/arm.c: Include "debug.h".
3672 (thumb_pushpop): Take two new arguments. Add some commentary.
3673 Output frame information when pushing.
3674 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
3675 thumb_pushpop.
3676 (thumb_output_function_prologue): Likewise. Accumulate a CFA
3677 offset, and pass it to thumb_pushpop. Output CFI information.
3678 (thumb_expand_prologue): Add some frame-related markers and notes.
3679
3680 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
3681
3682 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
3683 for TARGET_64BIT.
3684 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
3685 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
3686
3687 2004-01-22 Roger Sayle <roger@eyesopen.com>
3688 Paolo Bonzini <bonzini@gnu.org>
3689
3690 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
3691 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
3692 * rtl.h (subreg_lsb_1): Prototype here.
3693 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
3694 sign extensions.
3695
3696 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
3697
3698 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
3699 macro need not be defined if jump-tables should contain
3700 relative addresses only when -fPIC or -fPIC is in effect.
3701
3702 2004-01-22 Jan Hubicka <jh@suse.cz>
3703
3704 * alias.c (reg_base_value): Turn into varray.
3705 (reg_base_value_size): Kill.
3706 (old_reg_base_value): New deletable varray.
3707 (alias_invariant_size): New variable.
3708 (REG_BASE_VALUE): Update to use varray.
3709 (find_base_value): Likewise.
3710 (record_set): Likewise.
3711 (record_base_value): Likewise.
3712 (memrefs_conflict_p): Likewise.
3713 (record_set): Likewise
3714 (record_base_value): Likewise.
3715 (memrefs_conflict_p): Use alias_invariant_size.
3716 (init_alias_analysis): Use varray; set alias_invariant_size;
3717 rescale other arrays to be sized by maxreg.
3718 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
3719
3720 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3721
3722 * config/sparc/sparc.c (function_arg_slotno): Use
3723 FLOAT_TYPE_P to detect FP fields in structures.
3724 (function_arg_record_value_1): Likewise.
3725 (function_arg_record_value_2): Likewise.
3726
3727 2004-01-22 Jan Hubicka <jh@suse.cz>
3728
3729 * function.c (allocate_struct_function): Do not initialize expr, emit
3730 and varasm.
3731 (prepare_function_start): Do it here.
3732 * c-parse.in (maybe_type_qual): Do not produce line number notes.
3733
3734 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3735
3736 PR target/13559
3737 * config/sparc/sparc.c (function_arg_record_value_3): Revert
3738 to 'word_mode' once the first slot has been filled.
3739
3740 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
3741
3742 * config/sparc/sparc.c (function_arg_record_value_1): Fix
3743 computation of the number of integer registers required.
3744
3745 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3746
3747 * config/i386/i386.md: Simplify certain comparisons of
3748 const_int.
3749
3750 2004-01-21 Andrew Pinski <apinski@apple.com>
3751
3752 PR target/13785
3753 * config/rs6000/rs6000.md (call_value): Force operand
3754 1 not operand 0 into a register.
3755
3756 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3757
3758 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
3759 unwind-dw2-fde.h: Update copyright.
3760
3761 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3762
3763 * pa-protos.h: Update copyright.
3764 * pa.h: Likewise.
3765 * pa.md: Likewise.
3766
3767 2004-01-21 Caroline Tice <ctice@apple.com>
3768
3769 PR target/12308
3770 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
3771 flags register.
3772 (fix_truncdfdi2): Likewise.
3773 (fix_truncsfdi2): Likewise.
3774 (*fix_truncdi_1): Likewise.
3775 (fix_truncxfsi2): Likewise.
3776 (fix_truncdfsi2): Likewise.
3777 (fix_truncsfsi2): Likewise.
3778 (*fix_truncsi_1): Likewise.
3779 (fix_truncxfhi2): Likewise.
3780 (fix_truncdfhi2): Likewise.
3781 (fix_truncsfhi2): Likewise.
3782 (*fix_trunchi_1): Likewise.
3783
3784 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3785
3786 * alias.c, basic-block.h, c-common.c, c-common.h,
3787 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
3788 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
3789 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
3790 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
3791 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
3792 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
3793 genautomata.c, genconditions.c, genemit.c, genflags.c,
3794 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
3795 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
3796 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
3797 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
3798 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
3799 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
3800 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
3801 unwind.h, varray.c, varray.h: Update copyright.
3802
3803 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3804
3805 * config/h8300/coff.h: Update copyright.
3806 * config/h8300/elf.h: Likewise.
3807 * config/h8300/h8300-protos.h: Likewise.
3808 * config/h8300/h8300.c: Likewise.
3809 * config/h8300/h8300.h: Likewise.
3810 * config/h8300/h8300.md: Likewise.
3811
3812 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3813
3814 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
3815 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
3816 ultrix_unistd): New hacks.
3817 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
3818 ULTRIX_CONST2_CHECK): Add checks.
3819 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
3820 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
3821 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
3822 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
3823 * fixinc/tests/base/locale.h: New file.
3824 * fixinc/fixincl.x: Rebuilt.
3825
3826 2004-01-21 Andreas Jaeger <aj@suse.de>
3827 Michael Matz <matz@suse.de>
3828
3829 * doc/extend.texi (Extended Asm): Clarify memory clobber.
3830
3831 2004-01-21 Jakub Jelinek <jakub@redhat.com>
3832
3833 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
3834 _Jv_RegisterClasses through a function pointer.
3835
3836 2004-01-21 Falk Hueffner <falk@debian.org>
3837
3838 PR target/12898
3839 * config/alpha/alpha.c (alpha_emit_set_const_1): If
3840 no_new_pseudos, use gen_rtx_SET directly for SImode constants
3841 which need multiple instructions to emit.
3842
3843 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
3844
3845 * config/m32r/m32r.h (CPP_SPEC): Define.
3846
3847 2004-01-21 Zack Weinberg <zack@codesourcery.com>
3848
3849 * c-decl.c (merge_decls): Kill different_binding_level and
3850 different_tu arguments; simplify throughout.
3851 (duplicate_decls): Likewise.
3852 (pushdecl, merge_translation_unit_decls): Update calls to
3853 duplicate_decls.
3854
3855 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3856
3857 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
3858 $(SYSTEM_H).
3859 (print-rtl1.o): Depend on $(SYSTEM_H).
3860
3861 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
3862
3863 PR bootstrap/12730
3864 * configure.ac: Delete definition and subsitution of docdir.
3865 Add info, man, srcman and srcinfo to target hooks. Create doc/
3866 directory.
3867 * configure: Regenerate.
3868 * Makefile.in: Don't substitute docdir and delete all references
3869 throughout.
3870 (MAKEINFOFLAGS): Define.
3871 (stmp-docobjdir): Delete.
3872 (INFOFILES, MANFILES): Define.
3873 (info): Call lang.info, srcinfo and lang.srcinfo.
3874 (generated-manpages): Call lang.man, srcman and lang.srcman.
3875 (srcinfo, srcman): New rules to copy back files to source directory.
3876 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
3877 (install-man): Revamp rule.
3878 (clean): Update dvi directory.
3879 (distclean): Delete TAGS from front end directorys.
3880 (maintainer-clean): Delete all document files in source directory.
3881
3882 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
3883 (objc.srcman, objc.srcinfo): Likewise.
3884
3885 2004-01-20 Bruce Korb <bkorb@gnu.org>
3886
3887 * fixinc/inclhack.def(math_exception): bypass only for glibc.
3888 (matherr_decl): rename & relocate as exception_structure.
3889 This fix must precede the math_exception fix.
3890
3891 2004-01-20 Roger Sayle <roger@eyesopen.com>
3892
3893 * fold-const.c (fold_convert): Rename to fold_convert_const.
3894 (fold_convert_const): Change arguments to take a tree_code,
3895 a type and the operand/expression to be converted. Return
3896 NULL_TREE if no simplification is possible. Add support for
3897 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
3898 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
3899 Adjust call to fold_convert to match new fold_convert_const.
3900 Avoid modifying the tree passed to fold in-place.
3901
3902 2004-01-21 Alan Modra <amodra@bigpond.net.au>
3903
3904 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
3905 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
3906 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
3907
3908 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3909
3910 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
3911 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
3912 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
3913 (emit_move_sequence): Check scratch_reg first in various if statements.
3914 Extend source simplification to handle all 64-bit CONST_INTs.
3915 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
3916 frame size.
3917 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
3918 frame offset calculations.
3919 * pa.h (NEW_HP_ASSEMBLER): Add comment.
3920 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
3921 LEGITIMATE_64BIT_CONST_INT_P): Define.
3922 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
3923 any CONST_INT as legitimate during and after reload.
3924 (VAL_32_BITS_P, INT_32_BITS): Define.
3925 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
3926
3927 2004-01-20 Jan Hubicka <jh@suse.cz>
3928
3929 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
3930 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
3931 containing hard regs are shared.
3932 (gen_hard_reg_clobber): New function.
3933 (hard_reg_clobbers): New array.
3934 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
3935 (copy_rtx): Do not copy clobbers containing hard regs.
3936 * rtl.h (gen_hard_reg_clobber): Declare.
3937
3938 2004-01-20 Jan Hubicka <jh@suse.cz>
3939
3940 * varray.c: Include hashtab.h
3941 (varray_descriptor): New structure.
3942 (hash_descriptor, eq_descriptor, varray_descriptor,
3943 print_statistics): New static functions
3944 (varray_init, varray_grow): Update statistics
3945 (dump_varray_statistics): New function.
3946 * varray.h (dump_varray_statistics): Declare.
3947 * toplev.c (finalize): Call it.
3948 * Makefile.in (varray.o): Add dependency.
3949
3950 2004-01-20 Jan Hubicka <jh@suse.cz>
3951
3952 * cselib.c: Include alloc-pool.h
3953 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
3954 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
3955 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
3956 unchain_one_elt_loc_list_pool, unchain_one_value,
3957 new_cselib_val): Simplify using allocpool.
3958 (cselib_init): Initialize allocpools.
3959 (cselib_finish): Finish allocpools.
3960 * Makefile.in (cselib.o): Depend on alloc-pool.h
3961
3962 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
3963
3964 * config/mips/mips.c (mips_load_call_address): Make the call insn
3965 use $gp if it could be calling a lazy binding stub.
3966
3967 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
3968
3969 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
3970 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3971 (TARGET_STRUCT_VALUE_RTX): Likewise.
3972 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
3973 (PROMOTE_FUNCTION_RETURN): Remove.
3974 (STRUCT_VALUE): Remove.
3975
3976 2004-01-20 Denis Chertykov <denisc@overta.ru>
3977
3978 PR bootstrap/13735
3979 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
3980 register as pointer after reload.
3981
3982 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3983
3984 PR optimization/12440
3985 * loop.c: Include ggc.h.
3986 (loop_optimize): Run garbage collector between optimization of loops.
3987 * Makefile.in (loop.o): Add GGC_H dependency.
3988
3989 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
3990
3991 * gcc/config/rs6000/rs6000.c (function_arg) Handle
3992 vector register special in function without prototype.
3993 (function_arg_advance): Vector parameters get always
3994 GPRs allocated for the linux64 target.
3995
3996 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3997
3998 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
3999 not TARGET_M32RX_MASK.
4000
4001 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
4002
4003 PR target/13557
4004 * config/sparc/sparc.c (function_arg): Reorder the cases.
4005
4006 2004-01-19 Per Bothner <per@bothner.com>
4007
4008 Move cpp_reader's line_maps field to a shared global.
4009 * cpphash.h (cpp_reader): Rename line_maps field to line_table
4010 and change the type to a pointer rather than a struct.
4011 * cppinit.c (cpp_push_main_field): Adjust accordingly.
4012 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
4013 Likewise.
4014 * cppfiles.c (validate_pch): Likewise.
4015 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
4016 Likewise.
4017 * cpperror.c (print_location): Likewise.
4018 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
4019 * cppinit.c (cpp_create_reader): Handle new parameter.
4020 (cpp_destroy): Don't free line_maps - that's no longer our job.
4021 * input.h (line_table): New variable.
4022 * toplev.c (line_table): Declare variable.
4023 (general_init): Initialize line_table.
4024 * c-opts.c (c_common_init_options): Pass line_table to
4025 cpp_create_reader.
4026 * fix-header.c (read_scan_file): New local variable line_table.
4027 Initialize, and pass it to cpp_create_reader.
4028 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
4029 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
4030
4031 2004-01-19 Per Bothner <per@bothner.com>
4032
4033 Implement a cache for linemap_lookup.
4034 * line-map.h (struct_line_maps): Add cache field.
4035 * line-map.c (linemap_init): Zero cache field.
4036 (linemap_add): Set cache field to offset of newly allocated map.
4037 (linemap_lookup): Use and set cache field.
4038
4039 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
4040
4041 PR optimization/13567
4042 * cse.c (cse_basic_block): Call cse_insn with a non-null
4043 libcall_insn for the last SET insn of a no-confilict block.
4044
4045 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
4046
4047 * Makefile.in (target_noncanonical, program_transform_name): Use
4048 immediate define instead of deferred.
4049 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
4050 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
4051 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
4052 deferred backquote.
4053
4054 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
4055
4056 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
4057 true unconditionally.
4058 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
4059 Remove.
4060 (build_unary_op, build_modify_expr): Don't handle extended
4061 lvalues.
4062 (build_component_ref, build_conditional_expr): Call non_lvalue
4063 instead of pedantic_non_lvalue.
4064 (build_c_cast): Don't condition use of non_lvalue on pedantic.
4065 * fold-const.c (fold): Don't check pedantic directly for
4066 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
4067 passed to pedantic_non_lvalue.
4068 * doc/extend.texi: Remove documentation of extended lvalues.
4069
4070 2004-01-19 Roger Sayle <roger@eyesopen.com>
4071
4072 PR optimization/5263
4073 * simplify-rtx.c (associative_constant_p): Delete.
4074 (simplify_associative_operation): Rewrite to linearize terms, and
4075 attempt to simplify new term against both left and right subterms.
4076 (simplify_binary_operation): Call swap_commutative_operands_p on
4077 op0 and op1, not trueop0 and trueop1. Move the initialization of
4078 trueop0 and trueop1 down to where first needed.
4079 (simplify_relational_operation): Likewise.
4080 * rtlanal.c (commutative_operand_precedence): Also order constant
4081 operands using avoid_constant_pool_reference.
4082
4083 2004-01-19 Richard Henderson <rth@redhat.com>
4084
4085 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
4086 don't check memory mode.
4087 (unaligned_memory_operand): Likewise.
4088 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
4089 abort for op0 not MEM.
4090
4091 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
4092 is not a reg, copy to a scratch first.
4093 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
4094 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
4095 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
4096 (reload_inqi, reload_inhi): Fix mode of op0.
4097 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
4098 reload_outhi_help): Likewise. Use define_insn_and_split.
4099
4100 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
4101 as well as $29 dead.
4102
4103 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4104
4105 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
4106 "tls_object" for thread-local objects.
4107 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
4108 "#tls" for thread-local sections.
4109 * configure.ac (thread-local checks): Specify --fatal-warnings in
4110 every binutils-specific checks. For sparc*-*-*, test whether the
4111 OS is Solaris and the tools are native and act accordingly.
4112 * configure: Rebuild.
4113
4114 2004-01-19 Jeff Law <law@redhat.com>
4115
4116 * contrib.texi: Update Paolo Carlini's entry. New entries for
4117 Jerry Quinn and Petur Runolfsson.
4118
4119 2004-01-19 Roger Sayle <roger@eyesopen.com>
4120
4121 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
4122 size, don't use the larger zero-extending loads.
4123
4124 2004-01-19 Richard Henderson <rth@redhat.com>
4125
4126 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
4127 * alpha.md (UNSPEC_NT_LDA): Remove.
4128 (UNSPEC_CVTLQ, cvtlq): New.
4129 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
4130 (extendsidi2_fix): Remove.
4131 (extendsidi2 splitter): Use cvtlq.
4132 (extendsidi2 fp peepholes): Remove.
4133 (cvtql): Use SFmode instead of SImode.
4134 (fix_trunc?fsi): Update to match.
4135 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
4136 (movsi): Rename from movsi_nofix, remove f alternatives.
4137 (movsi_nt_vms): Similarly.
4138 (movsi_fix, movsi_nt_vms_fix): Remove.
4139 (nt_lda): Remove.
4140 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
4141
4142 2004-01-19 Jan Hubicka <jh@suse.cz>
4143
4144 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
4145 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
4146 list.
4147 (cgraph_remove_unreachable_nodes): New function
4148 (cgraph_decide_inlining_of_small_function): Fix pasto.
4149 (cgraph_decide_inlining_incrementally): Fix pasto.
4150 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
4151
4152 2004-01-19 Steven Bosscher <stevenb@suse.de>
4153
4154 * gengtype.c (header_file): Make it static.
4155 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
4156 * gengtype.h (header_file): No longer extern.
4157
4158 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4159
4160 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
4161 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
4162 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
4163
4164 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4165
4166 * stmt.c (HAVE_casesi): Define it not already defined.
4167 (HAVE_tablejump): Likewise.
4168 (expand_end_case_type): Resort to the binary tree method if
4169 neither casesi or tablejump is available.
4170
4171 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
4172
4173 * final.c (final_scan_insn): Make non-static again.
4174 * output.h (final_scan_insn): Re-add prototype.
4175 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
4176 to final_scan_insn call.
4177 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
4178 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
4179 * config/pa/pa.c (output_lbranch, output_call): Likewise.
4180 * config/sh/sh.c (print_slot): Likewise.
4181 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
4182 (output_sibcall, sparc_flat_function_epilogue): Likewise.
4183
4184 2004-01-18 Jan Hubicka <jh@suse.cz>
4185
4186 * basic-block.h (try_redirect_by_replacing_jump): Declare.
4187 * cfgcleanup.c (try_optimize_cfg): Use it.
4188 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
4189 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
4190 Kill hack.
4191 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
4192
4193 Revert:
4194 2004-01-16 Geoffrey Keating <geoffk@apple.com>
4195
4196 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
4197 even after reload, just don't remove the actual jump tables.
4198
4199 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4200
4201 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
4202
4203 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4204
4205 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
4206 the size of a pointer in bytes.
4207
4208 2004-01-18 Roger Sayle <roger@eyesopen.com>
4209
4210 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
4211 live "next" variable, which could lead to an infinite loop.
4212
4213 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
4214
4215 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
4216 block.
4217
4218 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4219 Check for NULL in the chain and remove repeated code.
4220
4221 2004-01-18 Jan Hubicka <jh@suse.cz>
4222
4223 * coverage.c (checksum_string): Rename to ...
4224 (coverage_checksum_string): ... this one, Use crc32_string; recognize
4225 names containing random number and zero the number out in order to get
4226 match.
4227
4228 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
4229
4230 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
4231
4232 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
4233
4234 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
4235 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
4236 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
4237 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
4238 doc/trouble.texi: Remove trailing whitespace.
4239
4240 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
4241
4242 PR target/7618
4243 * config/mips/mips.c: Include cfglayout.h.
4244 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
4245 (mips_unspec_offset_high): Add temporary register argument.
4246 (mips_load_call_address): New function, split out from...
4247 (mips_expand_call): ...here.
4248 (mips_output_cplocal): New function.
4249 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
4250 (mips_emit_loadgp): New function, split out from...
4251 (mips_expand_prologue): ...here.
4252 (mips_output_mi_thunk): New function.
4253
4254 2004-01-17 Bernardo Innocenti <bernie@develer.com>
4255
4256 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
4257 mcpu32): Remove redundant checks for implied target predefines.
4258
4259 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
4260
4261 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4262 Return type is unsigned int not int.
4263 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
4264 Likewise.
4265
4266 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
4267
4268 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
4269 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
4270 "GNU/Linux" and "Microsoft Windows" terminology.
4271
4272 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
4273
4274 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
4275 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
4276 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
4277 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
4278 @smallexample instead of @example.
4279
4280 2004-01-17 Ziemowit Laski <zlaski@apple.com>
4281
4282 * objc/objc-act.c (build_objc_method_call): Use target
4283 hooks instead of macros to determine if ..._stret
4284 dispatchers should be used (NeXT runtime only).
4285
4286 2004-01-17 Roger Sayle <roger@eyesopen.com>
4287
4288 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
4289 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
4290
4291 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
4292
4293 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
4294 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
4295 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
4296 macros.
4297 * reload1.c (emit_reload_insns): Use them.
4298 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
4299 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
4300 for NULL PATTERN.
4301
4302 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
4303
4304 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
4305 (final_scan_insn): Update to take an additional SEEN argument. Emit
4306 a line note after the prologue. Make static.
4307 (line_note_exists): Remove.
4308 (final): Don't initialize line_note_exists. Update call to
4309 final_scan_insn.
4310 * output.h (final_scan_insn): Remove prologue.
4311 * function.c (set_insn_locators): Update comment.
4312 (thread_prologue_and_epilogue_insns): Add a comment.
4313
4314 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
4315
4316 PR target/10781
4317 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
4318 Prototype.
4319 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4320 New function.
4321 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
4322 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
4323 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
4324
4325 2004-01-17 Jan Hubicka <jh@suse.cz>
4326
4327 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
4328 commit.
4329
4330 * toplev.c (HAVE_conditional_execution): Provide default.
4331 (rest_of_handle_reorder_blocks): For conditional_execution target
4332 update liveness once after all transformations
4333 (rest_of_compilation): Do crossjumping before ce3.
4334
4335 2004-01-17 Geoffrey Keating <geoffk@apple.com>
4336
4337 * alias.c (new_alias_set): Mark last_alias_set for PCH.
4338 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
4339 for PCH.
4340 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
4341 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
4342 (get_TOC_alias_set): Mark 'set' for PCH.
4343
4344 2004-01-16 Geoffrey Keating <geoffk@apple.com>
4345
4346 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
4347 even after reload, just don't remove the actual jump tables.
4348
4349 2004-01-17 J. Brobecker <brobecker@gnat.com>
4350
4351 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
4352 Remove checks for is_ada() and TREE_UNSIGNED.
4353 (subrange_type_die): Emit a byte_size attribute if the subrange
4354 type size is different from the base type size.
4355 (modified_type_die): Replace call to is_ada_subrange_type() by
4356 call to is_subrange_type().
4357
4358 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
4359
4360 * config/sh/sh.c: Include ggc.h.
4361
4362 2004-01-16 Geoffrey Keating <geoffk@apple.com>
4363
4364 * Makefile.in (MD5_H): New.
4365 (fold-const.o): Depend on md5.h.
4366 (dwarf2out.o): Likewise.
4367 (cppfiles.o): Likewise.
4368 * cppfiles.c: Include md5.h.
4369 (should_stack_file): Check against list read from PCH file.
4370 (struct pchf_data): New.
4371 (pchf): New variable.
4372 (struct pchf_adder_info): New.
4373 (pchf_adder): New.
4374 (pchf_save_compare): New.
4375 (_cpp_save_file_entries): New.
4376 (_cpp_read_file_entries): New.
4377 (struct pchf_compare_data): New.
4378 (pchf_compare): New.
4379 (check_file_against_entries): New.
4380 * cpphash.h (_cpp_save_file_entries): Prototype.
4381 (_cpp_read_file_entries): Prototype.
4382 * cpppch.c (cpp_write_pch_state): Write the list of headers.
4383 (cpp_read_state): Read the list of headers.
4384
4385 2004-01-17 Jan Hubicka <jh@suse.cz>
4386
4387 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
4388 builtin_expect specially.
4389 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
4390 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
4391 * invoke.texi (max-inline-insns-single): Set to 100.
4392 (large-function-insns): Set to 3000.
4393
4394 2004-01-16 Eric Christopher <echristo@redhat.com>
4395 Chandrakala Chavva <cchavva@redhat.com>
4396
4397 * cppcharset.c (one_iso88591_to_utf8): New function.
4398 (convert_iso88591_utf8): Ditto. Use.
4399 (conversion_tab): Use.
4400 (_cpp_input_to_utf8): New function.
4401 (_cpp_init_iconv_buffer): Ditto.
4402 (_cpp_close_iconv_buffer): Ditto.
4403 * cpphash.h: Prototype new functions.
4404 (cpp_buffer): Add input_cset_desc.
4405 * cppinit.c: Add input_charset default.
4406 * cpplib.c (cpp_push_buffer): Support init and
4407 close of iconv.
4408 * cpplib.h (cpp_options): Add input_charset.
4409
4410 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4411
4412 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
4413 * config/alpha/unicosmk.h: Remove a commented-out definition
4414 of ASM_OUTPUT_SECTION_NAME.
4415 * config/stormy16/stormy16.h: Likewise.
4416
4417 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4418
4419 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
4420 (alpha___extern_prefix_sys_stat): ... this.
4421 Apply to <sys/mount.h>, too.
4422 Tweak to match more variations.
4423 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
4424
4425 * fixinc/inclhack.def (alpha___extern_prefix,
4426 alpha___extern_prefix_standards): New hacks to obey
4427 __PRAGMA_EXTERN_PREFIX.
4428 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
4429 test.
4430 * fixinc/tests/base/standards.h: Likewise.
4431
4432 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
4433 variations.
4434 New testcase.
4435 * fixinc/tests/base/pthread.h: Handle it.
4436
4437 * fixincl/inclhack.def (bad_lval): Sort file list.
4438 Add many missing files up to Tru64 UNIX V5.1B.
4439 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
4440 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
4441 order.
4442
4443 * fixinc/fixincl.x: Regenerate.
4444
4445 2004-01-16 Mark Mitchell <mark@codesourcery.com>
4446
4447 * version.c (version_string): Change to 3.5.0.
4448 * doc/include/gcc-common.texi (version-GCC): Likewise.
4449
4450 2004-01-16 Jan Hubicka <jh@suse.cz>
4451
4452 * i386.md (load_tp_di): Fix pasto.
4453
4454 PR opt/13608
4455 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
4456
4457 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
4458 pp_c_character_constant, pp_c_floating_constant,
4459 pp_c_additive_expression, pp_c_shift_expression,
4460 pp_c_equality_expression, pp_c_and_expression,
4461 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
4462 pp_c_logical_and_expression): Remove inline modifier.
4463 * dwarf2out.c (get_AT): Likewise.
4464 * et-forest.c (et_splay): Likewise.
4465 * ra.h (ra_alloc, ra_calloc): Likewise
4466
4467 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4468
4469 * config/frv/frv-protos.h: Fix comment formatting.
4470 * config/frv/frv.c: Likewise.
4471 * config/frv/frv.h: Likewise.
4472 * config/frv/frv.md: Likewise.
4473 * config/frv/frvbegin.c: Likewise.
4474 * config/frv/frvend.c: Likewise.
4475
4476 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4477
4478 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
4479 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
4480 LINKER_DOES_NOT_WORK_WITH_DWARF2.
4481 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
4482
4483 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
4484
4485 PR 11864
4486 * postreload.c (reload_cse_simplify_operands): Don't remove
4487 implicit extension from LOAD_EXTEND_OP.
4488
4489 2004-01-16 Jan Hubicka <jh@suse.cz>
4490
4491 PR opt/11350
4492 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
4493 after reload.
4494 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
4495 rtl_try_redirect_by_replacing_branch): Likewise.
4496
4497 2004-01-15 Geoffrey Keating <geoffk@apple.com>
4498
4499 PR pch/13689
4500 * alias.c (struct alias_set_entry): Mark for GC.
4501 (alias_sets): Make static, mark for GC.
4502 (record_alias_subset): Use GC to allocate alias structures.
4503 * varray.c (element): Make generic varrays GCed.
4504
4505 PR pch/13361
4506 * c-typeck.c (constructor_asmspec): Delete.
4507 (struct initializer_stack): Delete field 'asmspec'.
4508 (start_init): Delete saving of asmspec.
4509 (finish_init): Don't update constructor_asmspec.
4510 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
4511 * stmt.c (expand_asm): Duplicate strings from tree.
4512 (expand_asm_operands): Likewise.
4513 * tree.c (tree_size): Update computation of size of STRING_CST.
4514 (make_node): Don't make STRING_CST nodes.
4515 (build_string): Allocate string with tree node.
4516 * tree.def (STRING_CST): Update comment.
4517 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
4518 (tree_string): Place contents of string in tree node.
4519 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
4520 from tree.
4521
4522 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
4523 altivec operands.
4524
4525 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4526
4527 * c-common.h: Fix comment formatting.
4528 * c-cppbuiltin.c: Likewise.
4529 * c-pragma.c: Likewise.
4530 * calls.c: Likewise.
4531 * collect2.c: Likewise.
4532 * cppcharset.c: Likewise.
4533 * cpptrad.c: Likewise.
4534 * dbxout.c: Likewise.
4535 * defaults.h: Likewise.
4536 * dwarf2out.c: Likewise.
4537 * fold-const.c: Likewise.
4538 * genautomata.c: Likewise.
4539 * genconditions.c: Likewise.
4540 * genflags.c: Likewise.
4541 * gengtype.c: Likewise.
4542 * integrate.c: Likewise.
4543 * loop.c: Likewise.
4544 * predict.c: Likewise.
4545 * sdbout.c: Likewise.
4546
4547 2004-01-15 Zack Weinberg <zack@codesourcery.com>
4548
4549 * config/ia64/ia64.md (*movti_internal): C output template
4550 extracted to ia64.c.
4551 (*movti_internal_reg): Delete.
4552 (reload_inti, reload_outti): Use the correct mode on operand 2
4553 in the first place, don't fix it up in the output template.
4554 (movtf, reload_ointf, reload_outtf): New expanders.
4555 (*movtf_internal): New define_insn_and_split.
4556 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
4557 make static; do not hand TFmode CONST_DOUBLEs to split_double.
4558 (ia64_split_tmode_move): New function, body mostly pulled
4559 from ia64.md:*movti_internal.
4560 (ia64_function_arg_words): New function, extracted common
4561 logic from ia64_function_arg et seq.
4562 (ia64_function_arg_offset): Likewise. Handle correctly the
4563 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
4564 (ia64_function_arg, ia64_function_arg_partial_nregs)
4565 (ia64_function_arg_advance): Use ia64_function_arg_words and
4566 ia64_function_arg_offset.
4567 (ia64_function_value): TCmode does not go in float regs.
4568 (ia64_secondary_reload_class): Also handle TFmode.
4569 * config/ia64/ia64-protos.h: Remove prototype for
4570 ia64_split_timode; add prototype for ia64_split_tmode_move.
4571
4572 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
4573
4574 * Makefile.in (MAINT): Make it an immediate assignment.
4575
4576 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4577
4578 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
4579
4580 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4581
4582 * config/h8300/coff.h: Replace Hitachi with Renesas.
4583 * config/h8300/elf.h: Likewise.
4584 * config/h8300/h8300-protos.h: Likewise.
4585 * config/h8300/h8300.c: Likewise.
4586 * config/h8300/h8300.h: Likewise.
4587 * config/h8300/h8300.md: Likewise.
4588 * config/h8300/lib1funcs.asm: Likewise.
4589
4590 2004-01-15 Andrew Pinski <apinski@apple.com>
4591
4592 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
4593 around it.
4594
4595 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4596
4597 * config/h8300/h8300.c (h8300_return_in_memory): New.
4598 (TARGET_STRUCT_VALUE_RTX): Likewise.
4599 (TARGET_RETURN_IN_MEMORY): Likewise.
4600 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
4601 (RETURN_IN_MEMORY): Likewise.
4602
4603 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
4604
4605 PR optimization/13375
4606 * gcse.c (handle_avail_expr): Just return if the source is not a
4607 single set.
4608
4609 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
4610 Daniel Jacobowitz <drow@mvista.com>
4611
4612 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
4613 (EQUIV): Define.
4614 (ARM_FUNC_ALIAS): New macro.
4615 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
4616 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
4617
4618 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4619
4620 PR optimization/12372
4621 * calls.c (expand_call): Add call_fusage data for stack arguments in
4622 constant calls.
4623
4624 2004-01-15 Alan Modra <amodra@bigpond.net.au>
4625
4626 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
4627 (rs6000_elf_declare_function_name): Formatting.
4628 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
4629
4630 2004-01-15 Jan Hubicka <jh@suse.cz>
4631
4632 PR bootstrap/13692
4633 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
4634 previous patch.
4635
4636 2004-01-15 Richard Henderson <rth@redhat.com>
4637
4638 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
4639 integer regs of the same call-savedness.
4640
4641 2004-01-15 Andreas Schwab <schwab@suse.de>
4642
4643 PR bootstrap/13562
4644 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
4645 status for NOTB/NOTW/NEGW methods.
4646
4647 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4648
4649 * doc/invoke.texi: Update dump file names. Fix a typo.
4650
4651 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4652
4653 * builtins.c (expand_builtin_va_end): Don't use
4654 EXPAND_BUILTIN_VA_END.
4655 * system.h (EXPAND_BUILTIN_VA_END): Poison.
4656 * config/d30v/d30v.h: Remove a commented-out definition of
4657 EXPAND_BUILTIN_VA_END.
4658 * config/stormy16/stormy16.h: Likewise.
4659
4660 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4661
4662 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
4663 * targhooks.c (default_struct_value_rtx): Don't use
4664 STRUCT_VALUE_INCOMING_REGNUM.
4665
4666 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
4667
4668 PR bootstrap/12744
4669 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
4670 GENINSRC and not parsedir. Define srcextra as a langhook.
4671 * configure: Regenerate.
4672 * Makefile.in: Suppress default .l.c rule. Don't substitute
4673 parsedir and delete all references throughout. Conditionally define
4674 rule for srcextra dependent on GENINSRC.
4675 (stmp-docobjdir): Delete.
4676 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
4677 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
4678 and gengtype-yacc.h back to source directory.
4679 (maintainer-clean): Delete all parse files in source directory.
4680 (distclean): Delete generated files.
4681
4682 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
4683 (objc-parse.c, objc-parse.y): Don't use parsedir.
4684 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
4685 directory if requested.
4686 (po-generated): Don't use parsedir.
4687 (objc.maintainer-clean): Delete above files from source directory.
4688
4689 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4690
4691 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
4692
4693 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4694
4695 * doc/tm.texi: Replace RETURN_IN_MEMORY with
4696 TARGET_RETURN_IN_MEMORY.
4697
4698 2004-01-15 Jan Hubicka <jh@suse.cz>
4699
4700 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
4701 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
4702 functions accepting SSE arguments
4703 (function_arg): Warn only when asked to warn.
4704 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
4705
4706 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
4707
4708 * c-parse.in (stmts_and_decls): Make label at end of compound
4709 statement a hard error.
4710
4711 2004-01-14 Jan Hubicka <jh@suse.cz>
4712
4713 * cgraph.c (create_edge): Use local.redefined_extern_inline.
4714 * cgraph.h (cgraph_local_info): Sort fields by size; add
4715 redefined_extern_inline
4716 (cgraph_global_info): Sort fields by size.
4717 (cgraph_node): Likewise.
4718 * cgraphunit.c (cgraph_finalize_function): Se
4719 local.redefined_extern_inline on redefinition.
4720 (cgraph_analyze_function): Use it; fix formating.
4721
4722 2004-01-14 Jan Hubicka <jh@suse.cz>
4723
4724 PR c++/10776
4725 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
4726 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
4727 bitmaps
4728 (cache_size): New variable
4729 (add_dependence): Update use; canonize early memory locations
4730 (sched_analyze_1): Likewise.
4731 (sched_analyze_2): Likewise.
4732 (init_dependency_caches): Initialize bitmaps.
4733 (free_dependency_caches): Free bitmaps
4734
4735 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4736
4737 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
4738 targetm.calls.strict_argument_naming().
4739 * target.h: Likewise.
4740
4741 2004-01-14 Richard Henderson <rth@redhat.com>
4742
4743 PR debug/13231
4744 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
4745 instructions.
4746
4747 2004-01-14 Richard Henderson <rth@redhat.com>
4748
4749 PR c++/12491
4750 * except.c (struct eh_region): Add u.fixup.resolved.
4751 (resolve_one_fixup_region): Split out from ...
4752 (resolve_fixup_regions): ... here.
4753
4754 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4755
4756 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
4757
4758 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4759
4760 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
4761 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
4762 (STRUCT_VALUE): Remove.
4763
4764 2004-01-14 Steven Bosscher <stevenb@suse.de>
4765
4766 * system.h: Poison PROMOTED_MODE
4767 * integrate.c (expand_inline_function): Don't mention the
4768 PROMOTED_MODE.
4769 * loop.c (update_giv_derive): Same.
4770 * tree.h (DECL_RTL): Same.
4771
4772 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
4773
4774 PR target/9365
4775 * sh.c (gen_block_redirect): Add special handling of RETURN.
4776 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
4777 far branch target (i.e. it's a return).
4778
4779 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4780
4781 * regrename.c (find_oldest_value_reg): Fix a warning.
4782
4783 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
4784
4785 PR bootstrap/12527
4786 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
4787 Move linux-gas.h and linux-elf.h before aout.h.
4788 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
4789 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
4790
4791 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4792
4793 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
4794 (CONST_INT, VOIDmode, ...).
4795
4796 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
4797
4798 * regrename.c (find_oldest_value_reg): If the replacement uses
4799 multiple hard registers, check that all of them are in CLASS.
4800
4801 2004-01-14 Jan Hubicka <jh@suse.cz>
4802
4803 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
4804 impossible.
4805
4806 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
4807
4808 * Makefile.in: Define MAINT from --enable-maintainer-mode.
4809
4810 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
4811
4812 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
4813 Calculate always vrsave_mask if TARGET_ALTIVEC.
4814 (rs6000_emit_prologue): Emit code for vrsave
4815 only if TARGET_ALTIVEC_VRSAVE.
4816 (rs6000_emit_epilogue): Likewise.
4817
4818 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
4819
4820 * config/sparc/sparc.md (tie_add32): Fix pasto.
4821 (tie_add64): Likewise.
4822
4823 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4824
4825 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
4826
4827 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4828
4829 * config/iq2000/iq2000-protos.h: Fix comment formatting.
4830 * config/iq2000/iq2000.c: Likewise.
4831 * config/iq2000/iq2000.md: Likewise.
4832
4833 2004-01-14 J. Brobecker <brobecker@gnat.com>
4834
4835 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
4836 (subrange_type_die): Add handle for nameless subrange types.
4837
4838 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4839
4840 * config/h8300/h8300-protos.h: Replace do_movsi with
4841 h8300_expand_movsi.
4842 * config/h8300/h8300.c (do_movsi): Change to
4843 h8300_expand_movsi.
4844 * config/h8300/h8300.md (movsi): Replace do_movsi with
4845 h8300_expand_movsi.
4846 (movsf): Likewise.
4847
4848 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4849
4850 * config/h8300/h8300.c (dosize): Change to
4851 h8300_emit_stack_adjustment. Update callers.
4852
4853 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4854
4855 * config/h8300/h8300.md (movstrictqi): Add an alternative with
4856 the source being post_inc. Tighten the predicate for the
4857 destination to register_operand.
4858 (movstricthi): Likewise.
4859
4860 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4861
4862 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
4863 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
4864 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
4865
4866 2004-01-14 Jan Hubicka <jh@suse.cz>
4867
4868 Partial fix PR c++/12850
4869 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
4870 at zero nest level.
4871
4872 2004-01-13 Bernardo Innocenti <bernie@develer.com>
4873
4874 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
4875 pseudo-register.
4876
4877 2004-01-13 Devang Patel <dpatel@apple.com
4878
4879 PR debug/7078
4880 * dbxout.c (dbxout_symbol_name): Emit mangled names for
4881 NAMESPACE_DECL memebers.
4882
4883 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
4884
4885 PR c++/12709
4886 * c-common.c (finish_fname_decls): Use the chain only if the
4887 tree is an expr_stmt.
4888
4889 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
4890
4891 * rtl.def: Add comment about new option in automata_option.
4892
4893 * genautomata.c (PROGRESS_OPTION): New macro.
4894 (progress_flag): New global variable.
4895 (gen_automata_option): Process `progress'.
4896 (transform_insn_regexps, check_unit_distributions_to_automata,
4897 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
4898 expand_automata, write_automata): Print about the progress only if
4899 progress_flag. Remove fflush.
4900 (initiate_automaton_gen): Process command line flag `-progress'.
4901
4902 * doc/md.texi: Describe the new option.
4903
4904 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4905
4906 * cfg.c (dump_bb): Dump entry edges.
4907
4908 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
4909
4910 * arm.c (thumb_legitimate_address_p): Only allow constant pool
4911 references from SImode.
4912 * arm.md (thumb_movhi_insn): Don't allow minipool references.
4913
4914 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4915
4916 * system.h (TEXT_SECTION): Poison.
4917 * varasm.c (text_section): Don't use TEXT_SECTION.
4918 * config/sh/sh.c (sh_file_start): Fix a comment typo.
4919 * doc/tm.texi (TEXT_SECTION): Remove.
4920
4921 2004-01-13 Ben Elliston <bje@wasabisystems.com>
4922
4923 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
4924
4925 2004-01-12 James E Wilson <wilson@specifixinc.com>
4926
4927 * unwind-libunwind.c: Delete.
4928
4929 2004-01-12 Zack Weinberg <zack@codesourcery.com>
4930
4931 PR 13656
4932 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
4933 oldtype is set, set *newtypep or *oldtypep too. Do not set
4934 them at the very end.
4935 (validate_proto_after_old_defn): Restructure for comprehensibility;
4936 make error messages clearer.
4937
4938 2004-01-12 Zack Weinberg <zack@codesourcery.com>
4939
4940 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
4941 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
4942 * varray.c: No need to prototype error.
4943 (varray_check_failed): Wrap long string onto two lines.
4944 (varray_underflow): New function.
4945
4946 2004-01-13 Steven Bosscher <stevenb@suse.de>
4947
4948 PR c++/13376
4949 * function.h (struct function): Kill `name' field.
4950 (current_function_name): Make it an extern function.
4951 * function.c (current_function_name): New function.
4952 * graph.c: Update all uses of current_function_name.
4953 * gcse.c: Likewise.
4954 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
4955 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
4956 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
4957 instead of a strcmp with "main".
4958
4959 2004-01-13 Jan Hubicka <jh@suse.cz>
4960
4961 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
4962
4963 * cgraphunit.c (cgraph_optimize_function): Always do
4964 optimize_inline_calls when there is always_inline callee.
4965 (cgraph_decide_inlining): Fix formating.
4966 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
4967 functions.
4968 (expand_call_inline): Likewise.
4969 * toplev.h (sorry): Fix prototype.
4970
4971 2004-01-12 Roger Sayle <roger@eyesopen.com>
4972
4973 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
4974 conditional jumps that drop through to unconditional jumps or the
4975 end of the sequence.
4976
4977 2004-01-13 Jan Hubicka <jh@suse.cz>
4978
4979 * alias.c (new_alias_set): Construct the alias_set varray.
4980 (init_alias_once): Don't do it here.
4981
4982 2004-01-12 Marc Espie <espie@openbsd.org>
4983
4984 * system.h: handle YYBYACC like YYBISON.
4985
4986 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
4987
4988 PR target/10847
4989 * config.gcc: No longer includes conflicting header sparc/sol2.h when
4990 building on sparc64-*-openbsd*.
4991
4992 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
4993
4994 PR debug/13539
4995 * dbxout.c (dbxout_type): Protected inheritance is not
4996 private but protected.
4997
4998 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
4999
5000 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
5001
5002 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
5003
5004 PR optimization/12508.
5005 * combine.c (try_combine): Remove a dead set in a parallel
5006 even if its destination is a subreg.
5007
5008 Revert:
5009 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5010 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5011 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5012
5013 2004-01-12 Geoffrey Keating <geoffk@apple.com>
5014
5015 * real.c: Update copyright date.
5016 * emit-rtl.c: Likewise.
5017 * rtl.h: Likewise.
5018 * dwarf2out.c: Likewise.
5019 * config/rs6000/darwin-ldouble.c: Likewise.
5020 * config/rs6000/rs6000.md: Likewise.
5021
5022 2004-01-12 David Edelsohn <edelsohn@gnu.org>
5023
5024 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
5025 TFmode to SImode libfuncs.
5026
5027 2004-01-12 Roger Sayle <roger@eyesopen.com>
5028
5029 PR middle-end/11397
5030 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
5031
5032 2004-01-12 Jan Hubicka <jh@suse.cz>
5033
5034 PR opt/12826
5035 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
5036 stored.
5037
5038 PR opt/12863
5039 * cfgcleanup.c (label_is_jump_target_p): Move to...
5040 * rtlanal.c (label_is_jump_target_p): ... here.
5041 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
5042 edges unified with branch edges.
5043
5044 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
5045
5046 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
5047 high word of an integral CONST_DOUBLE.
5048
5049 2004-01-12 Paul Brook <paul@codesourcery.com>
5050
5051 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
5052
5053 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
5054
5055 PR target/13585
5056 * sh-protos.h (check_use_sfunc_addr): Declare.
5057 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
5058 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
5059
5060 2004-01-12 Jan Hubicka <jh@suse.cz>
5061
5062 * alias.c: Invlude varray.h
5063 (alias_sets): Turn into varray.
5064 (get_alias_set_entry): Use VARRAY; mark inline.
5065 (mems_in_disjoint_alias_sets_p): Mark inline.
5066 (record_alias_subset): Use varray.
5067 (init_alias_once): Initialize varray.
5068 (new_alias_set): Grow array.
5069 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
5070
5071 2004-01-12 Jan Hubicka <jh@suse.cz>
5072
5073 Partial fix for PR opt/10776 II
5074 * cselib.c: Include params.h
5075 (cselib_invalidate_mem): Limit amount of nonconflicting memory
5076 locations.
5077 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
5078 * Makefile.in (cselib.o): Depend on params.h
5079
5080 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
5081
5082 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
5083 simplify_unary_operation if the operand has a known mode.
5084
5085 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
5086
5087 PR target/13534
5088 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
5089 predicate to handle 'ld' conform addresses.
5090 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
5091 contraint.
5092 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
5093 are memory contraints.
5094 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
5095 New prototype.
5096 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
5097 Change 'o' to 'Y' constraint.
5098 (*movdf_softfloat64): Ditto.
5099
5100 2004-01-12 Bernardo Innocenti <bernie@develer.com>
5101
5102 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
5103 brace-enclosed syntax in all C output statements.
5104
5105 2004-01-12 David Edelsohn <edelsohn@gnu.org>
5106
5107 PR target/13401
5108 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
5109 Objective-C language type value is 14.
5110
5111 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
5112
5113 PR c/12148
5114 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
5115 `int' in a number of places to make sure we always have a SImode
5116 and not a HImode. Add a 'L' suffix to a number of constants.
5117
5118 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5119
5120 * pa.c: Don't include obstack.h.
5121
5122 * pa.md: Correct constraint in pattern for loading PIC label address.
5123
5124 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
5125
5126 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
5127 before defining.
5128
5129 2004-01-11 Steven Bosscher <stevenb@suse.de>
5130
5131 PR fortran/9972
5132 * toplev.c (rest_of_handle_inline): Also consider functions
5133 for deferral if the language is GNU F77.
5134
5135 2004-01-11 Zack Weinberg <zack@codesourcery.com>
5136
5137 * c-decl.c (diagnose_arglist_conflict): Add missing space to
5138 diagnostic messages.
5139
5140 2004-01-11 Jakub Jelinek <jakub@redhat.com>
5141
5142 PR middle-end/13392
5143 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
5144 to drop through label. Don't fall back to SCC even when conditional
5145 jump has not been found.
5146
5147 2004-01-11 Jan Hubicka <jh@suse.cz>
5148
5149 * invoke.texi: Fix syntax error in previous patch.
5150
5151 Partial fix for PR opt/10776
5152 * Makefile.in (reload.o): Include param.h
5153 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
5154 * reload.c: Include params.h.
5155 (find_equiv_reg): Work limiting check.
5156 * invoke.texi: Document.
5157
5158 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
5159
5160 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
5161 out-of-bounds accesses to string constants. Simplify mips16
5162 case accordingly.
5163
5164 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
5165
5166 PR optimization/13469
5167 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
5168 reload_cse_regs (-fnon-call-exceptions only).
5169
5170 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
5171
5172 * config/mcore/lib1.asm: Fix comment formatting.
5173 * config/mcore/mcore-elf.h: Likewise.
5174 * config/mcore/mcore.c: Likewise.
5175 * config/mcore/mcore.h: Likewise.
5176 * config/mcore/mcore.md: Likewise.
5177
5178 2004-01-10 Zack Weinberg <zack@codesourcery.com>
5179
5180 * c-decl.c (duplicate_decls): Break apart into...
5181 (diagnose_arglist_conflict, validate_proto_after_old_defn)
5182 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
5183 ... these new functions. Restructure for comprehensibility.
5184 Remove various archaic special cases. Always report the
5185 location of the previous declaration when a diagnostic is issued.
5186 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
5187 (match_builtin_function_types): Delete unnecessary forward declaration.
5188
5189 2004-01-10 Zack Weinberg <zack@codesourcery.com>
5190
5191 * genautomata.c (make_automaton, NDFA_to_DFA):
5192 Print progress bars with '.' characters instead of '*'.
5193 (build_automaton): Change notes to match.
5194
5195 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
5196
5197 * config/m32r/m32r.md: Use define_constants for unspec and
5198 unspec_volatile.
5199
5200 2004-01-10 Jan Hubicka <jh@suse.cz>
5201
5202 PR opt/11635
5203 * expr.c (expand_expr_real): More curefully expand union casts.
5204
5205 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
5206
5207 * config/m32r/m32r.md (flush_icache): Use 1 for
5208 unspec_volatile.
5209
5210 2004-01-10 David Edelsohn <edelsohn@gnu.org>
5211 James E Wilson <wilson@specifixinc.com>
5212
5213 PR debug/12860
5214 * dbxout.c (dbxout_symbol): Remove initialization of
5215 current_sym_code, current_sym_value, and current_sym_addr.
5216 (dbxout_symbol_location): Same.
5217 (dbxout_prepare_symbol): Zero current_sym_code,
5218 current_sym_value, and current_sym_addr.
5219
5220 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
5221
5222 * tree.c (get_unwidened): Reorder conditions so that the null pointer
5223 check is done first.
5224
5225 2004-01-09 Eric Christopher <echristo@redhat.com>
5226
5227 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
5228 if we're running mark_constant_function.
5229
5230 2004-01-09 Jeff Bailey <jbailey@nisa.net>
5231
5232 PR target/12561
5233 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
5234
5235 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
5236
5237 PR debug/11231
5238 * dbxout.c (dbxout_type_fields): Return if any item is
5239 error_mark_node or the type is error_mark_node.
5240
5241 2004-01-09 Geoffrey Keating <geoffk@apple.com>
5242
5243 * config/rs6000/darwin-ldouble.c: Add big comment explaining
5244 exactly what is expected as a 'long double'.
5245 (_xlqadd): When a value to be returned is representable as a
5246 'double', just return it directly, do not construct it using a union.
5247 Also, correct final fixup.
5248 (_xlqmul): Likewise.
5249 (_xlqdiv): Likewise.
5250 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
5251
5252 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
5253
5254 2004-01-09 Richard Henderson <rth@redhat.com>
5255
5256 * recog.c (constrain_operands): Validate mem operands.
5257
5258 2004-01-09 James E Wilson <wilson@specifixinc.com>
5259
5260 * gcc.c (init_spec): Remove -lunwind from shared case.
5261 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
5262
5263 2004-01-09 Steve Ellcey <sje@cup.hp.com>
5264
5265 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
5266 * configure: Regenerate
5267
5268 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
5269
5270 PR c/11234
5271 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
5272 between function and object pointers.
5273 (digest_init): When comparing a pointer to function type to the
5274 target type, only apply TREE_TYPE once to the pointer to function
5275 type.
5276 * except.c (for_each_eh_label_1): Treat data as a pointer to a
5277 function pointer rather than casting it to a function pointer.
5278 (for_each_eh_label): Update caller.
5279 * recog.h (struct insn_data): Use a struct or union for output.
5280 * genoutput.c (output_insn_data): Update.
5281 * final.c (get_insn_template): Update.
5282
5283 2004-01-09 Mark Mitchell <mark@codesourcery.com>
5284
5285 * expr.h (expand_expr): Make it a macro, not a function.
5286 (expand_expr_real): New function.
5287 * expr.c (store_expr): Adjust logic for deciding whether or not to
5288 copy the value returned by expand_expr.
5289 (expand_expr): Rename to ...
5290 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
5291 calls to language hooks.
5292 * c-common.h (c_expand_expr): Adjust prototype.
5293 * c-common.c (c_expand_expr): Add alt_rtl parameter.
5294 * langhooks-def.h (lhd_expand_expr): Change prototype.
5295 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
5296 * langhooks.h (lang_hooks): Change type of expand_expr.
5297 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
5298 (last_expr_alt_rtl): Likewise.
5299 (expand_expr_stmt_value): Set last_expr_alt_rtl.
5300 (clear_last_expr): Clear it.
5301 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
5302 (expand_end_bindings): Save and restor last_expr_alt_rtl.
5303 * tree.def (RTL_EXPR): Give it an additional operand.
5304 * tree.h (RTL_EXPR_ALT_RTL): New macro.
5305
5306 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5307
5308 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
5309 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
5310
5311 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
5312
5313 PR target/13380.
5314 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
5315 or (ne:SI (reg:CC 17) (const_int 0)).
5316 Be specific about modes wherever possible.
5317
5318 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
5319
5320 * config/m32r/m32r.c (m32r_expand_block_move): Call
5321 gen_movestrsi_internal with two more arguments.
5322 (m32r_output_block_move): Adjust operand numbers.
5323 Properly update the source and destination pointers.
5324 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
5325 'r+'. Change the set detinations to match_operand.
5326
5327 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
5328
5329 * final.c (FIRST_INSN_ADDRESS): Remove.
5330 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
5331 * system.h (FIRST_INSN_ADDRESS): Poison.
5332 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
5333 * config/m32r/m32r-protos.h: Remove the prototype for
5334 m32r_first_insn_address.
5335 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
5336 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
5337 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
5338
5339 2004-01-09 J. Brobecker <brobecker@gnat.com>
5340
5341 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
5342 we just created.
5343 (is_ada_subrange_type): DIEs for enumeration subtypes should be
5344 emitted as subrange types too.
5345 (subrange_type_die): Add handling of enumeration subtypes.
5346
5347 2004-01-08 Richard Henderson <rth@redhat.com>
5348
5349 PR opt/12441
5350 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
5351 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5352 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5353 (ix86_address_cost): Be prepared for SUBREGed registers.
5354 (legitimate_address_p): Accept SUBREGed registers.
5355
5356 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
5357
5358 * Makefile.in: Rename configure.in to configure.ac
5359 * doc/sourcebuild.texi: Likewise.
5360 * configure: Regenerate.
5361 * config.in: Regenerate.
5362
5363 2004-01-08 Stuart Hastings <stuart@apple.com>
5364
5365 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
5366
5367 2004-01-08 Jan Hubicka <jh@suse.cz>
5368
5369 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
5370
5371 2004-01-08 Geoffrey Keating <geoffk@apple.com>
5372
5373 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
5374 (UNSPEC_FIX_TRUNC_TF): New constant.
5375 (movtf_internal): Make splitter active only when insn is active.
5376 (extenddftf2): Rewrite to properly load zero into low part.
5377 (extenddftf2_internal): New.
5378 (extendsftf2): Rewrite.
5379 (truncdftf2): Correct length.
5380 (floatditf2): Delete.
5381 (fix_trunc_helper): New.
5382 (fix_trunctfdi2): Use fix_trunc_helper.
5383 (fix_trunctfsi2): Likewise.fix_trunc
5384 (fix_trunctfsi2_internal): New.
5385
5386 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
5387 addresses are legitimate on Darwin even when flag_pic.
5388 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
5389 non-offsettable addresses for loads of TFmode constants.
5390
5391 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5392
5393 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
5394 variables in the appropriate bss section.
5395
5396 2004-01-09 Alan Modra <amodra@bigpond.net.au>
5397
5398 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
5399 target_flags has MASK_POWERPC64 when -m64.
5400 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
5401 to 620, 630, power3, power4 and rs64a entries.
5402 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
5403
5404 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
5405
5406 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
5407 floating-point constants.
5408
5409 2004-01-08 J. Brobecker <brobecker@gnat.com>
5410
5411 * dwarf2out.c (subrange_type_die): Add context_die parameter.
5412 Create the subrange_type DIE using the given context DIE.
5413 (modified_type_die): Update call to subrange_type_die.
5414
5415 2004-01-08 Zack Weinberg <zack@codesourcery.com>
5416
5417 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
5418 Add multiple-include guard.
5419
5420 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
5421
5422 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
5423 all vector constant loadable by vsplt*.
5424 (output_vec_const_move): Likewise.
5425
5426 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
5427
5428 PR c/6024
5429 * c-typeck.c (comptypes): Only treat enumerated types in the same
5430 translation unit as compatible with each other when they are the
5431 same type.
5432 * doc/extend.texi: Update.
5433
5434 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
5435
5436 PR c/12165
5437 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
5438 array type from the array element type.
5439
5440 2004-01-07 Alan Modra <amodra@bigpond.net.au>
5441
5442 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
5443 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
5444 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
5445 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
5446 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
5447
5448 2004-01-06 Eric Christopher <echristo@redhat.com>
5449
5450 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
5451 (DWARF2_DEBUGGING_INFO): Define.
5452 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
5453 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
5454 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
5455 for irix as.
5456 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
5457 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
5458 * config/mips/iris5gas.h: Ditto.
5459 (DBX_DEBUGGING_INFO): Remove.
5460 (DWARF2_DEBUGGING_INFO): Ditto.
5461 (MIPS_DEBUGGING_INFO): Ditto.
5462 (PREFERRED_DEBUGGING_TYPE): Ditto.
5463 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
5464 (PREFERRED_DEBUGGING_TYPE): Ditto.
5465 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
5466 * config/mips/elf64.h: Ditto.
5467
5468 2004-01-06 Jan Hubicka <jh@suse.cz>
5469
5470 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
5471 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
5472
5473 2004-01-06 Geoffrey Keating <geoffk@apple.com>
5474
5475 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
5476 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
5477 * config/rs6000/darwin-ldouble.c: New.
5478
5479 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
5480 for constants.
5481 (constant_subword): Delete.
5482 * rtl.h (constant_subword): Delete prototype.
5483 (immed_double_const): Is not in varasm.c.
5484 * simplify-rtx.c (simplify_immed_subreg): New.
5485 (simplify_subreg): Use simplify_immed_subreg.
5486
5487 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
5488 than trying to generate RTL directly.
5489 (fix_trunctfsi2): Use expand_fix rather than trying to generate
5490 RTL directly.
5491
5492 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
5493
5494 2004-01-06 David Edelsohn <edelsohn@gnu.org>
5495
5496 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
5497 function into a separate macro.
5498 (read_only_data_section): Add void argument.
5499 (private_data_section): Same.
5500 (read_only_private_data_section): Same.
5501 (toc_section): Same.
5502
5503 2004-01-06 Jan Hubicka <jh@suse.cz>
5504
5505 * invoke.texi: Remove typo in last change.
5506
5507 PR target/10301
5508 * config.gcc: Accept opteron and athlon-64 as variants
5509 of k8.
5510 * i386.c (override_options): Likewise.
5511 * invoke.texi (i386 -mtune): Expand documentation.
5512
5513 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
5514
5515 * alias.c: Fix comment typos.
5516 * builtins.c: Likewise.
5517 * cfg.c: Likewise.
5518 * df.c: Likewise.
5519 * dominance.c: Likewise.
5520 * dwarf2out.c: Likewise.
5521 * emit-rtl.c: Likewise.
5522 * expr.c: Likewise.
5523 * final.c: Likewise.
5524 * fold-const.c: Likewise.
5525 * gcse.c: Likewise.
5526 * genattrtab.c: Likewise.
5527 * genrecog.c: Likewise.
5528 * gensupport.c: Likewise.
5529 * ggc-zone.c: Likewise.
5530 * integrate.c: Likewise.
5531 * local-alloc.c: Likewise.
5532 * loop.c: Likewise.
5533 * recog.c: Likewise.
5534 * regmove.c: Likewise.
5535 * reg-stack.c: Likewise.
5536 * reorg.c: Likewise.
5537 * rtlanal.c: Likewise.
5538 * rtl.h: Likewise.
5539 * sched-ebb.c: Likewise.
5540 * simplify-rtx.c: Likewise.
5541 * toplev.c: Likewise.
5542 * varasm.c: Likewise.
5543
5544 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
5545
5546 * doc/install.texi: Fix typos.
5547 * doc/invoke.texi: Likewise.
5548 * doc/md.texi: Likewise.
5549
5550 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5551
5552 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
5553
5554 2004-01-06 Jan Hubicka <jh@suse.cz>
5555
5556 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
5557 (function_arg_advance): Do not pass aggregates in SSE; deal handling
5558 of MMX_REGPARM.
5559 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
5560 add MMX_REGPARM.
5561 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
5562 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
5563 (MMX_REGPARM_MAX): Similarly for -mmmx.
5564
5565 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5566
5567 * config/sh/linux.h: Fix comment formatting.
5568 * config/sh/netbsd-elf.h: Likewise.
5569 * config/sh/sh.c: Likewise.
5570 * config/sh/sh.h: Likewise.
5571 * config/sh/vxworks.h: Likewise.
5572
5573 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5574
5575 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
5576 * toplev.c (output_file_directive): Don't use
5577 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
5578
5579 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
5580
5581 * toplev.c: Fix broken checkin of 2003-12-30.
5582
5583 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
5584
5585 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
5586 (USING_MMAP): We don't support non-mmap.
5587 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
5588 large objects.
5589 (struct page_entry): Remove bytes_free.
5590 (struct page_table_chain): Remove.
5591 (struct globals): Remove page_table member.
5592 (loookup_page_table_entry): Function deleted.
5593 (set_page_table_entry): Ditto.
5594 (ggc_allocated_p): No longer need page table lookups.
5595 (ggc_marked_p): Ditto.
5596 (alloc_small_page): Don't care about bytes_free anymore.
5597 (alloc_large_page): Round up size.
5598 (ggc_alloc_zone_1): Mark large objects as such, and calculate
5599 their size the new way.
5600 Remove page table lookups and setting.
5601 (ggc_get_size): Calculate large object size the new way.
5602 (sweep_pages): Redo to account for fact that we no longer have
5603 bytes_free.
5604 (ggc_collect): No longer need to reincrement bytes_free.
5605 (ggc_pch_alloc_object): Handle new large objects properly.
5606 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
5607
5608 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5609
5610 * doc/invoke.texi: Remove a page break.
5611
5612 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5613
5614 * config/avr/avr.c (avr_output_function_prologue): Remove an
5615 extra pair of curly braces.
5616
5617 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5618
5619 * config/mn10300/mn10300.c: Fix comment formatting.
5620 * config/mn10300/mn10300.h: Likewise.
5621
5622 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5623
5624 * tree.h: Update documentation on nothrow_flag.
5625 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
5626 types.
5627
5628 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5629
5630 * doc/invoke.texi: Remove traces of dead ports.
5631
5632 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
5633
5634 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
5635 option.
5636
5637 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
5638
5639 PR target/12945
5640 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
5641 counter labels.
5642 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
5643 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
5644 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
5645 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
5646 (mips_symbol_insns): Don't trust the local/global classification.
5647 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
5648 (override_options): Make -mabicalls -fno-unit-at-a-time imply
5649 -mno-explicit-relocs.
5650 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
5651 between local and global symbols.
5652
5653 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
5654
5655 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
5656 (mips_preferred_reload_class): Declare.
5657 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
5658 (EXTRA_CONSTRAINT): Update accordingly.
5659 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
5660 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
5661 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
5662 mips_dangerous_for_la25_p.
5663 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
5664 if mips_dangerous_for_la25_p.
5665
5666 2004-01-05 Bernardo Innocenti <bernie@develer.com>
5667
5668 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
5669 warning.
5670
5671 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
5672
5673 * configure.ac: Use AC_PROG_CPP_WERROR.
5674 * configure: Regenerate.
5675
5676 2004-01-04 Zack Weinberg <zack@codesourcery.com>
5677
5678 * .cvsignore: Add autom4te.cache.
5679
5680 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
5681
5682 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
5683 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
5684 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
5685 then architecture options, then ABI options. General rewording.
5686
5687 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
5688
5689 PR c/3414
5690 * doc/extend.texi: Clarify definition of malloc attribute.
5691
5692 2004-01-04 Jan Hubicka <jh@suse.cz>
5693
5694 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
5695 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
5696 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
5697 (cgraph_inline_p): Add extra argument reason.
5698 * cgraphunit.c: Minor formating fixes.
5699 cgraph_first_inlined_callee): New functions.
5700 (record_call_1): Record builtins too.
5701 (cgraph_analyze_function): Update inline_failed messages.
5702 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
5703 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
5704 (cgraph_check_inline_limits): Likewise; Add argument reason.
5705 (cgraph_set_inline_failed): New static function.
5706 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
5707 reasons.
5708 (cgraph_inline_p): Add new argument reason.
5709 * tree-inline.c (expand_call_inline): Update warning.
5710
5711 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
5712
5713 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
5714 with modern equivalents.
5715 * configure: Regenerate.
5716
5717 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
5718 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
5719 * configure: Regenerate.
5720
5721 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
5722
5723 * configure.in: Rename to configure.ac.
5724 * configure.ac: Renamed from configure.in; make minimum necessary
5725 changes for autoconf 2.5x.
5726 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
5727 * configure: Regenerate with autoconf 2.57.
5728
5729 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
5730
5731 * config/mips/linux.h: Fix comment formatting.
5732 * config/mips/mips.c: Likewise.
5733 * config/mips/mips.h: Likewise.
5734 * config/mips/mips.md: Likewise.
5735 * config/mips/netbsd.h: Likewise.
5736 * config/mips/windiss.h: Likewise.
5737
5738 2004-01-02 Richard Henderson <rth@redhat.com>
5739
5740 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
5741 for sse and 387; add suppression for mmx.
5742
5743 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
5744
5745 * loop.c (loop_optimize): Free all loops_info's mems.
5746
5747 * c-typeck.c (finish_init): Free spelling_base before
5748 setting it again.
5749
5750 * cfgloop.c (flow_loops_find): Always free the sbitmap
5751 headers.
5752
5753 * predict.c (estimate_probability): Free bbs after being
5754 done with it.
5755
5756 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
5757
5758 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
5759 const_8bit_operand and call_address_operand.
5760
5761 2004-01-02 Jan Hubicka <jh@suse.cz>
5762
5763 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
5764 when there is nothing to inline but warnings are requested.
5765 (cgraph_decide_inlining): Fix memory leak.
5766
5767 2004-01-02 Jan Hubicka <jh@suse.cz>
5768
5769 * expr.c (store_constructor): Fix pasto in previous patch.
5770
5771 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
5772
5773 * config/i386/cygming.h: Fix comment formatting.
5774 * config/i386/djgpp.h: Likewise.
5775 * config/i386/gthr-win32.c: Likewise.
5776 * config/i386/i386-interix.h: Likewise.
5777 * config/i386/i386.c: Likewise.
5778 * config/i386/i386.h: Likewise.
5779 * config/i386/openbsd.h: Likewise.
5780 * config/i386/winnt.c: Likewise.
5781 * config/i386/xm-mingw32.h: Likewise.
5782
5783 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
5784
5785 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
5786 copyright and last modification dates.
5787
5788 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
5789
5790 * doc/install.texi (Specific): Mention x86_64.
5791
5792 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5793
5794 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
5795 Call force_operand on plus_constant result.
5796
5797 2004-01-01 Jan Hubicka <jh@suse.cz>
5798
5799 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
5800 * expr.c (store_constructor): Use vec_init pattern.
5801 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
5802 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
5803 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
5804 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
5805 New patterns.
5806 (sse2_unpc?pd): Fix pattern.
5807 (sse2_movlpd): Kill.
5808 (sse2_movsd): Deal with movlpd too.
5809 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
5810 (ix86_expand_vector_init): New.
5811 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
5812 * md.texi (vec_set, vec_extract): Document
5813
5814 2003-12-31 Jan Hubicka <jh@suse.cz>
5815
5816 PR opt/13473
5817 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
5818 ASM input operands
5819
5820 PR opt/12617
5821 * toplev.c (dump_file_index): Reorder ce3 and bbro.
5822 (dump_file): Likewise.
5823 (rest_of_compilation): Likewise.
5824
5825 PR debug/13367
5826 * cgraph.c (cgraph_function_possibly_inlined): Even with
5827 flag_really_no_inline we inline always_inline functions.
5828 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
5829 for non-always_inline functions when there is flag_really_no_inline.
5830 (cgraph_decide_inlining): Limit work done when not inlining.
5831 (cgraph_decide_inlining_incrementally): Likewise.
5832 (cgraph_optimize_function): Check whether something got inlined.
5833 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
5834 extern inline functions when not inlining.
5835
5836 * opts.c (decode_options): Disable crossjumping at -O1
5837 * invoke.texi (-O1): Document change.
5838
5839 See ChangeLog.10 for earlier changes.