OSDN Git Service

PR target/16482
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
2             Kaz Kojima  <kkojima@gcc.gnu.org>
3
4         PR target/16482
5         * lcm.c (create_pre_exit): New.
6         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
7         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
8
9 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
10
11         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
12         -msoft-float in target_float_switch.
13         * arm.c (arm_override_options): Fix processing of target_float_switch.
14
15 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
16
17         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
18         preferencing.
19
20 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
21
22         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
23         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
24
25 2005-01-04  Roger Sayle  <roger@eyesopen.com>
26
27         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
28         if deleting the then-block allows the test-block to fallthru to the
29         else-block.
30
31 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
32
33         PR c/19152
34         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
35         after the full declaration if the are in two different TUs.
36
37 2005-01-04  Richard Henderson  <rth@redhat.com>
38
39         PR tree-opt/19158
40         * tree-sra.c (generate_one_element_init): Just
41         call gimplify_and_add.
42         (generate_element_init): Record the
43         new referenced variables and mark them for renaming
44         and split out to ...
45         (generate_element_init_1): This.
46         (scalarize_init): Don't call push_gimplify_context/
47         pop_gimplify_context.
48
49 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
50
51         * toplev.c (get_src_pwd): Handle failure of getpwd().
52
53 2005-01-04  Roger Sayle  <roger@eyesopen.com>
54
55         * fold-const.c (fold_single_bit_test): Delete unreachable handling
56         of TRUTH_NOT_EXPR.
57         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
58         all the cases handled by it are inverted by invert_truthvalue.
59
60 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
61
62         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
63         (save_register_windowsi): Likewise.
64
65 2005-01-04  Richard Henderson  <rth@redhat.com>
66
67         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
68
69 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
70
71         PR middle-end/17767
72         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
73         any simplifications of vector mode comparison operators.
74         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
75
76 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
77             Devang Patel  <dpatel@apple.com>
78
79         PR tree-optimization/18308
80         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
81         the operands before creating a new expression.
82         * dojump.c (do_jump): Make drop_through_label available
83         for all cases.  Add expansion of COND_EXPR.
84
85 2005-01-04  Ira Rosen  <irar@il.ibm.com>
86
87         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
88         INTEGER_CST instead of TREE_CONSTANT.
89         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
90         instead of TREE_CONSTANT.
91         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
92         instead of TREE_CONSTANT.
93
94 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
95
96         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
97
98 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
99
100         PR target/19240
101         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
102         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
103
104 2005-01-03  Richard Henderson  <rth@redhat.com>
105
106         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
107         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
108         fold_convert_const_real_from_real): Split out from ...
109         (fold_convert_const): ... here.
110
111 2005-01-03  Richard Henderson  <rth@redhat.com>
112
113         PR target/19235
114         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
115         (mov<MMXMODEI>_internal): Likewise.
116         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
117         Add V2SF case; use it for SSE1; don't use TI.
118         (movdf_integer): Likewise.
119         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
120
121 2005-01-03  Ira Rosen  <irar@il.ibm.com>
122
123         * tree-vectorizer.c (vect_strip_conversions): New function.
124         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
125         check for binary class. 
126
127 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
128
129         Fix PR debug/17924
130         Fix PR debug/19191
131         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
132         is a decl.
133         * gimple-low.c (mark_blocks_with_used_vars): New function.
134         (mark_blocks_with_used_subblocks): Ditto.
135         (mark_used_blocks): Ditto.
136         (pass_mark_used_blocks): New pass.
137         * tree-inline.c: Include debug.h.
138         (expand_call_inline): Call outlining_inline_function here.
139         * tree-optimize.c (init_tree_optimization_passes): Add
140         pass_mark_used_blocks. 
141         * tree-pass.h (pass_mark_used_blocks): New.
142         * Makefile.in (tree-inline.o): Add debug.h dependency.
143
144 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
145
146         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
147         VAR_DECLs to have weak_import attribute.
148
149         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
150         'struct ucontext'.
151
152 2004-01-03  Steven Bosscher  <stevenb@suse.de>
153
154         * passes.c (rest_of_compilation): Don't run regmove if only
155         flag_expensive_optimizations, require flag_regmove instead.
156
157 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
158
159         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
160         register "sparc".
161         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
162         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
163         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
164         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
165
166 2005-01-03  Richard Henderson  <rth@redhat.com>
167
168         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
169         (ia64_const_ok_for_letter_p): New.
170         (ia64_const_double_ok_for_letter_p): New.
171         (ia64_extra_constraint): New.
172         (ia64_expand_vecint_compare): New.
173         (ia64_expand_vcondu_v2si): New.
174         (ia64_expand_vecint_cmov): New.
175         (ia64_expand_vecint_minmax): New.
176         (ia64_print_operand): Add 'v'.
177         (ia64_preferred_reload_class): New.
178         (ia64_vector_mode_supported_p): New.
179         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
180         (PREFERRED_RELOAD_CLASS): Move to function.
181         (CONST_OK_FOR_LETTER_P): Move to function.
182         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
183         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
184         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
185         (EXTRA_CONSTRAINT): Move to function.
186         * config/ia64/ia64.md: Include vect.md.
187         (itanium_class): Add mmalua.
188         (type): Handle it.
189         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
190         (1b_mmalua): New.
191         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
192         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
193         CONST0_RTX.
194         (const_int_2bit_operand): New.
195         (fr_reg_or_0_operand): New.
196         * config/ia64/ia64-modes.def: Add vector modes.
197         * config/ia64/ia64-protos.h: Update.
198         * config/ia64/vect.md: New file.
199
200 2005-01-03  Richard Henderson  <rth@redhat.com>
201
202         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
203
204 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
205
206         PR target/19236
207         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
208         to SFmode.
209         (log1pdf2): Change mode of operands[0,1] to DFmode.
210
211 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
212
213         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
214         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
215         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
216         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
217         SPARC_RELAXED_ORDERING.
218
219 2005-01-03  Richard Henderson  <rth@redhat.com>
220             Uros Bizjak  <uros@kss-loka.si>
221
222         PR target/14631
223         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
224         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
225         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
226         handling.
227         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
228         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
229         const_pow2_1_to_128_operand): New predicates.
230
231 2005-01-02  Greg McGary  <greg@mcgary.org>
232
233         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
234         anonymous decls.
235         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
236         object.  [ptr_type]: Remove unused variable.
237         Remember nearest addressable array-element or record-component
238         when checking bitfield components.  Tolerate empty BIND_EXPR.
239
240 2005-01-01  Richard Henderson  <rth@redhat.com>
241
242         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
243         that don't narrow the value.  Fail for other conversions.
244
245 2005-01-01  Richard Henderson  <rth@redhat.com>
246
247         PR c/19031
248         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
249         * c-lang.c (finish_file): Don't do it here.
250         * objc/objc-act.c (objc_finish_file): Likewise.
251
252         * cgraph.c (decl_assembler_name_equal): New.
253         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
254         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
255         * cgraph.h (struct cgraph_varpool_node): Add next.
256         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
257         * varasm.c (assemble_alias): Mark the target as needed.
258
259 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
260
261         PR middle-end/19221
262         * function.c (get_arg_pointer_save_area): Use entry_of_function
263         instead of get_insns.
264
265 2005-01-01  Roger Sayle  <roger@eyesopen.com>
266             Andrew Pinski  <pinskia@physics.uc.edu>
267             James E. Wilson  <wilson@specifixinc.com>
268
269         PR rtl-optimization/12092
270         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
271         is zero.
272
273 2005-01-01  Roger Sayle  <roger@eyesopen.com>
274             Olivier Hainque  <hainque@act-europe.fr>
275
276         * tree.c (int_fits_type_p): A narrower type always fits in a
277         wider one, except for negative values into unsigned types.
278
279 2005-01-01  Roger Sayle  <roger@eyesopen.com>
280
281         * tree.c (int_fits_type_p): Compare the result of force_fit_type
282         with the original constant rather than require TREE_OVERFLOW.
283
284 2005-01-01  Steven Bosscher  <stevenb@suse.de>
285
286         PR middle-end/17544
287         * c-decl.c (finish_function): If compiling C99, annotate the
288         compiler generated return with the current file name and line 0.
289         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
290         the source line is greater than 0.
291         (remove_bb): Likewise.
292
293 See ChangeLog.12 for earlier changes.