OSDN Git Service

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