OSDN Git Service

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