OSDN Git Service

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