builtins.c (expand_builtin_expect_jump): Simplify logic.
[gcc.git] / gcc / ChangeLog
1 2004-01-12 Roger Sayle <roger@eyesopen.com>
2
3 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
4 conditional jumps that drop through to unconditional jumps or the
5 end of the sequence.
6
7 2004-01-13 Jan Hubicka <jh@suse.cz>
8
9 * alias.c (new_alias_set): Construct the alias_set varray.
10 (init_alias_once): Don't do it here.
11
12 2004-01-12 Marc Espie <espie@openbsd.org>
13
14 * system.h: handle YYBYACC like YYBISON.
15
16 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
17
18 PR target/10847
19 * config.gcc: No longer includes conflicting header sparc/sol2.h when
20 building on sparc64-*-openbsd*.
21
22 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
23
24 PR debug/13539
25 * dbxout.c (dbxout_type): Protected inheritance is not
26 private but protected.
27
28 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
29
30 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
31
32 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
33
34 PR optimization/12508.
35 * combine.c (try_combine): Remove a dead set in a parallel
36 even if its destination is a subreg.
37
38 Revert:
39 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
40 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
41 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
42
43 2004-01-12 Geoffrey Keating <geoffk@apple.com>
44
45 * real.c: Update copyright date.
46 * emit-rtl.c: Likewise.
47 * rtl.h: Likewise.
48 * dwarf2out.c: Likewise.
49 * config/rs6000/darwin-ldouble.c: Likewise.
50 * config/rs6000/rs6000.md: Likewise.
51
52 2004-01-12 David Edelsohn <edelsohn@gnu.org>
53
54 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
55 TFmode to SImode libfuncs.
56
57 2004-01-12 Roger Sayle <roger@eyesopen.com>
58
59 PR middle-end/11397
60 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
61
62 2004-01-12 Jan Hubicka <jh@suse.cz>
63
64 PR opt/12826
65 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
66 stored.
67
68 PR opt/12863
69 * cfgcleanup.c (label_is_jump_target_p): Move to...
70 * rtlanal.c (label_is_jump_target_p): ... here.
71 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
72 edges unified with branch edges.
73
74 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
75
76 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
77 high word of an integral CONST_DOUBLE.
78
79 2004-01-12 Paul Brook <paul@codesourcery.com>
80
81 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
82
83 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
84
85 PR target/13585
86 * sh-protos.h (check_use_sfunc_addr): Declare.
87 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
88 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
89
90 2004-01-12 Jan Hubicka <jh@suse.cz>
91
92 * alias.c: Invlude varray.h
93 (alias_sets): Turn into varray.
94 (get_alias_set_entry): Use VARRAY; mark inline.
95 (mems_in_disjoint_alias_sets_p): Mark inline.
96 (record_alias_subset): Use varray.
97 (init_alias_once): Initialize varray.
98 (new_alias_set): Grow array.
99 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
100
101 2004-01-12 Jan Hubicka <jh@suse.cz>
102
103 Partial fix for PR opt/10776 II
104 * cselib.c: Include params.h
105 (cselib_invalidate_mem): Limit amount of nonconflicting memory
106 locations.
107 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
108 * Makefile.in (cselib.o): Depend on params.h
109
110 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
111
112 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
113 simplify_unary_operation if the operand has a known mode.
114
115 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
116
117 PR target/13534
118 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
119 predicate to handle 'ld' conform addresses.
120 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
121 contraint.
122 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
123 are memory contraints.
124 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
125 New prototype.
126 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
127 Change 'o' to 'Y' constraint.
128 (*movdf_softfloat64): Ditto.
129
130 2004-01-12 Bernardo Innocenti <bernie@develer.com>
131
132 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
133 brace-enclosed syntax in all C output statements.
134
135 2004-01-12 David Edelsohn <edelsohn@gnu.org>
136
137 PR target/13401
138 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
139 Objective-C language type value is 14.
140
141 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
142
143 PR c/12148
144 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
145 `int' in a number of places to make sure we always have a SImode
146 and not a HImode. Add a 'L' suffix to a number of constants.
147
148 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
149
150 * pa.c: Don't include obstack.h.
151
152 * pa.md: Correct constraint in pattern for loading PIC label address.
153
154 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
155
156 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
157 before defining.
158
159 2004-01-11 Steven Bosscher <stevenb@suse.de>
160
161 * toplev.c (rest_of_handle_inline): Also consider functions
162 for deferral if the language is GNU F77.
163
164 2004-01-11 Zack Weinberg <zack@codesourcery.com>
165
166 * c-decl.c (diagnose_arglist_conflict): Add missing space to
167 diagnostic messages.
168
169 2004-01-11 Jakub Jelinek <jakub@redhat.com>
170
171 PR middle-end/13392
172 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
173 to drop through label. Don't fall back to SCC even when conditional
174 jump has not been found.
175
176 2004-01-11 Jan Hubicka <jh@suse.cz>
177
178 * invoke.texi: Fix syntax error in previous patch.
179
180 Partial fix for PR opt/10776
181 * Makefile.in (reload.o): Include param.h
182 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
183 * reload.c: Include params.h.
184 (find_equiv_reg): Work limiting check.
185 * invoke.texi: Document.
186
187 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
188
189 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
190 out-of-bounds accesses to string constants. Simplify mips16
191 case accordingly.
192
193 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
194
195 PR optimization/13469
196 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
197 reload_cse_regs (-fnon-call-exceptions only).
198
199 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
200
201 * config/mcore/lib1.asm: Fix comment formatting.
202 * config/mcore/mcore-elf.h: Likewise.
203 * config/mcore/mcore.c: Likewise.
204 * config/mcore/mcore.h: Likewise.
205 * config/mcore/mcore.md: Likewise.
206
207 2004-01-10 Zack Weinberg <zack@codesourcery.com>
208
209 * c-decl.c (duplicate_decls): Break apart into...
210 (diagnose_arglist_conflict, validate_proto_after_old_defn)
211 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
212 ... these new functions. Restructure for comprehensibility.
213 Remove various archaic special cases. Always report the
214 location of the previous declaration when a diagnostic is issued.
215 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
216 (match_builtin_function_types): Delete unnecessary forward declaration.
217
218 2004-01-10 Zack Weinberg <zack@codesourcery.com>
219
220 * genautomata.c (make_automaton, NDFA_to_DFA):
221 Print progress bars with '.' characters instead of '*'.
222 (build_automaton): Change notes to match.
223
224 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
225
226 * config/m32r/m32r.md: Use define_constants for unspec and
227 unspec_volatile.
228
229 2004-01-10 Jan Hubicka <jh@suse.cz>
230
231 PR opt/11635
232 * expr.c (expand_expr_real): More curefully expand union casts.
233
234 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
235
236 * config/m32r/m32r.md (flush_icache): Use 1 for
237 unspec_volatile.
238
239 2004-01-10 David Edelsohn <edelsohn@gnu.org>
240 James E Wilson <wilson@specifixinc.com>
241
242 PR debug/12860
243 * dbxout.c (dbxout_symbol): Remove initialization of
244 current_sym_code, current_sym_value, and current_sym_addr.
245 (dbxout_symbol_location): Same.
246 (dbxout_prepare_symbol): Zero current_sym_code,
247 current_sym_value, and current_sym_addr.
248
249 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
250
251 * tree.c (get_unwidened): Reorder conditions so that the null pointer
252 check is done first.
253
254 2004-01-09 Eric Christopher <echristo@redhat.com>
255
256 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
257 if we're running mark_constant_function.
258
259 2004-01-09 Jeff Bailey <jbailey@nisa.net>
260
261 PR target/12561
262 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
263
264 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
265
266 PR debug/11231
267 * dbxout.c (dbxout_type_fields): Return if any item is
268 error_mark_node or the type is error_mark_node.
269
270 2004-01-09 Geoffrey Keating <geoffk@apple.com>
271
272 * config/rs6000/darwin-ldouble.c: Add big comment explaining
273 exactly what is expected as a 'long double'.
274 (_xlqadd): When a value to be returned is representable as a
275 'double', just return it directly, do not construct it using a union.
276 Also, correct final fixup.
277 (_xlqmul): Likewise.
278 (_xlqdiv): Likewise.
279 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
280
281 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
282
283 2004-01-09 Richard Henderson <rth@redhat.com>
284
285 * recog.c (constrain_operands): Validate mem operands.
286
287 2004-01-09 James E Wilson <wilson@specifixinc.com>
288
289 * gcc.c (init_spec): Remove -lunwind from shared case.
290 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
291
292 2004-01-09 Steve Ellcey <sje@cup.hp.com>
293
294 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
295 * configure: Regenerate
296
297 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
298
299 PR c/11234
300 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
301 between function and object pointers.
302 (digest_init): When comparing a pointer to function type to the
303 target type, only apply TREE_TYPE once to the pointer to function
304 type.
305 * except.c (for_each_eh_label_1): Treat data as a pointer to a
306 function pointer rather than casting it to a function pointer.
307 (for_each_eh_label): Update caller.
308 * recog.h (struct insn_data): Use a struct or union for output.
309 * genoutput.c (output_insn_data): Update.
310 * final.c (get_insn_template): Update.
311
312 2004-01-09 Mark Mitchell <mark@codesourcery.com>
313
314 * expr.h (expand_expr): Make it a macro, not a function.
315 (expand_expr_real): New function.
316 * expr.c (store_expr): Adjust logic for deciding whether or not to
317 copy the value returned by expand_expr.
318 (expand_expr): Rename to ...
319 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
320 calls to language hooks.
321 * c-common.h (c_expand_expr): Adjust prototype.
322 * c-common.c (c_expand_expr): Add alt_rtl parameter.
323 * langhooks-def.h (lhd_expand_expr): Change prototype.
324 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
325 * langhooks.h (lang_hooks): Change type of expand_expr.
326 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
327 (last_expr_alt_rtl): Likewise.
328 (expand_expr_stmt_value): Set last_expr_alt_rtl.
329 (clear_last_expr): Clear it.
330 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
331 (expand_end_bindings): Save and restor last_expr_alt_rtl.
332 * tree.def (RTL_EXPR): Give it an additional operand.
333 * tree.h (RTL_EXPR_ALT_RTL): New macro.
334
335 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
336
337 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
338 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
339
340 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
341
342 PR target/13380.
343 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
344 or (ne:SI (reg:CC 17) (const_int 0)).
345 Be specific about modes wherever possible.
346
347 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
348
349 * config/m32r/m32r.c (m32r_expand_block_move): Call
350 gen_movestrsi_internal with two more arguments.
351 (m32r_output_block_move): Adjust operand numbers.
352 Properly update the source and destination pointers.
353 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
354 'r+'. Change the set detinations to match_operand.
355
356 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
357
358 * final.c (FIRST_INSN_ADDRESS): Remove.
359 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
360 * system.h (FIRST_INSN_ADDRESS): Poison.
361 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
362 * config/m32r/m32r-protos.h: Remove the prototype for
363 m32r_first_insn_address.
364 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
365 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
366 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
367
368 2004-01-09 J. Brobecker <brobecker@gnat.com>
369
370 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
371 we just created.
372 (is_ada_subrange_type): DIEs for enumeration subtypes should be
373 emitted as subrange types too.
374 (subrange_type_die): Add handling of enumeration subtypes.
375
376 2004-01-08 Richard Henderson <rth@redhat.com>
377
378 PR opt/12441
379 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
380 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
381 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
382 (ix86_address_cost): Be prepared for SUBREGed registers.
383 (legitimate_address_p): Accept SUBREGed registers.
384
385 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
386
387 * Makefile.in: Rename configure.in to configure.ac
388 * doc/sourcebuild.texi: Likewise.
389 * configure: Regenerate.
390 * config.in: Regenerate.
391
392 2004-01-08 Stuart Hastings <stuart@apple.com>
393
394 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
395
396 2004-01-08 Jan Hubicka <jh@suse.cz>
397
398 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
399
400 2004-01-08 Geoffrey Keating <geoffk@apple.com>
401
402 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
403 (UNSPEC_FIX_TRUNC_TF): New constant.
404 (movtf_internal): Make splitter active only when insn is active.
405 (extenddftf2): Rewrite to properly load zero into low part.
406 (extenddftf2_internal): New.
407 (extendsftf2): Rewrite.
408 (truncdftf2): Correct length.
409 (floatditf2): Delete.
410 (fix_trunc_helper): New.
411 (fix_trunctfdi2): Use fix_trunc_helper.
412 (fix_trunctfsi2): Likewise.fix_trunc
413 (fix_trunctfsi2_internal): New.
414
415 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
416 addresses are legitimate on Darwin even when flag_pic.
417 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
418 non-offsettable addresses for loads of TFmode constants.
419
420 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
421
422 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
423 variables in the appropriate bss section.
424
425 2004-01-09 Alan Modra <amodra@bigpond.net.au>
426
427 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
428 target_flags has MASK_POWERPC64 when -m64.
429 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
430 to 620, 630, power3, power4 and rs64a entries.
431 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
432
433 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
434
435 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
436 floating-point constants.
437
438 2004-01-08 J. Brobecker <brobecker@gnat.com>
439
440 * dwarf2out.c (subrange_type_die): Add context_die parameter.
441 Create the subrange_type DIE using the given context DIE.
442 (modified_type_die): Update call to subrange_type_die.
443
444 2004-01-08 Zack Weinberg <zack@codesourcery.com>
445
446 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
447 Add multiple-include guard.
448
449 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
450
451 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
452 all vector constant loadable by vsplt*.
453 (output_vec_const_move): Likewise.
454
455 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
456
457 PR c/6024
458 * c-typeck.c (comptypes): Only treat enumerated types in the same
459 translation unit as compatible with each other when they are the
460 same type.
461 * doc/extend.texi: Update.
462
463 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
464
465 PR c/12165
466 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
467 array type from the array element type.
468
469 2004-01-07 Alan Modra <amodra@bigpond.net.au>
470
471 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
472 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
473 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
474 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
475 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
476
477 2004-01-06 Eric Christopher <echristo@redhat.com>
478
479 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
480 (DWARF2_DEBUGGING_INFO): Define.
481 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
482 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
483 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
484 for irix as.
485 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
486 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
487 * config/mips/iris5gas.h: Ditto.
488 (DBX_DEBUGGING_INFO): Remove.
489 (DWARF2_DEBUGGING_INFO): Ditto.
490 (MIPS_DEBUGGING_INFO): Ditto.
491 (PREFERRED_DEBUGGING_TYPE): Ditto.
492 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
493 (PREFERRED_DEBUGGING_TYPE): Ditto.
494 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
495 * config/mips/elf64.h: Ditto.
496
497 2004-01-06 Jan Hubicka <jh@suse.cz>
498
499 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
500 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
501
502 2004-01-06 Geoffrey Keating <geoffk@apple.com>
503
504 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
505 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
506 * config/rs6000/darwin-ldouble.c: New.
507
508 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
509 for constants.
510 (constant_subword): Delete.
511 * rtl.h (constant_subword): Delete prototype.
512 (immed_double_const): Is not in varasm.c.
513 * simplify-rtx.c (simplify_immed_subreg): New.
514 (simplify_subreg): Use simplify_immed_subreg.
515
516 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
517 than trying to generate RTL directly.
518 (fix_trunctfsi2): Use expand_fix rather than trying to generate
519 RTL directly.
520
521 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
522
523 2004-01-06 David Edelsohn <edelsohn@gnu.org>
524
525 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
526 function into a separate macro.
527 (read_only_data_section): Add void argument.
528 (private_data_section): Same.
529 (read_only_private_data_section): Same.
530 (toc_section): Same.
531
532 2004-01-06 Jan Hubicka <jh@suse.cz>
533
534 * invoke.texi: Remove typo in last change.
535
536 PR target/10301
537 * config.gcc: Accept opteron and athlon-64 as variants
538 of k8.
539 * i386.c (override_options): Likewise.
540 * invoke.texi (i386 -mtune): Expand documentation.
541
542 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
543
544 * alias.c: Fix comment typos.
545 * builtins.c: Likewise.
546 * cfg.c: Likewise.
547 * df.c: Likewise.
548 * dominance.c: Likewise.
549 * dwarf2out.c: Likewise.
550 * emit-rtl.c: Likewise.
551 * expr.c: Likewise.
552 * final.c: Likewise.
553 * fold-const.c: Likewise.
554 * gcse.c: Likewise.
555 * genattrtab.c: Likewise.
556 * genrecog.c: Likewise.
557 * gensupport.c: Likewise.
558 * ggc-zone.c: Likewise.
559 * integrate.c: Likewise.
560 * local-alloc.c: Likewise.
561 * loop.c: Likewise.
562 * recog.c: Likewise.
563 * regmove.c: Likewise.
564 * reg-stack.c: Likewise.
565 * reorg.c: Likewise.
566 * rtlanal.c: Likewise.
567 * rtl.h: Likewise.
568 * sched-ebb.c: Likewise.
569 * simplify-rtx.c: Likewise.
570 * toplev.c: Likewise.
571 * varasm.c: Likewise.
572
573 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
574
575 * doc/install.texi: Fix typos.
576 * doc/invoke.texi: Likewise.
577 * doc/md.texi: Likewise.
578
579 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
580
581 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
582
583 2004-01-06 Jan Hubicka <jh@suse.cz>
584
585 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
586 (function_arg_advance): Do not pass aggregates in SSE; deal handling
587 of MMX_REGPARM.
588 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
589 add MMX_REGPARM.
590 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
591 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
592 (MMX_REGPARM_MAX): Similarly for -mmmx.
593
594 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
595
596 * config/sh/linux.h: Fix comment formatting.
597 * config/sh/netbsd-elf.h: Likewise.
598 * config/sh/sh.c: Likewise.
599 * config/sh/sh.h: Likewise.
600 * config/sh/vxworks.h: Likewise.
601
602 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
603
604 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
605 * toplev.c (output_file_directive): Don't use
606 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
607
608 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
609
610 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
611 (USING_MMAP): We don't support non-mmap.
612 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
613 large objects.
614 (struct page_entry): Remove bytes_free.
615 (struct page_table_chain): Remove.
616 (struct globals): Remove page_table member.
617 (loookup_page_table_entry): Function deleted.
618 (set_page_table_entry): Ditto.
619 (ggc_allocated_p): No longer need page table lookups.
620 (ggc_marked_p): Ditto.
621 (alloc_small_page): Don't care about bytes_free anymore.
622 (alloc_large_page): Round up size.
623 (ggc_alloc_zone_1): Mark large objects as such, and calculate
624 their size the new way.
625 Remove page table lookups and setting.
626 (ggc_get_size): Calculate large object size the new way.
627 (sweep_pages): Redo to account for fact that we no longer have
628 bytes_free.
629 (ggc_collect): No longer need to reincrement bytes_free.
630 (ggc_pch_alloc_object): Handle new large objects properly.
631 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
632
633 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
634
635 * doc/invoke.texi: Remove a page break.
636
637 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
638
639 * config/avr/avr.c (avr_output_function_prologue): Remove an
640 extra pair of curly braces.
641
642 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
643
644 * config/mn10300/mn10300.c: Fix comment formatting.
645 * config/mn10300/mn10300.h: Likewise.
646
647 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
648
649 * tree.h: Update documentation on nothrow_flag.
650 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
651 types.
652
653 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
654
655 * doc/invoke.texi: Remove traces of dead ports.
656
657 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
658
659 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
660 option.
661
662 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
663
664 PR target/12945
665 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
666 counter labels.
667 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
668 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
669 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
670 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
671 (mips_symbol_insns): Don't trust the local/global classification.
672 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
673 (override_options): Make -mabicalls -fno-unit-at-a-time imply
674 -mno-explicit-relocs.
675 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
676 between local and global symbols.
677
678 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
679
680 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
681 (mips_preferred_reload_class): Declare.
682 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
683 (EXTRA_CONSTRAINT): Update accordingly.
684 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
685 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
686 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
687 mips_dangerous_for_la25_p.
688 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
689 if mips_dangerous_for_la25_p.
690
691 2004-01-05 Bernardo Innocenti <bernie@develer.com>
692
693 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
694 warning.
695
696 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
697
698 * configure.ac: Use AC_PROG_CPP_WERROR.
699 * configure: Regenerate.
700
701 2004-01-04 Zack Weinberg <zack@codesourcery.com>
702
703 * .cvsignore: Add autom4te.cache.
704
705 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
706
707 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
708 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
709 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
710 then architecture options, then ABI options. General rewording.
711
712 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
713
714 PR c/3414
715 * doc/extend.texi: Clarify definition of malloc attribute.
716
717 2004-01-04 Jan Hubicka <jh@suse.cz>
718
719 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
720 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
721 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
722 (cgraph_inline_p): Add extra argument reason.
723 * cgraphunit.c: Minor formating fixes.
724 cgraph_first_inlined_callee): New functions.
725 (record_call_1): Record builtins too.
726 (cgraph_analyze_function): Update inline_failed messages.
727 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
728 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
729 (cgraph_check_inline_limits): Likewise; Add argument reason.
730 (cgraph_set_inline_failed): New static function.
731 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
732 reasons.
733 (cgraph_inline_p): Add new argument reason.
734 * tree-inline.c (expand_call_inline): Update warning.
735
736 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
737
738 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
739 with modern equivalents.
740 * configure: Regenerate.
741
742 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
743 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
744 * configure: Regenerate.
745
746 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
747
748 * configure.in: Rename to configure.ac.
749 * configure.ac: Renamed from configure.in; make minimum necessary
750 changes for autoconf 2.5x.
751 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
752 * configure: Regenerate with autoconf 2.57.
753
754 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
755
756 * config/mips/linux.h: Fix comment formatting.
757 * config/mips/mips.c: Likewise.
758 * config/mips/mips.h: Likewise.
759 * config/mips/mips.md: Likewise.
760 * config/mips/netbsd.h: Likewise.
761 * config/mips/windiss.h: Likewise.
762
763 2004-01-02 Richard Henderson <rth@redhat.com>
764
765 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
766 for sse and 387; add suppression for mmx.
767
768 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
769
770 * loop.c (loop_optimize): Free all loops_info's mems.
771
772 * c-typeck.c (finish_init): Free spelling_base before
773 setting it again.
774
775 * cfgloop.c (flow_loops_find): Always free the sbitmap
776 headers.
777
778 * predict.c (estimate_probability): Free bbs after being
779 done with it.
780
781 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
782
783 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
784 const_8bit_operand and call_address_operand.
785
786 2004-01-02 Jan Hubicka <jh@suse.cz>
787
788 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
789 when there is nothing to inline but warnings are requested.
790 (cgraph_decide_inlining): Fix memory leak.
791
792 2004-01-02 Jan Hubicka <jh@suse.cz>
793
794 * expr.c (store_constructor): Fix pasto in previous patch.
795
796 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
797
798 * config/i386/cygming.h: Fix comment formatting.
799 * config/i386/djgpp.h: Likewise.
800 * config/i386/gthr-win32.c: Likewise.
801 * config/i386/i386-interix.h: Likewise.
802 * config/i386/i386.c: Likewise.
803 * config/i386/i386.h: Likewise.
804 * config/i386/openbsd.h: Likewise.
805 * config/i386/winnt.c: Likewise.
806 * config/i386/xm-mingw32.h: Likewise.
807
808 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
809
810 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
811 copyright and last modification dates.
812
813 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
814
815 * doc/install.texi (Specific): Mention x86_64.
816
817 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
818
819 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
820 Call force_operand on plus_constant result.
821
822 2004-01-01 Jan Hubicka <jh@suse.cz>
823
824 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
825 * expr.c (store_constructor): Use vec_init pattern.
826 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
827 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
828 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
829 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
830 New patterns.
831 (sse2_unpc?pd): Fix pattern.
832 (sse2_movlpd): Kill.
833 (sse2_movsd): Deal with movlpd too.
834 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
835 (ix86_expand_vector_init): New.
836 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
837 * md.texi (vec_set, vec_extract): Document
838
839 2003-12-31 Jan Hubicka <jh@suse.cz>
840
841 PR opt/13473
842 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
843 ASM input operands
844
845 PR opt/12617
846 * toplev.c (dump_file_index): Reorder ce3 and bbro.
847 (dump_file): Likewise.
848 (rest_of_compilation): Likewise.
849
850 PR debug/13367
851 * cgraph.c (cgraph_function_possibly_inlined): Even with
852 flag_really_no_inline we inline always_inline functions.
853 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
854 for non-always_inline functions when there is flag_really_no_inline.
855 (cgraph_decide_inlining): Limit work done when not inlining.
856 (cgraph_decide_inlining_incrementally): Likewise.
857 (cgraph_optimize_function): Check whether something got inlined.
858 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
859 extern inline functions when not inlining.
860
861 * opts.c (decode_options): Disable crossjumping at -O1
862 * invoke.texi (-O1): Document change.
863
864 See ChangeLog.10 for earlier changes.