Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and $(SYSTEM_H).
[gcc.git] / gcc / ChangeLog
1 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
4 $(SYSTEM_H).
5 (print-rtl1.o): Depend on $(SYSTEM_H).
6
7 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
8
9 PR bootstrap/12730
10 * configure.ac: Delete definition and subsitution of docdir.
11 Add info, man, srcman and srcinfo to target hooks. Create doc/
12 directory.
13 * configure: Regenerate.
14 * Makefile.in: Don't substitute docdir and delete all references
15 throughout.
16 (MAKEINFOFLAGS): Define.
17 (stmp-docobjdir): Delete.
18 (INFOFILES, MANFILES): Define.
19 (info): Call lang.info, srcinfo and lang.srcinfo.
20 (generated-manpages): Call lang.man, srcman and lang.srcman.
21 (srcinfo, srcman): New rules to copy back files to source directory.
22 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
23 (install-man): Revamp rule.
24 (clean): Update dvi directory.
25 (distclean): Delete TAGS from front end directorys.
26 (maintainer-clean): Delete all document files in source directory.
27
28 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
29 (objc.srcman, objc.srcinfo): Likewise.
30
31 2004-01-20 Bruce Korb <bkorb@gnu.org>
32
33 * fixinc/inclhack.def(math_exception): bypass only for glibc.
34 (matherr_decl): rename & relocate as exception_structure.
35 This fix must precede the math_exception fix.
36
37 2004-01-20 Roger Sayle <roger@eyesopen.com>
38
39 * fold-const.c (fold_convert): Rename to fold_convert_const.
40 (fold_convert_const): Change arguments to take a tree_code,
41 a type and the operand/expression to be converted. Return
42 NULL_TREE if no simplification is possible. Add support for
43 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
44 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
45 Adjust call to fold_convert to match new fold_convert_const.
46 Avoid modifying the tree passed to fold in-place.
47
48 2004-01-21 Alan Modra <amodra@bigpond.net.au>
49
50 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
51 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
52 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
53
54 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
55
56 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
57 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
58 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
59 (emit_move_sequence): Check scratch_reg first in various if statements.
60 Extend source simplification to handle all 64-bit CONST_INTs.
61 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
62 frame size.
63 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
64 frame offset calculations.
65 * pa.h (NEW_HP_ASSEMBLER): Add comment.
66 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
67 LEGITIMATE_64BIT_CONST_INT_P): Define.
68 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
69 any CONST_INT as legitimate during and after reload.
70 (VAL_32_BITS_P, INT_32_BITS): Define.
71 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
72
73 2004-01-20 Jan Hubicka <jh@suse.cz>
74
75 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
76 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
77 containing hard regs are shared.
78 (gen_hard_reg_clobber): New function.
79 (hard_reg_clobbers): New array.
80 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
81 (copy_rtx): Do not copy clobbers containing hard regs.
82 * rtl.h (gen_hard_reg_clobber): Declare.
83
84 2004-01-20 Jan Hubicka <jh@suse.cz>
85
86 * varray.c: Include hashtab.h
87 (varray_descriptor): New structure.
88 (hash_descriptor, eq_descriptor, varray_descriptor,
89 print_statistics): New static functions
90 (varray_init, varray_grow): Update statistics
91 (dump_varray_statistics): New function.
92 * varray.h (dump_varray_statistics): Declare.
93 * toplev.c (finalize): Call it.
94 * Makefile.in (varray.o): Add dependency.
95
96 2004-01-20 Jan Hubicka <jh@suse.cz>
97
98 * cselib.c: Include alloc-pool.h
99 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
100 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
101 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
102 unchain_one_elt_loc_list_pool, unchain_one_value,
103 new_cselib_val): Simplify using allocpool.
104 (cselib_init): Initialize allocpools.
105 (cselib_finish): Finish allocpools.
106 * Makefile.in (cselib.o): Depend on alloc-pool.h
107
108 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
109
110 * config/mips/mips.c (mips_load_call_address): Make the call insn
111 use $gp if it could be calling a lazy binding stub.
112
113 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
114
115 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
116 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
117 (TARGET_STRUCT_VALUE_RTX): Likewise.
118 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
119 (PROMOTE_FUNCTION_RETURN): Remove.
120 (STRUCT_VALUE): Remove.
121
122 2004-01-20 Denis Chertykov <denisc@overta.ru>
123
124 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
125 register as pointer after reload.
126
127 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
128
129 PR optimization/12440
130 * loop.c: Include ggc.h.
131 (loop_optimize): Run garbage collector between optimization of loops.
132 * Makefile.in (loop.o): Add GGC_H dependency.
133
134 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
135
136 * gcc/config/rs6000/rs6000.c (function_arg) Handle
137 vector register special in function without prototype.
138 (function_arg_advance): Vector parameters get always
139 GPRs allocated for the linux64 target.
140
141 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
142
143 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
144 not TARGET_M32RX_MASK.
145
146 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
147
148 PR target/13557
149 * config/sparc/sparc.c (function_arg): Reorder the cases.
150
151 2004-01-19 Per Bothner <per@bothner.com>
152
153 Move cpp_reader's line_maps field to a shared global.
154 * cpphash.h (cpp_reader): Rename line_maps field to line_table
155 and change the type to a pointer rather than a struct.
156 * cppinit.c (cpp_push_main_field): Adjust accordingly.
157 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
158 Likewise.
159 * cppfiles.c (validate_pch): Likewise.
160 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
161 Likewise.
162 * cpperror.c (print_location): Likewise.
163 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
164 * cppinit.c (cpp_create_reader): Handle new parameter.
165 (cpp_destroy): Don't free line_maps - that's no longer our job.
166 * input.h (line_table): New variable.
167 * toplev.c (line_table): Declare variable.
168 (general_init): Initialize line_table.
169 * c-opts.c (c_common_init_options): Pass line_table to
170 cpp_create_reader.
171 * fix-header.c (read_scan_file): New local variable line_table.
172 Initialize, and pass it to cpp_create_reader.
173 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
174 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
175
176 2004-01-19 Per Bothner <per@bothner.com>
177
178 Implement a cache for linemap_lookup.
179 * line-map.h (struct_line_maps): Add cache field.
180 * line-map.c (linemap_init): Zero cache field.
181 (linemap_add): Set cache field to offset of newly allocated map.
182 (linemap_lookup): Use and set cache field.
183
184 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
185
186 PR optimization/13567
187 * cse.c (cse_basic_block): Call cse_insn with a non-null
188 libcall_insn for the last SET insn of a no-confilict block.
189
190 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
191
192 * Makefile.in (target_noncanonical, program_transform_name): Use
193 immediate define instead of deferred.
194 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
195 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
196 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
197 deferred backquote.
198
199 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
200
201 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
202 true unconditionally.
203 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
204 Remove.
205 (build_unary_op, build_modify_expr): Don't handle extended
206 lvalues.
207 (build_component_ref, build_conditional_expr): Call non_lvalue
208 instead of pedantic_non_lvalue.
209 (build_c_cast): Don't condition use of non_lvalue on pedantic.
210 * fold-const.c (fold): Don't check pedantic directly for
211 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
212 passed to pedantic_non_lvalue.
213 * doc/extend.texi: Remove documentation of extended lvalues.
214
215 2004-01-19 Roger Sayle <roger@eyesopen.com>
216
217 PR optimization/5263
218 * simplify-rtx.c (associative_constant_p): Delete.
219 (simplify_associative_operation): Rewrite to linearize terms, and
220 attempt to simplify new term against both left and right subterms.
221 (simplify_binary_operation): Call swap_commutative_operands_p on
222 op0 and op1, not trueop0 and trueop1. Move the initialization of
223 trueop0 and trueop1 down to where first needed.
224 (simplify_relational_operation): Likewise.
225 * rtlanal.c (commutative_operand_precedence): Also order constant
226 operands using avoid_constant_pool_reference.
227
228 2004-01-19 Richard Henderson <rth@redhat.com>
229
230 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
231 don't check memory mode.
232 (unaligned_memory_operand): Likewise.
233 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
234 abort for op0 not MEM.
235
236 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
237 is not a reg, copy to a scratch first.
238 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
239 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
240 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
241 (reload_inqi, reload_inhi): Fix mode of op0.
242 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
243 reload_outhi_help): Likewise. Use define_insn_and_split.
244
245 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
246 as well as $29 dead.
247
248 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
249
250 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
251 "tls_object" for thread-local objects.
252 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
253 "#tls" for thread-local sections.
254 * configure.ac (thread-local checks): Specify --fatal-warnings in
255 every binutils-specific checks. For sparc*-*-*, test whether the
256 OS is Solaris and the tools are native and act accordingly.
257 * configure: Rebuild.
258
259 2004-01-19 Jeff Law <law@redhat.com>
260
261 * contrib.texi: Update Paolo Carlini's entry. New entries for
262 Jerry Quinn and Petur Runolfsson.
263
264 2004-01-19 Roger Sayle <roger@eyesopen.com>
265
266 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
267 size, don't use the larger zero-extending loads.
268
269 2004-01-19 Richard Henderson <rth@redhat.com>
270
271 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
272 * alpha.md (UNSPEC_NT_LDA): Remove.
273 (UNSPEC_CVTLQ, cvtlq): New.
274 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
275 (extendsidi2_fix): Remove.
276 (extendsidi2 splitter): Use cvtlq.
277 (extendsidi2 fp peepholes): Remove.
278 (cvtql): Use SFmode instead of SImode.
279 (fix_trunc?fsi): Update to match.
280 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
281 (movsi): Rename from movsi_nofix, remove f alternatives.
282 (movsi_nt_vms): Similarly.
283 (movsi_fix, movsi_nt_vms_fix): Remove.
284 (nt_lda): Remove.
285 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
286
287 2004-01-19 Jan Hubicka <jh@suse.cz>
288
289 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
290 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
291 list.
292 (cgraph_remove_unreachable_nodes): New function
293 (cgraph_decide_inlining_of_small_function): Fix pasto.
294 (cgraph_decide_inlining_incrementally): Fix pasto.
295 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
296
297 2004-01-19 Steven Bosscher <stevenb@suse.de>
298
299 * gengtype.c (header_file): Make it static.
300 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
301 * gengtype.h (header_file): No longer extern.
302
303 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
304
305 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
306 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
307 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
308
309 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
310
311 * stmt.c (HAVE_casesi): Define it not already defined.
312 (HAVE_tablejump): Likewise.
313 (expand_end_case_type): Resort to the binary tree method if
314 neither casesi or tablejump is available.
315
316 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
317
318 * final.c (final_scan_insn): Make non-static again.
319 * output.h (final_scan_insn): Re-add prototype.
320 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
321 to final_scan_insn call.
322 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
323 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
324 * config/pa/pa.c (output_lbranch, output_call): Likewise.
325 * config/sh/sh.c (print_slot): Likewise.
326 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
327 (output_sibcall, sparc_flat_function_epilogue): Likewise.
328
329 2004-01-18 Jan Hubicka <jh@suse.cz>
330
331 * basic-block.h (try_redirect_by_replacing_jump): Declare.
332 * cfgcleanup.c (try_optimize_cfg): Use it.
333 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
334 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
335 Kill hack.
336 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
337
338 Revert:
339 2004-01-16 Geoffrey Keating <geoffk@apple.com>
340
341 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
342 even after reload, just don't remove the actual jump tables.
343
344 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
345
346 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
347
348 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
349
350 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
351 the size of a pointer in bytes.
352
353 2004-01-18 Roger Sayle <roger@eyesopen.com>
354
355 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
356 live "next" variable, which could lead to an infinite loop.
357
358 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
359
360 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
361 block.
362
363 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
364 Check for NULL in the chain and remove repeated code.
365
366 2004-01-18 Jan Hubicka <jh@suse.cz>
367
368 * coverage.c (checksum_string): Rename to ...
369 (coverage_checksum_string): ... this one, Use crc32_string; recognize
370 names containing random number and zero the number out in order to get
371 match.
372
373 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
374
375 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
376
377 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
378
379 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
380 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
381 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
382 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
383 doc/trouble.texi: Remove trailing whitespace.
384
385 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
386
387 PR target/7618
388 * config/mips/mips.c: Include cfglayout.h.
389 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
390 (mips_unspec_offset_high): Add temporary register argument.
391 (mips_load_call_address): New function, split out from...
392 (mips_expand_call): ...here.
393 (mips_output_cplocal): New function.
394 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
395 (mips_emit_loadgp): New function, split out from...
396 (mips_expand_prologue): ...here.
397 (mips_output_mi_thunk): New function.
398
399 2004-01-17 Bernardo Innocenti <bernie@develer.com>
400
401 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
402 mcpu32): Remove redundant checks for implied target predefines.
403
404 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
405
406 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
407 Return type is unsigned int not int.
408 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
409 Likewise.
410
411 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
412
413 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
414 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
415 "GNU/Linux" and "Microsoft Windows" terminology.
416
417 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
418
419 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
420 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
421 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
422 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
423 @smallexample instead of @example.
424
425 2004-01-17 Ziemowit Laski <zlaski@apple.com>
426
427 * objc/objc-act.c (build_objc_method_call): Use target
428 hooks instead of macros to determine if ..._stret
429 dispatchers should be used (NeXT runtime only).
430
431 2004-01-17 Roger Sayle <roger@eyesopen.com>
432
433 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
434 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
435
436 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
437
438 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
439 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
440 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
441 macros.
442 * reload1.c (emit_reload_insns): Use them.
443 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
444 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
445 for NULL PATTERN.
446
447 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
448
449 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
450 (final_scan_insn): Update to take an additional SEEN argument. Emit
451 a line note after the prologue. Make static.
452 (line_note_exists): Remove.
453 (final): Don't initialize line_note_exists. Update call to
454 final_scan_insn.
455 * output.h (final_scan_insn): Remove prologue.
456 * function.c (set_insn_locators): Update comment.
457 (thread_prologue_and_epilogue_insns): Add a comment.
458
459 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
460
461 PR target/10781
462 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
463 Prototype.
464 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
465 New function.
466 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
467 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
468 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
469
470 2004-01-17 Jan Hubicka <jh@suse.cz>
471
472 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
473 commit.
474
475 * toplev.c (HAVE_conditional_execution): Provide default.
476 (rest_of_handle_reorder_blocks): For conditional_execution target
477 update liveness once after all transformations
478 (rest_of_compilation): Do crossjumping before ce3.
479
480 2004-01-17 Geoffrey Keating <geoffk@apple.com>
481
482 * alias.c (new_alias_set): Mark last_alias_set for PCH.
483 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
484 for PCH.
485 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
486 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
487 (get_TOC_alias_set): Mark 'set' for PCH.
488
489 2004-01-16 Geoffrey Keating <geoffk@apple.com>
490
491 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
492 even after reload, just don't remove the actual jump tables.
493
494 2004-01-17 J. Brobecker <brobecker@gnat.com>
495
496 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
497 Remove checks for is_ada() and TREE_UNSIGNED.
498 (subrange_type_die): Emit a byte_size attribute if the subrange
499 type size is different from the base type size.
500 (modified_type_die): Replace call to is_ada_subrange_type() by
501 call to is_subrange_type().
502
503 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
504
505 * config/sh/sh.c: Include ggc.h.
506
507 2004-01-16 Geoffrey Keating <geoffk@apple.com>
508
509 * Makefile.in (MD5_H): New.
510 (fold-const.o): Depend on md5.h.
511 (dwarf2out.o): Likewise.
512 (cppfiles.o): Likewise.
513 * cppfiles.c: Include md5.h.
514 (should_stack_file): Check against list read from PCH file.
515 (struct pchf_data): New.
516 (pchf): New variable.
517 (struct pchf_adder_info): New.
518 (pchf_adder): New.
519 (pchf_save_compare): New.
520 (_cpp_save_file_entries): New.
521 (_cpp_read_file_entries): New.
522 (struct pchf_compare_data): New.
523 (pchf_compare): New.
524 (check_file_against_entries): New.
525 * cpphash.h (_cpp_save_file_entries): Prototype.
526 (_cpp_read_file_entries): Prototype.
527 * cpppch.c (cpp_write_pch_state): Write the list of headers.
528 (cpp_read_state): Read the list of headers.
529
530 2004-01-17 Jan Hubicka <jh@suse.cz>
531
532 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
533 builtin_expect specially.
534 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
535 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
536 * invoke.texi (max-inline-insns-single): Set to 100.
537 (large-function-insns): Set to 3000.
538
539 2004-01-16 Eric Christopher <echristo@redhat.com>
540 Chandrakala Chavva <cchavva@redhat.com>
541
542 * cppcharset.c (one_iso88591_to_utf8): New function.
543 (convert_iso88591_utf8): Ditto. Use.
544 (conversion_tab): Use.
545 (_cpp_input_to_utf8): New function.
546 (_cpp_init_iconv_buffer): Ditto.
547 (_cpp_close_iconv_buffer): Ditto.
548 * cpphash.h: Prototype new functions.
549 (cpp_buffer): Add input_cset_desc.
550 * cppinit.c: Add input_charset default.
551 * cpplib.c (cpp_push_buffer): Support init and
552 close of iconv.
553 * cpplib.h (cpp_options): Add input_charset.
554
555 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
556
557 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
558 * config/alpha/unicosmk.h: Remove a commented-out definition
559 of ASM_OUTPUT_SECTION_NAME.
560 * config/stormy16/stormy16.h: Likewise.
561
562 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
563
564 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
565 (alpha___extern_prefix_sys_stat): ... this.
566 Apply to <sys/mount.h>, too.
567 Tweak to match more variations.
568 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
569
570 * fixinc/inclhack.def (alpha___extern_prefix,
571 alpha___extern_prefix_standards): New hacks to obey
572 __PRAGMA_EXTERN_PREFIX.
573 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
574 test.
575 * fixinc/tests/base/standards.h: Likewise.
576
577 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
578 variations.
579 New testcase.
580 * fixinc/tests/base/pthread.h: Handle it.
581
582 * fixincl/inclhack.def (bad_lval): Sort file list.
583 Add many missing files up to Tru64 UNIX V5.1B.
584 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
585 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
586 order.
587
588 * fixinc/fixincl.x: Regenerate.
589
590 2004-01-16 Mark Mitchell <mark@codesourcery.com>
591
592 * version.c (version_string): Change to 3.5.0.
593 * doc/include/gcc-common.texi (version-GCC): Likewise.
594
595 2004-01-16 Jan Hubicka <jh@suse.cz>
596
597 * i386.md (load_tp_di): Fix pasto.
598
599 PR opt/13608
600 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
601
602 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
603 pp_c_character_constant, pp_c_floating_constant,
604 pp_c_additive_expression, pp_c_shift_expression,
605 pp_c_equality_expression, pp_c_and_expression,
606 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
607 pp_c_logical_and_expression): Remove inline modifier.
608 * dwarf2out.c (get_AT): Likewise.
609 * et-forest.c (et_splay): Likewise.
610 * ra.h (ra_alloc, ra_calloc): Likewise
611
612 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
613
614 * config/frv/frv-protos.h: Fix comment formatting.
615 * config/frv/frv.c: Likewise.
616 * config/frv/frv.h: Likewise.
617 * config/frv/frv.md: Likewise.
618 * config/frv/frvbegin.c: Likewise.
619 * config/frv/frvend.c: Likewise.
620
621 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
622
623 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
624 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
625 LINKER_DOES_NOT_WORK_WITH_DWARF2.
626 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
627
628 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
629
630 PR 11864
631 * postreload.c (reload_cse_simplify_operands): Don't remove
632 implicit extension from LOAD_EXTEND_OP.
633
634 2004-01-16 Jan Hubicka <jh@suse.cz>
635
636 PR opt/11350
637 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
638 after reload.
639 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
640 rtl_try_redirect_by_replacing_branch): Likewise.
641
642 2004-01-15 Geoffrey Keating <geoffk@apple.com>
643
644 PR pch/13689
645 * alias.c (struct alias_set_entry): Mark for GC.
646 (alias_sets): Make static, mark for GC.
647 (record_alias_subset): Use GC to allocate alias structures.
648 * varray.c (element): Make generic varrays GCed.
649
650 PR pch/13361
651 * c-typeck.c (constructor_asmspec): Delete.
652 (struct initializer_stack): Delete field 'asmspec'.
653 (start_init): Delete saving of asmspec.
654 (finish_init): Don't update constructor_asmspec.
655 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
656 * stmt.c (expand_asm): Duplicate strings from tree.
657 (expand_asm_operands): Likewise.
658 * tree.c (tree_size): Update computation of size of STRING_CST.
659 (make_node): Don't make STRING_CST nodes.
660 (build_string): Allocate string with tree node.
661 * tree.def (STRING_CST): Update comment.
662 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
663 (tree_string): Place contents of string in tree node.
664 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
665 from tree.
666
667 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
668 altivec operands.
669
670 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
671
672 * c-common.h: Fix comment formatting.
673 * c-cppbuiltin.c: Likewise.
674 * c-pragma.c: Likewise.
675 * calls.c: Likewise.
676 * collect2.c: Likewise.
677 * cppcharset.c: Likewise.
678 * cpptrad.c: Likewise.
679 * dbxout.c: Likewise.
680 * defaults.h: Likewise.
681 * dwarf2out.c: Likewise.
682 * fold-const.c: Likewise.
683 * genautomata.c: Likewise.
684 * genconditions.c: Likewise.
685 * genflags.c: Likewise.
686 * gengtype.c: Likewise.
687 * integrate.c: Likewise.
688 * loop.c: Likewise.
689 * predict.c: Likewise.
690 * sdbout.c: Likewise.
691
692 2004-01-15 Zack Weinberg <zack@codesourcery.com>
693
694 * config/ia64/ia64.md (*movti_internal): C output template
695 extracted to ia64.c.
696 (*movti_internal_reg): Delete.
697 (reload_inti, reload_outti): Use the correct mode on operand 2
698 in the first place, don't fix it up in the output template.
699 (movtf, reload_ointf, reload_outtf): New expanders.
700 (*movtf_internal): New define_insn_and_split.
701 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
702 make static; do not hand TFmode CONST_DOUBLEs to split_double.
703 (ia64_split_tmode_move): New function, body mostly pulled
704 from ia64.md:*movti_internal.
705 (ia64_function_arg_words): New function, extracted common
706 logic from ia64_function_arg et seq.
707 (ia64_function_arg_offset): Likewise. Handle correctly the
708 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
709 (ia64_function_arg, ia64_function_arg_partial_nregs)
710 (ia64_function_arg_advance): Use ia64_function_arg_words and
711 ia64_function_arg_offset.
712 (ia64_function_value): TCmode does not go in float regs.
713 (ia64_secondary_reload_class): Also handle TFmode.
714 * config/ia64/ia64-protos.h: Remove prototype for
715 ia64_split_timode; add prototype for ia64_split_tmode_move.
716
717 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
718
719 * Makefile.in (MAINT): Make it an immediate assignment.
720
721 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
722
723 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
724
725 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
726
727 * config/h8300/coff.h: Replace Hitachi with Renesas.
728 * config/h8300/elf.h: Likewise.
729 * config/h8300/h8300-protos.h: Likewise.
730 * config/h8300/h8300.c: Likewise.
731 * config/h8300/h8300.h: Likewise.
732 * config/h8300/h8300.md: Likewise.
733 * config/h8300/lib1funcs.asm: Likewise.
734
735 2004-01-15 Andrew Pinski <apinski@apple.com>
736
737 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
738 around it.
739
740 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
741
742 * config/h8300/h8300.c (h8300_return_in_memory): New.
743 (TARGET_STRUCT_VALUE_RTX): Likewise.
744 (TARGET_RETURN_IN_MEMORY): Likewise.
745 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
746 (RETURN_IN_MEMORY): Likewise.
747
748 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
749
750 PR optimization/13375
751 * gcse.c (handle_avail_expr): Just return if the source is not a
752 single set.
753
754 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
755 Daniel Jacobowitz <drow@mvista.com>
756
757 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
758 (EQUIV): Define.
759 (ARM_FUNC_ALIAS): New macro.
760 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
761 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
762
763 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
764
765 PR optimization/12372
766 * calls.c (expand_call): Add call_fusage data for stack arguments in
767 constant calls.
768
769 2004-01-15 Alan Modra <amodra@bigpond.net.au>
770
771 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
772 (rs6000_elf_declare_function_name): Formatting.
773 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
774
775 2004-01-15 Jan Hubicka <jh@suse.cz>
776
777 PR bootstrap/13692
778 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
779 previous patch.
780
781 2004-01-15 Richard Henderson <rth@redhat.com>
782
783 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
784 integer regs of the same call-savedness.
785
786 2004-01-15 Andreas Schwab <schwab@suse.de>
787
788 PR bootstrap/13562
789 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
790 status for NOTB/NOTW/NEGW methods.
791
792 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
793
794 * doc/invoke.texi: Update dump file names. Fix a typo.
795
796 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
797
798 * builtins.c (expand_builtin_va_end): Don't use
799 EXPAND_BUILTIN_VA_END.
800 * system.h (EXPAND_BUILTIN_VA_END): Poison.
801 * config/d30v/d30v.h: Remove a commented-out definition of
802 EXPAND_BUILTIN_VA_END.
803 * config/stormy16/stormy16.h: Likewise.
804
805 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
806
807 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
808 * targhooks.c (default_struct_value_rtx): Don't use
809 STRUCT_VALUE_INCOMING_REGNUM.
810
811 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
812
813 PR bootstrap/12744
814 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
815 GENINSRC and not parsedir. Define srcextra as a langhook.
816 * configure: Regenerate.
817 * Makefile.in: Suppress default .l.c rule. Don't substitute
818 parsedir and delete all references throughout. Conditionally define
819 rule for srcextra dependent on GENINSRC.
820 (stmp-docobjdir): Delete.
821 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
822 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
823 and gengtype-yacc.h back to source directory.
824 (maintainer-clean): Delete all parse files in source directory.
825 (distclean): Delete generated files.
826
827 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
828 (objc-parse.c, objc-parse.y): Don't use parsedir.
829 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
830 directory if requested.
831 (po-generated): Don't use parsedir.
832 (objc.maintainer-clean): Delete above files from source directory.
833
834 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
835
836 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
837
838 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
839
840 * doc/tm.texi: Replace RETURN_IN_MEMORY with
841 TARGET_RETURN_IN_MEMORY.
842
843 2004-01-15 Jan Hubicka <jh@suse.cz>
844
845 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
846 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
847 functions accepting SSE arguments
848 (function_arg): Warn only when asked to warn.
849 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
850
851 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
852
853 * c-parse.in (stmts_and_decls): Make label at end of compound
854 statement a hard error.
855
856 2004-01-14 Jan Hubicka <jh@suse.cz>
857
858 * cgraph.c (create_edge): Use local.redefined_extern_inline.
859 * cgraph.h (cgraph_local_info): Sort fields by size; add
860 redefined_extern_inline
861 (cgraph_global_info): Sort fields by size.
862 (cgraph_node): Likewise.
863 * cgraphunit.c (cgraph_finalize_function): Se
864 local.redefined_extern_inline on redefinition.
865 (cgraph_analyze_function): Use it; fix formating.
866
867 2004-01-14 Jan Hubicka <jh@suse.cz>
868
869 PR c++/10776
870 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
871 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
872 bitmaps
873 (cache_size): New variable
874 (add_dependence): Update use; canonize early memory locations
875 (sched_analyze_1): Likewise.
876 (sched_analyze_2): Likewise.
877 (init_dependency_caches): Initialize bitmaps.
878 (free_dependency_caches): Free bitmaps
879
880 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
881
882 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
883 targetm.calls.strict_argument_naming().
884 * target.h: Likewise.
885
886 2004-01-14 Richard Henderson <rth@redhat.com>
887
888 PR debug/13231
889 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
890 instructions.
891
892 2004-01-14 Richard Henderson <rth@redhat.com>
893
894 PR c++/12491
895 * except.c (struct eh_region): Add u.fixup.resolved.
896 (resolve_one_fixup_region): Split out from ...
897 (resolve_fixup_regions): ... here.
898
899 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
900
901 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
902
903 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
904
905 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
906 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
907 (STRUCT_VALUE): Remove.
908
909 2004-01-14 Steven Bosscher <stevenb@suse.de>
910
911 * system.h: Poison PROMOTED_MODE
912 * integrate.c (expand_inline_function): Don't mention the
913 PROMOTED_MODE.
914 * loop.c (update_giv_derive): Same.
915 * tree.h (DECL_RTL): Same.
916
917 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
918
919 PR target/9365
920 * sh.c (gen_block_redirect): Add special handling of RETURN.
921 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
922 far branch target (i.e. it's a return).
923
924 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
925
926 * regrename.c (find_oldest_value_reg): Fix a warning.
927
928 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
929
930 PR bootstrap/12527
931 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
932 Move linux-gas.h and linux-elf.h before aout.h.
933 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
934 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
935
936 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
937
938 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
939 (CONST_INT, VOIDmode, ...).
940
941 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
942
943 * regrename.c (find_oldest_value_reg): If the replacement uses
944 multiple hard registers, check that all of them are in CLASS.
945
946 2004-01-14 Jan Hubicka <jh@suse.cz>
947
948 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
949 impossible.
950
951 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
952
953 * Makefile.in: Define MAINT from --enable-maintainer-mode.
954
955 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
956
957 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
958 Calculate always vrsave_mask if TARGET_ALTIVEC.
959 (rs6000_emit_prologue): Emit code for vrsave
960 only if TARGET_ALTIVEC_VRSAVE.
961 (rs6000_emit_epilogue): Likewise.
962
963 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
964
965 * config/sparc/sparc.md (tie_add32): Fix pasto.
966 (tie_add64): Likewise.
967
968 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
969
970 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
971
972 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
973
974 * config/iq2000/iq2000-protos.h: Fix comment formatting.
975 * config/iq2000/iq2000.c: Likewise.
976 * config/iq2000/iq2000.md: Likewise.
977
978 2004-01-14 J. Brobecker <brobecker@gnat.com>
979
980 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
981 (subrange_type_die): Add handle for nameless subrange types.
982
983 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
984
985 * config/h8300/h8300-protos.h: Replace do_movsi with
986 h8300_expand_movsi.
987 * config/h8300/h8300.c (do_movsi): Change to
988 h8300_expand_movsi.
989 * config/h8300/h8300.md (movsi): Replace do_movsi with
990 h8300_expand_movsi.
991 (movsf): Likewise.
992
993 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
994
995 * config/h8300/h8300.c (dosize): Change to
996 h8300_emit_stack_adjustment. Update callers.
997
998 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
999
1000 * config/h8300/h8300.md (movstrictqi): Add an alternative with
1001 the source being post_inc. Tighten the predicate for the
1002 destination to register_operand.
1003 (movstricthi): Likewise.
1004
1005 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
1006
1007 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
1008 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
1009 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
1010
1011 2004-01-14 Jan Hubicka <jh@suse.cz>
1012
1013 Partial fix PR c++/12850
1014 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
1015 at zero nest level.
1016
1017 2004-01-13 Bernardo Innocenti <bernie@develer.com>
1018
1019 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
1020 pseudo-register.
1021
1022 2004-01-13 Devang Patel <dpatel@apple.com
1023
1024 PR debug/7078
1025 * dbxout.c (dbxout_symbol_name): Emit mangled names for
1026 NAMESPACE_DECL memebers.
1027
1028 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
1029
1030 PR c++/12709
1031 * c-common.c (finish_fname_decls): Use the chain only if the
1032 tree is an expr_stmt.
1033
1034 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
1035
1036 * rtl.def: Add comment about new option in automata_option.
1037
1038 * genautomata.c (PROGRESS_OPTION): New macro.
1039 (progress_flag): New global variable.
1040 (gen_automata_option): Process `progress'.
1041 (transform_insn_regexps, check_unit_distributions_to_automata,
1042 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
1043 expand_automata, write_automata): Print about the progress only if
1044 progress_flag. Remove fflush.
1045 (initiate_automaton_gen): Process command line flag `-progress'.
1046
1047 * doc/md.texi: Describe the new option.
1048
1049 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1050
1051 * cfg.c (dump_bb): Dump entry edges.
1052
1053 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
1054
1055 * arm.c (thumb_legitimate_address_p): Only allow constant pool
1056 references from SImode.
1057 * arm.md (thumb_movhi_insn): Don't allow minipool references.
1058
1059 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
1060
1061 * system.h (TEXT_SECTION): Poison.
1062 * varasm.c (text_section): Don't use TEXT_SECTION.
1063 * config/sh/sh.c (sh_file_start): Fix a comment typo.
1064 * doc/tm.texi (TEXT_SECTION): Remove.
1065
1066 2004-01-13 Ben Elliston <bje@wasabisystems.com>
1067
1068 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
1069
1070 2004-01-12 James E Wilson <wilson@specifixinc.com>
1071
1072 * unwind-libunwind.c: Delete.
1073
1074 2004-01-12 Zack Weinberg <zack@codesourcery.com>
1075
1076 PR 13656
1077 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
1078 oldtype is set, set *newtypep or *oldtypep too. Do not set
1079 them at the very end.
1080 (validate_proto_after_old_defn): Restructure for comprehensibility;
1081 make error messages clearer.
1082
1083 2004-01-12 Zack Weinberg <zack@codesourcery.com>
1084
1085 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
1086 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
1087 * varray.c: No need to prototype error.
1088 (varray_check_failed): Wrap long string onto two lines.
1089 (varray_underflow): New function.
1090
1091 2004-01-13 Steven Bosscher <stevenb@suse.de>
1092
1093 PR c++/13376
1094 * function.h (struct function): Kill `name' field.
1095 (current_function_name): Make it an extern function.
1096 * function.c (current_function_name): New function.
1097 * graph.c: Update all uses of current_function_name.
1098 * gcse.c: Likewise.
1099 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
1100 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
1101 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
1102 instead of a strcmp with "main".
1103
1104 2004-01-13 Jan Hubicka <jh@suse.cz>
1105
1106 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
1107
1108 * cgraphunit.c (cgraph_optimize_function): Always do
1109 optimize_inline_calls when there is always_inline callee.
1110 (cgraph_decide_inlining): Fix formating.
1111 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
1112 functions.
1113 (expand_call_inline): Likewise.
1114 * toplev.h (sorry): Fix prototype.
1115
1116 2004-01-12 Roger Sayle <roger@eyesopen.com>
1117
1118 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
1119 conditional jumps that drop through to unconditional jumps or the
1120 end of the sequence.
1121
1122 2004-01-13 Jan Hubicka <jh@suse.cz>
1123
1124 * alias.c (new_alias_set): Construct the alias_set varray.
1125 (init_alias_once): Don't do it here.
1126
1127 2004-01-12 Marc Espie <espie@openbsd.org>
1128
1129 * system.h: handle YYBYACC like YYBISON.
1130
1131 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
1132
1133 PR target/10847
1134 * config.gcc: No longer includes conflicting header sparc/sol2.h when
1135 building on sparc64-*-openbsd*.
1136
1137 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
1138
1139 PR debug/13539
1140 * dbxout.c (dbxout_type): Protected inheritance is not
1141 private but protected.
1142
1143 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
1144
1145 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
1146
1147 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
1148
1149 PR optimization/12508.
1150 * combine.c (try_combine): Remove a dead set in a parallel
1151 even if its destination is a subreg.
1152
1153 Revert:
1154 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
1155 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
1156 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
1157
1158 2004-01-12 Geoffrey Keating <geoffk@apple.com>
1159
1160 * real.c: Update copyright date.
1161 * emit-rtl.c: Likewise.
1162 * rtl.h: Likewise.
1163 * dwarf2out.c: Likewise.
1164 * config/rs6000/darwin-ldouble.c: Likewise.
1165 * config/rs6000/rs6000.md: Likewise.
1166
1167 2004-01-12 David Edelsohn <edelsohn@gnu.org>
1168
1169 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
1170 TFmode to SImode libfuncs.
1171
1172 2004-01-12 Roger Sayle <roger@eyesopen.com>
1173
1174 PR middle-end/11397
1175 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
1176
1177 2004-01-12 Jan Hubicka <jh@suse.cz>
1178
1179 PR opt/12826
1180 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
1181 stored.
1182
1183 PR opt/12863
1184 * cfgcleanup.c (label_is_jump_target_p): Move to...
1185 * rtlanal.c (label_is_jump_target_p): ... here.
1186 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
1187 edges unified with branch edges.
1188
1189 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
1190
1191 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
1192 high word of an integral CONST_DOUBLE.
1193
1194 2004-01-12 Paul Brook <paul@codesourcery.com>
1195
1196 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
1197
1198 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
1199
1200 PR target/13585
1201 * sh-protos.h (check_use_sfunc_addr): Declare.
1202 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
1203 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
1204
1205 2004-01-12 Jan Hubicka <jh@suse.cz>
1206
1207 * alias.c: Invlude varray.h
1208 (alias_sets): Turn into varray.
1209 (get_alias_set_entry): Use VARRAY; mark inline.
1210 (mems_in_disjoint_alias_sets_p): Mark inline.
1211 (record_alias_subset): Use varray.
1212 (init_alias_once): Initialize varray.
1213 (new_alias_set): Grow array.
1214 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
1215
1216 2004-01-12 Jan Hubicka <jh@suse.cz>
1217
1218 Partial fix for PR opt/10776 II
1219 * cselib.c: Include params.h
1220 (cselib_invalidate_mem): Limit amount of nonconflicting memory
1221 locations.
1222 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
1223 * Makefile.in (cselib.o): Depend on params.h
1224
1225 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
1226
1227 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
1228 simplify_unary_operation if the operand has a known mode.
1229
1230 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
1231
1232 PR target/13534
1233 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
1234 predicate to handle 'ld' conform addresses.
1235 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
1236 contraint.
1237 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
1238 are memory contraints.
1239 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
1240 New prototype.
1241 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
1242 Change 'o' to 'Y' constraint.
1243 (*movdf_softfloat64): Ditto.
1244
1245 2004-01-12 Bernardo Innocenti <bernie@develer.com>
1246
1247 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
1248 brace-enclosed syntax in all C output statements.
1249
1250 2004-01-12 David Edelsohn <edelsohn@gnu.org>
1251
1252 PR target/13401
1253 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1254 Objective-C language type value is 14.
1255
1256 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
1257
1258 PR c/12148
1259 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
1260 `int' in a number of places to make sure we always have a SImode
1261 and not a HImode. Add a 'L' suffix to a number of constants.
1262
1263 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1264
1265 * pa.c: Don't include obstack.h.
1266
1267 * pa.md: Correct constraint in pattern for loading PIC label address.
1268
1269 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
1270
1271 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
1272 before defining.
1273
1274 2004-01-11 Steven Bosscher <stevenb@suse.de>
1275
1276 PR fortran/9972
1277 * toplev.c (rest_of_handle_inline): Also consider functions
1278 for deferral if the language is GNU F77.
1279
1280 2004-01-11 Zack Weinberg <zack@codesourcery.com>
1281
1282 * c-decl.c (diagnose_arglist_conflict): Add missing space to
1283 diagnostic messages.
1284
1285 2004-01-11 Jakub Jelinek <jakub@redhat.com>
1286
1287 PR middle-end/13392
1288 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
1289 to drop through label. Don't fall back to SCC even when conditional
1290 jump has not been found.
1291
1292 2004-01-11 Jan Hubicka <jh@suse.cz>
1293
1294 * invoke.texi: Fix syntax error in previous patch.
1295
1296 Partial fix for PR opt/10776
1297 * Makefile.in (reload.o): Include param.h
1298 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
1299 * reload.c: Include params.h.
1300 (find_equiv_reg): Work limiting check.
1301 * invoke.texi: Document.
1302
1303 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
1304
1305 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
1306 out-of-bounds accesses to string constants. Simplify mips16
1307 case accordingly.
1308
1309 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
1310
1311 PR optimization/13469
1312 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
1313 reload_cse_regs (-fnon-call-exceptions only).
1314
1315 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
1316
1317 * config/mcore/lib1.asm: Fix comment formatting.
1318 * config/mcore/mcore-elf.h: Likewise.
1319 * config/mcore/mcore.c: Likewise.
1320 * config/mcore/mcore.h: Likewise.
1321 * config/mcore/mcore.md: Likewise.
1322
1323 2004-01-10 Zack Weinberg <zack@codesourcery.com>
1324
1325 * c-decl.c (duplicate_decls): Break apart into...
1326 (diagnose_arglist_conflict, validate_proto_after_old_defn)
1327 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
1328 ... these new functions. Restructure for comprehensibility.
1329 Remove various archaic special cases. Always report the
1330 location of the previous declaration when a diagnostic is issued.
1331 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
1332 (match_builtin_function_types): Delete unnecessary forward declaration.
1333
1334 2004-01-10 Zack Weinberg <zack@codesourcery.com>
1335
1336 * genautomata.c (make_automaton, NDFA_to_DFA):
1337 Print progress bars with '.' characters instead of '*'.
1338 (build_automaton): Change notes to match.
1339
1340 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
1341
1342 * config/m32r/m32r.md: Use define_constants for unspec and
1343 unspec_volatile.
1344
1345 2004-01-10 Jan Hubicka <jh@suse.cz>
1346
1347 PR opt/11635
1348 * expr.c (expand_expr_real): More curefully expand union casts.
1349
1350 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
1351
1352 * config/m32r/m32r.md (flush_icache): Use 1 for
1353 unspec_volatile.
1354
1355 2004-01-10 David Edelsohn <edelsohn@gnu.org>
1356 James E Wilson <wilson@specifixinc.com>
1357
1358 PR debug/12860
1359 * dbxout.c (dbxout_symbol): Remove initialization of
1360 current_sym_code, current_sym_value, and current_sym_addr.
1361 (dbxout_symbol_location): Same.
1362 (dbxout_prepare_symbol): Zero current_sym_code,
1363 current_sym_value, and current_sym_addr.
1364
1365 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
1366
1367 * tree.c (get_unwidened): Reorder conditions so that the null pointer
1368 check is done first.
1369
1370 2004-01-09 Eric Christopher <echristo@redhat.com>
1371
1372 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
1373 if we're running mark_constant_function.
1374
1375 2004-01-09 Jeff Bailey <jbailey@nisa.net>
1376
1377 PR target/12561
1378 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
1379
1380 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
1381
1382 PR debug/11231
1383 * dbxout.c (dbxout_type_fields): Return if any item is
1384 error_mark_node or the type is error_mark_node.
1385
1386 2004-01-09 Geoffrey Keating <geoffk@apple.com>
1387
1388 * config/rs6000/darwin-ldouble.c: Add big comment explaining
1389 exactly what is expected as a 'long double'.
1390 (_xlqadd): When a value to be returned is representable as a
1391 'double', just return it directly, do not construct it using a union.
1392 Also, correct final fixup.
1393 (_xlqmul): Likewise.
1394 (_xlqdiv): Likewise.
1395 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
1396
1397 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
1398
1399 2004-01-09 Richard Henderson <rth@redhat.com>
1400
1401 * recog.c (constrain_operands): Validate mem operands.
1402
1403 2004-01-09 James E Wilson <wilson@specifixinc.com>
1404
1405 * gcc.c (init_spec): Remove -lunwind from shared case.
1406 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
1407
1408 2004-01-09 Steve Ellcey <sje@cup.hp.com>
1409
1410 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
1411 * configure: Regenerate
1412
1413 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
1414
1415 PR c/11234
1416 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
1417 between function and object pointers.
1418 (digest_init): When comparing a pointer to function type to the
1419 target type, only apply TREE_TYPE once to the pointer to function
1420 type.
1421 * except.c (for_each_eh_label_1): Treat data as a pointer to a
1422 function pointer rather than casting it to a function pointer.
1423 (for_each_eh_label): Update caller.
1424 * recog.h (struct insn_data): Use a struct or union for output.
1425 * genoutput.c (output_insn_data): Update.
1426 * final.c (get_insn_template): Update.
1427
1428 2004-01-09 Mark Mitchell <mark@codesourcery.com>
1429
1430 * expr.h (expand_expr): Make it a macro, not a function.
1431 (expand_expr_real): New function.
1432 * expr.c (store_expr): Adjust logic for deciding whether or not to
1433 copy the value returned by expand_expr.
1434 (expand_expr): Rename to ...
1435 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
1436 calls to language hooks.
1437 * c-common.h (c_expand_expr): Adjust prototype.
1438 * c-common.c (c_expand_expr): Add alt_rtl parameter.
1439 * langhooks-def.h (lhd_expand_expr): Change prototype.
1440 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
1441 * langhooks.h (lang_hooks): Change type of expand_expr.
1442 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
1443 (last_expr_alt_rtl): Likewise.
1444 (expand_expr_stmt_value): Set last_expr_alt_rtl.
1445 (clear_last_expr): Clear it.
1446 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
1447 (expand_end_bindings): Save and restor last_expr_alt_rtl.
1448 * tree.def (RTL_EXPR): Give it an additional operand.
1449 * tree.h (RTL_EXPR_ALT_RTL): New macro.
1450
1451 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1452
1453 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
1454 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
1455
1456 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1457
1458 PR target/13380.
1459 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
1460 or (ne:SI (reg:CC 17) (const_int 0)).
1461 Be specific about modes wherever possible.
1462
1463 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1464
1465 * config/m32r/m32r.c (m32r_expand_block_move): Call
1466 gen_movestrsi_internal with two more arguments.
1467 (m32r_output_block_move): Adjust operand numbers.
1468 Properly update the source and destination pointers.
1469 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
1470 'r+'. Change the set detinations to match_operand.
1471
1472 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
1473
1474 * final.c (FIRST_INSN_ADDRESS): Remove.
1475 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
1476 * system.h (FIRST_INSN_ADDRESS): Poison.
1477 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
1478 * config/m32r/m32r-protos.h: Remove the prototype for
1479 m32r_first_insn_address.
1480 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
1481 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
1482 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
1483
1484 2004-01-09 J. Brobecker <brobecker@gnat.com>
1485
1486 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
1487 we just created.
1488 (is_ada_subrange_type): DIEs for enumeration subtypes should be
1489 emitted as subrange types too.
1490 (subrange_type_die): Add handling of enumeration subtypes.
1491
1492 2004-01-08 Richard Henderson <rth@redhat.com>
1493
1494 PR opt/12441
1495 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
1496 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1497 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1498 (ix86_address_cost): Be prepared for SUBREGed registers.
1499 (legitimate_address_p): Accept SUBREGed registers.
1500
1501 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
1502
1503 * Makefile.in: Rename configure.in to configure.ac
1504 * doc/sourcebuild.texi: Likewise.
1505 * configure: Regenerate.
1506 * config.in: Regenerate.
1507
1508 2004-01-08 Stuart Hastings <stuart@apple.com>
1509
1510 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
1511
1512 2004-01-08 Jan Hubicka <jh@suse.cz>
1513
1514 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
1515
1516 2004-01-08 Geoffrey Keating <geoffk@apple.com>
1517
1518 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
1519 (UNSPEC_FIX_TRUNC_TF): New constant.
1520 (movtf_internal): Make splitter active only when insn is active.
1521 (extenddftf2): Rewrite to properly load zero into low part.
1522 (extenddftf2_internal): New.
1523 (extendsftf2): Rewrite.
1524 (truncdftf2): Correct length.
1525 (floatditf2): Delete.
1526 (fix_trunc_helper): New.
1527 (fix_trunctfdi2): Use fix_trunc_helper.
1528 (fix_trunctfsi2): Likewise.fix_trunc
1529 (fix_trunctfsi2_internal): New.
1530
1531 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
1532 addresses are legitimate on Darwin even when flag_pic.
1533 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
1534 non-offsettable addresses for loads of TFmode constants.
1535
1536 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1537
1538 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
1539 variables in the appropriate bss section.
1540
1541 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1542
1543 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
1544 target_flags has MASK_POWERPC64 when -m64.
1545 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
1546 to 620, 630, power3, power4 and rs64a entries.
1547 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
1548
1549 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
1550
1551 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
1552 floating-point constants.
1553
1554 2004-01-08 J. Brobecker <brobecker@gnat.com>
1555
1556 * dwarf2out.c (subrange_type_die): Add context_die parameter.
1557 Create the subrange_type DIE using the given context DIE.
1558 (modified_type_die): Update call to subrange_type_die.
1559
1560 2004-01-08 Zack Weinberg <zack@codesourcery.com>
1561
1562 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
1563 Add multiple-include guard.
1564
1565 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
1566
1567 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
1568 all vector constant loadable by vsplt*.
1569 (output_vec_const_move): Likewise.
1570
1571 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1572
1573 PR c/6024
1574 * c-typeck.c (comptypes): Only treat enumerated types in the same
1575 translation unit as compatible with each other when they are the
1576 same type.
1577 * doc/extend.texi: Update.
1578
1579 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1580
1581 PR c/12165
1582 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
1583 array type from the array element type.
1584
1585 2004-01-07 Alan Modra <amodra@bigpond.net.au>
1586
1587 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
1588 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
1589 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
1590 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
1591 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
1592
1593 2004-01-06 Eric Christopher <echristo@redhat.com>
1594
1595 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
1596 (DWARF2_DEBUGGING_INFO): Define.
1597 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
1598 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
1599 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
1600 for irix as.
1601 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
1602 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
1603 * config/mips/iris5gas.h: Ditto.
1604 (DBX_DEBUGGING_INFO): Remove.
1605 (DWARF2_DEBUGGING_INFO): Ditto.
1606 (MIPS_DEBUGGING_INFO): Ditto.
1607 (PREFERRED_DEBUGGING_TYPE): Ditto.
1608 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
1609 (PREFERRED_DEBUGGING_TYPE): Ditto.
1610 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
1611 * config/mips/elf64.h: Ditto.
1612
1613 2004-01-06 Jan Hubicka <jh@suse.cz>
1614
1615 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
1616 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
1617
1618 2004-01-06 Geoffrey Keating <geoffk@apple.com>
1619
1620 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
1621 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
1622 * config/rs6000/darwin-ldouble.c: New.
1623
1624 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
1625 for constants.
1626 (constant_subword): Delete.
1627 * rtl.h (constant_subword): Delete prototype.
1628 (immed_double_const): Is not in varasm.c.
1629 * simplify-rtx.c (simplify_immed_subreg): New.
1630 (simplify_subreg): Use simplify_immed_subreg.
1631
1632 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1633 than trying to generate RTL directly.
1634 (fix_trunctfsi2): Use expand_fix rather than trying to generate
1635 RTL directly.
1636
1637 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1638
1639 2004-01-06 David Edelsohn <edelsohn@gnu.org>
1640
1641 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1642 function into a separate macro.
1643 (read_only_data_section): Add void argument.
1644 (private_data_section): Same.
1645 (read_only_private_data_section): Same.
1646 (toc_section): Same.
1647
1648 2004-01-06 Jan Hubicka <jh@suse.cz>
1649
1650 * invoke.texi: Remove typo in last change.
1651
1652 PR target/10301
1653 * config.gcc: Accept opteron and athlon-64 as variants
1654 of k8.
1655 * i386.c (override_options): Likewise.
1656 * invoke.texi (i386 -mtune): Expand documentation.
1657
1658 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1659
1660 * alias.c: Fix comment typos.
1661 * builtins.c: Likewise.
1662 * cfg.c: Likewise.
1663 * df.c: Likewise.
1664 * dominance.c: Likewise.
1665 * dwarf2out.c: Likewise.
1666 * emit-rtl.c: Likewise.
1667 * expr.c: Likewise.
1668 * final.c: Likewise.
1669 * fold-const.c: Likewise.
1670 * gcse.c: Likewise.
1671 * genattrtab.c: Likewise.
1672 * genrecog.c: Likewise.
1673 * gensupport.c: Likewise.
1674 * ggc-zone.c: Likewise.
1675 * integrate.c: Likewise.
1676 * local-alloc.c: Likewise.
1677 * loop.c: Likewise.
1678 * recog.c: Likewise.
1679 * regmove.c: Likewise.
1680 * reg-stack.c: Likewise.
1681 * reorg.c: Likewise.
1682 * rtlanal.c: Likewise.
1683 * rtl.h: Likewise.
1684 * sched-ebb.c: Likewise.
1685 * simplify-rtx.c: Likewise.
1686 * toplev.c: Likewise.
1687 * varasm.c: Likewise.
1688
1689 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1690
1691 * doc/install.texi: Fix typos.
1692 * doc/invoke.texi: Likewise.
1693 * doc/md.texi: Likewise.
1694
1695 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1696
1697 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1698
1699 2004-01-06 Jan Hubicka <jh@suse.cz>
1700
1701 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
1702 (function_arg_advance): Do not pass aggregates in SSE; deal handling
1703 of MMX_REGPARM.
1704 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
1705 add MMX_REGPARM.
1706 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1707 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1708 (MMX_REGPARM_MAX): Similarly for -mmmx.
1709
1710 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1711
1712 * config/sh/linux.h: Fix comment formatting.
1713 * config/sh/netbsd-elf.h: Likewise.
1714 * config/sh/sh.c: Likewise.
1715 * config/sh/sh.h: Likewise.
1716 * config/sh/vxworks.h: Likewise.
1717
1718 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1719
1720 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1721 * toplev.c (output_file_directive): Don't use
1722 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1723
1724 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
1725
1726 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1727 (USING_MMAP): We don't support non-mmap.
1728 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1729 large objects.
1730 (struct page_entry): Remove bytes_free.
1731 (struct page_table_chain): Remove.
1732 (struct globals): Remove page_table member.
1733 (loookup_page_table_entry): Function deleted.
1734 (set_page_table_entry): Ditto.
1735 (ggc_allocated_p): No longer need page table lookups.
1736 (ggc_marked_p): Ditto.
1737 (alloc_small_page): Don't care about bytes_free anymore.
1738 (alloc_large_page): Round up size.
1739 (ggc_alloc_zone_1): Mark large objects as such, and calculate
1740 their size the new way.
1741 Remove page table lookups and setting.
1742 (ggc_get_size): Calculate large object size the new way.
1743 (sweep_pages): Redo to account for fact that we no longer have
1744 bytes_free.
1745 (ggc_collect): No longer need to reincrement bytes_free.
1746 (ggc_pch_alloc_object): Handle new large objects properly.
1747 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1748
1749 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1750
1751 * doc/invoke.texi: Remove a page break.
1752
1753 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1754
1755 * config/avr/avr.c (avr_output_function_prologue): Remove an
1756 extra pair of curly braces.
1757
1758 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1759
1760 * config/mn10300/mn10300.c: Fix comment formatting.
1761 * config/mn10300/mn10300.h: Likewise.
1762
1763 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1764
1765 * tree.h: Update documentation on nothrow_flag.
1766 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1767 types.
1768
1769 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1770
1771 * doc/invoke.texi: Remove traces of dead ports.
1772
1773 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1774
1775 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1776 option.
1777
1778 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1779
1780 PR target/12945
1781 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1782 counter labels.
1783 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1784 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1785 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
1786 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1787 (mips_symbol_insns): Don't trust the local/global classification.
1788 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1789 (override_options): Make -mabicalls -fno-unit-at-a-time imply
1790 -mno-explicit-relocs.
1791 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1792 between local and global symbols.
1793
1794 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1795
1796 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1797 (mips_preferred_reload_class): Declare.
1798 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1799 (EXTRA_CONSTRAINT): Update accordingly.
1800 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1801 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1802 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
1803 mips_dangerous_for_la25_p.
1804 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1805 if mips_dangerous_for_la25_p.
1806
1807 2004-01-05 Bernardo Innocenti <bernie@develer.com>
1808
1809 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1810 warning.
1811
1812 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
1813
1814 * configure.ac: Use AC_PROG_CPP_WERROR.
1815 * configure: Regenerate.
1816
1817 2004-01-04 Zack Weinberg <zack@codesourcery.com>
1818
1819 * .cvsignore: Add autom4te.cache.
1820
1821 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
1822
1823 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
1824 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1825 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
1826 then architecture options, then ABI options. General rewording.
1827
1828 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
1829
1830 PR c/3414
1831 * doc/extend.texi: Clarify definition of malloc attribute.
1832
1833 2004-01-04 Jan Hubicka <jh@suse.cz>
1834
1835 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1836 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1837 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1838 (cgraph_inline_p): Add extra argument reason.
1839 * cgraphunit.c: Minor formating fixes.
1840 cgraph_first_inlined_callee): New functions.
1841 (record_call_1): Record builtins too.
1842 (cgraph_analyze_function): Update inline_failed messages.
1843 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1844 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1845 (cgraph_check_inline_limits): Likewise; Add argument reason.
1846 (cgraph_set_inline_failed): New static function.
1847 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1848 reasons.
1849 (cgraph_inline_p): Add new argument reason.
1850 * tree-inline.c (expand_call_inline): Update warning.
1851
1852 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1853
1854 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1855 with modern equivalents.
1856 * configure: Regenerate.
1857
1858 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1859 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1860 * configure: Regenerate.
1861
1862 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1863
1864 * configure.in: Rename to configure.ac.
1865 * configure.ac: Renamed from configure.in; make minimum necessary
1866 changes for autoconf 2.5x.
1867 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1868 * configure: Regenerate with autoconf 2.57.
1869
1870 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
1871
1872 * config/mips/linux.h: Fix comment formatting.
1873 * config/mips/mips.c: Likewise.
1874 * config/mips/mips.h: Likewise.
1875 * config/mips/mips.md: Likewise.
1876 * config/mips/netbsd.h: Likewise.
1877 * config/mips/windiss.h: Likewise.
1878
1879 2004-01-02 Richard Henderson <rth@redhat.com>
1880
1881 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1882 for sse and 387; add suppression for mmx.
1883
1884 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
1885
1886 * loop.c (loop_optimize): Free all loops_info's mems.
1887
1888 * c-typeck.c (finish_init): Free spelling_base before
1889 setting it again.
1890
1891 * cfgloop.c (flow_loops_find): Always free the sbitmap
1892 headers.
1893
1894 * predict.c (estimate_probability): Free bbs after being
1895 done with it.
1896
1897 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1898
1899 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1900 const_8bit_operand and call_address_operand.
1901
1902 2004-01-02 Jan Hubicka <jh@suse.cz>
1903
1904 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
1905 when there is nothing to inline but warnings are requested.
1906 (cgraph_decide_inlining): Fix memory leak.
1907
1908 2004-01-02 Jan Hubicka <jh@suse.cz>
1909
1910 * expr.c (store_constructor): Fix pasto in previous patch.
1911
1912 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1913
1914 * config/i386/cygming.h: Fix comment formatting.
1915 * config/i386/djgpp.h: Likewise.
1916 * config/i386/gthr-win32.c: Likewise.
1917 * config/i386/i386-interix.h: Likewise.
1918 * config/i386/i386.c: Likewise.
1919 * config/i386/i386.h: Likewise.
1920 * config/i386/openbsd.h: Likewise.
1921 * config/i386/winnt.c: Likewise.
1922 * config/i386/xm-mingw32.h: Likewise.
1923
1924 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
1925
1926 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1927 copyright and last modification dates.
1928
1929 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
1930
1931 * doc/install.texi (Specific): Mention x86_64.
1932
1933 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1934
1935 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1936 Call force_operand on plus_constant result.
1937
1938 2004-01-01 Jan Hubicka <jh@suse.cz>
1939
1940 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1941 * expr.c (store_constructor): Use vec_init pattern.
1942 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1943 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1944 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1945 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1946 New patterns.
1947 (sse2_unpc?pd): Fix pattern.
1948 (sse2_movlpd): Kill.
1949 (sse2_movsd): Deal with movlpd too.
1950 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1951 (ix86_expand_vector_init): New.
1952 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1953 * md.texi (vec_set, vec_extract): Document
1954
1955 2003-12-31 Jan Hubicka <jh@suse.cz>
1956
1957 PR opt/13473
1958 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
1959 ASM input operands
1960
1961 PR opt/12617
1962 * toplev.c (dump_file_index): Reorder ce3 and bbro.
1963 (dump_file): Likewise.
1964 (rest_of_compilation): Likewise.
1965
1966 PR debug/13367
1967 * cgraph.c (cgraph_function_possibly_inlined): Even with
1968 flag_really_no_inline we inline always_inline functions.
1969 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1970 for non-always_inline functions when there is flag_really_no_inline.
1971 (cgraph_decide_inlining): Limit work done when not inlining.
1972 (cgraph_decide_inlining_incrementally): Likewise.
1973 (cgraph_optimize_function): Check whether something got inlined.
1974 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1975 extern inline functions when not inlining.
1976
1977 * opts.c (decode_options): Disable crossjumping at -O1
1978 * invoke.texi (-O1): Document change.
1979
1980 See ChangeLog.10 for earlier changes.