OSDN Git Service

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