postreload.c (reload_cse_simplify_operands): Don't remove implicit extension from...
[gcc.git] / gcc / ChangeLog
1 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
2
3 * postreload.c (reload_cse_simplify_operands): Don't remove
4 implicit extension from LOAD_EXTEND_OP.
5
6 2004-01-16 Jan Hubicka <jh@suse.cz>
7
8 PR opt/11350
9 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
10 after reload.
11 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
12 rtl_try_redirect_by_replacing_branch): Likewise.
13
14 2004-01-15 Geoffrey Keating <geoffk@apple.com>
15
16 PR pch/13689
17 * alias.c (struct alias_set_entry): Mark for GC.
18 (alias_sets): Make static, mark for GC.
19 (record_alias_subset): Use GC to allocate alias structures.
20 * varray.c (element): Make generic varrays GCed.
21
22 PR pch/13361
23 * c-typeck.c (constructor_asmspec): Delete.
24 (struct initializer_stack): Delete field 'asmspec'.
25 (start_init): Delete saving of asmspec.
26 (finish_init): Don't update constructor_asmspec.
27 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
28 * stmt.c (expand_asm): Duplicate strings from tree.
29 (expand_asm_operands): Likewise.
30 * tree.c (tree_size): Update computation of size of STRING_CST.
31 (make_node): Don't make STRING_CST nodes.
32 (build_string): Allocate string with tree node.
33 * tree.def (STRING_CST): Update comment.
34 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
35 (tree_string): Place contents of string in tree node.
36 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
37 from tree.
38
39 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
40 altivec operands.
41
42 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
43
44 * c-common.h: Fix comment formatting.
45 * c-cppbuiltin.c: Likewise.
46 * c-pragma.c: Likewise.
47 * calls.c: Likewise.
48 * collect2.c: Likewise.
49 * cppcharset.c: Likewise.
50 * cpptrad.c: Likewise.
51 * dbxout.c: Likewise.
52 * defaults.h: Likewise.
53 * dwarf2out.c: Likewise.
54 * fold-const.c: Likewise.
55 * genautomata.c: Likewise.
56 * genconditions.c: Likewise.
57 * genflags.c: Likewise.
58 * gengtype.c: Likewise.
59 * integrate.c: Likewise.
60 * loop.c: Likewise.
61 * predict.c: Likewise.
62 * sdbout.c: Likewise.
63
64 2004-01-15 Zack Weinberg <zack@codesourcery.com>
65
66 * config/ia64/ia64.md (*movti_internal): C output template
67 extracted to ia64.c.
68 (*movti_internal_reg): Delete.
69 (reload_inti, reload_outti): Use the correct mode on operand 2
70 in the first place, don't fix it up in the output template.
71 (movtf, reload_ointf, reload_outtf): New expanders.
72 (*movtf_internal): New define_insn_and_split.
73 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
74 make static; do not hand TFmode CONST_DOUBLEs to split_double.
75 (ia64_split_tmode_move): New function, body mostly pulled
76 from ia64.md:*movti_internal.
77 (ia64_function_arg_words): New function, extracted common
78 logic from ia64_function_arg et seq.
79 (ia64_function_arg_offset): Likewise. Handle correctly the
80 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
81 (ia64_function_arg, ia64_function_arg_partial_nregs)
82 (ia64_function_arg_advance): Use ia64_function_arg_words and
83 ia64_function_arg_offset.
84 (ia64_function_value): TCmode does not go in float regs.
85 (ia64_secondary_reload_class): Also handle TFmode.
86 * config/ia64/ia64-protos.h: Remove prototype for
87 ia64_split_timode; add prototype for ia64_split_tmode_move.
88
89 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
90
91 * Makefile.in (MAINT): Make it an immediate assignment.
92
93 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
94
95 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
96
97 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
98
99 * config/h8300/coff.h: Replace Hitachi with Renesas.
100 * config/h8300/elf.h: Likewise.
101 * config/h8300/h8300-protos.h: Likewise.
102 * config/h8300/h8300.c: Likewise.
103 * config/h8300/h8300.h: Likewise.
104 * config/h8300/h8300.md: Likewise.
105 * config/h8300/lib1funcs.asm: Likewise.
106
107 2004-01-15 Andrew Pinski <apinski@apple.com>
108
109 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
110 around it.
111
112 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
113
114 * config/h8300/h8300.c (h8300_return_in_memory): New.
115 (TARGET_STRUCT_VALUE_RTX): Likewise.
116 (TARGET_RETURN_IN_MEMORY): Likewise.
117 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
118 (RETURN_IN_MEMORY): Likewise.
119
120 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
121
122 PR optimization/13375
123 * gcse.c (handle_avail_expr): Just return if the source is not a
124 single set.
125
126 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
127 Daniel Jacobowitz <drow@mvista.com>
128
129 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
130 (EQUIV): Define.
131 (ARM_FUNC_ALIAS): New macro.
132 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
133 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
134
135 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
136
137 PR optimization/12372
138 * calls.c (expand_call): Add call_fusage data for stack arguments in
139 constant calls.
140
141 2004-01-15 Alan Modra <amodra@bigpond.net.au>
142
143 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
144 (rs6000_elf_declare_function_name): Formatting.
145 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
146
147 2004-01-15 Jan Hubicka <jh@suse.cz>
148
149 PR bootstrap/13692
150 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
151 previous patch.
152
153 2004-01-15 Richard Henderson <rth@redhat.com>
154
155 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
156 integer regs of the same call-savedness.
157
158 2004-01-15 Andreas Schwab <schwab@suse.de>
159
160 PR bootstrap/13562
161 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
162 status for NOTB/NOTW/NEGW methods.
163
164 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
165
166 * doc/invoke.texi: Update dump file names. Fix a typo.
167
168 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
169
170 * builtins.c (expand_builtin_va_end): Don't use
171 EXPAND_BUILTIN_VA_END.
172 * system.h (EXPAND_BUILTIN_VA_END): Poison.
173 * config/d30v/d30v.h: Remove a commented-out definition of
174 EXPAND_BUILTIN_VA_END.
175 * config/stormy16/stormy16.h: Likewise.
176
177 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
178
179 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
180 * targhooks.c (default_struct_value_rtx): Don't use
181 STRUCT_VALUE_INCOMING_REGNUM.
182
183 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
184
185 PR bootstrap/12744
186 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
187 GENINSRC and not parsedir. Define srcextra as a langhook.
188 * configure: Regenerate.
189 * Makefile.in: Suppress default .l.c rule. Don't substitute
190 parsedir and delete all references throughout. Conditionally define
191 rule for srcextra dependent on GENINSRC.
192 (stmp-docobjdir): Delete.
193 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
194 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
195 and gengtype-yacc.h back to source directory.
196 (maintainer-clean): Delete all parse files in source directory.
197 (distclean): Delete generated files.
198
199 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
200 (objc-parse.c, objc-parse.y): Don't use parsedir.
201 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
202 directory if requested.
203 (po-generated): Don't use parsedir.
204 (objc.maintainer-clean): Delete above files from source directory.
205
206 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
207
208 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
209
210 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
211
212 * doc/tm.texi: Replace RETURN_IN_MEMORY with
213 TARGET_RETURN_IN_MEMORY.
214
215 2004-01-15 Jan Hubicka <jh@suse.cz>
216
217 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
218 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
219 functions accepting SSE arguments
220 (function_arg): Warn only when asked to warn.
221 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
222
223 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
224
225 * c-parse.in (stmts_and_decls): Make label at end of compound
226 statement a hard error.
227
228 2004-01-14 Jan Hubicka <jh@suse.cz>
229
230 * cgraph.c (create_edge): Use local.redefined_extern_inline.
231 * cgraph.h (cgraph_local_info): Sort fields by size; add
232 redefined_extern_inline
233 (cgraph_global_info): Sort fields by size.
234 (cgraph_node): Likewise.
235 * cgraphunit.c (cgraph_finalize_function): Se
236 local.redefined_extern_inline on redefinition.
237 (cgraph_analyze_function): Use it; fix formating.
238
239 2004-01-14 Jan Hubicka <jh@suse.cz>
240
241 PR c++/10776
242 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
243 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
244 bitmaps
245 (cache_size): New variable
246 (add_dependence): Update use; canonize early memory locations
247 (sched_analyze_1): Likewise.
248 (sched_analyze_2): Likewise.
249 (init_dependency_caches): Initialize bitmaps.
250 (free_dependency_caches): Free bitmaps
251
252 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
253
254 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
255 targetm.calls.strict_argument_naming().
256 * target.h: Likewise.
257
258 2004-01-14 Richard Henderson <rth@redhat.com>
259
260 PR debug/13231
261 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
262 instructions.
263
264 2004-01-14 Richard Henderson <rth@redhat.com>
265
266 PR c++/12491
267 * except.c (struct eh_region): Add u.fixup.resolved.
268 (resolve_one_fixup_region): Split out from ...
269 (resolve_fixup_regions): ... here.
270
271 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
272
273 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
274
275 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
276
277 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
278 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
279 (STRUCT_VALUE): Remove.
280
281 2003-01-14 Steven Bosscher <stevenb@suse.de>
282
283 * system.h: Poison PROMOTED_MODE
284 * integrate.c (expand_inline_function): Don't mention the
285 PROMOTED_MODE.
286 * loop.c (update_giv_derive): Same.
287 * tree.h (DECL_RTL): Same.
288
289 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
290
291 PR target/9365
292 * sh.c (gen_block_redirect): Add special handling of RETURN.
293 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
294 far branch target (i.e. it's a return).
295
296 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
297
298 * regrename.c (find_oldest_value_reg): Fix a warning.
299
300 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
301
302 PR bootstrap/12527
303 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
304 Move linux-gas.h and linux-elf.h before aout.h.
305 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
306 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
307
308 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
309
310 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
311 (CONST_INT, VOIDmode, ...).
312
313 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
314
315 * regrename.c (find_oldest_value_reg): If the replacement uses
316 multiple hard registers, check that all of them are in CLASS.
317
318 2004-01-14 Jan Hubicka <jh@suse.cz>
319
320 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
321 impossible.
322
323 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
324
325 * Makefile.in: Define MAINT from --enable-maintainer-mode.
326
327 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
328
329 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
330 Calculate always vrsave_mask if TARGET_ALTIVEC.
331 (rs6000_emit_prologue): Emit code for vrsave
332 only if TARGET_ALTIVEC_VRSAVE.
333 (rs6000_emit_epilogue): Likewise.
334
335 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
336
337 * config/sparc/sparc.md (tie_add32): Fix pasto.
338 (tie_add64): Likewise.
339
340 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
341
342 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
343
344 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
345
346 * config/iq2000/iq2000-protos.h: Fix comment formatting.
347 * config/iq2000/iq2000.c: Likewise.
348 * config/iq2000/iq2000.md: Likewise.
349
350 2004-01-14 J. Brobecker <brobecker@gnat.com>
351
352 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
353 (subrange_type_die): Add handle for nameless subrange types.
354
355 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
356
357 * config/h8300/h8300-protos.h: Replace do_movsi with
358 h8300_expand_movsi.
359 * config/h8300/h8300.c (do_movsi): Change to
360 h8300_expand_movsi.
361 * config/h8300/h8300.md (movsi): Replace do_movsi with
362 h8300_expand_movsi.
363 (movsf): Likewise.
364
365 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
366
367 * config/h8300/h8300.c (dosize): Change to
368 h8300_emit_stack_adjustment. Update callers.
369
370 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
371
372 * config/h8300/h8300.md (movstrictqi): Add an alternative with
373 the source being post_inc. Tighten the predicate for the
374 destination to register_operand.
375 (movstricthi): Likewise.
376
377 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
378
379 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
380 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
381 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
382
383 2004-01-14 Jan Hubicka <jh@suse.cz>
384
385 Partial fix PR c++/12850
386 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
387 at zero nest level.
388
389 2004-01-13 Bernardo Innocenti <bernie@develer.com>
390
391 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
392 pseudo-register.
393
394 2004-01-13 Devang Patel <dpatel@apple.com
395
396 PR debug/7078
397 * dbxout.c (dbxout_symbol_name): Emit mangled names for
398 NAMESPACE_DECL memebers.
399
400 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
401
402 PR c++/12709
403 * c-common.c (finish_fname_decls): Use the chain only if the
404 tree is an expr_stmt.
405
406 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
407
408 * rtl.def: Add comment about new option in automata_option.
409
410 * genautomata.c (PROGRESS_OPTION): New macro.
411 (progress_flag): New global variable.
412 (gen_automata_option): Process `progress'.
413 (transform_insn_regexps, check_unit_distributions_to_automata,
414 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
415 expand_automata, write_automata): Print about the progress only if
416 progress_flag. Remove fflush.
417 (initiate_automaton_gen): Process command line flag `-progress'.
418
419 * doc/md.texi: Describe the new option.
420
421 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
422
423 * cfg.c (dump_bb): Dump entry edges.
424
425 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
426
427 * arm.c (thumb_legitimate_address_p): Only allow constant pool
428 references from SImode.
429 * arm.md (thumb_movhi_insn): Don't allow minipool references.
430
431 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
432
433 * system.h (TEXT_SECTION): Poison.
434 * varasm.c (text_section): Don't use TEXT_SECTION.
435 * config/sh/sh.c (sh_file_start): Fix a comment typo.
436 * doc/tm.texi (TEXT_SECTION): Remove.
437
438 2004-01-13 Ben Elliston <bje@wasabisystems.com>
439
440 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
441
442 2004-01-12 James E Wilson <wilson@specifixinc.com>
443
444 * unwind-libunwind.c: Delete.
445
446 2004-01-12 Zack Weinberg <zack@codesourcery.com>
447
448 PR 13656
449 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
450 oldtype is set, set *newtypep or *oldtypep too. Do not set
451 them at the very end.
452 (validate_proto_after_old_defn): Restructure for comprehensibility;
453 make error messages clearer.
454
455 2004-01-12 Zack Weinberg <zack@codesourcery.com>
456
457 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
458 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
459 * varray.c: No need to prototype error.
460 (varray_check_failed): Wrap long string onto two lines.
461 (varray_underflow): New function.
462
463 2004-01-13 Steven Bosscher <stevenb@suse.de>
464
465 PR c++/13376
466 * function.h (struct function): Kill `name' field.
467 (current_function_name): Make it an extern function.
468 * function.c (current_function_name): New function.
469 * graph.c: Update all uses of current_function_name.
470 * gcse.c: Likewise.
471 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
472 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
473 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
474 instead of a strcmp with "main".
475
476 2004-01-13 Jan Hubicka <jh@suse.cz>
477
478 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
479
480 * cgraphunit.c (cgraph_optimize_function): Always do
481 optimize_inline_calls when there is always_inline callee.
482 (cgraph_decide_inlining): Fix formating.
483 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
484 functions.
485 (expand_call_inline): Likewise.
486 * toplev.h (sorry): Fix prototype.
487
488 2004-01-12 Roger Sayle <roger@eyesopen.com>
489
490 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
491 conditional jumps that drop through to unconditional jumps or the
492 end of the sequence.
493
494 2004-01-13 Jan Hubicka <jh@suse.cz>
495
496 * alias.c (new_alias_set): Construct the alias_set varray.
497 (init_alias_once): Don't do it here.
498
499 2004-01-12 Marc Espie <espie@openbsd.org>
500
501 * system.h: handle YYBYACC like YYBISON.
502
503 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
504
505 PR target/10847
506 * config.gcc: No longer includes conflicting header sparc/sol2.h when
507 building on sparc64-*-openbsd*.
508
509 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
510
511 PR debug/13539
512 * dbxout.c (dbxout_type): Protected inheritance is not
513 private but protected.
514
515 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
516
517 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
518
519 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
520
521 PR optimization/12508.
522 * combine.c (try_combine): Remove a dead set in a parallel
523 even if its destination is a subreg.
524
525 Revert:
526 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
527 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
528 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
529
530 2004-01-12 Geoffrey Keating <geoffk@apple.com>
531
532 * real.c: Update copyright date.
533 * emit-rtl.c: Likewise.
534 * rtl.h: Likewise.
535 * dwarf2out.c: Likewise.
536 * config/rs6000/darwin-ldouble.c: Likewise.
537 * config/rs6000/rs6000.md: Likewise.
538
539 2004-01-12 David Edelsohn <edelsohn@gnu.org>
540
541 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
542 TFmode to SImode libfuncs.
543
544 2004-01-12 Roger Sayle <roger@eyesopen.com>
545
546 PR middle-end/11397
547 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
548
549 2004-01-12 Jan Hubicka <jh@suse.cz>
550
551 PR opt/12826
552 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
553 stored.
554
555 PR opt/12863
556 * cfgcleanup.c (label_is_jump_target_p): Move to...
557 * rtlanal.c (label_is_jump_target_p): ... here.
558 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
559 edges unified with branch edges.
560
561 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
562
563 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
564 high word of an integral CONST_DOUBLE.
565
566 2004-01-12 Paul Brook <paul@codesourcery.com>
567
568 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
569
570 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
571
572 PR target/13585
573 * sh-protos.h (check_use_sfunc_addr): Declare.
574 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
575 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
576
577 2004-01-12 Jan Hubicka <jh@suse.cz>
578
579 * alias.c: Invlude varray.h
580 (alias_sets): Turn into varray.
581 (get_alias_set_entry): Use VARRAY; mark inline.
582 (mems_in_disjoint_alias_sets_p): Mark inline.
583 (record_alias_subset): Use varray.
584 (init_alias_once): Initialize varray.
585 (new_alias_set): Grow array.
586 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
587
588 2004-01-12 Jan Hubicka <jh@suse.cz>
589
590 Partial fix for PR opt/10776 II
591 * cselib.c: Include params.h
592 (cselib_invalidate_mem): Limit amount of nonconflicting memory
593 locations.
594 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
595 * Makefile.in (cselib.o): Depend on params.h
596
597 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
598
599 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
600 simplify_unary_operation if the operand has a known mode.
601
602 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
603
604 PR target/13534
605 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
606 predicate to handle 'ld' conform addresses.
607 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
608 contraint.
609 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
610 are memory contraints.
611 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
612 New prototype.
613 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
614 Change 'o' to 'Y' constraint.
615 (*movdf_softfloat64): Ditto.
616
617 2004-01-12 Bernardo Innocenti <bernie@develer.com>
618
619 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
620 brace-enclosed syntax in all C output statements.
621
622 2004-01-12 David Edelsohn <edelsohn@gnu.org>
623
624 PR target/13401
625 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
626 Objective-C language type value is 14.
627
628 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
629
630 PR c/12148
631 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
632 `int' in a number of places to make sure we always have a SImode
633 and not a HImode. Add a 'L' suffix to a number of constants.
634
635 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
636
637 * pa.c: Don't include obstack.h.
638
639 * pa.md: Correct constraint in pattern for loading PIC label address.
640
641 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
642
643 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
644 before defining.
645
646 2004-01-11 Steven Bosscher <stevenb@suse.de>
647
648 PR fortran/9972
649 * toplev.c (rest_of_handle_inline): Also consider functions
650 for deferral if the language is GNU F77.
651
652 2004-01-11 Zack Weinberg <zack@codesourcery.com>
653
654 * c-decl.c (diagnose_arglist_conflict): Add missing space to
655 diagnostic messages.
656
657 2004-01-11 Jakub Jelinek <jakub@redhat.com>
658
659 PR middle-end/13392
660 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
661 to drop through label. Don't fall back to SCC even when conditional
662 jump has not been found.
663
664 2004-01-11 Jan Hubicka <jh@suse.cz>
665
666 * invoke.texi: Fix syntax error in previous patch.
667
668 Partial fix for PR opt/10776
669 * Makefile.in (reload.o): Include param.h
670 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
671 * reload.c: Include params.h.
672 (find_equiv_reg): Work limiting check.
673 * invoke.texi: Document.
674
675 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
676
677 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
678 out-of-bounds accesses to string constants. Simplify mips16
679 case accordingly.
680
681 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
682
683 PR optimization/13469
684 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
685 reload_cse_regs (-fnon-call-exceptions only).
686
687 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
688
689 * config/mcore/lib1.asm: Fix comment formatting.
690 * config/mcore/mcore-elf.h: Likewise.
691 * config/mcore/mcore.c: Likewise.
692 * config/mcore/mcore.h: Likewise.
693 * config/mcore/mcore.md: Likewise.
694
695 2004-01-10 Zack Weinberg <zack@codesourcery.com>
696
697 * c-decl.c (duplicate_decls): Break apart into...
698 (diagnose_arglist_conflict, validate_proto_after_old_defn)
699 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
700 ... these new functions. Restructure for comprehensibility.
701 Remove various archaic special cases. Always report the
702 location of the previous declaration when a diagnostic is issued.
703 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
704 (match_builtin_function_types): Delete unnecessary forward declaration.
705
706 2004-01-10 Zack Weinberg <zack@codesourcery.com>
707
708 * genautomata.c (make_automaton, NDFA_to_DFA):
709 Print progress bars with '.' characters instead of '*'.
710 (build_automaton): Change notes to match.
711
712 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
713
714 * config/m32r/m32r.md: Use define_constants for unspec and
715 unspec_volatile.
716
717 2004-01-10 Jan Hubicka <jh@suse.cz>
718
719 PR opt/11635
720 * expr.c (expand_expr_real): More curefully expand union casts.
721
722 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
723
724 * config/m32r/m32r.md (flush_icache): Use 1 for
725 unspec_volatile.
726
727 2004-01-10 David Edelsohn <edelsohn@gnu.org>
728 James E Wilson <wilson@specifixinc.com>
729
730 PR debug/12860
731 * dbxout.c (dbxout_symbol): Remove initialization of
732 current_sym_code, current_sym_value, and current_sym_addr.
733 (dbxout_symbol_location): Same.
734 (dbxout_prepare_symbol): Zero current_sym_code,
735 current_sym_value, and current_sym_addr.
736
737 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
738
739 * tree.c (get_unwidened): Reorder conditions so that the null pointer
740 check is done first.
741
742 2004-01-09 Eric Christopher <echristo@redhat.com>
743
744 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
745 if we're running mark_constant_function.
746
747 2004-01-09 Jeff Bailey <jbailey@nisa.net>
748
749 PR target/12561
750 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
751
752 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
753
754 PR debug/11231
755 * dbxout.c (dbxout_type_fields): Return if any item is
756 error_mark_node or the type is error_mark_node.
757
758 2004-01-09 Geoffrey Keating <geoffk@apple.com>
759
760 * config/rs6000/darwin-ldouble.c: Add big comment explaining
761 exactly what is expected as a 'long double'.
762 (_xlqadd): When a value to be returned is representable as a
763 'double', just return it directly, do not construct it using a union.
764 Also, correct final fixup.
765 (_xlqmul): Likewise.
766 (_xlqdiv): Likewise.
767 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
768
769 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
770
771 2004-01-09 Richard Henderson <rth@redhat.com>
772
773 * recog.c (constrain_operands): Validate mem operands.
774
775 2004-01-09 James E Wilson <wilson@specifixinc.com>
776
777 * gcc.c (init_spec): Remove -lunwind from shared case.
778 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
779
780 2004-01-09 Steve Ellcey <sje@cup.hp.com>
781
782 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
783 * configure: Regenerate
784
785 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
786
787 PR c/11234
788 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
789 between function and object pointers.
790 (digest_init): When comparing a pointer to function type to the
791 target type, only apply TREE_TYPE once to the pointer to function
792 type.
793 * except.c (for_each_eh_label_1): Treat data as a pointer to a
794 function pointer rather than casting it to a function pointer.
795 (for_each_eh_label): Update caller.
796 * recog.h (struct insn_data): Use a struct or union for output.
797 * genoutput.c (output_insn_data): Update.
798 * final.c (get_insn_template): Update.
799
800 2004-01-09 Mark Mitchell <mark@codesourcery.com>
801
802 * expr.h (expand_expr): Make it a macro, not a function.
803 (expand_expr_real): New function.
804 * expr.c (store_expr): Adjust logic for deciding whether or not to
805 copy the value returned by expand_expr.
806 (expand_expr): Rename to ...
807 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
808 calls to language hooks.
809 * c-common.h (c_expand_expr): Adjust prototype.
810 * c-common.c (c_expand_expr): Add alt_rtl parameter.
811 * langhooks-def.h (lhd_expand_expr): Change prototype.
812 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
813 * langhooks.h (lang_hooks): Change type of expand_expr.
814 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
815 (last_expr_alt_rtl): Likewise.
816 (expand_expr_stmt_value): Set last_expr_alt_rtl.
817 (clear_last_expr): Clear it.
818 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
819 (expand_end_bindings): Save and restor last_expr_alt_rtl.
820 * tree.def (RTL_EXPR): Give it an additional operand.
821 * tree.h (RTL_EXPR_ALT_RTL): New macro.
822
823 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
824
825 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
826 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
827
828 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
829
830 PR target/13380.
831 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
832 or (ne:SI (reg:CC 17) (const_int 0)).
833 Be specific about modes wherever possible.
834
835 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
836
837 * config/m32r/m32r.c (m32r_expand_block_move): Call
838 gen_movestrsi_internal with two more arguments.
839 (m32r_output_block_move): Adjust operand numbers.
840 Properly update the source and destination pointers.
841 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
842 'r+'. Change the set detinations to match_operand.
843
844 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
845
846 * final.c (FIRST_INSN_ADDRESS): Remove.
847 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
848 * system.h (FIRST_INSN_ADDRESS): Poison.
849 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
850 * config/m32r/m32r-protos.h: Remove the prototype for
851 m32r_first_insn_address.
852 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
853 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
854 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
855
856 2004-01-09 J. Brobecker <brobecker@gnat.com>
857
858 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
859 we just created.
860 (is_ada_subrange_type): DIEs for enumeration subtypes should be
861 emitted as subrange types too.
862 (subrange_type_die): Add handling of enumeration subtypes.
863
864 2004-01-08 Richard Henderson <rth@redhat.com>
865
866 PR opt/12441
867 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
868 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
869 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
870 (ix86_address_cost): Be prepared for SUBREGed registers.
871 (legitimate_address_p): Accept SUBREGed registers.
872
873 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
874
875 * Makefile.in: Rename configure.in to configure.ac
876 * doc/sourcebuild.texi: Likewise.
877 * configure: Regenerate.
878 * config.in: Regenerate.
879
880 2004-01-08 Stuart Hastings <stuart@apple.com>
881
882 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
883
884 2004-01-08 Jan Hubicka <jh@suse.cz>
885
886 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
887
888 2004-01-08 Geoffrey Keating <geoffk@apple.com>
889
890 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
891 (UNSPEC_FIX_TRUNC_TF): New constant.
892 (movtf_internal): Make splitter active only when insn is active.
893 (extenddftf2): Rewrite to properly load zero into low part.
894 (extenddftf2_internal): New.
895 (extendsftf2): Rewrite.
896 (truncdftf2): Correct length.
897 (floatditf2): Delete.
898 (fix_trunc_helper): New.
899 (fix_trunctfdi2): Use fix_trunc_helper.
900 (fix_trunctfsi2): Likewise.fix_trunc
901 (fix_trunctfsi2_internal): New.
902
903 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
904 addresses are legitimate on Darwin even when flag_pic.
905 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
906 non-offsettable addresses for loads of TFmode constants.
907
908 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
909
910 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
911 variables in the appropriate bss section.
912
913 2004-01-09 Alan Modra <amodra@bigpond.net.au>
914
915 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
916 target_flags has MASK_POWERPC64 when -m64.
917 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
918 to 620, 630, power3, power4 and rs64a entries.
919 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
920
921 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
922
923 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
924 floating-point constants.
925
926 2004-01-08 J. Brobecker <brobecker@gnat.com>
927
928 * dwarf2out.c (subrange_type_die): Add context_die parameter.
929 Create the subrange_type DIE using the given context DIE.
930 (modified_type_die): Update call to subrange_type_die.
931
932 2004-01-08 Zack Weinberg <zack@codesourcery.com>
933
934 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
935 Add multiple-include guard.
936
937 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
938
939 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
940 all vector constant loadable by vsplt*.
941 (output_vec_const_move): Likewise.
942
943 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
944
945 PR c/6024
946 * c-typeck.c (comptypes): Only treat enumerated types in the same
947 translation unit as compatible with each other when they are the
948 same type.
949 * doc/extend.texi: Update.
950
951 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
952
953 PR c/12165
954 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
955 array type from the array element type.
956
957 2004-01-07 Alan Modra <amodra@bigpond.net.au>
958
959 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
960 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
961 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
962 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
963 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
964
965 2004-01-06 Eric Christopher <echristo@redhat.com>
966
967 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
968 (DWARF2_DEBUGGING_INFO): Define.
969 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
970 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
971 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
972 for irix as.
973 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
974 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
975 * config/mips/iris5gas.h: Ditto.
976 (DBX_DEBUGGING_INFO): Remove.
977 (DWARF2_DEBUGGING_INFO): Ditto.
978 (MIPS_DEBUGGING_INFO): Ditto.
979 (PREFERRED_DEBUGGING_TYPE): Ditto.
980 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
981 (PREFERRED_DEBUGGING_TYPE): Ditto.
982 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
983 * config/mips/elf64.h: Ditto.
984
985 2004-01-06 Jan Hubicka <jh@suse.cz>
986
987 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
988 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
989
990 2004-01-06 Geoffrey Keating <geoffk@apple.com>
991
992 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
993 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
994 * config/rs6000/darwin-ldouble.c: New.
995
996 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
997 for constants.
998 (constant_subword): Delete.
999 * rtl.h (constant_subword): Delete prototype.
1000 (immed_double_const): Is not in varasm.c.
1001 * simplify-rtx.c (simplify_immed_subreg): New.
1002 (simplify_subreg): Use simplify_immed_subreg.
1003
1004 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
1005 than trying to generate RTL directly.
1006 (fix_trunctfsi2): Use expand_fix rather than trying to generate
1007 RTL directly.
1008
1009 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
1010
1011 2004-01-06 David Edelsohn <edelsohn@gnu.org>
1012
1013 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
1014 function into a separate macro.
1015 (read_only_data_section): Add void argument.
1016 (private_data_section): Same.
1017 (read_only_private_data_section): Same.
1018 (toc_section): Same.
1019
1020 2004-01-06 Jan Hubicka <jh@suse.cz>
1021
1022 * invoke.texi: Remove typo in last change.
1023
1024 PR target/10301
1025 * config.gcc: Accept opteron and athlon-64 as variants
1026 of k8.
1027 * i386.c (override_options): Likewise.
1028 * invoke.texi (i386 -mtune): Expand documentation.
1029
1030 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1031
1032 * alias.c: Fix comment typos.
1033 * builtins.c: Likewise.
1034 * cfg.c: Likewise.
1035 * df.c: Likewise.
1036 * dominance.c: Likewise.
1037 * dwarf2out.c: Likewise.
1038 * emit-rtl.c: Likewise.
1039 * expr.c: Likewise.
1040 * final.c: Likewise.
1041 * fold-const.c: Likewise.
1042 * gcse.c: Likewise.
1043 * genattrtab.c: Likewise.
1044 * genrecog.c: Likewise.
1045 * gensupport.c: Likewise.
1046 * ggc-zone.c: Likewise.
1047 * integrate.c: Likewise.
1048 * local-alloc.c: Likewise.
1049 * loop.c: Likewise.
1050 * recog.c: Likewise.
1051 * regmove.c: Likewise.
1052 * reg-stack.c: Likewise.
1053 * reorg.c: Likewise.
1054 * rtlanal.c: Likewise.
1055 * rtl.h: Likewise.
1056 * sched-ebb.c: Likewise.
1057 * simplify-rtx.c: Likewise.
1058 * toplev.c: Likewise.
1059 * varasm.c: Likewise.
1060
1061 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
1062
1063 * doc/install.texi: Fix typos.
1064 * doc/invoke.texi: Likewise.
1065 * doc/md.texi: Likewise.
1066
1067 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1068
1069 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
1070
1071 2004-01-06 Jan Hubicka <jh@suse.cz>
1072
1073 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
1074 (function_arg_advance): Do not pass aggregates in SSE; deal handling
1075 of MMX_REGPARM.
1076 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
1077 add MMX_REGPARM.
1078 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
1079 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
1080 (MMX_REGPARM_MAX): Similarly for -mmmx.
1081
1082 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1083
1084 * config/sh/linux.h: Fix comment formatting.
1085 * config/sh/netbsd-elf.h: Likewise.
1086 * config/sh/sh.c: Likewise.
1087 * config/sh/sh.h: Likewise.
1088 * config/sh/vxworks.h: Likewise.
1089
1090 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1091
1092 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
1093 * toplev.c (output_file_directive): Don't use
1094 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
1095
1096 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
1097
1098 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
1099 (USING_MMAP): We don't support non-mmap.
1100 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
1101 large objects.
1102 (struct page_entry): Remove bytes_free.
1103 (struct page_table_chain): Remove.
1104 (struct globals): Remove page_table member.
1105 (loookup_page_table_entry): Function deleted.
1106 (set_page_table_entry): Ditto.
1107 (ggc_allocated_p): No longer need page table lookups.
1108 (ggc_marked_p): Ditto.
1109 (alloc_small_page): Don't care about bytes_free anymore.
1110 (alloc_large_page): Round up size.
1111 (ggc_alloc_zone_1): Mark large objects as such, and calculate
1112 their size the new way.
1113 Remove page table lookups and setting.
1114 (ggc_get_size): Calculate large object size the new way.
1115 (sweep_pages): Redo to account for fact that we no longer have
1116 bytes_free.
1117 (ggc_collect): No longer need to reincrement bytes_free.
1118 (ggc_pch_alloc_object): Handle new large objects properly.
1119 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
1120
1121 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1122
1123 * doc/invoke.texi: Remove a page break.
1124
1125 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1126
1127 * config/avr/avr.c (avr_output_function_prologue): Remove an
1128 extra pair of curly braces.
1129
1130 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1131
1132 * config/mn10300/mn10300.c: Fix comment formatting.
1133 * config/mn10300/mn10300.h: Likewise.
1134
1135 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1136
1137 * tree.h: Update documentation on nothrow_flag.
1138 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
1139 types.
1140
1141 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
1142
1143 * doc/invoke.texi: Remove traces of dead ports.
1144
1145 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1146
1147 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
1148 option.
1149
1150 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1151
1152 PR target/12945
1153 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
1154 counter labels.
1155 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
1156 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
1157 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
1158 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
1159 (mips_symbol_insns): Don't trust the local/global classification.
1160 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
1161 (override_options): Make -mabicalls -fno-unit-at-a-time imply
1162 -mno-explicit-relocs.
1163 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
1164 between local and global symbols.
1165
1166 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
1167
1168 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
1169 (mips_preferred_reload_class): Declare.
1170 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
1171 (EXTRA_CONSTRAINT): Update accordingly.
1172 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
1173 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
1174 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
1175 mips_dangerous_for_la25_p.
1176 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
1177 if mips_dangerous_for_la25_p.
1178
1179 2004-01-05 Bernardo Innocenti <bernie@develer.com>
1180
1181 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
1182 warning.
1183
1184 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
1185
1186 * configure.ac: Use AC_PROG_CPP_WERROR.
1187 * configure: Regenerate.
1188
1189 2004-01-04 Zack Weinberg <zack@codesourcery.com>
1190
1191 * .cvsignore: Add autom4te.cache.
1192
1193 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
1194
1195 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
1196 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
1197 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
1198 then architecture options, then ABI options. General rewording.
1199
1200 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
1201
1202 PR c/3414
1203 * doc/extend.texi: Clarify definition of malloc attribute.
1204
1205 2004-01-04 Jan Hubicka <jh@suse.cz>
1206
1207 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
1208 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
1209 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
1210 (cgraph_inline_p): Add extra argument reason.
1211 * cgraphunit.c: Minor formating fixes.
1212 cgraph_first_inlined_callee): New functions.
1213 (record_call_1): Record builtins too.
1214 (cgraph_analyze_function): Update inline_failed messages.
1215 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
1216 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
1217 (cgraph_check_inline_limits): Likewise; Add argument reason.
1218 (cgraph_set_inline_failed): New static function.
1219 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
1220 reasons.
1221 (cgraph_inline_p): Add new argument reason.
1222 * tree-inline.c (expand_call_inline): Update warning.
1223
1224 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
1225
1226 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
1227 with modern equivalents.
1228 * configure: Regenerate.
1229
1230 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
1231 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
1232 * configure: Regenerate.
1233
1234 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
1235
1236 * configure.in: Rename to configure.ac.
1237 * configure.ac: Renamed from configure.in; make minimum necessary
1238 changes for autoconf 2.5x.
1239 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
1240 * configure: Regenerate with autoconf 2.57.
1241
1242 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
1243
1244 * config/mips/linux.h: Fix comment formatting.
1245 * config/mips/mips.c: Likewise.
1246 * config/mips/mips.h: Likewise.
1247 * config/mips/mips.md: Likewise.
1248 * config/mips/netbsd.h: Likewise.
1249 * config/mips/windiss.h: Likewise.
1250
1251 2004-01-02 Richard Henderson <rth@redhat.com>
1252
1253 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
1254 for sse and 387; add suppression for mmx.
1255
1256 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
1257
1258 * loop.c (loop_optimize): Free all loops_info's mems.
1259
1260 * c-typeck.c (finish_init): Free spelling_base before
1261 setting it again.
1262
1263 * cfgloop.c (flow_loops_find): Always free the sbitmap
1264 headers.
1265
1266 * predict.c (estimate_probability): Free bbs after being
1267 done with it.
1268
1269 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1270
1271 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
1272 const_8bit_operand and call_address_operand.
1273
1274 2004-01-02 Jan Hubicka <jh@suse.cz>
1275
1276 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
1277 when there is nothing to inline but warnings are requested.
1278 (cgraph_decide_inlining): Fix memory leak.
1279
1280 2004-01-02 Jan Hubicka <jh@suse.cz>
1281
1282 * expr.c (store_constructor): Fix pasto in previous patch.
1283
1284 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
1285
1286 * config/i386/cygming.h: Fix comment formatting.
1287 * config/i386/djgpp.h: Likewise.
1288 * config/i386/gthr-win32.c: Likewise.
1289 * config/i386/i386-interix.h: Likewise.
1290 * config/i386/i386.c: Likewise.
1291 * config/i386/i386.h: Likewise.
1292 * config/i386/openbsd.h: Likewise.
1293 * config/i386/winnt.c: Likewise.
1294 * config/i386/xm-mingw32.h: Likewise.
1295
1296 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
1297
1298 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
1299 copyright and last modification dates.
1300
1301 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
1302
1303 * doc/install.texi (Specific): Mention x86_64.
1304
1305 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
1306
1307 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
1308 Call force_operand on plus_constant result.
1309
1310 2004-01-01 Jan Hubicka <jh@suse.cz>
1311
1312 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
1313 * expr.c (store_constructor): Use vec_init pattern.
1314 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
1315 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
1316 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
1317 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
1318 New patterns.
1319 (sse2_unpc?pd): Fix pattern.
1320 (sse2_movlpd): Kill.
1321 (sse2_movsd): Deal with movlpd too.
1322 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
1323 (ix86_expand_vector_init): New.
1324 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
1325 * md.texi (vec_set, vec_extract): Document
1326
1327 2003-12-31 Jan Hubicka <jh@suse.cz>
1328
1329 PR opt/13473
1330 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
1331 ASM input operands
1332
1333 PR opt/12617
1334 * toplev.c (dump_file_index): Reorder ce3 and bbro.
1335 (dump_file): Likewise.
1336 (rest_of_compilation): Likewise.
1337
1338 PR debug/13367
1339 * cgraph.c (cgraph_function_possibly_inlined): Even with
1340 flag_really_no_inline we inline always_inline functions.
1341 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
1342 for non-always_inline functions when there is flag_really_no_inline.
1343 (cgraph_decide_inlining): Limit work done when not inlining.
1344 (cgraph_decide_inlining_incrementally): Likewise.
1345 (cgraph_optimize_function): Check whether something got inlined.
1346 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
1347 extern inline functions when not inlining.
1348
1349 * opts.c (decode_options): Disable crossjumping at -O1
1350 * invoke.texi (-O1): Document change.
1351
1352 See ChangeLog.10 for earlier changes.