OSDN Git Service

208ee947d7cf14608cbac7a6117685a6d7eacb23
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-01-08  Richard Henderson  <rth@redhat.com>
2
3         PR opt/12441
4         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
6         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7         (ix86_address_cost): Be prepared for SUBREGed registers.
8         (legitimate_address_p): Accept SUBREGed registers.
9
10 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
11
12         * Makefile.in: Rename configure.in to configure.ac
13         * doc/sourcebuild.texi: Likewise.
14         * configure: Regenerate.
15         * config.in: Regenerate.
16
17 2004-01-08  Stuart Hastings  <stuart@apple.com>
18
19         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
20
21 2004-01-08  Jan Hubicka  <jh@suse.cz>
22
23         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
24
25 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
26
27         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
28         (UNSPEC_FIX_TRUNC_TF): New constant.
29         (movtf_internal): Make splitter active only when insn is active.
30         (extenddftf2): Rewrite to properly load zero into low part.
31         (extenddftf2_internal): New.
32         (extendsftf2): Rewrite.
33         (truncdftf2): Correct length.
34         (floatditf2): Delete.
35         (fix_trunc_helper): New.
36         (fix_trunctfdi2): Use fix_trunc_helper.
37         (fix_trunctfsi2): Likewise.fix_trunc
38         (fix_trunctfsi2_internal): New.
39
40         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
41         addresses are legitimate on Darwin even when flag_pic.
42         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
43         non-offsettable addresses for loads of TFmode constants.
44
45 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
46
47         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
48         variables in the appropriate bss section.
49
50 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
51
52         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
53         target_flags has MASK_POWERPC64 when -m64.
54         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
55         to 620, 630, power3, power4 and rs64a entries.
56         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
57
58 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
59
60         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
61         floating-point constants.
62
63 2004-01-08  J. Brobecker  <brobecker@gnat.com>
64
65         * dwarf2out.c (subrange_type_die): Add context_die parameter.
66         Create the subrange_type DIE using the given context DIE.
67         (modified_type_die): Update call to subrange_type_die.
68
69 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
70
71         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
72         Add multiple-include guard.
73
74 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
75
76         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
77         all vector constant loadable by vsplt*.
78         (output_vec_const_move): Likewise.
79
80 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
81
82         PR c/6024
83         * c-typeck.c (comptypes): Only treat enumerated types in the same
84         translation unit as compatible with each other when they are the
85         same type.
86         * doc/extend.texi: Update.
87
88 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
89
90         PR c/12165
91         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
92         array type from the array element type.
93
94 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
95
96         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
97         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
98         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
99         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
100         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
101
102 2004-01-06  Eric Christopher  <echristo@redhat.com>
103
104         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
105         (DWARF2_DEBUGGING_INFO): Define.
106         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
107         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
108         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
109         for irix as.
110         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
111         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
112         * config/mips/iris5gas.h: Ditto.
113         (DBX_DEBUGGING_INFO): Remove.
114         (DWARF2_DEBUGGING_INFO): Ditto.
115         (MIPS_DEBUGGING_INFO): Ditto.
116         (PREFERRED_DEBUGGING_TYPE): Ditto.
117         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
118         (PREFERRED_DEBUGGING_TYPE): Ditto.
119         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
120         * config/mips/elf64.h: Ditto.
121
122 2004-01-06  Jan Hubicka  <jh@suse.cz>
123
124         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
125         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
126
127 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
128
129         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
130         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
131         * config/rs6000/darwin-ldouble.c: New.
132
133         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
134         for constants.
135         (constant_subword): Delete.
136         * rtl.h (constant_subword): Delete prototype.
137         (immed_double_const): Is not in varasm.c.
138         * simplify-rtx.c (simplify_immed_subreg): New.
139         (simplify_subreg): Use simplify_immed_subreg.
140
141         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
142         than trying to generate RTL directly.
143         (fix_trunctfsi2): Use expand_fix rather than trying to generate
144         RTL directly.
145
146         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
147
148 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
149
150         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
151         function into a separate macro.
152         (read_only_data_section): Add void argument.
153         (private_data_section): Same.
154         (read_only_private_data_section): Same.
155         (toc_section): Same.
156
157 2004-01-06  Jan Hubicka  <jh@suse.cz>
158
159         * invoke.texi:  Remove typo in last change.
160
161         PR target/10301
162         * config.gcc: Accept opteron and athlon-64 as variants
163         of k8.
164         * i386.c (override_options): Likewise.
165         * invoke.texi (i386 -mtune): Expand documentation.
166
167 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
168
169         * alias.c: Fix comment typos.
170         * builtins.c: Likewise.
171         * cfg.c: Likewise.
172         * df.c: Likewise.
173         * dominance.c: Likewise.
174         * dwarf2out.c: Likewise.
175         * emit-rtl.c: Likewise.
176         * expr.c: Likewise.
177         * final.c: Likewise.
178         * fold-const.c: Likewise.
179         * gcse.c: Likewise.
180         * genattrtab.c: Likewise.
181         * genrecog.c: Likewise.
182         * gensupport.c: Likewise.
183         * ggc-zone.c: Likewise.
184         * integrate.c: Likewise.
185         * local-alloc.c: Likewise.
186         * loop.c: Likewise.
187         * recog.c: Likewise.
188         * regmove.c: Likewise.
189         * reg-stack.c: Likewise.
190         * reorg.c: Likewise.
191         * rtlanal.c: Likewise.
192         * rtl.h: Likewise.
193         * sched-ebb.c: Likewise.
194         * simplify-rtx.c: Likewise.
195         * toplev.c: Likewise.
196         * varasm.c: Likewise.
197
198 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
199
200         * doc/install.texi: Fix typos.
201         * doc/invoke.texi: Likewise.
202         * doc/md.texi: Likewise.
203
204 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
205
206         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
207
208 2004-01-06  Jan Hubicka  <jh@suse.cz>
209
210         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
211         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
212         of MMX_REGPARM.
213         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
214         add MMX_REGPARM.
215         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
216         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
217         (MMX_REGPARM_MAX): Similarly for -mmmx.
218
219 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
220
221         * config/sh/linux.h: Fix comment formatting.
222         * config/sh/netbsd-elf.h: Likewise.
223         * config/sh/sh.c: Likewise.
224         * config/sh/sh.h: Likewise.
225         * config/sh/vxworks.h: Likewise.
226
227 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
228
229         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
230         * toplev.c (output_file_directive): Don't use
231         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
232
233 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
234
235         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
236         (USING_MMAP): We don't support non-mmap.
237         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
238         large objects.
239         (struct page_entry): Remove bytes_free.
240         (struct page_table_chain): Remove.
241         (struct globals): Remove page_table member.
242         (loookup_page_table_entry): Function deleted.
243         (set_page_table_entry): Ditto.
244         (ggc_allocated_p): No longer need page table lookups.
245         (ggc_marked_p): Ditto.
246         (alloc_small_page): Don't care about bytes_free anymore.
247         (alloc_large_page): Round up size.
248         (ggc_alloc_zone_1): Mark large objects as such, and calculate
249         their size the new way.
250         Remove page table lookups and setting.
251         (ggc_get_size): Calculate large object size the new way.
252         (sweep_pages): Redo to account for fact that we no longer have
253         bytes_free.
254         (ggc_collect): No longer need to reincrement bytes_free.
255         (ggc_pch_alloc_object): Handle new large objects properly.
256         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
257
258 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
259
260         * doc/invoke.texi: Remove a page break.
261
262 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
263
264         * config/avr/avr.c (avr_output_function_prologue): Remove an
265         extra pair of curly braces.
266
267 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
268
269         * config/mn10300/mn10300.c: Fix comment formatting.
270         * config/mn10300/mn10300.h: Likewise.
271
272 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
273
274         * tree.h: Update documentation on nothrow_flag.
275         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
276         types.
277
278 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
279
280         * doc/invoke.texi: Remove traces of dead ports.
281
282 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
283
284         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
285         option.
286
287 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
288
289         PR target/12945
290         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
291         counter labels.
292         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
293         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
294         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
295         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
296         (mips_symbol_insns): Don't trust the local/global classification.
297         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
298         (override_options): Make -mabicalls -fno-unit-at-a-time imply
299         -mno-explicit-relocs.
300         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
301         between local and global symbols.
302
303 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
304
305         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
306         (mips_preferred_reload_class): Declare.
307         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
308         (EXTRA_CONSTRAINT): Update accordingly.
309         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
310         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
311         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
312         mips_dangerous_for_la25_p.
313         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
314         if mips_dangerous_for_la25_p.
315
316 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
317
318         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
319         warning.
320
321 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
322
323         * configure.ac: Use AC_PROG_CPP_WERROR.
324         * configure: Regenerate.
325
326 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
327
328         * .cvsignore: Add autom4te.cache.
329
330 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
331
332         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
333         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
334         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
335         then architecture options, then ABI options.  General rewording.
336
337 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
338
339         PR c/3414
340         * doc/extend.texi: Clarify definition of malloc attribute.
341
342 2004-01-04  Jan Hubicka  <jh@suse.cz>
343
344         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
345         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
346         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
347         (cgraph_inline_p): Add extra argument reason.
348         * cgraphunit.c: Minor formating fixes.
349         cgraph_first_inlined_callee): New functions.
350         (record_call_1): Record builtins too.
351         (cgraph_analyze_function): Update inline_failed messages.
352         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
353         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
354         (cgraph_check_inline_limits): Likewise; Add argument reason.
355         (cgraph_set_inline_failed): New static function.
356         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
357         reasons.
358         (cgraph_inline_p): Add new argument reason.
359         * tree-inline.c (expand_call_inline):  Update warning.
360
361 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
362
363         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
364         with modern equivalents.
365         * configure: Regenerate.
366
367         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
368         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
369         * configure: Regenerate.
370
371         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
372
373         * configure.in: Rename to configure.ac.
374         * configure.ac: Renamed from configure.in; make minimum necessary
375         changes for autoconf 2.5x.
376         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
377         * configure: Regenerate with autoconf 2.57.
378
379 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
380
381         * config/mips/linux.h: Fix comment formatting.
382         * config/mips/mips.c: Likewise.
383         * config/mips/mips.h: Likewise.
384         * config/mips/mips.md: Likewise.
385         * config/mips/netbsd.h: Likewise.
386         * config/mips/windiss.h: Likewise.
387
388 2004-01-02  Richard Henderson  <rth@redhat.com>
389
390         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
391         for sse and 387; add suppression for mmx.
392
393 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
394
395         * loop.c (loop_optimize): Free all loops_info's mems.
396
397         * c-typeck.c (finish_init): Free spelling_base before
398         setting it again.
399
400         * cfgloop.c (flow_loops_find): Always free the sbitmap
401         headers.
402
403         * predict.c (estimate_probability): Free bbs after being
404         done with it.
405
406 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
407
408         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
409         const_8bit_operand and call_address_operand.
410
411 2004-01-02  Jan Hubicka  <jh@suse.cz>
412
413         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
414         when there is nothing to inline but warnings are requested.
415         (cgraph_decide_inlining):  Fix memory leak.
416
417 2004-01-02  Jan Hubicka  <jh@suse.cz>
418
419         * expr.c (store_constructor):  Fix pasto in previous patch.
420
421 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
422
423         * config/i386/cygming.h: Fix comment formatting.
424         * config/i386/djgpp.h: Likewise.
425         * config/i386/gthr-win32.c: Likewise.
426         * config/i386/i386-interix.h: Likewise.
427         * config/i386/i386.c: Likewise.
428         * config/i386/i386.h: Likewise.
429         * config/i386/openbsd.h: Likewise.
430         * config/i386/winnt.c: Likewise.
431         * config/i386/xm-mingw32.h: Likewise.
432
433 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
434
435         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
436         copyright and last modification dates.
437
438 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
439
440         * doc/install.texi (Specific): Mention x86_64.
441
442 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
443
444         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
445         Call force_operand on plus_constant result.
446
447 2004-01-01  Jan Hubicka  <jh@suse.cz>
448
449         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
450         * expr.c (store_constructor): Use vec_init pattern.
451         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
452         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
453         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
454         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
455         New patterns.
456         (sse2_unpc?pd): Fix pattern.
457         (sse2_movlpd): Kill.
458         (sse2_movsd): Deal with movlpd too.
459         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
460         (ix86_expand_vector_init): New.
461         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
462         * md.texi (vec_set, vec_extract): Document
463
464 2003-12-31  Jan Hubicka  <jh@suse.cz>
465
466         PR opt/13473
467         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
468         ASM input operands
469
470         PR opt/12617
471         * toplev.c (dump_file_index): Reorder ce3 and bbro.
472         (dump_file): Likewise.
473         (rest_of_compilation): Likewise.
474
475         PR debug/13367
476         * cgraph.c (cgraph_function_possibly_inlined):  Even with
477         flag_really_no_inline we inline always_inline functions.
478         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
479         for non-always_inline functions when there is flag_really_no_inline.
480         (cgraph_decide_inlining): Limit work done when not inlining.
481         (cgraph_decide_inlining_incrementally): Likewise.
482         (cgraph_optimize_function): Check whether something got inlined.
483         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
484         extern inline functions when not inlining.
485
486         * opts.c (decode_options):  Disable crossjumping at -O1
487         * invoke.texi (-O1): Document change.
488
489 See ChangeLog.10 for earlier changes.