1 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
3 * config/sh/sh.c: Include ggc.h.
5 2004-01-16 Geoffrey Keating <geoffk@apple.com>
7 * Makefile.in (MD5_H): New.
8 (fold-const.o): Depend on md5.h.
9 (dwarf2out.o): Likewise.
10 (cppfiles.o): Likewise.
11 * cppfiles.c: Include md5.h.
12 (should_stack_file): Check against list read from PCH file.
13 (struct pchf_data): New.
15 (struct pchf_adder_info): New.
17 (pchf_save_compare): New.
18 (_cpp_save_file_entries): New.
19 (_cpp_read_file_entries): New.
20 (struct pchf_compare_data): New.
22 (check_file_against_entries): New.
23 * cpphash.h (_cpp_save_file_entries): Prototype.
24 (_cpp_read_file_entries): Prototype.
25 * cpppch.c (cpp_write_pch_state): Write the list of headers.
26 (cpp_read_state): Read the list of headers.
28 2004-01-17 Jan Hubicka <jh@suse.cz>
30 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
31 builtin_expect specially.
32 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
33 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
34 * invoke.texi (max-inline-insns-single): Set to 100.
35 (large-function-insns): Set to 3000.
37 2004-01-16 Eric Christopher <echristo@redhat.com>
38 Chandrakala Chavva <cchavva@redhat.com>
40 * cppcharset.c (one_iso88591_to_utf8): New function.
41 (convert_iso88591_utf8): Ditto. Use.
42 (conversion_tab): Use.
43 (_cpp_input_to_utf8): New function.
44 (_cpp_init_iconv_buffer): Ditto.
45 (_cpp_close_iconv_buffer): Ditto.
46 * cpphash.h: Prototype new functions.
47 (cpp_buffer): Add input_cset_desc.
48 * cppinit.c: Add input_charset default.
49 * cpplib.c (cpp_push_buffer): Support init and
51 * cpplib.h (cpp_options): Add input_charset.
53 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
55 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
56 * config/alpha/unicosmk.h: Remove a commented-out definition
57 of ASM_OUTPUT_SECTION_NAME.
58 * config/stormy16/stormy16.h: Likewise.
60 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
62 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
63 (alpha___extern_prefix_sys_stat): ... this.
64 Apply to <sys/mount.h>, too.
65 Tweak to match more variations.
66 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
68 * fixinc/inclhack.def (alpha___extern_prefix,
69 alpha___extern_prefix_standards): New hacks to obey
70 __PRAGMA_EXTERN_PREFIX.
71 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
73 * fixinc/tests/base/standards.h: Likewise.
75 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
78 * fixinc/tests/base/pthread.h: Handle it.
80 * fixincl/inclhack.def (bad_lval): Sort file list.
81 Add many missing files up to Tru64 UNIX V5.1B.
82 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
83 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
86 * fixinc/fixincl.x: Regenerate.
88 2004-01-16 Mark Mitchell <mark@codesourcery.com>
90 * version.c (version_string): Change to 3.5.0.
91 * doc/include/gcc-common.texi (version-GCC): Likewise.
93 2004-01-16 Jan Hubicka <jh@suse.cz>
95 * i386.md (load_tp_di): Fix pasto.
98 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
100 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
101 pp_c_character_constant, pp_c_floating_constant,
102 pp_c_additive_expression, pp_c_shift_expression,
103 pp_c_equality_expression, pp_c_and_expression,
104 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
105 pp_c_logical_and_expression): Remove inline modifier.
106 * dwarf2out.c (get_AT): Likewise.
107 * et-forest.c (et_splay): Likewise.
108 * ra.h (ra_alloc, ra_calloc): Likewise
110 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
112 * config/frv/frv-protos.h: Fix comment formatting.
113 * config/frv/frv.c: Likewise.
114 * config/frv/frv.h: Likewise.
115 * config/frv/frv.md: Likewise.
116 * config/frv/frvbegin.c: Likewise.
117 * config/frv/frvend.c: Likewise.
119 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
121 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
122 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
123 LINKER_DOES_NOT_WORK_WITH_DWARF2.
124 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
126 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
129 * postreload.c (reload_cse_simplify_operands): Don't remove
130 implicit extension from LOAD_EXTEND_OP.
132 2004-01-16 Jan Hubicka <jh@suse.cz>
135 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
137 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
138 rtl_try_redirect_by_replacing_branch): Likewise.
140 2004-01-15 Geoffrey Keating <geoffk@apple.com>
143 * alias.c (struct alias_set_entry): Mark for GC.
144 (alias_sets): Make static, mark for GC.
145 (record_alias_subset): Use GC to allocate alias structures.
146 * varray.c (element): Make generic varrays GCed.
149 * c-typeck.c (constructor_asmspec): Delete.
150 (struct initializer_stack): Delete field 'asmspec'.
151 (start_init): Delete saving of asmspec.
152 (finish_init): Don't update constructor_asmspec.
153 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
154 * stmt.c (expand_asm): Duplicate strings from tree.
155 (expand_asm_operands): Likewise.
156 * tree.c (tree_size): Update computation of size of STRING_CST.
157 (make_node): Don't make STRING_CST nodes.
158 (build_string): Allocate string with tree node.
159 * tree.def (STRING_CST): Update comment.
160 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
161 (tree_string): Place contents of string in tree node.
162 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
165 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
168 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
170 * c-common.h: Fix comment formatting.
171 * c-cppbuiltin.c: Likewise.
172 * c-pragma.c: Likewise.
174 * collect2.c: Likewise.
175 * cppcharset.c: Likewise.
176 * cpptrad.c: Likewise.
177 * dbxout.c: Likewise.
178 * defaults.h: Likewise.
179 * dwarf2out.c: Likewise.
180 * fold-const.c: Likewise.
181 * genautomata.c: Likewise.
182 * genconditions.c: Likewise.
183 * genflags.c: Likewise.
184 * gengtype.c: Likewise.
185 * integrate.c: Likewise.
187 * predict.c: Likewise.
188 * sdbout.c: Likewise.
190 2004-01-15 Zack Weinberg <zack@codesourcery.com>
192 * config/ia64/ia64.md (*movti_internal): C output template
194 (*movti_internal_reg): Delete.
195 (reload_inti, reload_outti): Use the correct mode on operand 2
196 in the first place, don't fix it up in the output template.
197 (movtf, reload_ointf, reload_outtf): New expanders.
198 (*movtf_internal): New define_insn_and_split.
199 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
200 make static; do not hand TFmode CONST_DOUBLEs to split_double.
201 (ia64_split_tmode_move): New function, body mostly pulled
202 from ia64.md:*movti_internal.
203 (ia64_function_arg_words): New function, extracted common
204 logic from ia64_function_arg et seq.
205 (ia64_function_arg_offset): Likewise. Handle correctly the
206 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
207 (ia64_function_arg, ia64_function_arg_partial_nregs)
208 (ia64_function_arg_advance): Use ia64_function_arg_words and
209 ia64_function_arg_offset.
210 (ia64_function_value): TCmode does not go in float regs.
211 (ia64_secondary_reload_class): Also handle TFmode.
212 * config/ia64/ia64-protos.h: Remove prototype for
213 ia64_split_timode; add prototype for ia64_split_tmode_move.
215 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
217 * Makefile.in (MAINT): Make it an immediate assignment.
219 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
221 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
223 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
225 * config/h8300/coff.h: Replace Hitachi with Renesas.
226 * config/h8300/elf.h: Likewise.
227 * config/h8300/h8300-protos.h: Likewise.
228 * config/h8300/h8300.c: Likewise.
229 * config/h8300/h8300.h: Likewise.
230 * config/h8300/h8300.md: Likewise.
231 * config/h8300/lib1funcs.asm: Likewise.
233 2004-01-15 Andrew Pinski <apinski@apple.com>
235 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
238 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
240 * config/h8300/h8300.c (h8300_return_in_memory): New.
241 (TARGET_STRUCT_VALUE_RTX): Likewise.
242 (TARGET_RETURN_IN_MEMORY): Likewise.
243 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
244 (RETURN_IN_MEMORY): Likewise.
246 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
248 PR optimization/13375
249 * gcse.c (handle_avail_expr): Just return if the source is not a
252 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
253 Daniel Jacobowitz <drow@mvista.com>
255 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
257 (ARM_FUNC_ALIAS): New macro.
258 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
259 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
261 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
263 PR optimization/12372
264 * calls.c (expand_call): Add call_fusage data for stack arguments in
267 2004-01-15 Alan Modra <amodra@bigpond.net.au>
269 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
270 (rs6000_elf_declare_function_name): Formatting.
271 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
273 2004-01-15 Jan Hubicka <jh@suse.cz>
276 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
279 2004-01-15 Richard Henderson <rth@redhat.com>
281 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
282 integer regs of the same call-savedness.
284 2004-01-15 Andreas Schwab <schwab@suse.de>
287 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
288 status for NOTB/NOTW/NEGW methods.
290 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
292 * doc/invoke.texi: Update dump file names. Fix a typo.
294 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
296 * builtins.c (expand_builtin_va_end): Don't use
297 EXPAND_BUILTIN_VA_END.
298 * system.h (EXPAND_BUILTIN_VA_END): Poison.
299 * config/d30v/d30v.h: Remove a commented-out definition of
300 EXPAND_BUILTIN_VA_END.
301 * config/stormy16/stormy16.h: Likewise.
303 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
305 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
306 * targhooks.c (default_struct_value_rtx): Don't use
307 STRUCT_VALUE_INCOMING_REGNUM.
309 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
312 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
313 GENINSRC and not parsedir. Define srcextra as a langhook.
314 * configure: Regenerate.
315 * Makefile.in: Suppress default .l.c rule. Don't substitute
316 parsedir and delete all references throughout. Conditionally define
317 rule for srcextra dependent on GENINSRC.
318 (stmp-docobjdir): Delete.
319 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
320 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
321 and gengtype-yacc.h back to source directory.
322 (maintainer-clean): Delete all parse files in source directory.
323 (distclean): Delete generated files.
325 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
326 (objc-parse.c, objc-parse.y): Don't use parsedir.
327 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
328 directory if requested.
329 (po-generated): Don't use parsedir.
330 (objc.maintainer-clean): Delete above files from source directory.
332 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
334 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
336 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
338 * doc/tm.texi: Replace RETURN_IN_MEMORY with
339 TARGET_RETURN_IN_MEMORY.
341 2004-01-15 Jan Hubicka <jh@suse.cz>
343 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
344 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
345 functions accepting SSE arguments
346 (function_arg): Warn only when asked to warn.
347 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
349 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
351 * c-parse.in (stmts_and_decls): Make label at end of compound
352 statement a hard error.
354 2004-01-14 Jan Hubicka <jh@suse.cz>
356 * cgraph.c (create_edge): Use local.redefined_extern_inline.
357 * cgraph.h (cgraph_local_info): Sort fields by size; add
358 redefined_extern_inline
359 (cgraph_global_info): Sort fields by size.
360 (cgraph_node): Likewise.
361 * cgraphunit.c (cgraph_finalize_function): Se
362 local.redefined_extern_inline on redefinition.
363 (cgraph_analyze_function): Use it; fix formating.
365 2004-01-14 Jan Hubicka <jh@suse.cz>
368 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
369 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
371 (cache_size): New variable
372 (add_dependence): Update use; canonize early memory locations
373 (sched_analyze_1): Likewise.
374 (sched_analyze_2): Likewise.
375 (init_dependency_caches): Initialize bitmaps.
376 (free_dependency_caches): Free bitmaps
378 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
380 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
381 targetm.calls.strict_argument_naming().
382 * target.h: Likewise.
384 2004-01-14 Richard Henderson <rth@redhat.com>
387 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
390 2004-01-14 Richard Henderson <rth@redhat.com>
393 * except.c (struct eh_region): Add u.fixup.resolved.
394 (resolve_one_fixup_region): Split out from ...
395 (resolve_fixup_regions): ... here.
397 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
399 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
401 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
403 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
404 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
405 (STRUCT_VALUE): Remove.
407 2003-01-14 Steven Bosscher <stevenb@suse.de>
409 * system.h: Poison PROMOTED_MODE
410 * integrate.c (expand_inline_function): Don't mention the
412 * loop.c (update_giv_derive): Same.
413 * tree.h (DECL_RTL): Same.
415 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
418 * sh.c (gen_block_redirect): Add special handling of RETURN.
419 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
420 far branch target (i.e. it's a return).
422 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
424 * regrename.c (find_oldest_value_reg): Fix a warning.
426 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
429 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
430 Move linux-gas.h and linux-elf.h before aout.h.
431 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
432 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
434 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
436 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
437 (CONST_INT, VOIDmode, ...).
439 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
441 * regrename.c (find_oldest_value_reg): If the replacement uses
442 multiple hard registers, check that all of them are in CLASS.
444 2004-01-14 Jan Hubicka <jh@suse.cz>
446 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
449 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
451 * Makefile.in: Define MAINT from --enable-maintainer-mode.
453 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
455 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
456 Calculate always vrsave_mask if TARGET_ALTIVEC.
457 (rs6000_emit_prologue): Emit code for vrsave
458 only if TARGET_ALTIVEC_VRSAVE.
459 (rs6000_emit_epilogue): Likewise.
461 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
463 * config/sparc/sparc.md (tie_add32): Fix pasto.
464 (tie_add64): Likewise.
466 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
468 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
470 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
472 * config/iq2000/iq2000-protos.h: Fix comment formatting.
473 * config/iq2000/iq2000.c: Likewise.
474 * config/iq2000/iq2000.md: Likewise.
476 2004-01-14 J. Brobecker <brobecker@gnat.com>
478 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
479 (subrange_type_die): Add handle for nameless subrange types.
481 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
483 * config/h8300/h8300-protos.h: Replace do_movsi with
485 * config/h8300/h8300.c (do_movsi): Change to
487 * config/h8300/h8300.md (movsi): Replace do_movsi with
491 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
493 * config/h8300/h8300.c (dosize): Change to
494 h8300_emit_stack_adjustment. Update callers.
496 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
498 * config/h8300/h8300.md (movstrictqi): Add an alternative with
499 the source being post_inc. Tighten the predicate for the
500 destination to register_operand.
501 (movstricthi): Likewise.
503 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
505 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
506 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
507 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
509 2004-01-14 Jan Hubicka <jh@suse.cz>
511 Partial fix PR c++/12850
512 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
515 2004-01-13 Bernardo Innocenti <bernie@develer.com>
517 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
520 2004-01-13 Devang Patel <dpatel@apple.com
523 * dbxout.c (dbxout_symbol_name): Emit mangled names for
524 NAMESPACE_DECL memebers.
526 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
529 * c-common.c (finish_fname_decls): Use the chain only if the
530 tree is an expr_stmt.
532 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
534 * rtl.def: Add comment about new option in automata_option.
536 * genautomata.c (PROGRESS_OPTION): New macro.
537 (progress_flag): New global variable.
538 (gen_automata_option): Process `progress'.
539 (transform_insn_regexps, check_unit_distributions_to_automata,
540 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
541 expand_automata, write_automata): Print about the progress only if
542 progress_flag. Remove fflush.
543 (initiate_automaton_gen): Process command line flag `-progress'.
545 * doc/md.texi: Describe the new option.
547 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
549 * cfg.c (dump_bb): Dump entry edges.
551 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
553 * arm.c (thumb_legitimate_address_p): Only allow constant pool
554 references from SImode.
555 * arm.md (thumb_movhi_insn): Don't allow minipool references.
557 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
559 * system.h (TEXT_SECTION): Poison.
560 * varasm.c (text_section): Don't use TEXT_SECTION.
561 * config/sh/sh.c (sh_file_start): Fix a comment typo.
562 * doc/tm.texi (TEXT_SECTION): Remove.
564 2004-01-13 Ben Elliston <bje@wasabisystems.com>
566 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
568 2004-01-12 James E Wilson <wilson@specifixinc.com>
570 * unwind-libunwind.c: Delete.
572 2004-01-12 Zack Weinberg <zack@codesourcery.com>
575 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
576 oldtype is set, set *newtypep or *oldtypep too. Do not set
577 them at the very end.
578 (validate_proto_after_old_defn): Restructure for comprehensibility;
579 make error messages clearer.
581 2004-01-12 Zack Weinberg <zack@codesourcery.com>
583 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
584 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
585 * varray.c: No need to prototype error.
586 (varray_check_failed): Wrap long string onto two lines.
587 (varray_underflow): New function.
589 2004-01-13 Steven Bosscher <stevenb@suse.de>
592 * function.h (struct function): Kill `name' field.
593 (current_function_name): Make it an extern function.
594 * function.c (current_function_name): New function.
595 * graph.c: Update all uses of current_function_name.
597 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
598 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
599 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
600 instead of a strcmp with "main".
602 2004-01-13 Jan Hubicka <jh@suse.cz>
604 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
606 * cgraphunit.c (cgraph_optimize_function): Always do
607 optimize_inline_calls when there is always_inline callee.
608 (cgraph_decide_inlining): Fix formating.
609 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
611 (expand_call_inline): Likewise.
612 * toplev.h (sorry): Fix prototype.
614 2004-01-12 Roger Sayle <roger@eyesopen.com>
616 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
617 conditional jumps that drop through to unconditional jumps or the
620 2004-01-13 Jan Hubicka <jh@suse.cz>
622 * alias.c (new_alias_set): Construct the alias_set varray.
623 (init_alias_once): Don't do it here.
625 2004-01-12 Marc Espie <espie@openbsd.org>
627 * system.h: handle YYBYACC like YYBISON.
629 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
632 * config.gcc: No longer includes conflicting header sparc/sol2.h when
633 building on sparc64-*-openbsd*.
635 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
638 * dbxout.c (dbxout_type): Protected inheritance is not
639 private but protected.
641 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
643 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
645 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
647 PR optimization/12508.
648 * combine.c (try_combine): Remove a dead set in a parallel
649 even if its destination is a subreg.
652 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
653 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
654 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
656 2004-01-12 Geoffrey Keating <geoffk@apple.com>
658 * real.c: Update copyright date.
659 * emit-rtl.c: Likewise.
661 * dwarf2out.c: Likewise.
662 * config/rs6000/darwin-ldouble.c: Likewise.
663 * config/rs6000/rs6000.md: Likewise.
665 2004-01-12 David Edelsohn <edelsohn@gnu.org>
667 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
668 TFmode to SImode libfuncs.
670 2004-01-12 Roger Sayle <roger@eyesopen.com>
673 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
675 2004-01-12 Jan Hubicka <jh@suse.cz>
678 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
682 * cfgcleanup.c (label_is_jump_target_p): Move to...
683 * rtlanal.c (label_is_jump_target_p): ... here.
684 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
685 edges unified with branch edges.
687 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
689 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
690 high word of an integral CONST_DOUBLE.
692 2004-01-12 Paul Brook <paul@codesourcery.com>
694 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
696 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
699 * sh-protos.h (check_use_sfunc_addr): Declare.
700 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
701 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
703 2004-01-12 Jan Hubicka <jh@suse.cz>
705 * alias.c: Invlude varray.h
706 (alias_sets): Turn into varray.
707 (get_alias_set_entry): Use VARRAY; mark inline.
708 (mems_in_disjoint_alias_sets_p): Mark inline.
709 (record_alias_subset): Use varray.
710 (init_alias_once): Initialize varray.
711 (new_alias_set): Grow array.
712 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
714 2004-01-12 Jan Hubicka <jh@suse.cz>
716 Partial fix for PR opt/10776 II
717 * cselib.c: Include params.h
718 (cselib_invalidate_mem): Limit amount of nonconflicting memory
720 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
721 * Makefile.in (cselib.o): Depend on params.h
723 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
725 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
726 simplify_unary_operation if the operand has a known mode.
728 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
731 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
732 predicate to handle 'ld' conform addresses.
733 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
735 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
736 are memory contraints.
737 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
739 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
740 Change 'o' to 'Y' constraint.
741 (*movdf_softfloat64): Ditto.
743 2004-01-12 Bernardo Innocenti <bernie@develer.com>
745 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
746 brace-enclosed syntax in all C output statements.
748 2004-01-12 David Edelsohn <edelsohn@gnu.org>
751 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
752 Objective-C language type value is 14.
754 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
757 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
758 `int' in a number of places to make sure we always have a SImode
759 and not a HImode. Add a 'L' suffix to a number of constants.
761 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
763 * pa.c: Don't include obstack.h.
765 * pa.md: Correct constraint in pattern for loading PIC label address.
767 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
769 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
772 2004-01-11 Steven Bosscher <stevenb@suse.de>
775 * toplev.c (rest_of_handle_inline): Also consider functions
776 for deferral if the language is GNU F77.
778 2004-01-11 Zack Weinberg <zack@codesourcery.com>
780 * c-decl.c (diagnose_arglist_conflict): Add missing space to
783 2004-01-11 Jakub Jelinek <jakub@redhat.com>
786 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
787 to drop through label. Don't fall back to SCC even when conditional
788 jump has not been found.
790 2004-01-11 Jan Hubicka <jh@suse.cz>
792 * invoke.texi: Fix syntax error in previous patch.
794 Partial fix for PR opt/10776
795 * Makefile.in (reload.o): Include param.h
796 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
797 * reload.c: Include params.h.
798 (find_equiv_reg): Work limiting check.
799 * invoke.texi: Document.
801 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
803 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
804 out-of-bounds accesses to string constants. Simplify mips16
807 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
809 PR optimization/13469
810 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
811 reload_cse_regs (-fnon-call-exceptions only).
813 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
815 * config/mcore/lib1.asm: Fix comment formatting.
816 * config/mcore/mcore-elf.h: Likewise.
817 * config/mcore/mcore.c: Likewise.
818 * config/mcore/mcore.h: Likewise.
819 * config/mcore/mcore.md: Likewise.
821 2004-01-10 Zack Weinberg <zack@codesourcery.com>
823 * c-decl.c (duplicate_decls): Break apart into...
824 (diagnose_arglist_conflict, validate_proto_after_old_defn)
825 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
826 ... these new functions. Restructure for comprehensibility.
827 Remove various archaic special cases. Always report the
828 location of the previous declaration when a diagnostic is issued.
829 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
830 (match_builtin_function_types): Delete unnecessary forward declaration.
832 2004-01-10 Zack Weinberg <zack@codesourcery.com>
834 * genautomata.c (make_automaton, NDFA_to_DFA):
835 Print progress bars with '.' characters instead of '*'.
836 (build_automaton): Change notes to match.
838 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
840 * config/m32r/m32r.md: Use define_constants for unspec and
843 2004-01-10 Jan Hubicka <jh@suse.cz>
846 * expr.c (expand_expr_real): More curefully expand union casts.
848 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
850 * config/m32r/m32r.md (flush_icache): Use 1 for
853 2004-01-10 David Edelsohn <edelsohn@gnu.org>
854 James E Wilson <wilson@specifixinc.com>
857 * dbxout.c (dbxout_symbol): Remove initialization of
858 current_sym_code, current_sym_value, and current_sym_addr.
859 (dbxout_symbol_location): Same.
860 (dbxout_prepare_symbol): Zero current_sym_code,
861 current_sym_value, and current_sym_addr.
863 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
865 * tree.c (get_unwidened): Reorder conditions so that the null pointer
868 2004-01-09 Eric Christopher <echristo@redhat.com>
870 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
871 if we're running mark_constant_function.
873 2004-01-09 Jeff Bailey <jbailey@nisa.net>
876 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
878 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
881 * dbxout.c (dbxout_type_fields): Return if any item is
882 error_mark_node or the type is error_mark_node.
884 2004-01-09 Geoffrey Keating <geoffk@apple.com>
886 * config/rs6000/darwin-ldouble.c: Add big comment explaining
887 exactly what is expected as a 'long double'.
888 (_xlqadd): When a value to be returned is representable as a
889 'double', just return it directly, do not construct it using a union.
890 Also, correct final fixup.
893 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
895 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
897 2004-01-09 Richard Henderson <rth@redhat.com>
899 * recog.c (constrain_operands): Validate mem operands.
901 2004-01-09 James E Wilson <wilson@specifixinc.com>
903 * gcc.c (init_spec): Remove -lunwind from shared case.
904 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
906 2004-01-09 Steve Ellcey <sje@cup.hp.com>
908 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
909 * configure: Regenerate
911 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
914 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
915 between function and object pointers.
916 (digest_init): When comparing a pointer to function type to the
917 target type, only apply TREE_TYPE once to the pointer to function
919 * except.c (for_each_eh_label_1): Treat data as a pointer to a
920 function pointer rather than casting it to a function pointer.
921 (for_each_eh_label): Update caller.
922 * recog.h (struct insn_data): Use a struct or union for output.
923 * genoutput.c (output_insn_data): Update.
924 * final.c (get_insn_template): Update.
926 2004-01-09 Mark Mitchell <mark@codesourcery.com>
928 * expr.h (expand_expr): Make it a macro, not a function.
929 (expand_expr_real): New function.
930 * expr.c (store_expr): Adjust logic for deciding whether or not to
931 copy the value returned by expand_expr.
932 (expand_expr): Rename to ...
933 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
934 calls to language hooks.
935 * c-common.h (c_expand_expr): Adjust prototype.
936 * c-common.c (c_expand_expr): Add alt_rtl parameter.
937 * langhooks-def.h (lhd_expand_expr): Change prototype.
938 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
939 * langhooks.h (lang_hooks): Change type of expand_expr.
940 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
941 (last_expr_alt_rtl): Likewise.
942 (expand_expr_stmt_value): Set last_expr_alt_rtl.
943 (clear_last_expr): Clear it.
944 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
945 (expand_end_bindings): Save and restor last_expr_alt_rtl.
946 * tree.def (RTL_EXPR): Give it an additional operand.
947 * tree.h (RTL_EXPR_ALT_RTL): New macro.
949 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
951 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
952 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
954 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
957 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
958 or (ne:SI (reg:CC 17) (const_int 0)).
959 Be specific about modes wherever possible.
961 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
963 * config/m32r/m32r.c (m32r_expand_block_move): Call
964 gen_movestrsi_internal with two more arguments.
965 (m32r_output_block_move): Adjust operand numbers.
966 Properly update the source and destination pointers.
967 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
968 'r+'. Change the set detinations to match_operand.
970 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
972 * final.c (FIRST_INSN_ADDRESS): Remove.
973 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
974 * system.h (FIRST_INSN_ADDRESS): Poison.
975 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
976 * config/m32r/m32r-protos.h: Remove the prototype for
977 m32r_first_insn_address.
978 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
979 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
980 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
982 2004-01-09 J. Brobecker <brobecker@gnat.com>
984 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
986 (is_ada_subrange_type): DIEs for enumeration subtypes should be
987 emitted as subrange types too.
988 (subrange_type_die): Add handling of enumeration subtypes.
990 2004-01-08 Richard Henderson <rth@redhat.com>
993 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
994 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
995 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
996 (ix86_address_cost): Be prepared for SUBREGed registers.
997 (legitimate_address_p): Accept SUBREGed registers.
999 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
1001 * Makefile.in: Rename configure.in to configure.ac
1002 * doc/sourcebuild.texi: Likewise.
1003 * configure: Regenerate.
1004 * config.in: Regenerate.
1006 2004-01-08 Stuart Hastings <stuart@apple.com>
1008 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
1010 2004-01-08 Jan Hubicka <jh@suse.cz>
1012 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
1014 2004-01-08 Geoffrey Keating <geoffk@apple.com>
1016 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
1017 (UNSPEC_FIX_TRUNC_TF): New constant.
1018 (movtf_internal): Make splitter active only when insn is active.
1019 (extenddftf2): Rewrite to properly load zero into low part.
1020 (extenddftf2_internal): New.
1021 (extendsftf2): Rewrite.
1022 (truncdftf2): Correct length.
1023 (floatditf2): Delete.
1024 (fix_trunc_helper): New.
1025 (fix_trunctfdi2): Use fix_trunc_helper.
1026 (fix_trunctfsi2): Likewise.fix_trunc
1027 (fix_trunctfsi2_internal): New.
1029 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
1030 addresses are legitimate on Darwin even when flag_pic.
1031 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
1032 non-offsettable addresses for loads of TFmode constants.
1034 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1036 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
1037 variables in the appropriate bss section.
1039 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1041 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
1042 target_flags has MASK_POWERPC64 when -m64.
1043 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
1044 to 620, 630, power3, power4 and rs64a entries.
1045 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
1047 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
1049 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
1050 floating-point constants.
1052 2004-01-08 J. Brobecker <brobecker@gnat.com>
1054 * dwarf2out.c (subrange_type_die): Add context_die parameter.
1055 Create the subrange_type DIE using the given context DIE.
1056 (modified_type_die): Update call to subrange_type_die.
1058 2004-01-08 Zack Weinberg <zack@codesourcery.com>
1060 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
1061 Add multiple-include guard.
1063 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
1065 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
1066 all vector constant loadable by vsplt*.
1067 (output_vec_const_move): Likewise.
1069 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1072 * c-typeck.c (comptypes): Only treat enumerated types in the same
1073 translation unit as compatible with each other when they are the
1075 * doc/extend.texi: Update.
1077 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
1080 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
1081 array type from the array element type.
1083 2004-01-07 Alan Modra <amodra@bigpond.net.au>
1085 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
1086 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
1087 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
1088 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
1089 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
1091 2004-01-06 Eric Christopher <echristo@redhat.com>
1093 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
1094 (DWARF2_DEBUGGING_INFO): Define.
1095 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
1096 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
1097 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
1099 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
1100 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
1101 * config/mips/iris5gas.h: Ditto.
1102 (DBX_DEBUGGING_INFO): Remove.
1103 (DWARF2_DEBUGGING_INFO): Ditto.
1104 (MIPS_DEBUGGING_INFO): Ditto.
1105 (PREFERRED_DEBUGGING_TYPE): Ditto.
1106 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
1107 (PREFERRED_DEBUGGING_TYPE): Ditto.
1108 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
1109 * config/mips/elf64.h: Ditto.
1111 2004-01-06 Jan Hubicka <jh@suse.cz>
1113 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
1114 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
1116 2004-01-06 Geoffrey Keating <geoffk@apple.com>
1118 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
1119 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
1120 * config/rs6000/darwin-ldouble.c: New.
1122 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
1124 (constant_subword): Delete.
1125 * rtl.h (constant_subword): Delete prototype.
1126 (immed_double_const): Is not in varasm.c.
1127 * simplify-rtx.c (simplify_immed_subreg): New.
1128 (simplify_subreg): Use simplify_immed_subreg.
1130 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1131 than trying to generate RTL directly.
1132 (fix_trunctfsi2): Use expand_fix rather than trying to generate
1135 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1137 2004-01-06 David Edelsohn <edelsohn@gnu.org>
1139 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1140 function into a separate macro.
1141 (read_only_data_section): Add void argument.
1142 (private_data_section): Same.
1143 (read_only_private_data_section): Same.
1144 (toc_section): Same.
1146 2004-01-06 Jan Hubicka <jh@suse.cz>
1148 * invoke.texi: Remove typo in last change.
1151 * config.gcc: Accept opteron and athlon-64 as variants
1153 * i386.c (override_options): Likewise.
1154 * invoke.texi (i386 -mtune): Expand documentation.
1156 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1158 * alias.c: Fix comment typos.
1159 * builtins.c: Likewise.
1162 * dominance.c: Likewise.
1163 * dwarf2out.c: Likewise.
1164 * emit-rtl.c: Likewise.
1166 * final.c: Likewise.
1167 * fold-const.c: Likewise.
1169 * genattrtab.c: Likewise.
1170 * genrecog.c: Likewise.
1171 * gensupport.c: Likewise.
1172 * ggc-zone.c: Likewise.
1173 * integrate.c: Likewise.
1174 * local-alloc.c: Likewise.
1176 * recog.c: Likewise.
1177 * regmove.c: Likewise.
1178 * reg-stack.c: Likewise.
1179 * reorg.c: Likewise.
1180 * rtlanal.c: Likewise.
1182 * sched-ebb.c: Likewise.
1183 * simplify-rtx.c: Likewise.
1184 * toplev.c: Likewise.
1185 * varasm.c: Likewise.
1187 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1189 * doc/install.texi: Fix typos.
1190 * doc/invoke.texi: Likewise.
1191 * doc/md.texi: Likewise.
1193 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1195 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1197 2004-01-06 Jan Hubicka <jh@suse.cz>
1199 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
1200 (function_arg_advance): Do not pass aggregates in SSE; deal handling
1202 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
1204 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1205 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1206 (MMX_REGPARM_MAX): Similarly for -mmmx.
1208 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1210 * config/sh/linux.h: Fix comment formatting.
1211 * config/sh/netbsd-elf.h: Likewise.
1212 * config/sh/sh.c: Likewise.
1213 * config/sh/sh.h: Likewise.
1214 * config/sh/vxworks.h: Likewise.
1216 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1218 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1219 * toplev.c (output_file_directive): Don't use
1220 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1222 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
1224 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1225 (USING_MMAP): We don't support non-mmap.
1226 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1228 (struct page_entry): Remove bytes_free.
1229 (struct page_table_chain): Remove.
1230 (struct globals): Remove page_table member.
1231 (loookup_page_table_entry): Function deleted.
1232 (set_page_table_entry): Ditto.
1233 (ggc_allocated_p): No longer need page table lookups.
1234 (ggc_marked_p): Ditto.
1235 (alloc_small_page): Don't care about bytes_free anymore.
1236 (alloc_large_page): Round up size.
1237 (ggc_alloc_zone_1): Mark large objects as such, and calculate
1238 their size the new way.
1239 Remove page table lookups and setting.
1240 (ggc_get_size): Calculate large object size the new way.
1241 (sweep_pages): Redo to account for fact that we no longer have
1243 (ggc_collect): No longer need to reincrement bytes_free.
1244 (ggc_pch_alloc_object): Handle new large objects properly.
1245 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1247 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1249 * doc/invoke.texi: Remove a page break.
1251 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1253 * config/avr/avr.c (avr_output_function_prologue): Remove an
1254 extra pair of curly braces.
1256 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1258 * config/mn10300/mn10300.c: Fix comment formatting.
1259 * config/mn10300/mn10300.h: Likewise.
1261 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1263 * tree.h: Update documentation on nothrow_flag.
1264 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1267 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1269 * doc/invoke.texi: Remove traces of dead ports.
1271 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1273 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1276 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1279 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1281 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1282 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1283 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
1284 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1285 (mips_symbol_insns): Don't trust the local/global classification.
1286 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1287 (override_options): Make -mabicalls -fno-unit-at-a-time imply
1288 -mno-explicit-relocs.
1289 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1290 between local and global symbols.
1292 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1294 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1295 (mips_preferred_reload_class): Declare.
1296 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1297 (EXTRA_CONSTRAINT): Update accordingly.
1298 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1299 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1300 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
1301 mips_dangerous_for_la25_p.
1302 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1303 if mips_dangerous_for_la25_p.
1305 2004-01-05 Bernardo Innocenti <bernie@develer.com>
1307 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1310 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
1312 * configure.ac: Use AC_PROG_CPP_WERROR.
1313 * configure: Regenerate.
1315 2004-01-04 Zack Weinberg <zack@codesourcery.com>
1317 * .cvsignore: Add autom4te.cache.
1319 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
1321 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
1322 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1323 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
1324 then architecture options, then ABI options. General rewording.
1326 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
1329 * doc/extend.texi: Clarify definition of malloc attribute.
1331 2004-01-04 Jan Hubicka <jh@suse.cz>
1333 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1334 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1335 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1336 (cgraph_inline_p): Add extra argument reason.
1337 * cgraphunit.c: Minor formating fixes.
1338 cgraph_first_inlined_callee): New functions.
1339 (record_call_1): Record builtins too.
1340 (cgraph_analyze_function): Update inline_failed messages.
1341 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1342 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1343 (cgraph_check_inline_limits): Likewise; Add argument reason.
1344 (cgraph_set_inline_failed): New static function.
1345 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1347 (cgraph_inline_p): Add new argument reason.
1348 * tree-inline.c (expand_call_inline): Update warning.
1350 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1352 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1353 with modern equivalents.
1354 * configure: Regenerate.
1356 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1357 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1358 * configure: Regenerate.
1360 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1362 * configure.in: Rename to configure.ac.
1363 * configure.ac: Renamed from configure.in; make minimum necessary
1364 changes for autoconf 2.5x.
1365 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1366 * configure: Regenerate with autoconf 2.57.
1368 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
1370 * config/mips/linux.h: Fix comment formatting.
1371 * config/mips/mips.c: Likewise.
1372 * config/mips/mips.h: Likewise.
1373 * config/mips/mips.md: Likewise.
1374 * config/mips/netbsd.h: Likewise.
1375 * config/mips/windiss.h: Likewise.
1377 2004-01-02 Richard Henderson <rth@redhat.com>
1379 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1380 for sse and 387; add suppression for mmx.
1382 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
1384 * loop.c (loop_optimize): Free all loops_info's mems.
1386 * c-typeck.c (finish_init): Free spelling_base before
1389 * cfgloop.c (flow_loops_find): Always free the sbitmap
1392 * predict.c (estimate_probability): Free bbs after being
1395 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1397 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1398 const_8bit_operand and call_address_operand.
1400 2004-01-02 Jan Hubicka <jh@suse.cz>
1402 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
1403 when there is nothing to inline but warnings are requested.
1404 (cgraph_decide_inlining): Fix memory leak.
1406 2004-01-02 Jan Hubicka <jh@suse.cz>
1408 * expr.c (store_constructor): Fix pasto in previous patch.
1410 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1412 * config/i386/cygming.h: Fix comment formatting.
1413 * config/i386/djgpp.h: Likewise.
1414 * config/i386/gthr-win32.c: Likewise.
1415 * config/i386/i386-interix.h: Likewise.
1416 * config/i386/i386.c: Likewise.
1417 * config/i386/i386.h: Likewise.
1418 * config/i386/openbsd.h: Likewise.
1419 * config/i386/winnt.c: Likewise.
1420 * config/i386/xm-mingw32.h: Likewise.
1422 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
1424 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1425 copyright and last modification dates.
1427 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
1429 * doc/install.texi (Specific): Mention x86_64.
1431 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1433 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1434 Call force_operand on plus_constant result.
1436 2004-01-01 Jan Hubicka <jh@suse.cz>
1438 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1439 * expr.c (store_constructor): Use vec_init pattern.
1440 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1441 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1442 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1443 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1445 (sse2_unpc?pd): Fix pattern.
1446 (sse2_movlpd): Kill.
1447 (sse2_movsd): Deal with movlpd too.
1448 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1449 (ix86_expand_vector_init): New.
1450 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1451 * md.texi (vec_set, vec_extract): Document
1453 2003-12-31 Jan Hubicka <jh@suse.cz>
1456 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
1460 * toplev.c (dump_file_index): Reorder ce3 and bbro.
1461 (dump_file): Likewise.
1462 (rest_of_compilation): Likewise.
1465 * cgraph.c (cgraph_function_possibly_inlined): Even with
1466 flag_really_no_inline we inline always_inline functions.
1467 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1468 for non-always_inline functions when there is flag_really_no_inline.
1469 (cgraph_decide_inlining): Limit work done when not inlining.
1470 (cgraph_decide_inlining_incrementally): Likewise.
1471 (cgraph_optimize_function): Check whether something got inlined.
1472 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1473 extern inline functions when not inlining.
1475 * opts.c (decode_options): Disable crossjumping at -O1
1476 * invoke.texi (-O1): Document change.
1478 See ChangeLog.10 for earlier changes.