OSDN Git Service

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