OSDN Git Service

* config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2
3         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
4         * config/m32r/m32r.c (m32r_compute_frame_size,
5         m32r_expand_prologue): Take current_function_profile into
6         account whenever we reference
7         current_function_uses_pic_offset_table.
8         (m32r_finalize_pic): Remove.
9         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
10
11 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
12
13         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
14         instead of $<.  Don't remove ./as if it already exists.
15
16 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17
18         PR target/21723
19         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
20         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
21         for complex modes when generating code for PA 1.0.
22         (VALID_FP_MODE_P): New macro.
23         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
24         sets for all general and floating point modes.  Align wide floating
25         point modes to even register boundaries to comply with architectural
26         requirements.
27         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
28         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
29         (VALID_FP_MODE_P): New macro.
30         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
31         sets for all general and floating point modes.  Align wide floating
32         point modes to even register boundaries to comply with architectural
33         requirements.
34
35 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
36
37         * tree-dump.c (dump_files): Initialize dump number for .cgraph
38         to 0.
39
40 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
41
42         * tree-ssa-structalias.c: Don't include expr.h.
43
44 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
45
46         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
47         comments.
48
49 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
50
51         Fix PR tree-optimization/22279
52         
53         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
54         correct operator.
55         
56 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
57
58         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
59
60 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
61
62         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
63         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
64         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
65         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
66         config/stormy16/stormy16.c, config/v850/v850.c,
67         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
68         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
69         Avoid "." or "\n" at end of diagnostics and capital letters at
70         start of diagnostics.
71         * combine.c, cse.c: Don't translate dump file output.
72         * toplev.c (print_version): Only translate output if going to
73         stderr.
74
75 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
76
77         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
78         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
79         typos.
80
81 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
82
83         * pa.c (fix_range): Fix typo in comment.
84
85 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
86
87         * tree-vrp.c (extract_range_from_assert): Replace
88         fold (build (...)) with fold_build2.
89
90 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
91
92         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
93         gcc_gfc_char_table, init_dynamic_gfc_info): New.
94         (format_types_orig, handle_format_attribute): Add support for
95         format "gcc_gfc".
96
97 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
98
99         * varasm.c (assemble_variable): Fix format specifier thinko.
100
101 2005-07-03  Ira Rosen  <irar@il.ibm.com>
102
103         PR tree-optimization/22029 (and 22135)
104         * tree-pretty-print.c (dump_generic_node): Check that the node is not
105         a phi node before calling dump_vops.
106
107 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
108
109         * tree-dump.h (dump_string_field): Declare.
110         * tree-dump.c: Use it instead of dump_string.
111         (dump_string_field): Make non-static.
112
113 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
114
115         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
116         up the minimal CFG stuff always when optimize > 0.  Call
117         split_all_insns_noflow in PIC case if needed.
118
119 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
120             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
121
122         PR c++/18279
123         * c-decl.c (c_write_global_declarations): Dump contents of
124         external scope to.
125         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
126         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
127         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
128         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
129         is enabled.
130         
131 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
132
133         * c-common.h (GCC_DIAG_STYLE): Define.
134         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
135         version for format checking to 4.1.
136         * c-format.c: Include toplev.h after c-common.h.
137         (enum format_type): Add gcc_tdiag_format_type.
138         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
139         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
140         (format_types_orig): Add gcc_tdiag.
141         (init_dynamic_diag_info): Support gcc_tdiag formats.
142         (handle_format_attribute): Likewise.
143         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
144         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
145         version for format checking to 4.1.
146         (warning0, warning, error, pedwarn, sorry): Use
147         ATTRIBUTE_GCC_DIAG.
148         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
149         (finish_aliases_1): Do not use %qE.
150         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
151         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
152         Correct format bugs.
153         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
154         parameter to unsigned HOST_WIDE_INT.
155         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
156
157 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
158
159         PR middle-end/21742
160         * expr.c (write_complex_part): Use adjust_address for MEM.
161         (read_complex_part): Same.
162
163 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
164
165         Fix PR tree-optimization/22280
166
167         * tree-sra.c (generate_element_init): Remove useless loop.
168
169 2005-07-02  Richard Henderson  <rth@redhat.com>
170
171         * config/alpha/alpha.c (alpha_legitimize_address): Check for
172          TLS_MODEL_NONE.
173         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
174
175 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
176
177         PR middle-end/14490
178         * fold-const.c (fold_binary): Handle the return value of
179         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
180         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
181
182 2005-07-02  Jeff Law  <law@redhat.com>
183
184         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
185         a eliminate type conversion which feeds an equality comparison
186         if the original type or either operand in the comparison is a
187         function pointer.
188
189 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
190
191         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
192         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
193         texts.
194         * config/avr/avr.c: Do not use '`' as left quote.
195         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
196         Remove "." from end of diagnostics.  Make diagnostics start with
197         lowercase letter.
198
199 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
200             Joseph S. Myers  <joseph@codesourcery.com>
201
202         * toplev.c (default_tree_printer): Handle setting location with
203         '+' flag.
204         * c-objc.common.c (c_tree_printer): Likewise.
205         * c-format.c (gcc_diag_flag_specs): Add '+'.
206         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
207         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
208         formats.
209         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
210         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
211         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
212         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
213         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
214         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
215         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
216         format arguments where %J is used without %D.
217
218 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
219
220         * gcc.c (LINK_SSP_SPEC): Define.
221         (link_ssp_spec): New variable.
222         (LINK_COMMAND_SPEC): Add %(link_ssp).
223         (static_specs): Add link_ssp_spec.
224         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
225         * configure: Rebuilt.
226         * config.in: Rebuilt.
227
228         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
229         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
230         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
231         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
232         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
233         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
234         -0x7008(2) instead of reading __stack_chk_guard variable.
235         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
236         number.
237         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
238         (stack_protect_set, stack_protect_test): Use *_tls* patterns
239         if TARGET_THREAD_SSP_OFFSET is defined.
240         (stack_tls_protect_set_si, stack_tls_protect_set_di,
241         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
242
243         Revert:
244         2005-06-27  Richard Henderson  <rth@redhat.com>
245         * libgcc-std.ver (GCC_4.1.0): New.
246         * libgcc.h (__stack_chk_guard): Declare.
247         (__stack_chk_fail, __stack_chk_fail_local): Declare.
248         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
249         * mklibgcc.in (lib2funcs): Add them.
250
251 2005-07-01  Richard Henderson  <rth@redhat.com>
252
253         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
254         void * before struct sigcontext *.
255         (x86_fallback_frame_state): Likewise.
256
257 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
258
259         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
260
261 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
262
263         PR tree-opt/22269
264         * tree-ssa-reassoc.c (should_transpose): Fix which operand
265         we check for SSA_NAME for.
266
267 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
268
269         Fix PR tree-optimization/22071
270
271         * tree-ssa-structalias.c (offset_overlaps_with_access): New
272         function.
273         (get_constraint_for_component_ref): Use it.
274
275 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
276
277         PR other/22264
278         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
279         print out the last new line.
280
281 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
282
283         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
284         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
285         * config/cris/cris.c (cris_conditional_register_usage): Adjust
286         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
287         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
288         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
289         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
290         (enum reg_class): New member CC0_REGS.
291         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
292         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
293         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
294         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
295         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
296         Adjust for register now described.
297
298 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
299
300         PR target/22262
301         * config/i386/i386.md (stack_protect_test_si,
302         stack_protect_test_di): Add earlyclobber for scratch 3.
303         * config/rs6000/rs6000.md (stack_protect_testsi,
304         stack_protect_testdi): Add earlyclobber for scratch 3,
305         remove earlyclobber from scratch 4.
306
307 Older entries for 2005 can be found in ChangeLog-2005.