]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
ada-tree.h (union lang_tree_node): Check for TS_COMMON before calling TREE_CHAIN.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2
3 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4 calling TREE_CHAIN.
5 * print-tree.c (print_node): Likewise.
6 * tree-inline.c (copy_tree_r): Likewise.
7 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9 instead of TS_COMMON.
10 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
11 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12 (copy_node_stat): Zero TREE_CHAIN only if necessary.
13 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
14 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
15 ...and these...
16 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
17 * tree.h: ...here.
18 (TREE_CHAIN): Check for a TS_COMMON structure.
19 (TREE_TYPE): Check for a TS_TYPED structure.
20
21 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
22
23 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
24 cgraph_get_create_node instead of cgraph_node.
25
26 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
27
28 * c-parser.c (c_parser_initelt): Updated call to
29 objc_build_message_expr.
30 (c_parser_postfix_expression): Likewise.
31
32 2011-04-12 Kai Tietz <ktietz@redhat.com>
33
34 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
35 MASK_MS_BITFIELD_LAYOUT bit.
36
37 2011-04-12 Jakub Jelinek <jakub@redhat.com>
38
39 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
40 assert it is always true.
41 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
42 moves.
43
44 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
45
46 * c-parser.c (c_lex_one_token): Rewritten conditional used when
47 compiling Objective-C to be more efficient.
48
49 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
50
51 * opts-common.c (decode_cmdline_options_to_array): Remove variable
52 argv_copied.
53
54 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
55
56 * recog.h, genoutput.c, optabs.c: Revert last patch.
57
58 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
59
60 PR target/48090
61 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
62
63 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
64
65 * recog.h (insn_operand_data): Add an "allows_mem" field.
66 * genoutput.c (output_operand_data): Initialize it.
67 * optabs.c (maybe_legitimize_operand_same_code): New function.
68 (maybe_legitimize_operand): Use it when matching the original
69 op->value.
70
71 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
72
73 * genpreds.c (process_define_predicate): Move most processing
74 to gensupport.c. Continue to validate the expression.
75 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
76 (process_define_predicate): Move processing to gensupport.c.
77 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
78 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
79 (compute_predicate_codes): Moved from genrecog.c. Add lineno
80 argument.
81 (valid_predicate_name_p): New function, split out from old
82 genpreds.c:process_define_predicate.
83 (process_define_predicate): New function, combining code from
84 old genpreds.c and genrecog.c functions.
85 (process_rtx): Call it for DEFINE_PREDICATE and
86 DEFINE_SPECIAL_PREDICATE.
87
88 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
89
90 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
91 size of a '%A' memory reference.
92 (T_DREG, T_QREG): New neon_builtin_type_bits.
93 (arm_init_neon_builtins): Assert that the load and store operands
94 are neon_struct_operands.
95 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
96 (NEON_ARG_MEMORY): New builtin_arg.
97 (neon_dereference_pointer): New function.
98 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
99 Handle NEON_ARG_MEMORY.
100 (arm_expand_neon_builtin): Update after above interface changes.
101 Use NEON_ARG_MEMORY for loads and stores.
102 * config/arm/predicates.md (neon_struct_operand): New predicate.
103 * config/arm/iterators.md (V_two_elem): Tweak formatting.
104 (V_three_elem): Use BLKmode for accesses that have no associated mode.
105 (V_four_elem): Tweak formatting.
106 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
107 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
108 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
109 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
110 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
111 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
112 (neon_vst4<mode>): Replace pointer operand with a memory operand.
113 Use %A in the output template.
114 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
115 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
116 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
117 the width of the memory access. Remove post-increment.
118 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
119
120 2011-04-12 Nick Clifton <nickc@redhat.com>
121
122 * config/v850/v850.c (expand_prologue): Do not use the CALLT
123 instruction for interrupt handlers if the target is the basic V850
124 architecture.
125 (expand_epilogue): Likewise.
126
127 2011-04-12 Jakub Jelinek <jakub@redhat.com>
128
129 PR rtl-optimization/48549
130 * combine.c (propagate_for_debug): Also stop after BB_END of
131 this_basic_block. Process LAST and just stop processing after it.
132 (combine_instructions): If last_combined_insn has been deleted,
133 set last_combined_insn to its PREV_INSN.
134
135 2011-04-12 Richard Guenther <rguenther@suse.de>
136
137 PR tree-optimization/46076
138 * gimple.h (struct gimple_statement_call): Add fntype field.
139 (gimple_call_fntype): Adjust.
140 (gimple_call_set_fntype): New function.
141 * gimple.c (gimple_build_call_1): Set the call function type.
142 * gimplify.c (gimplify_call_expr): Preserve the function
143 type the frontend used for the call.
144 (gimplify_modify_expr): Likewise.
145 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
146 function type.
147 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
148 function type.
149 * tree-ssa.c (useless_type_conversion_p): Function pointer
150 conversions are useless.
151
152 2011-04-12 Martin Jambor <mjambor@suse.cz>
153
154 * cgraph.h (cgraph_node): Remove function declaration.
155 (cgraph_create_node): Declare.
156 (cgraph_get_create_node): Likewise.
157 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
158 Updated all callers.
159 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
160 the decl does not already exist. Call cgraph_get_create_node instead
161 of cgraph_node.
162 (cgraph_get_create_node): New function.
163 (cgraph_same_body_alias): Update comment.
164 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
165 assert it does not return NULL.
166 (cgraph_update_edges_for_call_stmt): Likewise.
167 (cgraph_clone_edge): Likewise.
168 (cgraph_create_virtual_clone): Likewise.
169 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
170 instead of cgraph_node.
171 (cgraph_add_new_function): Call cgraph_create_node or
172 cgraph_get_create_node instead of cgraph_node.
173 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
174 instead of cgraph_node.
175 (record_eh_tables): Likewise.
176 (mark_address): Likewise.
177 (mark_load): Likewise.
178 (build_cgraph_edges): Call cgraph_get_create_node instead
179 of cgraph_node.
180 (rebuild_cgraph_edges): Likewise.
181 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
182 instead of cgraph_node.
183 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
184 cgraph_node.
185 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
186 cgraph_create_node instead of cgraph_node.
187 * c-decl.c (finish_function): Call cgraph_get_create_node instead
188 of cgraph_node.
189 * lto-cgraph.c (input_node): Likewise.
190 * lto-streamer-in.c (input_function): Likewise.
191 * varasm.c (mark_decl_referenced): Likewise.
192 (assemble_alias): Likewise.
193
194 2011-04-12 Martin Jambor <mjambor@suse.cz>
195
196 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
197 instead of cgraph_node and assert it does not return NULL.
198 * lto-streamer-in.c (lto_read_body): Likewise.
199 * omp-low.c (new_omp_context): Likewise.
200 (create_task_copyfn): Likewise.
201 * tree-emutls.c (lower_emutls_function_body): Likewise.
202 * matrix-reorg.c (transform_allocation_sites): Likewise.
203
204 2011-04-12 Jakub Jelinek <jakub@redhat.com>
205
206 PR c/48552
207 * c-typeck.c (build_asm_expr): Error out on attempts to use
208 void type outputs or inputs for constraints that allow reg or
209 don't allow memory.
210
211 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
212 Richard Earnshaw <rearnsha@arm.com>
213
214 PR target/48250
215 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
216 to use sign-magnitude offsets. Reject unsupported unaligned
217 cases. Add detailed description in comments.
218 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
219 condition from TARGET_32BIT to TARGET_ARM.
220
221 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
222
223 * tree.h (struct typed_tree): New.
224 (struct tree_common): Include it instead of tree_base.
225 (TREE_TYPE): Update for new location of type field.
226 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
227 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
228 (union tree_node): Add typed field.
229 * treestruct.def (TS_TYPED): New.
230 * lto-streamer.c (check_handled_ts_structures): Handle it.
231 * tree.c (MARK_TS_TYPED): New macro.
232 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
233
234 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
235
236 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
237 (force_nonfallthru): Do not alter the loop nest if no basic block
238 was created.
239
240 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
241
242 * config/i386/sse.md (VI): New mode iterator.
243 (SSEMODEI): Remove.
244 (AVX256MODEI): Ditto.
245 (AVXMODEF4P): Ditto.
246 (avxvecpsmode): Ditto.
247 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
248 (sse2_andnot<mode>3): New expander.
249 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
250 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
251 (<any_logic:code><mode>3): Use VI mode iterator.
252 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
253 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
254 (*andnottf3): Handle AVX three-operand constraints.
255 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
256
257 2011-04-11 Joseph Myers <joseph@codesourcery.com>
258 Robert Millan <rmh@gnu.org>
259
260 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
261 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
262 GNU_USER_DYNAMIC_LINKER64): Define.
263 (REG_NAME): Don't undefine.
264 (MD_UNWIND_SUPPORT): Undefine.
265 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
266 (REG_NAME): Don't undefine.
267 (MD_UNWIND_SUPPORT): Undefine.
268 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
269
270 2011-04-11 Joseph Myers <joseph@codesourcery.com>
271
272 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
273 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
274
275 2011-04-11 Xinliang David Li <davidxl@google.com>
276
277 * value-profile.c (check_ic_target): New function.
278 (gimple_ic_transform): Sanity check indirect call target.
279 * gimple-low.c (gimple_check_call_args): Interface change.
280 (gimple_check_call_matching_types): New function.
281 * tree-inline.c (tree_can_inline_p): Call new function.
282
283 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
284
285 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
286 tree-pretty-print.h & realmpfr.h.
287
288 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
289
290 PR middle-end/48464
291 * ira.c (setup_pressure_classes): Fix typo in loop condition.
292 (setup_allocno_and_important_classes): Ditto.
293
294 2011-04-11 Joseph Myers <joseph@codesourcery.com>
295
296 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
297 GNU_USER_DYNAMIC_LINKER.
298 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
299 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
300 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
301 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
302 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
303 GNU_USER_TARGET_OS_CPP_BUILTINS.
304 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
305 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
306 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
307 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
308 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
309 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
310 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
311 GNU_USER_TARGET_OS_CPP_BUILTINS.
312 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
313 GNU_USER_DYNAMIC_LINKER.
314 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
315 GNU_USER_TARGET_OS_CPP_BUILTINS.
316 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
317 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
318 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
319 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
320 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
321 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
322 GNU_USER_DYNAMIC_LINKER64): Remove.
323 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
324 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
325 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
326 GNU_USER_DYNAMIC_LINKER.
327 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
328 GNU_USER_TARGET_OS_CPP_BUILTINS.
329 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
330 GNU_USER_TARGET_OS_CPP_BUILTINS.
331 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
332 to GNU_USER_TARGET_OS_CPP_BUILTINS.
333 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
334 GNU_USER_TARGET_OS_CPP_BUILTINS.
335 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
336 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
337 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
338 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
340 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
341 GNU_USER_DYNAMIC_LINKER.
342 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
343 GNU_USER_TARGET_OS_CPP_BUILTINS.
344 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
345 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
346 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
347 GNU_USER_DYNAMIC_LINKER.
348 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
350 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
352 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
353 GNU_USER_DYNAMIC_LINKER.
354 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
355 GNU_USER_DYNAMIC_LINKERN32.
356 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
357 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
358 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
359 GNU_USER_DYNAMIC_LINKER32.
360 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
361 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
362 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
363 GNU_USER_DYNAMIC_LINKER.
364 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
366 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
367 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
368 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
369 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
370 GNU_USER_DYNAMIC_LINKER32.
371 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
372 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
373 GNU_USER_DYNAMIC_LINKER.
374 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
376 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
377 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
378 GNU_USER_DYNAMIC_LINKER64.
379 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
381 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
382 GNU_USER_DYNAMIC_LINKER.
383 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
384 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
385 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
386 GNU_USER_DYNAMIC_LINKER.
387 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
388 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
389 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
390 GNU_USER_DYNAMIC_LINKER32.
391 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
392 GNU_USER_DYNAMIC_LINKER64.
393 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
394 GNU_USER_DYNAMIC_LINKER64.
395 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
396 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
397 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
398 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
399 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
400
401 2011-04-11 Joseph Myers <joseph@codesourcery.com>
402
403 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
404 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
405 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
406 GNU_USER_DYNAMIC_LINKER.
407 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
408 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
409 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
410 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
411 GNU_USER_DYNAMIC_LINKER64.
412 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
413 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
414 GNU_USER_LINK_EMULATION.
415 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
416 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
417 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
418 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
419 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
420 CPP_SPEC, CC1_SPEC): Remove.
421 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
422 (GNU_USER_DYNAMIC_LINKER): Define.
423 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
424 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
425 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
426 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
427 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
428 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
429 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
430 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
431 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
432 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
433 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
434 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
435 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
436 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
437 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
438 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
439 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
440 GNU_USER_DYNAMIC_LINKER.
441 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
442 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
443 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
444 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
445 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
446 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
447 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
448 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
449 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
450 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
451
452 2011-04-11 Kai Tietz <ktietz@redhat.com>
453
454 PR target/9601
455 PR target/11772
456 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
457 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
458 comment.
459 (ix86_is_msabi_thiscall): Removed.
460 (ix86_is_type_thiscall): Likewise.
461 (ix86_get_callcvt): New function.
462 (ix86_comp_type_attributes): Simplify check.
463 (ix86_function_regparm): Use ix86_get_callcvt for calling
464 convention attribute checks.
465 (ix86_return_pops_args): Likewise.
466 (ix86_static_chain): Likewise.
467 (x86_this_parameter): Likewise.
468 (x86_output_mi_thunk): Likewise.
469 (ix86_function_type_abi): Optimize check for types without attributes.
470 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
471 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
472 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
473 by flag-values.
474 (IX86_BASE_CALLCVT): Helper macro.
475 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
476 Use ix86_get_callcvt for calling convention attribute checks and avoid
477 symbol-decoration for stdcall in TARGET_RTD case.
478 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
479 Likewise.
480 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
481 for declaration.
482
483 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
484
485 * config/i386/sse.md (VI_128): New mode iterator.
486 (VI12_128): Rename from SSEMODE12.
487 (VI14_128): Rename from SSEMODE14.
488 (VI124_128): New mode iterator.
489 (VI24_128): Rename from SSEMODE248.
490 (VI248_128): Rename from SSEMODE248.
491 (SSEMODE124C8): Remove.
492 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
493 (*sse2_<plusminus_insn><mode>3): Merge with
494 *avx_<plusminus_insn><mode>3.
495 (*mulv8hi3): Merge with *avx_mulv8hi3.
496 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
497 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
498 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
499 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
500 (ashr<mode>3): Merge with *avx_ashr<mode>3.
501 (lshr<mode>3): Merge with *avx_lshr<mode>3.
502 (ashl<mode>3): Merge with *avx_ashl<mode>3.
503 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
504 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
505 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
506 (*<smaxmin:code>v8hi3): Ditto.
507 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
508 (*<smaxmin:code>v16qi3): Ditto.
509 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
510 (*sse2_eq<mode>3): Ditto.
511 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
512 (*sse2_gt<mode>3): Ditto.
513 (vcondv2di): Split out of vcond<mode>.
514 (vconduv2di): Split out of vcondu<mode>.
515
516 2011-04-11 Richard Guenther <rguenther@suse.de>
517
518 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
519 before calling tree_low_cst.
520
521 2011-04-11 Richard Guenther <rguenther@suse.de>
522
523 * stor-layout.c (layout_type): Compute all array index size operations
524 in the original type.
525 (initialize_sizetypes): Add comment.
526 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
527
528 2011-04-11 Joseph Myers <joseph@codesourcery.com>
529
530 * common.opt (Tbss=, Tdata=, Ttext=): New options.
531
532 2011-04-11 Martin Jambor <mjambor@suse.cz>
533
534 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
535 of cgraph_node, handle NULL return value.
536 (cgraph_global_info): Likewise.
537 (cgraph_rtl_info): Likewise.
538 * tree-inline.c (estimate_num_insns): Likewise.
539 * gimplify.c (unshare_body): Likewise.
540 (unvisit_body): Likewise.
541 (gimplify_body): Likewise.
542 * predict.c (optimize_function_for_size_p): Likewise.
543 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
544 (call_may_clobber_ref_p_1): Likewise.
545 * varasm.c (function_section_1): Likewise.
546 (assemble_start_function): Likewise.
547
548 2011-04-11 Martin Jambor <mjambor@suse.cz>
549
550 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
551 of cgraph_node.
552 * final.c (rest_of_clean_state): Likewise.
553 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
554 * passes.c (pass_init_dump_file): Likewise.
555 (execute_all_ipa_transforms): Likewise.
556 (function_called_by_processed_nodes_p): Likewise.
557 * predict.c (maybe_hot_frequency_p): Likewise.
558 (probably_never_executed_bb_p): Likewise.
559 (compute_function_frequency): Likewise.
560 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
561 (unnest_nesting_tree_1): Likewise.
562 (lower_nested_functions): Likewise.
563 * tree-optimize.c (execute_fixup_cfg): Likewise.
564 (tree_rest_of_compilation): Likewise.
565 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
566 * tree-sra.c (ipa_early_sra): Likewise.
567 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
568 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
569 * ipa.c (record_cdtor_fn): Likewise.
570 * ipa-inline.c (cgraph_early_inlining): Likewise.
571 (compute_inline_parameters_for_current): Likewise.
572 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
573 * ipa-pure-const.c (local_pure_const): Likewise.
574 * ipa-split.c (split_function): Likewise.
575 (execute_split_functions): Likewise.
576 * cgraphbuild.c (build_cgraph_edges): Likewise.
577 (rebuild_cgraph_edges): Likewise.
578 (cgraph_rebuild_references): Likewise.
579 (remove_cgraph_callee_edges): Likewise.
580 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
581 (verify_cgraph_node): Likewise.
582 (cgraph_analyze_functions): Likewise.
583 (cgraph_preserve_function_body_p): Likewise.
584 (save_inline_function_body): Likewise.
585 (save_inline_function_body): Likewise.
586 * tree-inline.c (copy_bb): Likewise.
587 (optimize_inline_calls): Likewise.
588
589 2011-04-11 Martin Jambor <mjambor@suse.cz>
590
591 PR tree-optimization/48195
592 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
593 ipa_check_create_edge_args.
594 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
595 ipa_check_create_edge_args.
596 * ipa-inline.c (inline_generate_summary): Do not call
597 ipa_check_create_node_params and ipa_check_create_edge_args.
598 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
599 ipa_check_create_edge_args.
600
601 2011-04-09 Anatoly Sokolov <aesok@post.ru>
602
603 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
604 instead of loop.
605 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
606 * function.c (record_hard_reg_sets): Likewise.
607 * ira.c (compute_regs_asm_clobbered): Likewise.
608 * sched-deps.c (sched_analyze_1): Likewise.
609 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
610
611 2011-04-09 Xinliang David Li <davidxl@google.com>
612
613 PR tree-optimization/PR48484
614 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
615 has_valid_pred lazily
616
617 2011-04-09 Duncan Sands <baldrick@free.fr>
618
619 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
620
621 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
622
623 * combine.c (combine_validate_cost): Adjust comments. Set registered
624 cost of I0 to zero at the end, if any.
625
626 2011-04-08 Xinliang David Li <davidxl@google.com>
627
628 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
629 to insane profile data.
630
631 2011-04-08 Xinliang David Li <davidxl@google.com>
632
633 * final.c (dump_basic_block_info): New function.
634 (final): Dump basic block.
635 (final_scan_insn): Remove old dump.
636
637 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
638
639 PR target/47829
640 * config.gcc (i386-*-freebsd): Disable unwind table generation for
641 crtbegin/crtend.
642
643 2011-04-08 Michael Matz <matz@suse.de>
644
645 PR middle-end/48389
646 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
647 functions.
648 (rebuild_jump_labels): Call rebuild_jump_labels_1.
649 * rtl.h (rebuild_jump_labels_chain): Declare.
650 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
651 insns inserted on edges.
652
653 2011-04-08 Joseph Myers <joseph@codesourcery.com>
654
655 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
656 * config/arm/arm-arches.def: New.
657 * config/arm/arm-opts.h: New.
658 * config/arm/genopt.sh: New.
659 * config/arm/arm-tables.opt: New (generated).
660 * config/arm/arm.c (arm_handle_option, arm_target_help,
661 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
662 (all_architectures): Get most table contents from arm-arches.def.
663 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
664 arm_selected_tune here.
665 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
666 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
667 (march=, mcpu=, mtune=): Use Enum and Var.
668 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
669 (arm.o): Update dependencies.
670
671 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
672
673 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
674 of header_file.
675 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
676 (write_typed_alloc_defns): Likewise.
677 (main): Calls write_typed_alloc_defns with output_header.
678
679 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
680
681 PR inline-asm/48435
682 * ira-color.c (setup_profitable_hard_regs): Add comments.
683 Don't take prohibited hard regs into account.
684 (setup_conflict_profitable_regs): Rename to
685 get_conflict_profitable_regs.
686 (check_hard_reg_p): Check prohibited hard regs.
687
688 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
689
690 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
691 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
692 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
693
694 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
695
696 PR target/48366
697 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
698 move from floating point to shift amount register .
699 (emit_move_sequence): Remove secondary reload support for floating
700 point to shift amount amount register copies.
701 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
702 amount register copies.
703 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
704 register, return false if mode isn't a scalar integer mode.
705 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
706
707 2011-04-08 Richard Guenther <rguenther@suse.de>
708
709 * gimple.c (gimple_call_flags): Remove kludge.
710
711 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
712
713 * sel-sched.c (sel_region_init): Move call to
714 sel_setup_region_sched_flags after setup_current_loop_nest.
715
716 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
717
718 PR rtl-optimization/48272
719 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
720 init_insn_reg_pressure_info. Adjust a caller.
721 * sched-int.h (init_insn_reg_pressure_info): Declare.
722 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
723 when sched-pressure is enabled.
724
725 2011-04-08 Richard Guenther <rguenther@suse.de>
726
727 * gimple.c (gimple_set_modified): Do not queue calls to
728 MODIFIED_NORETURN_CALLS here ...
729 * tree-ssa-operands.c (update_stmt_operands): ... but here.
730
731 2011-04-08 Richard Guenther <rguenther@suse.de>
732
733 PR lto/48467
734 * toplev.c (lang_dependent_init): Do not open asm_out_file
735 in WPA mode, nor perform debug machinery initialization.
736 (finalize): Do not unlink asm_out_file in WPA mode.
737
738 2011-04-08 Richard Guenther <rguenther@suse.de>
739
740 * gimple.h (gimple_call_fntype): New function.
741 (gimple_call_return_type): Use it.
742 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
743 * gimple-low.c (gimple_check_call_args): Likewise.
744 * gimple.c (gimple_call_flags): Likewise.
745 (gimple_call_arg_flags): Likewise.
746 (gimple_call_return_flags): Likewise.
747 * tree-cfg.c (verify_gimple_call): Likewise.
748 (do_warn_unused_result): Likewise.
749 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
750 * value-prof.c (gimple_ic_transform): Fix fndecl check.
751
752 2011-04-08 Dmitry Melnik <dm@ispras.ru>
753
754 PR rtl-optimization/48235
755 * sel-sched.c (code_motion_process_successors): Recompute the last
756 insn in basic block if control flow changed.
757 (code_motion_path_driver): Ditto. Recompute the first insn as well.
758 Update condition for ilist_remove.
759
760 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
761
762 PR rtl-optimization/48302
763 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
764 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
765 it to record added preheader blocks.
766 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
767 on to sel_add_loop_preheaders.
768 (sel_region_init): Move call to setup_current_loop_nest after
769 sel_init_bbs.
770
771 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
772
773 PR target/48273
774 * cfgloop.h (loop_has_exit_edges): New helper.
775 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
776 non-clonable.
777 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
778 that have no exit edges.
779
780 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
781
782 PR rtl-optimization/48442
783 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
784 all callers. Adjust assert.
785
786 2011-04-08 Jakub Jelinek <jakub@redhat.com>
787
788 PR tree-optimization/48377
789 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
790 is_packed to true even for types with smaller TYPE_ALIGN than
791 TYPE_SIZE.
792
793 2011-04-08 Richard Guenther <rguenther@suse.de>
794
795 PR bootstrap/48513
796 * doc/tm.texi: Re-generate.
797
798 2011-04-08 Wei Guozhi <carrot@google.com>
799
800 PR target/47855
801 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
802 * config/arm/arm.c (arm_attr_length_push_multi): New function.
803 * config/arm/arm.md (*push_multi): Change the length computation to
804 call a C function.
805
806 2011-04-08 Anatoly Sokolov <aesok@post.ru>
807
808 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
809 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
810 * doc/tm.texi: Regenerate.
811 * system.h (ASM_OUTPUT_BSS): Poison.
812 * varasm.c (asm_output_bss): Remove function.
813 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
814
815 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
816 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
817 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
818 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
819 Likewise.
820 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
821 Likewise.
822 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
823 Likewise.
824 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
825
826 2011-04-07 Joseph Myers <joseph@codesourcery.com>
827
828 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
829 EnumValue lines.
830
831 2011-04-07 Joseph Myers <joseph@codesourcery.com>
832
833 * config/m68k/m68k.c (m68k_handle_option): Don't handle
834 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
835 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
836 OPT_mcpu32.
837 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
838 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
839 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
840 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
841 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
842 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
843 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
844 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
845 options. Don't map other m68k options manually. Don't handle
846 old-style options as canonical.
847 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
848 * doc/install.texi (m68k-*-*): Document binutils version requirement.
849
850 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
851
852 * basic-block.h (force_nonfallthru): Move to...
853 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
854 (force_nonfallthru): ...here.
855 * cfghooks.c (force_nonfallthru): New function.
856 * cfgrtl.c (force_nonfallthru): Rename into...
857 (rtl_force_nonfallthru): ...this.
858 (commit_one_edge_insertion): Do not set AUX field.
859 (commit_edge_insertions): Do not discover new basic blocks.
860 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
861 (cfg_layout_rtl_cfg_hooks): Likewise.
862 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
863 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
864 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
865
866 2011-04-07 Anatoly Sokolov <aesok@post.ru>
867
868 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
869 Remove macros.
870
871 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
872
873 * config/i386/sse.md: Update copyright year.
874 (avxcvtvecmode): Remove.
875 (sse_movhlps): Merge with *avx_movhlps.
876 (sse_movlhps): Merge with *avx_movlhps.
877 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
878 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
879 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
880 (sse_loadhps): Merge with *avx_loadhps.
881 (sse_storelps): Merge with *avx_storelps.
882 (sse_loadlps): Merge with *avx_loadlps.
883 (sse_movss): Merge with *avx_movss.
884 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
885 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
886 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
887 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
888 (vec_set<mode>_0): Ditto.
889 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
890 (sse4_1_insertps): Merge with *avx_insertps.
891 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
892 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
893 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
894 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
895 (sse2_storehpd): Merge with *avx_storehpd.
896 (sse2_loadhpd): Merge with *avx_loadhpd.
897 (sse2_loadlpd): Merge with *avx_loadlpd.
898 (sse2_movsd): Merge with *avx_movsd.
899 (*vec_concatv2df): Merge with *vec_concatv2df.
900
901 2011-04-07 Jakub Jelinek <jakub@redhat.com>
902
903 PR debug/48343
904 * combine.c (combine_instructions): Add last_combined_insn,
905 update it if insn is after it, pass it to all try_combine calls.
906 (try_combine): Add last_combined_insn parameter, pass it instead of
907 i3 to propagate_for_debug.
908
909 2011-04-07 Nick Clifton <nickc@redhat.com>
910
911 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
912 to handle MDR <-> data register transfers.
913 (movhi_internal): Likewise.
914
915 2011-04-07 Alan Modra <amodra@gmail.com>
916
917 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
918 previous stack info.
919
920 2011-04-07 Tom de Vries <tom@codesourcery.com>
921
922 PR target/43920
923 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
924 flow_find_cross_jump. Swap variables to implement backward replacement.
925 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
926
927 2011-04-07 Tom de Vries <tom@codesourcery.com>
928
929 PR target/43920
930 * cfgcleanup.c (walk_to_nondebug_insn): New function.
931 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
932 and bb2.
933 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
934 src1 or src2. Redirect edges to the last basic block. Update
935 frequency and count on multiple basic blocks in case of fallthru.
936
937 2011-04-07 Tom de Vries <tom@codesourcery.com>
938
939 PR target/43920
940 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
941 function.
942 (old_insns_match_p): Change return type. Replace return false/true
943 with return dir_none/dir_both. Use can_replace_by.
944 (flow_find_cross_jump): Add dir_p parameter. Init replacement
945 direction from dir_p. Register replacement direction in dir, last_dir
946 and afterlast_dir. Handle new return type of old_insns_match_p using
947 merge_dir. Return replacement direction in dir_p.
948 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
949 return type of old_insns_match_p.
950 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
951 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
952 flow_find_cross_jump.
953 * basic-block.h (enum replace_direction): New type.
954 (flow_find_cross_jump): Add parameter to declaration.
955
956 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
957
958 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
959 (AVXMODEDCVTPS2DQ): Ditto.
960 (VEC_FLOAT_MODE): Ditto.
961 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
962 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
963 (<any_logic:code><mode>3): Use VF mode iterator.
964 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
965 Use VF mode iterator.
966 (copysign<mode>3): Use VF mode iterator.
967 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
968 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
969 (*<any_logic:code><MODEF:mode>3): Merge with
970 *avx_<any_logic:code><MODEF:mode>3.
971 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
972 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
973 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
974 (avx_cvtdq2ps<avxmodesuffix>): Remove.
975 (sse2_cvtdq2ps): Use %v modifier.
976 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
977 (avx_cvtps2dq<avxmodesuffix>): Remove.
978 (sse2_cvtps2dq): Use %v modifier.
979 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
980 (avx_cvttps2dq<avxmodesuffix>): Remove.
981 (sse2_cvttps2dq): Use %v modifier.
982 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
983 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
984 (sse2_cvtsd2siq): Fix insn template.
985 (sse2_cvtsd2siq_2): Ditto.
986 (sse2_cvttsd2siq): Ditto.
987 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
988 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
989
990 2011-04-06 Joseph Myers <joseph@codesourcery.com>
991
992 * gcov-io.c: Use GCC Runtime Library Exception.
993
994 2011-04-06 Jakub Jelinek <jakub@redhat.com>
995
996 PR debug/48466
997 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
998 as base_reg whatever register reg has been eliminated to, instead
999 of hardcoding STACK_POINTER_REGNUM.
1000
1001 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1002
1003 * doc/tm.texi.in: Document C target hooks as separate from general
1004 target hooks.
1005 * doc/tm.texi: Regenerate.
1006 * genhooks.c (struct hook_desc): Add docname field.
1007 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
1008 docname field.
1009 (hook_array): Include c-target.def.
1010 (emit_documentation): Use docname field in output.
1011 (emit_init_macros): Take docname argument. Only emit definitions
1012 for hooks matching docname.
1013 (main): Expect additional arguments in all cases. Pass argument
1014 to emit_init_macros.
1015 * target.def: Move initial macro definitions and comments to
1016 target-hooks-macros.h.
1017 (gcc_targetcm): Move to c-family/c-target.def.
1018 * target.h (targetcm): Move declaration to c-family/c-target.h.
1019 * targhooks.c (default_handle_c_option): Move to
1020 c-family/c-opts.c.
1021 * targhooks.h (default_handle_c_option): Move declaration to
1022 c-family/c-common.h.
1023 * target-hooks-macros.h: New file.
1024 * config.gcc (target_has_targetcm): Define and use to add to
1025 c_target_objs and cxx_target_objs.
1026 * config/default-c.c: New file.
1027 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1028 of target.h and target-def.h.
1029 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1030 (darwin_objc_construct_string, darwin_cfstring_ref_p,
1031 darwin_check_cfstring_format_arg): Make static.
1032 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1033 TARGET_STRING_OBJECT_REF_TYPE_P,
1034 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1035 * config/darwin-protos.h (darwin_objc_construct_string,
1036 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1037 declare.
1038 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1039 TARGET_STRING_OBJECT_REF_TYPE_P,
1040 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1041 * config/t-darwin (darwin-c.o): Update dependencies.
1042 * system.h (TARGET_HAS_TARGETCM): Poison.
1043 * Makefile.in (TARGET_H): Update.
1044 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1045 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1046 (default-c.o): New target.
1047 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1048 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1049 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
1050 c-target.def.
1051 (build/genhooks.o): Update dependencies.
1052
1053 2011-04-06 Richard Guenther <rguenther@suse.de>
1054
1055 * ipa-inline.c (enum inlining_mode): Remove.
1056 (cgraph_flatten): Use some other token.
1057 (cgraph_edge_early_inlinable_p): New function, split out from ...
1058 (cgraph_perform_always_inlining): New function, split out from ...
1059 (cgraph_decide_inlining_incrementally): ... here.
1060 (cgraph_mark_inline_edge): Adjust.
1061 (cgraph_early_inlining): Re-structure.
1062 (pass_early_inline): Require SSA form.
1063
1064 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
1065 Julian Brown <julian@codesourcery.com>
1066 Mark Shinwell <shinwell@codesourcery.com>
1067
1068 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1069 LO_REGS only for Thumb-1.
1070 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1071 be used in short instructions when optimising for size on Thumb-2.
1072
1073 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1074
1075 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1076 associated with user returns to be preserved.
1077
1078 2011-04-06 Tristan Gingold <gingold@adacore.com>
1079
1080 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1081 symbol_queue_size, DBXOUT_DECR_NESTING,
1082 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1083 if XCOFF_DEBUGGING_INFO.
1084
1085 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
1086
1087 * config/i386/i386.md (attribute isa): New.
1088 (attribute enabled): New.
1089 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1090 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1091 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1092 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1093 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1094 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1095 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1096 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1097
1098 * config/i386/sse.md (VF): New mode iterator.
1099 (VF1): Ditto.
1100 (VF2): Ditto.
1101 (VF_128): Ditto.
1102 (SSEMODEF4): Remove.
1103 (attribute sse): Handle V8SF and V4DF modes.
1104 (<absneg:code><mode>2): Use VF mode iterator.
1105 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
1106 mode iterator.
1107 (<plusminus_insn><mode>3): Use VF mode iterator.
1108 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1109 Use VF mode iterator.
1110 (<sse>_vm<plusminus_insn><mode>3): Merge with
1111 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
1112 (mul<mode>3): Use VF mode iterator.
1113 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
1114 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
1115 mode iterator.
1116 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1117 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1118 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
1119 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
1120 mode iterator.
1121 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1122 Use VF1 mode iterator.
1123 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1124 (sqrt<VF2:mode>2): New expander.
1125 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1126 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1127 and sqrtv2df2. Use VF mode iterator.
1128 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
1129 mode iterator.
1130 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1131 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1132 Use VF1 mode iterator.
1133 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1134 (<smaxmin:code><mode>3): Use VF mode iterator.
1135 (*<smaxmin:code><mode>3_finite): Merge with
1136 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
1137 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1138 (<sse>_vm<smaxmin:code><mode>2): Merge with
1139 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
1140 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
1141 mode iterator.
1142 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
1143 mode iterator.
1144 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1145 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1146 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1147 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1148 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
1149 VF mode iterator.
1150 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1151 Use VF_128 mode iterator.
1152 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
1153 mode iterator.
1154 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
1155 VF_128 mode iterator.
1156 (vcond<mode>): Use VF mode iterator.
1157 * config/i386/predicates.md (sse_comparison_operator): Merge with
1158 avx_comparison_float_operator. Do not declare as special_predicate.
1159 * config/i386/i386.c (struct builtin_description): Update for renamed
1160 compare patterns.
1161 (ix86_expand_args_builtin): Ditto.
1162 (ix86_expand_sse_compare_mask): Ditto.
1163
1164 2011-04-06 Richard Guenther <rguenther@suse.de>
1165
1166 * tree-inline.c (estimate_num_insns): For calls simply account
1167 for all passed arguments and a used return value.
1168
1169 2011-04-06 Richard Guenther <rguenther@suse.de>
1170
1171 PR tree-optimization/47663
1172 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1173 call_stmt_time fields.
1174 (cgraph_edge_inlinable_p): Declare.
1175 (cgraph_edge_recursive_p): New inline function.
1176 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1177 (cgraph_clone_edge): Copy it.
1178 * ipa-inline.c (cgraph_estimate_edge_time): New function.
1179 Account for call stmt time.
1180 (cgraph_estimate_time_after_inlining): Take edge argument.
1181 (cgraph_estimate_edge_growth): Account call stmt size.
1182 (cgraph_estimate_size_after_inlining): Take edge argument.
1183 (cgraph_mark_inline_edge): Adjust.
1184 (cgraph_check_inline_limits): Likewise.
1185 (cgraph_recursive_inlining_p): Remove.
1186 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1187 (cgraph_decide_recursive_inlining): Take edge argument and
1188 adjust.
1189 (cgraph_decide_inlining_of_small_functions): Do not avoid
1190 diags for recursive inlining here.
1191 (cgraph_flatten): Adjust.
1192 (cgraph_decide_inlining_incrementally): Likewise.
1193 (estimate_function_body_sizes): Remove call cost handling.
1194 (compute_inline_parameters): Initialize caller edge call costs.
1195 (cgraph_estimate_edge_growth): New function.
1196 (cgraph_estimate_growth): Use it.
1197 (cgraph_edge_badness): Likewise.
1198 (cgraph_check_inline_limits): Take an edge argument.
1199 (cgraph_decide_inlining_of_small_functions): Adjust.
1200 (cgraph_decide_inlining): Likewise.
1201 * tree-inline.c (estimate_num_insns): Only account for call
1202 return value if it is used.
1203 (expand_call_inline): Avoid diagnostics on recursive inline
1204 functions here.
1205 * lto-cgraph.c (lto_output_edge): Output edge call costs.
1206 (input_edge): Input edge call costs.
1207
1208 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1209
1210 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1211
1212 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1213
1214 * doc/invoke.texi (Spec Files): Fix typo.
1215
1216 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
1217
1218 * profile.c (branch_prob): Move declaration of local variable. Remove
1219 obsolete ??? comment. Expand the location explicitly instead of using
1220 the LOCATION_FILE and LOCATION_LINE macros.
1221
1222 2011-04-06 Wei Guozhi <carrot@google.com>
1223
1224 PR target/47855
1225 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1226 (arm_cond_branch): Likewise.
1227 (arm_cond_branch_reversed): Likewise.
1228 (arm_jump): Likewise.
1229 (push_multi): Likewise.
1230 * config/arm/constraints.md (Py): New constraint.
1231
1232 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1233
1234 PR bootstrap/48471
1235 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
1236 Move these...
1237 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
1238 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
1239 #ifdef DBX_DEBUGGING_INFO.
1240
1241 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
1242
1243 PR bootstrap/48403
1244 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
1245 if old and new states differ.
1246
1247 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1248
1249 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
1250 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
1251 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1252 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
1253 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
1254 mcfv4e): Use Alias.
1255 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
1256 ColdFire options to -mcpu= options.
1257
1258 2011-04-05 Jeff Law <law@redhat.com>
1259
1260 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
1261 check if BB is a successor of LOOP->header and return
1262 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
1263
1264 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1265
1266 * cprop.c (struct reg_use): Remove.
1267 (reg_use_table): Make an array of RTX.
1268 (find_used_regs, constprop_register, local_cprop_pass,
1269 bypass_block): Simplify users of reg_use_table.
1270 (cprop_insn): Likewise. Iterate if copy propagation succeeded
1271 on one of the uses found by find_used_regs.
1272
1273 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1274
1275 PR bootstrap/48469
1276 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
1277 declaration.
1278
1279 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1280
1281 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
1282 as an rtx.
1283 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
1284
1285 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
1286
1287 PR middle-end/48441
1288 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
1289
1290 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1291
1292 * combine.c: Include obstack.h.
1293 (struct insn_link): Define.
1294 (uid_log_links): Adjust type.
1295 (FOR_EACH_LOG_LINK): New macro.
1296 (insn_link_obstack): Declare.
1297 (alloc_insn_link): Define.
1298 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
1299 type of link variables.
1300 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
1301 (try_combine, record_promoted_values, distribute_notes): Likewise.
1302 (distribute_links): Likewise. Tweak prototype.
1303 (clear_log_links): Delete.
1304 (adjust_for_new_dest): Call alloc_insn_link.
1305 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
1306
1307 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1308
1309 * gcse.c (modify_mem_list): Convert to an array of VECs.
1310 (canon_modify_mem_list, compute_transp): Tweak formatting.
1311 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
1312 (load_killed_in_block_p): Likewise.
1313 (record_last_mem_set_info): Likewise.
1314 (clear_modify_mem_tables): Likewise.
1315
1316 2011-04-05 Tom de Vries <tom@codesourcery.com>
1317
1318 PR middle-end/48461
1319 * function.c (emit_use_return_register_into_block): Only define if
1320 HAVE_return.
1321
1322 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
1323
1324 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
1325
1326 2011-04-05 Joseph Myers <joseph@codesourcery.com>
1327
1328 * config/rx/rx-opts.h: New.
1329 * config/rx/rx.c (rx_cpu_type): Remove.
1330 (rx_handle_option): Don't assert that global structures are in
1331 use. Access variables via opts pointer. Defer most handling of
1332 OPT_mint_register_. Use error_at.
1333 (rx_option_override): Handle deferred OPT_mint_register_ here.
1334 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
1335 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
1336 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
1337 (rx_cpu_types): New Enum and EnumValue entries.
1338 (mint-register=): Use Defer and use Var accordingly.
1339
1340 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1341
1342 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
1343 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
1344 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
1345 Move these...
1346 (debug_free_queue, debug_nesting, symbol_queue_index):
1347 ...and these...
1348 * dbxout.c: ...to here. Make static.
1349
1350 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
1351
1352 * gcse.c (modify_pair): Define. Define a VEC of it.
1353 (canon_modify_mem_list): Convert to an array of VECs.
1354 (free_insn_expr_list_list): Delete.
1355 (clear_modify_mem_tables): Call VEC_free instead.
1356 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
1357 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
1358 (canon_list_insert, compute_transp): Likewise.
1359
1360 2011-04-05 Tom de Vries <tom@codesourcery.com>
1361
1362 PR target/43920
1363 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
1364 for size.
1365
1366 2011-04-05 Tom de Vries <tom@codesourcery.com>
1367
1368 PR target/43920
1369 * function.c (emit_use_return_register_into_block): New function.
1370 (thread_prologue_and_epilogue_insns): Use
1371 emit_use_return_register_into_block.
1372
1373 2011-04-05 Tom de Vries <tom@codesourcery.com>
1374
1375 PR target/43920
1376 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
1377 insn.
1378
1379 2011-04-05 Tom de Vries <tom@codesourcery.com>
1380
1381 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
1382
1383 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
1384
1385 * config/arm/arm.md (define_constants for unspec): Replace with
1386 define_c_enum.
1387 (define_constants for unspecv): Replace with define_c_enum.
1388 * config/arm/neon.md (define_constants for unspec): Replace with
1389 define_c_enum.
1390
1391 2011-04-04 Richard Henderson <rth@redhat.com>
1392
1393 PR bootstrap/48400
1394 * dwarf2out.c (output_line_info): Always emit line info from
1395 at least one section.
1396 (dwarf2out_init): Create text_section_line_info here ...
1397 (set_cur_line_info_table): ... not here.
1398
1399 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
1400
1401 PR target/48380
1402 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
1403 not called.
1404
1405 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
1406
1407 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
1408
1409 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
1410 (expr_equiv_p): Remove.
1411 (insert_set_in_table): Look at <dest, src> pair instead of expr.
1412 (hash_scan_set): Update call to insert_set_in_table.
1413 (dump_hash_table): Dump <dest, src> pair.
1414 (lookup_set): Simplify. Lookup <dest, src> pair.
1415 (compute_transp): Remove, fold heavily simplified code into...
1416 (compute_local_properties): ...here. Expect COMP and TRANSP
1417 unconditionally.
1418 (find_avail_set): Take set directly from struct expr.
1419 (find_bypass-set): Likewise.
1420 (bypass_block): Likewise.
1421 (cprop_insn): Likewise. Remove redundant INSN_P test.
1422
1423 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
1424 checks on form of COND from find_implicit_sets to here.
1425 (find_implicit_sets): Cleanup control flow. Split critical edges
1426 if it exposes implicit sets. Allocate/resize implicit_sets as
1427 necessary.
1428 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
1429 changed something. Run df_analyze after find_implicit_sets if any
1430 edges were split. Do not allocate implicit_sets here.
1431
1432 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
1433 (gcse_obstack): Renamed to cprop_obstack.
1434 (GNEW, GNEWVEC, GNEWVAR): Remove.
1435 (gmalloc): Remove.
1436 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
1437 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
1438 (gcse_alloc): Likewise, and rename to cprop_alloc.
1439 (alloc_gcse_men, free_gcse_mem): Remove.
1440 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
1441 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
1442 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
1443
1444 * cprop.c (oprs_not_set_p): Remove.
1445 (mark_set, mark_clobber): Remove.
1446 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
1447 (reg_not_set_p): New function.
1448 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
1449 (cprop_insn): Likewise.
1450 (cprop_jump): Use FOR_EACH_EDGE.
1451
1452 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
1453
1454 PR bootstrap/48403
1455 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
1456 (rank_for_schedule): Use scheduled_insns vector instead of
1457 last_scheduled_insn.
1458 (ok_for_early_queue_removal): Likewise.
1459 (queue_to_ready): Search forward in nonscheduled_insns_begin if
1460 we have a dbg_cnt.
1461 (choose_ready): Likewise.
1462 (commit_schedule): Use VEC_iterate.
1463 (schedule_block): Initialize nonscheduled_insns_begin. If we have
1464 a dbg_cnt, use it and ensure the first insn is in the ready list.
1465 (haifa_sched_init): Allocate scheduled_insns.
1466 (sched_extend_ready_list): Don't allocate it; reserve space.
1467 (haifa_sched_finish): Free it.
1468
1469 2011-04-04 Joseph Myers <joseph@codesourcery.com>
1470
1471 * optc-gen.awk: Always remove type from Variable entry before
1472 recording in var_seen.
1473
1474 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
1475
1476 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
1477 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
1478 call to tidy_fallthru_edges.
1479
1480 2011-04-04 Joseph Myers <joseph@codesourcery.com>
1481
1482 * doc/options.texi (ToLower): Document.
1483 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
1484 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
1485 * opts.h (cl_option): Add cl_tolower field.
1486 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
1487 arguments with lowercase strings.
1488 * config/rx/rx.opt (mcpu=): Add ToLower.
1489 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
1490 argument.
1491
1492 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
1493
1494 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
1495
1496 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
1497
1498 * config/vax/vax.c: Include reload.h.
1499
1500 2011-04-04 Anatoly Sokolov <aesok@post.ru>
1501
1502 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
1503 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1504 (sparc_preferred_reload_class): New function.
1505
1506 2011-04-04 Jakub Jelinek <jakub@redhat.com>
1507
1508 PR debug/48401
1509 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1510 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
1511
1512 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
1513
1514 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
1515 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
1516
1517 2011-04-03 Anatoly Sokolov <aesok@post.ru>
1518
1519 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
1520 (ASM_OUTPUT_ALIGNED_BSS): Define.
1521
1522 2011-04-03 Michael Matz <matz@suse.de>
1523
1524 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
1525 and next_slot members.
1526 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
1527 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
1528 (lto_streamer_cache_append): Declare.
1529 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
1530 unsigned index, remove offset parameter, ensure that we append
1531 or update existing entries.
1532 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
1533 parameter, update next_slot for append.
1534 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
1535 parameter.
1536 (lto_streamer_cache_insert_at): Likewise.
1537 (lto_streamer_cache_append): New function.
1538 (lto_streamer_cache_lookup): Use unsigned index.
1539 (lto_streamer_cache_get): Likewise.
1540 (lto_record_common_node): Don't test tree_node_can_be_shared.
1541 (preload_common_node): Adjust call to lto_streamer_cache_insert.
1542 (lto_streamer_cache_delete): Don't free offsets member.
1543 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
1544 (lto_output_string_with_length): Use lto_output_data_stream.
1545 (lto_output_tree_header): Remove ix parameter, don't write it.
1546 (lto_output_builtin_tree): Likewise.
1547 (lto_write_tree): Adjust callers to above, don't track and write
1548 offset, write unsigned index.
1549 (output_unreferenced_globals): Don't emit all global vars.
1550 (write_global_references): Use unsigned indices.
1551 (lto_output_decl_state_refs): Likewise.
1552 (write_symbol): Likewise.
1553 * lto-streamer-in.c (lto_input_chain): Move earlier.
1554 (input_function): Use unsigned index.
1555 (input_alias_pairs): Don't read and then ignore all global vars.
1556 (lto_materialize_tree): Remove ix_p parameter, don't read index,
1557 don't pass it back, use lto_streamer_cache_append.
1558 (lto_register_var_decl_in_symtab): Use unsigned index.
1559 (lto_register_function_decl_in_symtab): Likewise.
1560 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
1561 index.
1562 (lto_get_builtin_tree): Don't read index, use
1563 lto_streamer_cache_append.
1564 (lto_read_tree): Adjust call to lto_materialize_tree.
1565
1566 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
1567 don't use function calls in arguments to MIN.
1568
1569 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
1570 twice.
1571
1572 * gimple.c (gimple_type_leader_entry): Mark deletable.
1573
1574 2011-04-03 Alan Modra <amodra@gmail.com>
1575
1576 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
1577
1578 2011-04-03 Michael Matz <matz@suse.de>
1579
1580 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
1581 an integer.
1582 * tree.h (tree_decl_non_common.vindex): Adjust comment.
1583
1584 2011-04-03 Michael Matz <matz@suse.de>
1585
1586 * cgraphbuild.c (record_reference): Canonicalize constructor values.
1587 * gimple-fold.c (canonicalize_constructor_val): Accept being called
1588 without function context.
1589 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
1590 current_function_decl and cfun.
1591
1592 2011-04-03 Michael Matz <matz@suse.de>
1593
1594 * tree.c (decl_init_priority_insert): Don't create entry for
1595 default priority.
1596 (decl_fini_priority_insert): Ditto.
1597 (fields_compatible_p, find_compatible_field): Remove.
1598 * tree.h (fields_compatible_p, find_compatible_field): Remove.
1599 * gimple.c (gimple_compare_field_offset): Adjust block comment.
1600
1601 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
1602
1603 * combine.c (try_combine): Remove useless local variable.
1604
1605 2011-04-03 Richard Guenther <rguenther@suse.de>
1606 Ira Rosen <ira.rosen@linaro.org>
1607
1608 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
1609 non-variable offsets and compare the remaining bases of the two
1610 accesses instead of looking for exact same data-ref.
1611
1612 2011-04-02 Kai Tietz <ktietz@redhat.com>
1613
1614 PR target/48416
1615 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
1616
1617 * i386.c (ix86_is_msabi_thiscall): New helper function.
1618 (ix86_is_type_thiscall): New helper function.
1619 (ix86_comp_type_attributes): Handle thiscall for method-functions
1620 special.
1621 (init_cumulative_args): Likewise.
1622 (find_drap_reg): Likewise.
1623 (ix86_static_chain): Likewise.
1624 (x86_this_parameter): Likewise.
1625 (x86_output_mi_thunk): Likewise.
1626
1627 2011-04-01 Olivier Hainque <hainque@adacore.com>
1628 Nicolas Setton <setton@adacore.com>
1629 Eric Botcazou <ebotcazou@adacore.com>
1630
1631 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
1632 (add_gnat_descriptive_type_attribute): New function.
1633 (gen_array_type_die): Call it.
1634 (gen_enumeration_type_die): Likewise.
1635 (gen_struct_or_union_type_die): Likewise.
1636 (modified_type_die): Likewise.
1637 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
1638 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
1639 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
1640
1641 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1642
1643 PR bootstrap/48148
1644 * dwarf2out.c (resolve_addr): Don't call force_decl_die
1645 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
1646
1647 Revert:
1648 2011-03-17 Richard Guenther <rguenther@suse.de>
1649
1650 PR bootstrap/48148
1651 * lto-cgraph.c (input_overwrite_node): Clear the abstract
1652 origin for decls in other ltrans units.
1653 (input_varpool_node): Likewise.
1654
1655 2011-04-01 Jakub Jelinek <jakub@redhat.com>
1656
1657 PR middle-end/48335
1658 * expr.c (expand_assignment): Handle all possibilities
1659 if TO_RTX is CONCAT.
1660 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
1661 (store_split_bit_field): If SUBREG_REG (op0) or
1662 op0 itself has smaller mode than word, return it
1663 for offset 0 and const0_rtx for out-of-bounds stores.
1664 If word is const0_rtx, skip it.
1665
1666 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
1667
1668 * config/h8300/h8300.c (print_operand_address): Rename to...
1669 (h8300_print_operand_address): ...this. Make static. Adjust comments.
1670 Call h8300_print_operand and h8300_print_operand_address instead of
1671 print_operand and print_operand_address. Declare.
1672 (print_operand): Renake to...
1673 (h8300_print_operand): ...this. Make static. Adjust comments.
1674 Call h8300_print_operand instead of print_operand. Declare.
1675 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
1676 (h8300_register_move_cost): Likewise.
1677 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
1678 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
1679 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
1680 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
1681 * config/h8300/h8300-protos.h (print_operand): Delete.
1682 (print_operand_address): Delete.
1683
1684 2011-04-01 Richard Henderson <rth@redhat.com>
1685
1686 PR 48400
1687 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
1688 in strict mode before dwarf4. Re-order tests to early out
1689 before switching sections.
1690
1691 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
1692
1693 * config/h8300/constraints.md: New file.
1694 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
1695 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
1696 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
1697 * config/h8300/predicates.md (bit_operand): Likewise.
1698 (incdec_operand): Use satisfies_constraint_M and
1699 satisfies_constraint_O. Don't use C code block.
1700 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
1701 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
1702 (compute_mov_length): Use satisfies_constraint_G.
1703 (fix_bit_operand): Use satisfies_constraint_U.
1704 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
1705 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
1706 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
1707 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
1708 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
1709 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
1710 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1711 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
1712 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
1713 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
1714 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
1715 (EXTRA_MEMORY_CONSTRAINT): Delete.
1716
1717 2011-04-01 Andrew Pinski <pinskia@gmail.com>
1718 Michael Meissner <meissner@linux.vnet.ibm.com>
1719
1720 PR target/48262
1721 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
1722 operands, as per the specifications.
1723
1724 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
1725 (vec_extract_evenv4sf): Ditto.
1726 (vec_extract_evenv8hi): Ditto.
1727 (vec_extract_evenv16qi): Ditto.
1728 (vec_extract_oddv4si): Ditto.
1729
1730 2011-03-31 Mark Wielaard <mjw@redhat.com>
1731
1732 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
1733 high_pc attribute if the CU has no associated code. Only output
1734 DW_AT_entry_pc for CU if not generating strict dwarf and
1735 dwarf_version < 4.
1736
1737 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
1738
1739 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
1740 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
1741 out of ...
1742 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
1743 * final.c (final_start_function): Call the new function rather
1744 than using a NULL argument for dwarf2out_frame_debug.
1745
1746 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
1747 that contains the prologue.
1748
1749 * haifa-sched.c (queue_insn): New arg REASON. All callers
1750 changed. Print it in debugging output.
1751
1752 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
1753
1754 * sched-ebb.c (begin_schedule_ready): Remove second argument.
1755 Split most of the code into...
1756 (begin_move_insn): ... here. New function.
1757 (ebb_sched_info): Add a pointer to it.
1758 * haifa-sched.c (scheduled_insns): New static variable.
1759 (sched_extend_ready_list): Allocate it.
1760 (schedule_block): Use it to record the order of scheduled insns.
1761 Perform RTL changes to move insns only after all scheduling
1762 decisions have been made.
1763 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
1764 begin_move_insn field.
1765 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1766 * sched-int.h (struct haifa_sched_info): Remove second argument
1767 from begin_schedule_ready hook. Add new member begin_move_insn.
1768 * sched-rgn.c (begin_schedule_ready): Remove second argument.
1769 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
1770
1771 * haifa-sched.c (prune_ready_list): New function, broken out of
1772 schedule_block.
1773 (schedule_block): Use it.
1774
1775 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1776
1777 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
1778
1779 2011-04-01 Kai Tietz <ktietz@redhat.com>
1780
1781 * config.gcc (*-*-mingw*): Allow as option the
1782 posix threading model.
1783 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
1784 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
1785 definition.
1786 (CPP_SPEC): Add pthread/no-pthread handling.
1787 (LIB_SPEC): Likewise.
1788 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
1789 (LIB_SPEC): Likewise.
1790 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
1791 flag to pass -pthread option for shared libgcc build.
1792 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
1793 for shared libgcc build.
1794 * config/i386/t-mingw-pthread: New file.
1795 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
1796 New define to enable use of library pthread by default.
1797 * config/i386/mingw.opt (pthread): New driver option.
1798 (no-pthread): New driver option.
1799 * config/i386/cygming.opt: Make sure trailing empty line is retained.
1800 * config/i386/mingw-w64.opt: Likewise.
1801
1802 2011-04-01 Gary Funck <gary@intrepid.com>
1803
1804 * c-decl.c (grokdeclarator): Fix formatting.
1805
1806 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1807
1808 * expr.c (emit_block_move_via_movmem): Use n_generator_args
1809 instead of n_operands.
1810 (set_storage_via_setmem): Likewise.
1811 * optabs.c (maybe_gen_insn): Likewise.
1812 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
1813 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
1814 (mips_expand_builtin_direct): Likewise.
1815 * config/spu/spu.c (expand_builtin_args): Likewise.
1816
1817 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1818
1819 * recog.h (insn_data_d): Add n_generator_args.
1820 * genoutput.c (data): Likewise.
1821 (output_insn_data): Print it.
1822 (max_opno, num_dups): Delete.
1823 (scan_operands): Just fill in "d->operand[...]".
1824 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
1825
1826 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
1827
1828 * gensupport.h (pattern_stats): New structure.
1829 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
1830 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
1831 (max_operand_1, max_operand_vec): Delete.
1832 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
1833
1834 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
1835
1836 * emit-rtl.c (emit_pattern_after_setloc): New function.
1837 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
1838 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
1839 (emit_pattern_after): New function.
1840 (emit_insn_after, emit_jump_insn_after): Call it.
1841 (emit_call_insn_after, emit_debug_insn_after): Likewise.
1842 (emit_pattern_before_setloc): New function.
1843 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
1844 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
1845 Likewise.
1846 (emit_pattern_before): New function.
1847 (emit_insn_before, emit_jump_insn_before): Call it.
1848 (emit_call_insn_before, emit_debug_insn_before): Likewise.
1849
1850 2011-03-31 Richard Henderson <rth@redhat.com>
1851
1852 * dwarf2out.c (dw_separate_line_info_ref): Remove.
1853 (dw_separate_line_info_entry): Remove.
1854 (enum dw_line_info_opcode): New.
1855 (dw_line_info_entry): Use it.
1856 (dw_line_info_table, dw_line_info_table_p): New.
1857 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
1858 (line_info_table, line_info_label_num): Remove.
1859 (line_info_table_in_use): Remove.
1860 (separate_line_info_table): Remove.
1861 (separate_line_info_table_allocated): Remove.
1862 (separate_line_info_table_in_use): Remove.
1863 (LINE_INFO_TABLE_INCREMENT): Remove.
1864 (line_info_label_num): New.
1865 (cur_line_info_table): New.
1866 (text_section_line_info, cold_text_section_line_info): New.
1867 (separate_line_info): New.
1868 (SEPARATE_LINE_CODE_LABEL): Remove.
1869 (print_dwarf_line_table): Remove.
1870 (debug_dwarf): Don't dump it.
1871 (output_one_line_info_table): New.
1872 (output_line_info): Use it.
1873 (new_line_info_table): New.
1874 (set_cur_line_info_table): New.
1875 (dwarf2out_switch_text_section): Use it.
1876 (dwarf2out_begin_function): Likewise.
1877 (push_dw_line_info_entry): New.
1878 (dwarf2out_source_line): Rewrite for new line info tables.
1879 (dwarf2out_init): Remove dead initailizations.
1880
1881 2011-03-31 Joseph Myers <joseph@codesourcery.com>
1882
1883 * opts.h (cl_option): Add comments to fields. Add bit-fields for
1884 various flags.
1885 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
1886 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
1887 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
1888 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
1889 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
1890 * opt-functions.awk (flag_init, switch_bit_fields): New.
1891 (switch_flags): Don't handle flags moved to bit-fields. Don't
1892 generate CL_MISSING_OK or CL_SAVE.
1893 * optc-gen.awk: Update to generate bit-field output as well as
1894 flags field.
1895 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
1896 bit-field instead of CL_REJECT_DRIVER flag.
1897 * opts-common.c (generate_canonical_option,
1898 decode_cmdline_option): Use bit-fields instead of CL_* flags.
1899 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
1900 instead of CL_REJECT_NEGATIVE flag.
1901 * toplev.c (print_switch_values): Use cl_report bit-field instead
1902 of CL_REPORT flag.
1903
1904 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
1905
1906 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
1907 a zero minimum index only if it is redundant.
1908
1909 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
1910
1911 PR rtl-optimization/48381
1912 * ira-color.c (assign_hard_reg): Use hard reg set intersection
1913 instead of ira_class_hard_reg_index for calculating conflicting
1914 hard registers.
1915
1916 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
1917
1918 * cprop.c: Clean up hash table building.
1919 (reg_avail_info): Remove.
1920 (oprs_available_p): Remove.
1921 (record_last_reg_set_info): Remove.
1922 (record_last_set_info): Remove.
1923 (reg_available_p): New function.
1924 (gcse_constant_p): Do not treat unfolded conditions as constants.
1925 (make_set_regs_unavailable): New function.
1926 (hash_scan_set): Simplify with new reg_available_p.
1927 (compute_hash_table_work): Traverse insns stream only once.
1928 Do not compute reg_avail_info. Traverse insns in reverse order.
1929 Record implicit sets after recording explicit sets from the block.
1930
1931 2011-03-31 Michael Matz <matz@suse.de>
1932
1933 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
1934
1935 2011-03-31 Anatoly Sokolov <aesok@post.ru>
1936
1937 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
1938 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
1939 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1940 (h8300_mode_dependent_address_p): New function.
1941 (h8300_get_index): Make static.
1942
1943 2011-03-31 Jeff Law <law@redhat.com>
1944
1945 * reload1.c (elimination_effects): Fix typo in recent change.
1946
1947 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
1948 typo potentially leading to null pointer dereference.
1949
1950 * caller-save.c (new_saved_hard_reg): Eliminate return value.
1951 (setup_save_areas): Corresponding changes to avoid useless
1952 assignments.
1953
1954 * jump.c (reversed_comparison_code_parts): Avoid successive return
1955 statements when REVERSE_CONDITION is defined.
1956
1957 * expr.c (expand_assignment): Avoid useless assignments.
1958 (expand_expr_real_1): Likewise.
1959 (expand_expr_real_2): Avoid useless statements.
1960
1961 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
1962
1963 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1964
1965 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
1966 statements.
1967
1968 * stmt.c (expand_expr_stmt): Avoid useless assignment.
1969
1970 2011-03-31 Joseph Myers <joseph@codesourcery.com>
1971
1972 PR target/47109
1973 * doc/tm.texi.in (TARGET_VERSION): Remove.
1974 * doc/tm.texi: Regenerate.
1975 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
1976 * collect2.c (main): Don't use TARGET_VERSION.
1977 * mips-tdump.c (main): Don't use TARGET_VERSION.
1978 * mips-tfile.c (main): Don't use TARGET_VERSION.
1979 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
1980 * config/rs6000/vxworksae.h: Remove.
1981 * config/alpha/alpha.h (TARGET_VERSION): Remove.
1982 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
1983 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
1984 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
1985 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
1986 * config/arm/arm.h (TARGET_VERSION): Remove.
1987 * config/arm/coff.h (TARGET_VERSION): Remove.
1988 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
1989 * config/arm/elf.h (TARGET_VERSION): Remove.
1990 * config/arm/freebsd.h (TARGET_VERSION): Remove.
1991 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
1992 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
1993 * config/arm/pe.h (TARGET_VERSION): Remove.
1994 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
1995 * config/arm/semi.h (TARGET_VERSION): Remove.
1996 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
1997 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
1998 * config/arm/vxworks.h (TARGET_VERSION): Remove.
1999 * config/avr/avr.h (TARGET_VERSION): Remove.
2000 * config/bfin/bfin.h (TARGET_VERSION): Remove.
2001 * config/fr30/fr30.h (TARGET_VERSION): Remove.
2002 * config/frv/frv.h (TARGET_VERSION): Remove.
2003 * config/h8300/h8300.h (TARGET_VERSION): Remove.
2004 * config/i386/cygwin.h (TARGET_VERSION): Remove.
2005 * config/i386/darwin.h (TARGET_VERSION): Remove.
2006 * config/i386/darwin64.h (TARGET_VERSION): Remove.
2007 * config/i386/djgpp.h (TARGET_VERSION): Remove.
2008 * config/i386/freebsd.h (TARGET_VERSION): Remove.
2009 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2010 * config/i386/gnu.h (TARGET_VERSION): Remove.
2011 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2012 * config/i386/i386elf.h (TARGET_VERSION): Remove.
2013 * config/i386/linux.h (TARGET_VERSION): Remove.
2014 * config/i386/linux64.h (TARGET_VERSION): Remove.
2015 * config/i386/lynx.h (TARGET_VERSION): Remove.
2016 * config/i386/mingw32.h (TARGET_VERSION): Remove.
2017 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2018 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2019 * config/i386/netware.h (TARGET_VERSION): Remove.
2020 * config/i386/nto.h (TARGET_VERSION): Remove.
2021 * config/i386/openbsd.h (TARGET_VERSION): Remove.
2022 * config/i386/vxworks.h (TARGET_VERSION): Remove.
2023 * config/ia64/elf.h (TARGET_VERSION): Remove.
2024 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2025 * config/ia64/hpux.h (TARGET_VERSION): Remove.
2026 * config/ia64/linux.h (TARGET_VERSION): Remove.
2027 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2028 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2029 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2030 * config/lm32/lm32.h (TARGET_VERSION): Remove.
2031 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2032 * config/m32c/m32c.h (TARGET_VERSION): Remove.
2033 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2034 * config/m32r/m32r.h (TARGET_VERSION): Remove.
2035 * config/m68k/linux.h (TARGET_VERSION): Remove.
2036 * config/m68k/m68k.h (TARGET_VERSION): Remove.
2037 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2038 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2039 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2040 * config/mep/mep.h (TARGET_VERSION): Remove.
2041 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2042 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2043 * config/mips/iris6.h (MACHINE_TYPE): Remove.
2044 * config/mips/linux.h (TARGET_VERSION): Remove.
2045 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2046 * config/mips/vxworks.h (TARGET_VERSION): Remove.
2047 * config/mmix/mmix.h (TARGET_VERSION): Remove.
2048 * config/mn10300/linux.h (TARGET_VERSION): Remove.
2049 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2050 * config/pa/pa.h (TARGET_VERSION): Remove.
2051 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2052 * config/picochip/picochip.h (TARGET_VERSION): Remove.
2053 * config/rs6000/aix.h (TARGET_VERSION): Remove.
2054 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2055 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2056 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2057 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2058 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2059 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2060 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2061 * config/rs6000/linux.h (TARGET_VERSION): Remove.
2062 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2063 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2064 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2065 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2066 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2067 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2068 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2069 * config/s390/linux.h (TARGET_VERSION): Remove.
2070 * config/s390/s390.h (TARGET_VERSION): Remove.
2071 * config/s390/tpf.h (TARGET_VERSION): Remove.
2072 * config/score/score.h (TARGET_VERSION): Remove.
2073 * config/sh/linux.h (TARGET_VERSION): Remove.
2074 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2075 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2076 * config/sh/sh.h (TARGET_VERSION): Remove.
2077 * config/sh/sh64.h (TARGET_VERSION): Remove.
2078 * config/sh/superh.h (TARGET_VERSION): Remove.
2079 * config/sh/vxworks.h (TARGET_VERSION): Remove.
2080 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2081 * config/sparc/linux.h (TARGET_VERSION): Remove.
2082 * config/sparc/linux64.h (TARGET_VERSION): Remove.
2083 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2084 TARGET_NAME32, TARGET_NAME): Remove.
2085 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2086 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2087 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2088 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2089 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2090 * config/spu/spu.h (TARGET_VERSION): Remove.
2091 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2092 * config/v850/v850.h (TARGET_VERSION): Remove.
2093 * config/vax/linux.h (TARGET_VERSION): Remove.
2094 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2095 * config/xtensa/elf.h (TARGET_VERSION): Remove.
2096 * config/xtensa/linux.h (TARGET_VERSION): Remove.
2097
2098 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
2099
2100 PR target/48142
2101 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2102 frame-related from frame-unrelated adjustments to the stack pointer.
2103
2104 2011-03-31 Jakub Jelinek <jakub@redhat.com>
2105
2106 * common.opt (fdebug-types-section): Move earlier.
2107 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2108
2109 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
2110
2111 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2112 var.
2113
2114 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
2115
2116 * tree.h (CASE_CHAIN): Define.
2117 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2118 (gimple_redirect_edge_and_branch): Likewise.
2119
2120 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2121
2122 PR middle-end/48367
2123 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2124 calculation.
2125
2126 2011-03-30 Jeff Law <law@redhat.com>
2127
2128 * PR bootstrap/48371
2129 * reload1.c (reload): Fix botch in last change.
2130
2131 * reload.h (struct reload): Fix typo introduced in last change.
2132
2133 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2134
2135 * config/arm/arm.opt (mhard-float, msoft-float): Mark
2136 Undocumented. Remove help text.
2137 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2138 -mhard-float.
2139
2140 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2141
2142 * doc/options.texi (NegativeAlias): Document.
2143 (Alias): Mention NegativeAlias.
2144 * opt-functions.awk: Handle NegativeAlias.
2145 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2146 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2147 * opts.h (CL_NEGATIVE_ALIAS): Define.
2148 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2149 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2150 OPT_mspe_.
2151 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2152 Alias entries.
2153 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2154 mno-spe and mno-isel instead of mspe=no and -misel=no.
2155
2156 2011-03-29 Mark Wielaard <mjw@redhat.com>
2157
2158 * common.opt (fdebug-types-section): New flag.
2159 * doc/invoke.texi: Document new -fno-debug-types-section flag.
2160 * dwarf2out.c (use_debug_types): New define.
2161 (struct die_struct): Mark die_id with GTY desc use_debug_types.
2162 (print_die): Guard output of type unit signatures using
2163 use_debug_types.
2164 (build_abbrev_table): Replace assert of dwarf_version >= 4
2165 with assert on use_debug_types.
2166 (size_of_die): Likewise.
2167 (unmark_dies): Likewise.
2168 (value_format): Decide AT_ref_external form on use_debug_types.
2169 (output_die): Replace dwarf_version version check guard with
2170 use_debug_types where appropriate.
2171 (modified_type_die): Likewise.
2172 (gen_reference_type_die): Likewise.
2173 (dwarf2out_start_source_file): Likewise.
2174 (dwarf2out_end_source_file): Likewise.
2175 (prune_unused_types_walk_attribs): Likewise.
2176 (dwarf2out_finish): Likewise.
2177
2178 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
2179
2180 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2181
2182 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2183
2184 PR rtl-optimization/48332
2185 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2186 mode of input operand N and modeN to its actual mode.
2187
2188 2011-03-30 Jeff Law <law@redhat.com>
2189
2190 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2191 define accessor macro.
2192 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2193 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2194 (reg_equiv_init): Likewise.
2195 (reg_equivs_size): New variable.
2196 (reg_equiv_init_size): Remove.
2197 (allocate_initial_values): Move prototype to here from....
2198 * integrate.h (allocate_initial_values): Remove prototype.
2199 * integrate.c: Include reload.h.
2200 (allocate_initial_values): Corresponding changes.
2201 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2202 (fix_reg_equiv_init, no_equiv): Corresponding changes.
2203 (update_equiv_regs): Corresponding changes.
2204 (ira): Corresponding changes.
2205 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2206 (push_secondary_reload): Corresponding changes.
2207 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2208 (make_memloc, find_reloads_address): Corresponding changes.
2209 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2210 (find_reloads_address_1): Corresponding changes.
2211 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2212 (refers_to_regno_for_reload_p): Corresponding changes.
2213 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2214 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2215 * reload1.c: Include ggc.h.
2216 (grow_reg_equivs): New function.
2217 (replace_pseudos_in, reload): Corresponding changes.
2218 (calculate_needs_all_insns, alter_regs): Corresponding changes.
2219 (eliminate_regs_1, elimination_effects): Corresponding changes.
2220 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2221 (delete_output_reload): Likewise.
2222 * caller-save.c (mark_referenced_regs): Corresponding changes.
2223 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2224 * frv/predicates.md (frv_load_operand): Corresponding changes.
2225 * microblaze/microblaze.c (double_memory_operand): Corresponding
2226 changes.
2227 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2228 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2229 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2230 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2231 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
2232 changes.
2233 * pa/pa.c (emit_move_sequence): Corresponding changes.
2234 * vax/vax.c (nonindexed_address_p): Corresponding changes.
2235
2236 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2237
2238 PR target/47551
2239 * config/arm/arm.c (coproc_secondary_reload_class): Handle
2240 structure modes. Don't check neon_vector_mem_operand for
2241 vector or structure modes.
2242
2243 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
2244 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2245
2246 PR target/43590
2247 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
2248 operand 1 and reshuffle the operands to match.
2249 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
2250
2251 2011-03-30 Christian Schüler <cschueler@gmx.de>
2252
2253 PR driver/48208
2254 * config/c.opt (F): Added 'Driver' to -F option.
2255
2256 PR driver/48260
2257 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
2258 handler function.
2259 * config/darwin.opt: Added '-arch' option.
2260
2261 2011-03-30 Nick Clifton <nickc@redhat.com>
2262
2263 * config/rx/rx.md: Add peepholes and patterns to combine
2264 extending loads and simple arithmetic instructions.
2265 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
2266 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
2267 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
2268 modes to use pre-decrement and post-increment addressing.
2269 (rx_is_restricted_memory_address): Add range checking of REG+INT
2270 addresses.
2271 (rx_print_operand): Add support for %Q. Fix handling of %Q.
2272 (rx_memory_move_cost): Adjust cost of stores.
2273 (rx_adjust_insn_length): New function.
2274
2275 2011-03-30 Jakub Jelinek <jakub@redhat.com>
2276
2277 PR c/48305
2278 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2279 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
2280 matching arg00/arg01 types.
2281
2282 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
2283
2284 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
2285 last_location to UNKNOWN_LOCATION.
2286
2287 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
2288
2289 PR target/48349
2290 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2291 FLOAT_SSE_REGS.
2292
2293 2011-03-30 Joseph Myers <joseph@codesourcery.com>
2294 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2295
2296 PR bootstrap/48337
2297 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
2298 Init(PROCESSOR_V7).
2299 (sparc_cpu): Likewise.
2300 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
2301 PROCESSOR_V7.
2302
2303 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2304
2305 PR target/48336
2306 PR middle-end/48342
2307 PR rtl-optimization/48345
2308 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
2309 hard regs for given mode from profitable regs when doing secondary
2310 allocation.
2311
2312 2011-03-29 Jeff Law <law@redhat.com>
2313
2314 PR bootstrap/48327
2315 * tree-ssa-threadupdate.c (struct redirection_data): Remove
2316 do_not_duplicate field.
2317 (lookup_redirection_data): Corresponding changes.
2318 (create_duplicates): Always create a template block.
2319 (redirect_edges): Remove code which reused the original block
2320 when it was going to become unreachable code.
2321 (thread_block): Don't set do_not_duplicate field.
2322
2323 2011-03-29 Joseph Myers <joseph@codesourcery.com>
2324
2325 * lto-opts.c (register_user_option_p, lto_register_user_option):
2326 Make type argument unsigned.
2327 * lto-streamer.h (lto_register_user_option): Make type argument
2328 unsigned.
2329 * opth-gen.awk: Make CL_* macros unsigned.
2330 * opts-common.c (find_opt): Make lang_mask argument unsigned.
2331 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2332 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
2333 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
2334 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
2335 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
2336 (find_opt): Make lang_mask argument unsigned.
2337
2338 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2339
2340 PR rtl-optimization/48331
2341 PR rtl-optimization/48334
2342 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
2343 for any used algorithm.
2344
2345 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
2346
2347 * ira-conflicts.c (build_object_conflicts): Add unused attribute
2348 to parent_max.
2349
2350 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
2351
2352 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2353 (alpha_option_override): Don't set alpha_sr_alias_set.
2354 (emit_frame_store_1): Use gen_frame_mem rather than calling
2355 set_mem_alias_set.
2356 (alpha_expand_epilogue): Ditto.
2357
2358 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
2359
2360 PR tree-optimization/48290
2361 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
2362 vectorization, check that relevant phis in the basic block after
2363 the inner loop are really inner loop's exit phis.
2364
2365 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
2366
2367 PR debug/48190
2368 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
2369 (cached_dw_loc_list_def): New structure.
2370 (cached_dw_loc_list): New typedef.
2371 (cached_dw_loc_list_table): New variable.
2372 (cached_dw_loc_list_table_hash): New function.
2373 (cached_dw_loc_list_table_eq): Likewise.
2374 (add_location_or_const_value_attribute): Take a bool cache_p.
2375 Cache the list when the parameter is true.
2376 (gen_formal_parameter_die): Update caller.
2377 (gen_variable_die): Likewise.
2378 (dwarf2out_finish): Likewise.
2379 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
2380 while generating debug info for the decl.
2381 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
2382 (dwarf2out_init): Initialize cached_dw_loc_list_table.
2383 (resolve_addr): Cache the result of resolving a chain of
2384 location lists.
2385
2386 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
2387
2388 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
2389 conflict object hard regset nodes have intersecting hard reg sets.
2390
2391 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
2392 after regstat_init_n_sets_and_refs.
2393
2394 * ira.c: Add more comments at the top.
2395 (setup_stack_reg_pressure_class, setup_pressure_classes):
2396 Add comments how we compute the register pressure classes.
2397 (setup_allocno_and_important_classes): Add more comments.
2398 (setup_class_translate_array, reorder_important_classes)
2399 (setup_reg_class_relations): Add comments.
2400
2401 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
2402 start of the file.
2403
2404 * ira-color.c: Add 2011 to the Copyright line.
2405 (assign_hard_reg): Add more comments.
2406 (improve_allocation): Ditto.
2407
2408 * ira-costs.c: Add 2011 to the Copyright line.
2409 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
2410 comments.
2411 (setup_regno_cost_classes_by_mode): Ditto.
2412
2413 Initial patches from ira-improv branch:
2414
2415 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
2416
2417 * ira-build.c: (ira_create_object): Remove initialization of
2418 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
2419 (ira_create_allocno): Remove initialization of
2420 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
2421 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
2422 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2423 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
2424 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
2425 Initialize ALLOCNO_ADD_DATA.
2426 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
2427 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
2428 ALLOCNO_REG.
2429 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
2430 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
2431
2432 * ira.c (ira_reallocate): Remove.
2433 (setup_pressure_classes): Call
2434 ira_init_register_move_cost_if_necessary. Use
2435 ira_register_move_cost instead of ira_get_register_move_cost.
2436 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
2437 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
2438
2439 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
2440 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2441 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
2442 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
2443 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
2444 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
2445 Fix formatting.
2446 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
2447 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2448 (struct allocno_color_data): New.
2449 (allocno_color_data_t): New typedef.
2450 (allocno_color_data): New definition.
2451 (ALLOCNO_COLOR_DATA): New macro.
2452 (struct object_color_data): New.
2453 (object_color_data_t): New typedef.
2454 (object_color_data): New definition.
2455 (OBJECT_COLOR_DATA): New macro.
2456 (update_copy_costs, calculate_allocno_spill_cost): Call
2457 ira_init_register_move_cost_if_necessary. Use
2458 ira_register_move_cost instead of ira_get_register_move_cost.
2459 (move_spill_restore, update_curr_costs): Ditto.
2460 (allocno_spill_priority): Make it inline.
2461 (color_pass): Allocate and free allocno_color_dat and object_color_data.
2462 (struct coalesce_data, coalesce_data_t): New.
2463 (allocno_coalesce_data): New definition.
2464 (ALLOCNO_COALESCE_DATA): New macro.
2465 (merge_allocnos, coalesced_allocno_conflict_p): Use
2466 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
2467 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
2468 (coalesce_allocnos): Ditto.
2469 (setup_coalesced_allocno_costs_and_nums): Ditto.
2470 (collect_spilled_coalesced_allocnos): Ditto.
2471 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
2472 (setup_slot_coalesced_allocno_live_ranges): Ditto.
2473 (coalesce_spill_slots): Ditto.
2474 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
2475 free allocno_coalesce_data.
2476
2477 * ira-conflicts.c: Fix formatting.
2478 (process_regs_for_copy): Call
2479 ira_init_register_move_cost_if_necessary. Use
2480 ira_register_move_cost instead of ira_get_register_move_cost.
2481 (build_object_conflicts): Optimize.
2482
2483 * ira-costs.c (record_reg_classes): Optimize. Call
2484 ira_init_register_move_cost_if_necessary. Use
2485 ira_register_move_cost, ira_may_move_in_cost, and
2486 ira_may_move_out_cost instead of ira_get_register_move_cost and
2487 ira_get_may_move_cost.
2488 (record_address_regs): Ditto.
2489 (scan_one_insn): Optimize.
2490 (find_costs_and_classes): Optimize.
2491 (process_bb_node_for_hard_reg_moves): Call
2492 ira_init_register_move_cost_if_necessary. Use
2493 ira_register_move_cost instead of ira_get_register_move_cost.
2494
2495 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
2496 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
2497 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
2498 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
2499 definitions.
2500 (ira_initiate_emit_data, ira_finish_emit_data)
2501 (create_new_allocno): New functions.
2502 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
2503 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
2504 Use ira_register_move_cost instead of ira_get_register_move_cost.
2505
2506 * ira-int.h: Fix some comments.
2507 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
2508 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2509 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
2510 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
2511 add_data.
2512 (struct ira_allocno): Make mode and aclass a bitfield. Move other
2513 bitfield after mode. Make hard_regno a short int. Make
2514 hard_regno short. Remove first_coalesced_allocno and
2515 next_coalesced_allocno. Move mem_optimized_dest_p,
2516 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
2517 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
2518 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
2519 temp, colorable_p. Add new member add_data.
2520 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
2521 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
2522 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
2523 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
2524 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
2525 (ALLOCNO_ADD_DATA): New macro.
2526 (ira_emit_data_t): New typedef.
2527 (struct ira_emit_data): New. Move mem_optimized_dest_p,
2528 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
2529 from struct ira_allocno.
2530 (ALLOCNO_EMIT_DATA): New macro.
2531 (ira_allocno_emit_data, allocno_emit_reg): New.
2532 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
2533 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
2534 (OBJECT_ADD_DATA): New macro.
2535 (ira_reallocate): Remove.
2536 (ira_initiate_emit_data, ira_finish_emit_data): New.
2537 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
2538 (ira_init_register_move_cost_if_necessary): New.
2539 (ira_object_conflict_iter_next): Merge into
2540 ira_object_conflict_iter_cond.
2541 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
2542
2543 * ira-live.c: (process_single_reg_class_operands): Call
2544 ira_init_register_move_cost_if_necessary. Use
2545 ira_register_move_cost instead of ira_get_register_move_cost.
2546
2547 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
2548
2549 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
2550
2551 * ira-costs.c: Fix formatting.
2552 (cost_classes, cost_classes_num): Remove.
2553 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
2554 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
2555 (cost_classes_del, cost_classes_htab): New.
2556 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
2557 (initiate_regno_cost_classes, setup_cost_classes): New.
2558 (setup_regno_cost_classes_by_aclass): New.
2559 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
2560 (record_reg_classes): Use regno_cost_classes instead of
2561 cost_classes. Move checking opposite operand up.
2562 (record_address_regs): Use regno_cost_classes
2563 instead of cost_classes.
2564 (scan_one_insn): Ditto. Use always general register.
2565 (print_allocno_costs): Use regno_cost_classes instead of
2566 cost_classes.
2567 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
2568 (find_costs_and_classes): Set up cost classes for each registers.
2569 Use also their mode for this. Use regno_cost_classes instead of
2570 cost_classes.
2571 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
2572 cost_classes.
2573 (free_ira_costs, ira_init_costs): Don't use cost_classes.
2574 (ira_costs, ira_set_pseudo_classes): Call
2575 initiate_regno_cost_classes and finish_regno_cost_classes.
2576
2577 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
2578
2579 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
2580
2581 * target.def (ira_cover_classes): Remove.
2582
2583 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
2584
2585 * doc/tm.texi.in: Ditto.
2586
2587 * ira-conflicts.c: Remove mentioning cover classes from the file.
2588 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
2589 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
2590
2591 * targhooks.c (default_ira_cover_classes): Remove.
2592
2593 * targhooks.h (default_ira_cover_classes): Ditto.
2594
2595 * haifa-sched.c: Remove mentioning cover classes from the file.
2596 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2597 ira_pressure_classes and ira_pressure_classes_num instead of
2598 ira_reg_class_cover_size and ira_reg_class_cover. Use
2599 sched_regno_pressure_class instead of sched_regno_cover_class.
2600 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
2601 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2602
2603 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
2604 classes from the file.
2605 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
2606 (struct object_hard_regs, struct object_hard_regs_node): New.
2607 (struct ira_object): New members profitable_hard_regs,
2608 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
2609 (struct ira_allocno): Rename cover_class to aclass. Rename
2610 cover_class_cost and updated_cover_class_cost to class_cost and
2611 updated_class_cost. Remove splay_removed_p and
2612 left_conflict_size. Add new members colorable_p.
2613 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
2614 (ALLOCNO_COLORABLE_P): New macro.
2615 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
2616 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
2617 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
2618 (OBJECT_...): Rename parameter C to O.
2619 (OBJECT_PROFITABLE_HARD_REGS): New macro.
2620 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
2621 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
2622 (struct target_ira_int): New members x_ira_max_memory_move_cost,
2623 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
2624 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
2625 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
2626 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
2627 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
2628 x_ira_reg_class_subunion.
2629 (ira_max_memory_move_cost, ira_max_register_move_cost)
2630 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
2631 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
2632 (ira_important_class_nums, ira_reg_class_superunion): New macros.
2633 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
2634 (ira_reg_class_union): Rename to ira_reg_class_subunion.
2635 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2636 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2637 (ira_tune_allocno_costs_and_cover_classes): Rename to
2638 ira_tune_allocno_costs.
2639 (ira_debug_hard_regs_forest): New.
2640 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
2641 (ira_object_conflict_iter_next): Fix comments.
2642 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
2643 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
2644 cover_class to aclass.
2645 (ira_allocate_and_accumulate_costs): Ditto.
2646 (ira_allocate_and_set_or_copy_costs): Ditto.
2647
2648 * opts.c (decode_options): Remove ira_cover_class check.
2649
2650 * ira-color.c: Remove mentioning cover classes from the file. Use
2651 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
2652 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
2653 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2654 (splay-tree.h): Remove include.
2655 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
2656 before copy_freq_compare_func.
2657 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
2658 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
2659 New definitions.
2660 (hard_regs_roots, hard_regs_node_vec): Ditto.
2661 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
2662 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
2663 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
2664 (create_new_object_hard_regs_node): Ditto.
2665 (add_new_object_hard_regs_node_to_forest): Ditto.
2666 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
2667 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
2668 Ditto.
2669 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
2670 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
2671 (remove_unused_object_hard_regs_nodes): Ditto.
2672 (enumerate_object_hard_regs_nodes): Ditto.
2673 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
2674 (object_hard_regs_subnode_t): Ditto.
2675 (struct object_hard_regs_subnode): Ditto.
2676 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
2677 (setup_object_hard_regs_subnode_index): Ditto.
2678 (get_object_hard_regs_subnodes_num): Ditto.
2679 (form_object_hard_regs_nodes_forest): Ditto.
2680 (finish_object_hard_regs_nodes_tree): Ditto.
2681 (finish_object_hard_regs_nodes_forest): Ditto.
2682 (allocnos_have_intersected_live_ranges_p): Rename to
2683 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2684 (pseudos_have_intersected_live_ranges_p): Rename to
2685 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
2686 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
2687 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
2688 (update_copy_costs): Remove assert. Skip cost update if the hard
2689 reg does not belong the class.
2690 (assign_hard_reg): Process only profitable hard regs.
2691 (uncolorable_allocnos_num): Make it scalar.
2692 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2693 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
2694 and ira_reg_class_max_nregs.
2695 (bucket_allocno_compare_func): Check frequency first.
2696 (sort_bucket): Add compare function as a parameter.
2697 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
2698 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
2699 (push_allocno_to_stack): Rewrite for checking new allocno
2700 colorability.
2701 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
2702 (push_only_colorable): Pass new parameter to sort_bucket.
2703 (push_allocno_to_spill): Remove.
2704 (allocno_spill_priority_compare): Make it inline and rewrite.
2705 (splay_tree_allocate, splay_tree_free): Remove.
2706 (allocno_spill_sort_compare): New function.
2707 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
2708 build and use splay tree. Choose first allocno in uncolorable
2709 allocno bucket to spill. Remove setting spill cost.
2710 (all_conflicting_hard_regs): Remove.
2711 (setup_allocno_available_regs_num): Check only profitable hard
2712 regs. Print info about hard regs nodes.
2713 (setup_allocno_left_conflicts_size): Remove.
2714 (put_allocno_into_bucket): Don't call
2715 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
2716 (improve_allocation): New.
2717 (color_allocnos): Call setup_profitable_hard_regs,
2718 form_object_hard_regs_nodes_forest, improve_allocation,
2719 finish_object_hard_regs_nodes_forest. Setup spill cost.
2720 (print_loop_title): Use pressure classes.
2721 (color_allocnso): Ditto.
2722 (do_coloring): Remove allocation and freeing splay_tree_node_pool
2723 and allocnos_for_spilling.
2724 (ira_sort_regnos_for_alter_reg): Don't setup members
2725 {first,next}_coalesced_allocno.
2726 (color): Remove allocating and freeing removed_splay_allocno_vec.
2727 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
2728 prohibited_class_mode_regs.
2729
2730 * ira-lives.c: Remove mentioning cover classes from the file. Fix
2731 formatting.
2732 (update_allocno_pressure_excess_length): Use pressure classes.
2733 (inc_register_pressure, dec_register_pressure): Check for pressure
2734 class.
2735 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
2736 pressure class. Use ira_reg_class_nregs instead of
2737 ira_reg_class_max_nregs.
2738 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
2739 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
2740 (single_reg_class): Use ira_reg_class_nregs instead of
2741 ira_reg_class_max_nregs.
2742 (process_bb_node_lives): Use pressure classes.
2743
2744 * ira-emit.c: Remove mentioning cover classes from the file. Use
2745 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
2746 (change_loop): Use pressure classes.
2747 (modify_move_list): Call ira_set_allocno_class instead of
2748 ira_set_allocno_cover_class.
2749
2750 * ira-build.c: Remove mentioning cover classes from the file. Use
2751 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
2752 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
2753 ALLOCNO_UPDATED_CLASS_COST instead of
2754 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
2755 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
2756 (ira_create_allocno): Remove initialization of
2757 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
2758 ALLOCNO_COLORABLE_P.
2759 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2760 Update conflict regs for the objects.
2761 (create_cap_allocno): Remove assert. Don't propagate
2762 ALLOCNO_AVAILABLE_REGS_NUM.
2763 (ira_free_allocno_costs): New function.
2764 (finish_allocno): Change a part of code into call of
2765 ira_free_allocno_costs.
2766 (low_pressure_loop_node_p): Use pressure classes.
2767 (object_range_compare_func): Don't compare classes.
2768 (setup_min_max_conflict_allocno_ids): Ditto.
2769
2770 * loop-invariant.c: Remove mentioning cover classes from the file.
2771 Use ira_pressure_classes and ira_pressure_classes_num instead of
2772 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
2773 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
2774 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2775 Use reg_allocno_class instead of reg_cover_class.
2776 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
2777 STACK_REG_COVER_CLASS.
2778 (get_regno_cover_class): Rename to get_regno_pressure_class.
2779 (move_loop_invariants): Initialize and finalize regstat.
2780
2781 * ira.c: Remove mentioning cover classes from the file. Add
2782 comments about coloring without cover classes. Use ALLOCNO_CLASS
2783 instead of ALLOCNO_COVER_CLASS. Fix formatting.
2784 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
2785 setup_class_subset_and_memory_move_costs.
2786 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
2787 (setup_cover_and_important_classes): Rename to
2788 setup_allocno_and_important_classes.
2789 (setup_class_translate_array): New.
2790 (setup_class_translate): Call it for allocno and pressure classes.
2791 (cover_class_order): Rename to allocno_class_order.
2792 (comp_reg_classes_func): Use ira_allocno_class_translate instead
2793 of ira_class_translate.
2794 (reorder_important_classes): Set up ira_important_class_nums.
2795 (setup_reg_class_relations): Set up ira_reg_class_superunion.
2796 (print_class_cover): Rename to print_classes. Add parameter.
2797 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2798 Print pressure classes too.
2799 (find_reg_class_closure): Rename to find_reg_classes. Don't call
2800 setup_reg_subclasses.
2801 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2802 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2803 (setup_prohibited_class_mode_regs): Use
2804 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
2805 (clarify_prohibited_class_mode_regs): New function.
2806 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
2807 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
2808 (ira_init_once): Initialize them.
2809 (free_register_move_costs): Process them.
2810 (ira_init): Move calls of find_reg_classes and
2811 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
2812 Call clarify_prohibited_class_mode_regs.
2813 (ira_no_alloc_reg): Remove.
2814 (too_high_register_pressure_p): Use pressure classes.
2815
2816 * sched-deps.c: Remove mentioning cover classes from the file.
2817 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
2818 ira_pressure_classes and ira_pressure_classes_num instead of
2819 ira_reg_class_cover_size and ira_reg_class_cover.
2820 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
2821 sched_regno_pressure_class instead of sched_regno_cover_class.
2822 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
2823 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2824
2825 * ira.h: Add 2010 to Copyright.
2826 (ira_no_alloc_reg): Remove external.
2827 (struct target_ira): Rename x_ira_hard_regno_cover_class,
2828 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
2829 x_ira_class_translate to x_ira_hard_regno_allocno_class,
2830 x_ira_allocno_classes_num, x_ira_allocno_classes, and
2831 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
2832 x_ira_pressure_classes, x_ira_pressure_class_translate, and
2833 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
2834 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
2835 x_ira_no_alloc_regs.
2836 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2837 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
2838 ira_allocno_classes_num and ira_allocno_classes.
2839 (ira_class_translate): Rename to ira_allocno_class_translate.
2840 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
2841 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
2842 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2843 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
2844 (ira_no_alloc_regs): New.
2845
2846 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
2847 classes from the file. Use ALLOCNO_CLASS instead of
2848 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
2849 ALLOCNO_COVER_CLASS_COST.
2850 (regno_cover_class): Rename to regno_aclass.
2851 (record_reg_classes): Use ira_reg_class_subunion instead of
2852 ira_reg_class_union.
2853 (record_address_regs): Check overflow.
2854 (scan_one_insn): Ditto.
2855 (print_allocno_costs): Print total mem cost fore regional allocation.
2856 (print_pseudo_costs): Use REG_N_REFS.
2857 (find_costs_and_classes): Use classes intersected with them on the
2858 1st pass. Check overflow. Use ira_reg_class_subunion instead of
2859 ira_reg_class_union. Use ira_allocno_class_translate and
2860 regno_aclass instead of ira_class_translate and regno_cover_class.
2861 Modify code for finding regno_aclass. Setup preferred classes for
2862 the next pass.
2863 (setup_allocno_cover_class_and_costs): Rename to
2864 setup_allocno_class_and_costs. Use regno_aclass instead of
2865 regno_cover_class. Use ira_set_allocno_class instead of
2866 ira_set_allocno_cover_class.
2867 (init_costs, finish_costs): Use regno_aclass instead of
2868 regno_cover_class.
2869 (ira_costs): Use setup_allocno_class_and_costs instead of
2870 setup_allocno_cover_class_and_costs.
2871 (ira_tune_allocno_costs_and_cover_classes): Rename to
2872 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
2873 by processing objects. Use ira_reg_class_max_nregs instead of
2874 ira_reg_class_nregs.
2875
2876 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
2877
2878 * sched-int.h: Remove mentioning cover classes from the file.
2879 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
2880
2881 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
2882 classes from the file.
2883 (struct reg_pref): Rename coverclass into allocnoclass.
2884 (reg_cover_class): Rename to reg_allocno_class.
2885
2886 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
2887
2888 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
2889
2890 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
2891
2892 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
2893
2894 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
2895
2896 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
2897
2898 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
2899
2900 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
2901
2902 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
2903
2904 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
2905
2906 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
2907 (i386_ira_cover_classes): Ditto.
2908
2909 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
2910
2911 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
2912
2913 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
2914
2915 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
2916
2917 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
2918
2919 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
2920
2921 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
2922 (mips_ira_cover_classes): Ditto.
2923
2924 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
2925
2926 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
2927
2928 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
2929
2930 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
2931
2932 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
2933
2934 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
2935 (IRA_COVER_CLASSES_VSX): Ditto.
2936
2937 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
2938 (rs6000_ira_cover_classes): Ditto.
2939
2940 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
2941
2942 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
2943
2944 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
2945
2946 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
2947
2948 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
2949
2950 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
2951
2952 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
2953
2954 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
2955
2956 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
2957
2958 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
2959
2960 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2961
2962 PR debug/48253
2963 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
2964 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
2965 dw_fde_unlikely_section_end_label, cold_in_std_section,
2966 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
2967 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
2968 fields.
2969 (output_fde): Use dw_fde_second_{begin,end} if second is
2970 true, otherwise dw_fde_{begin,end}.
2971 (output_call_frame_info): Test dw_fde_second_begin != NULL
2972 instead of dw_fde_switched_sections.
2973 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
2974 fields, initialize new fields. Initialize in_std_section
2975 unconditionally from the first partition.
2976 (dwarf2out_end_epilogue): Don't override dw_fde_end when
2977 dw_fde_second_begin is non-NULL.
2978 (dwarf2out_switch_text_section): Stop initializing removed
2979 dw_fde_struct fields, initialize new fields, initialize
2980 also dw_fde_end here. Set dw_fde_switch_cfi even when
2981 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
2982 (struct var_loc_list_def): Add last_before_switch field.
2983 (arange_table, arange_table_allocated, arange_table_in_use,
2984 ARANGE_TABLE_INCREMENT, add_arange): Removed.
2985 (size_of_aranges): Count !in_std_section and !second_in_std_section
2986 hunks in fdes, instead of looking at arange_table_in_use.
2987 (output_aranges): Add aranges_length argument, don't call
2988 size_of_aranges here. Instead of using aranges_table*
2989 emit ranges for fdes when !in_std_section resp.
2990 !second_in_std_section.
2991 (dw_loc_list): Break ranges crossing section switch.
2992 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
2993 use dw_fde_second_end instead of dw_fde_end as end of last range.
2994 (gen_subprogram_die): Don't call add_arange. Use
2995 dw_fde_{begin,end} for first partition and if switched
2996 section dw_fde_second_{begin,end} for the second.
2997 (var_location_switch_text_section_1,
2998 var_location_switch_text_section): New functions.
2999 (dwarf2out_begin_function): Initialize cold_text_section even
3000 when function_section () isn't text_section.
3001 (prune_unused_types): Don't walk arange_table.
3002 (dwarf2out_finish): Don't needlessly test
3003 flag_reorder_blocks_and_partition when testing cold_text_section_used.
3004 If info_section_emitted, call size_of_aranges and if it indicates
3005 non-empty .debug_aranges, call output_aranges with the computed
3006 size. Stop using removed dw_fde_struct fields, use
3007 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3008 for second.
3009
3010 PR debug/48203
3011 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3012 create ENTRY_VALUE if incoming or address of incoming's MEM
3013 is a hard REG.
3014 * dwarf2out.c (mem_loc_descriptor): Don't emit
3015 DW_OP_GNU_entry_value of DW_OP_fbreg.
3016 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3017 on ENTRY_VALUE is able to find the canonical parameter VALUE.
3018 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3019 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3020 ENTRY_VALUE_EXPs.
3021 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3022 is a REG_P or MEM_P with REG_P address, compute hash directly
3023 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3024 (preserve_only_constants): Don't clear VALUES forwaring
3025 ENTRY_VALUE to some other VALUE.
3026
3027 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
3028
3029 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3030 instead of GEN_INT.
3031
3032 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3033
3034 * cfgexpand.c (expand_gimple_cond): Always set the source location and
3035 block before expanding the statement.
3036 (expand_gimple_stmt_1): Likewise. Set them here...
3037 (expand_gimple_stmt): ...and not here. Tidy.
3038 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3039 unknown.
3040
3041 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3042
3043 * Makefile.in: New rule for cprop.o.
3044 * gcse.c: Move constant/copy propagation to cprop.c.
3045 (compute_local_properties): Only handle expression tables.
3046 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3047 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3048 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3049 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3050 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3051 compute_cprop_data, find_used_regs, try_replace_reg,
3052 find_avail_set, cprop_jump, constprop_register, cprop_insn,
3053 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3054 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3055 find_bypass_set, reg_killed_on_edge, bypass_block,
3056 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3057 execute_rtl_cprop, pass_rtl_cprop): Move to...
3058 * cprop.c: ...here. New file, constant/copy propagation for RTL
3059 moved from gcse.c to here with minor cleanups in duplicated code.
3060
3061 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
3062
3063 * config/i386/i386.c (flag_opts): Fix a typo in
3064 -mavx256-split-unaligned-store.
3065
3066 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3067
3068 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3069 LIBCALL_VALUE): Remove macros.
3070 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3071 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3072 (h8300_function_value, h8300_libcall_value,
3073 h8300_function_value_regno_p): New functions.
3074
3075 2011-03-28 Anatoly Sokolov <aesok@post.ru>
3076
3077 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3078
3079 2011-03-28 Jeff Law <law@redhat.com>
3080
3081 * tree-ssa-threadupdate.c (redirect_edges): Call
3082 create_edge_and_update_destination_phis as needed.
3083 (create_edge_and_update_destination_phis): Accept new BB argument.
3084 All callers updated.
3085 (thread_block): Do not update the profile when threading around
3086 intermediate blocks.
3087 (thread_single_edge): Likewise.
3088 (determine_bb_domination_status): If BB is not a successor of the
3089 loop header, return NONDOMINATING.
3090 (register_jump_thread): Note when we register a jump thread around
3091 an intermediate block.
3092 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3093 (thread_across_edge): Use it.
3094
3095 2011-03-28 Tristan Gingold <gingold@adacore.com>
3096
3097 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3098 when for_return is 2.
3099
3100 2011-03-28 Jeff Law <law@redhat.com>
3101
3102 * var-tracking.c (canonicalize_values_mark): Delete unused
3103 lhs assignment.
3104 (canonicalize_values_star, set_variable_part): Likewise.
3105 (clobber_variable_part, delete_variable_part): Likewise.
3106
3107 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
3108
3109 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3110
3111 2011-03-28 Martin Jambor <mjambor@suse.cz>
3112
3113 * tree-inline.c (expand_call_inline): Do not check that destination
3114 node is analyzed.
3115 (optimize_inline_calls): Assert that destination node is analyzed.
3116 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3117 not call tree_lowering_passes.
3118 * cgraph.h (cgraph_analyze_function): Declare.
3119 * cgraphunit.c (cgraph_analyze_function): Make public.
3120
3121 2011-03-28 Joseph Myers <joseph@codesourcery.com>
3122
3123 * config/sparc/sparc-opts.h: New.
3124 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3125 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3126 (sparc_option_override): Store processor_type enumeration rather
3127 than string in cpu_default. Remove name and enumeration from
3128 cpu_table. Directly default -mcpu then default -mtune from -mcpu
3129 without using sparc_select. Use target_flags_explicit instead of
3130 fpu_option_set.
3131 * config/sparc/sparc.h (enum processor_type): Move to
3132 sparc-opts.h.
3133 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3134 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3135 HeaderInclude entry.
3136 (mcpu=, mtune=): Use Var and Enum.
3137 (sparc_processor_type): New Enum and EnumValue entries.
3138
3139 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3140 Iain Sandoe <iains@gcc.gnu.org>
3141
3142 PR target/48245
3143 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3144
3145 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
3146
3147 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3148 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3149 Insert new statements at it in lieu of STMT.
3150 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3151 * tree-vect-stmts.c (vectorizable_store): Likewise.
3152 (vectorizable_load): Likewise.
3153
3154 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
3155
3156 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3157 (divtf3): Ditto.
3158 (multf3): Ditto.
3159 (subtf3): Ditto.
3160
3161 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3162
3163 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3164 unaligned 256bit load/store.
3165 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3166 (*avx_movdqu<avxmodesuffix>): Likewise.
3167
3168 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3169
3170 PR target/48288
3171 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3172 * config/pa/pa.md (iordi3): Use new predicate in expander.
3173 (iorsi3): Likewise.
3174
3175 2011-03-27 Anatoly Sokolov <aesok@post.ru>
3176
3177 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3178 FUNCTION_VALUE_REGNO_P): Remove macros.
3179 * config/mips/mips-protos.h (mips_function_value): Remove.
3180 * config/mips/mips.c (mips_function_value): Rename to...
3181 (mips_function_value_1): ... this. Make static. Handle receiving
3182 the function type in 'fn_decl_or_type' argument.
3183 (mips_function_value, mips_libcall_value,
3184 mips_function_value_regno_p): New function.
3185 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3186 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3187
3188 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
3189
3190 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3191 and -mavx256-split-unaligned-store.
3192 (ix86_option_override_internal): Split 32-byte AVX unaligned
3193 load/store by default.
3194 (ix86_avx256_split_vector_move_misalign): New.
3195 (ix86_expand_vector_move_misalign): Use it.
3196
3197 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3198 -mavx256-split-unaligned-store.
3199
3200 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3201 256bit load/store. Generate unaligned store on misaligned memory
3202 operand.
3203 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3204 256bit load/store.
3205 (*avx_movdqu<avxmodesuffix>): Likewise.
3206
3207 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3208 -mavx256-split-unaligned-store.
3209
3210 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3211
3212 PR target/38598
3213 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3214 Update commentary.
3215
3216 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
3217
3218 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3219 opno arguments with an expand_operand. Use create_input_operand.
3220 (mips_prepare_builtin_target): Delete.
3221 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3222 functions.
3223 (mips_expand_builtin_direct): Use create_output_operand and
3224 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
3225 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
3226 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3227
3228 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
3229
3230 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3231 function.
3232 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3233
3234 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
3235
3236 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
3237 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
3238 basic blocks and call commit_edge_insertions directly.
3239 (fixup_abnormal_edges): Move from here to...
3240 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
3241 on the edges and return whether some have actually been inserted.
3242 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
3243 compensation code.
3244
3245 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
3246
3247 PR rtl-optimization/48144
3248 * sel-sched-ir.c (merge_history_vect): Factor out from ...
3249 (merge_expr_data): ... here.
3250 (av_set_intersect): Rename to av_set_code_motion_filter.
3251 Update all callers. Call merge_history_vect when an expression
3252 is found in both sets.
3253 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
3254
3255 2011-03-26 Alan Modra <amodra@gmail.com>
3256
3257 * config/rs6000/predicates.md (word_offset_memref_op): Handle
3258 cmodel medium addresses.
3259 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
3260 64-bit gpr loads and stores.
3261 (rs6000_secondary_reload_ppc64): New function.
3262 * config/rs6000/rs6000-protos.h: Declare it.
3263 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
3264
3265 2011-03-26 Alan Modra <amodra@gmail.com>
3266
3267 PR target/47487
3268 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
3269 GNU Go in traceback table.
3270
3271 2011-03-25 Richard Henderson <rth@redhat.com>
3272
3273 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
3274 if there are exactly 6 operands.
3275 (set_storage_via_setmem): Similarly.
3276
3277 2011-03-25 Kai Tietz <ktietz@redhat.com>
3278
3279 * collect2.c (write_c_file_stat): Handle backslash
3280 as right-hand directory separator.
3281 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
3282 checking just for slash.
3283 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
3284 instead of checking for trailing slash.
3285 * gcc.c (record_temp_file): Use filename_cmp instead
3286 of strcmp.
3287 (do_spec_1): Likewise.
3288 (replace_outfile_spec_function): Likewise.
3289 (is_directory): Use filename_ncmp instead of strncmp.
3290 (print_multilib_info): Likewise.
3291 * gcov.c (find_source): Use filename_cmp instead
3292 instead of strcmp.
3293 (make_gcov_file_name): Fix order of slash/backslash
3294 checks.
3295 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
3296 (add_standard_paths): Likewise.
3297 * mips-tfile.c (saber_stop): Handle backslash.
3298 * prefix.c (update_path): Use filename_ncmp instead of
3299 strncmp.
3300 * profile.c (output_location): Use filename_cmp instead
3301 of strcmp.
3302 * read-md.c (handle_toplevel_file): Handle backslash.
3303 * tlink.c (frob_extension): Likewise.
3304 * tree-cfg.c (same_line_p): Use filename_cmp instead of
3305 strcmp.
3306 * tree-dump.c (dequeue_and_dump): Handle backslash.
3307 * tree.c (get_file_function_name): Likewise.
3308 * gengtype.c (read_input_list): Likewise.
3309 (get_file_realbasename): Likewise.
3310 (get_output_file_with_visibility): Use filename_cmp
3311 instead of strcmp.
3312
3313 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
3314
3315 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
3316 case to VFPv1.
3317
3318 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3319
3320 * fold-const.c (expr_location_or): New function.
3321 (fold_truth_not_expr): Call it.
3322
3323 2011-03-25 Jeff Law <law@redhat.com>
3324
3325 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
3326 va_end.
3327 * c-family/c-common.c (def_fn_type): Likewise.
3328 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
3329 * emit-rtl.c (gen_rtvec): Likewise.
3330 * lto/lto-lang.c (def_fn_type): Likewise.
3331
3332 2011-03-25 Richard Guenther <rguenther@suse.de>
3333
3334 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
3335 also generate copies.
3336 (fini_copy_prop): Handle constant values properly.
3337
3338 2011-03-25 Jakub Jelinek <jakub@redhat.com>
3339
3340 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
3341 mode size instead of bitsize with DWARF2_ADDR_SIZE.
3342 (hash_loc_operands, compare_loc_operands): Handle
3343 DW_OP_GNU_entry_value.
3344
3345 2011-03-25 Kai Tietz <ktietz@redhat.com>
3346
3347 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
3348 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
3349 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
3350 comment and use macro TARGET_64BIT_MS_ABI instead.
3351 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
3352 and change default behavior for 32-bit MS_ABI.
3353 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
3354 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
3355 32-bit, too.
3356 (ix86_cfun_abi): Likewise.
3357 (ix86_maybe_switch_abi): Adjust comment.
3358 (init_cumulative_args): Check for bit-ness in MS_ABI case.
3359 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
3360 instead of checking for SYSV_ABI.
3361 (ix86_nsaved_sseregs): Likewise.
3362 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
3363 to 16 bytes.
3364 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
3365 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
3366 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
3367 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
3368 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
3369
3370 2011-03-25 Richard Guenther <rguenther@suse.de>
3371
3372 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
3373 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3374 (verify_gimple): Remove.
3375 * tree-cfg.c (verify_gimple_call): Merge verification
3376 from verify_stmts.
3377 (verify_gimple_phi): Merge verification from verify_stmts.
3378 (verify_gimple_label): New function.
3379 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
3380 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3381 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
3382 (verify_stmts): Rename to verify_gimple_in_cfg.
3383 (verify_gimple_in_cfg): New function.
3384 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
3385 * tree-ssa.c (verify_ssa): Likewise.
3386 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
3387
3388 2011-03-25 Richard Guenther <rguenther@suse.de>
3389
3390 * passes.c (init_optimization_passes): Add FRE pass after
3391 early SRA.
3392
3393 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
3394 Andrew Stubbs <ams@codesourcery.com>
3395
3396 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
3397 for Cortex-A8.
3398 (arm_movdi_vfp_cortexa8): New pattern.
3399 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
3400 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
3401 instructions when tuning for Cortex-A8. Set attribute "arch".
3402 * config/arm/arm.md: Move include arm-tune.md up a bit.
3403 (define_attr "arch"): Add "onlya8" and "nota8" values.
3404 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
3405
3406 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
3407
3408 PR bootstrap/48282
3409 Revert:
3410 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3411
3412 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3413 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
3414 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3415 * passes.c (init_optimization_passes): Move
3416 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3417
3418 2011-03-25 Kai Tietz <ktietz@redhat.com>
3419
3420 * c-typeck.c (comptypes_internal): Replace target
3421 hook call of comp_type_attributes by version in tree.c file.
3422 * gimple.c (gimple_types_compatible_p_1): Likewise.
3423 * tree-ssa.c (useless_type_conversion_p): Likewise.
3424 * tree.c (build_type_attribute_qual_variant): Likewise.
3425 (attribute_value_equal): New static helper function.
3426 (comp_type_attributes): New function.
3427 (merge_attributes): Use attribute_value_equal for comparison.
3428 (attribute_list_contained): Likewise.
3429 * tree.h (comp_type_attributes): New prototype.
3430
3431 2011-03-25 Richard Guenther <rguenther@suse.de>
3432
3433 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
3434 of complex types at -O0.
3435 (verify_gimple_assign_binary): Likewise.
3436 (verify_gimple_assign_ternary): Likewise.
3437
3438 2011-03-24 Mark Wielaard <mjw@redhat.com>
3439
3440 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
3441 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3442
3443 2011-03-24 Mark Wielaard <mjw@redhat.com>
3444
3445 PR debug/48041
3446 * dwarf2out.c (output_abbrev_section): Only write table when
3447 abbrev_die_table_in_use > 1.
3448
3449 2011-02-24 Richard Henderson <rth@redhat.com>
3450
3451 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
3452 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
3453 (alpha_expand_unaligned_load_words): Use extql.
3454 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
3455 (emit_insxl): Handle all modes for consistency.
3456
3457 2011-02-24 Richard Henderson <rth@redhat.com>
3458
3459 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
3460 (alpha_expand_unaligned_load): Likewise.
3461 (alpha_expand_unaligned_store): Likewise.
3462 (alpha_expand_unaligned_load_words): Likewise.
3463 (alpha_expand_unaligned_store_words): Likewise.
3464 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
3465 (alpha_split_lock_test_and_set_12): Likewise.
3466 (print_operand, alpha_fold_builtin_extxx): Likewise.
3467 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
3468 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
3469 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
3470 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
3471 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
3472 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
3473 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
3474 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
3475 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
3476 (extwl, extll, extql): Similarly.
3477 (inswh, inslh, insqh): Similarly.
3478 (mskbl, mskwl, mskll, mskql): Similarly.
3479 (mskwh, msklh, mskqh): Similarly.
3480
3481 2011-02-24 Richard Henderson <rth@redhat.com>
3482
3483 * config/alpha/alpha.md (attribute isa): Add er, ner.
3484 (attribute enabled): Handle them.
3485 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
3486
3487 2011-02-24 Richard Henderson <rth@redhat.com>
3488
3489 * config/alpha/alpha.md (attribute isa): Add vms.
3490 (attribute enabled): Handle it.
3491 (*movsf): Merge *movsf_{nofix,fix,nofp}.
3492 (*movdf): Merge *movdf_{nofix,fix,nofp}.
3493 (*movtf): Rename from *movtf_internal for consistency.
3494 (*movsi): Merge with *movsi_nt_vms.
3495 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
3496 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
3497 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
3498 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
3499
3500 2011-02-24 Richard Henderson <rth@redhat.com>
3501
3502 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
3503 (extendqisi2, extendhisi2): Likewise.
3504 (extendqidi2): Simplify BWX/non-BWX expansions.
3505 (extendhidi2): Similarly.
3506
3507 2011-02-24 Richard Henderson <rth@redhat.com>
3508
3509 * config/alpha/alpha.md (attribute isa): New.
3510 (attribute enabled): New.
3511 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
3512 (zero_extendqisi2, zero_extendqidi2): Similarly.
3513 (zero_extendhisi2, zero_extendhidi2): Similarly.
3514 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
3515
3516 2011-02-24 Richard Henderson <rth@redhat.com>
3517
3518 * config/alpha/predicates.md (input_operand): Revert last change;
3519 update comment to mention 32-bit VMS rather than Windows.
3520
3521 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3522
3523 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3524 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
3525 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3526 * passes.c (init_optimization_passes): Move
3527 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3528
3529 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3530
3531 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
3532
3533 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3534
3535 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
3536 correctly.
3537
3538 2011-03-24 Jakub Jelinek <jakub@redhat.com>
3539
3540 PR debug/48204
3541 * simplify-rtx.c (simplify_const_unary_operation): Call
3542 real_convert when changing mode class with FLOAT_EXTEND.
3543
3544 2011-03-24 Nick Clifton <nickc@redhat.com>
3545
3546 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
3547 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3548 * config/rx/rx.c (rx_option_override): Set align_jumps,
3549 align_loops and align_labels if not set by the user.
3550 (rx_align_for_label): New function.
3551 (rx_max_skip_for_label): New function.
3552 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
3553 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
3554 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
3555 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
3556 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
3557
3558 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3559
3560 PR rtl-optimization/48263
3561 * optabs.c (expand_binop_directly): Reinstate convert_modes code
3562 and original commutative_p handling. Use maybe_gen_insn.
3563
3564 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3565
3566 * reload.c (find_reloads_subreg_address): Add address_reloaded
3567 parameter and return true there if the full address has been
3568 reloaded.
3569 (find_reloads_toplev): Pass address_reloaded flag.
3570 (find_reloads_address_1): Don't use address_reloaded parameter.
3571
3572 2011-03-24 Jeff Law <law@redhat.com>
3573
3574 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
3575 unused variable "ann".
3576 (remove_unused_locals): Likewise.
3577
3578 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
3579 statement.
3580
3581 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
3582 after it is freed.
3583
3584 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3585
3586 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3587 for invalid symbolic addresses.
3588 (s390_secondary_reload): Don't use s390_check_symref_alignment for
3589 larl operands.
3590
3591 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3592
3593 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
3594 the argument in calls to fold_truth_not_expr.
3595
3596 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3597
3598 * tree.c (record_node_allocation_statistics): New function.
3599 (make_node_stat, copy_node_stat, build_string): Call it.
3600 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
3601 (build1_stat, build_omp_clause): Likewise.
3602
3603 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3604
3605 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
3606 last commit.
3607
3608 2011-03-24 Richard Guenther <rguenther@suse.de>
3609
3610 PR tree-optimization/48271
3611 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
3612 blocks that still exist.
3613
3614 2011-03-24 Richard Guenther <rguenther@suse.de>
3615
3616 PR tree-optimization/48270
3617 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
3618 not free datarefs before ddrs.
3619
3620 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
3621
3622 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
3623 from the address built for a reference with variable offset.
3624
3625 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
3626
3627 PR target/48237
3628 * config/i386/i386.md (*movdf_internal_rex64): Do not split
3629 alternatives that can be handled with movq or movabsq insn.
3630 (*movdf_internal): Disable for !TARGET_64BIT.
3631 (*movdf_internal_nointeger): Ditto.
3632 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3633
3634 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
3635
3636 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3637 (FUNCTION_ARG_ADVANCE): Likewise.
3638 * tm.texi.in: Change references to them to hook references.
3639 * tm.texi: Regenerate.
3640 * targhooks.c (default_function_arg): Eliminate check for target macro.
3641 (default_function_incoming_arg): Likewise.
3642 (default_function_arg_advance): Likewise.
3643 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3644 (function_arg_advance): Likewise.
3645 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3646
3647 2011-03-24 Richard Guenther <rguenther@suse.de>
3648
3649 PR middle-end/48269
3650 * tree-object-size.c (addr_object_size): Do not double-account
3651 for MEM_REF offsets.
3652
3653 2011-03-24 Diego Novillo <dnovillo@google.com>
3654
3655 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
3656 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
3657 (lto_input_data_block): Move from lto-opts.c. Make extern.
3658 Update all users.
3659 (lto_input_string): Rename from input_string. Make extern.
3660 Update all users.
3661 * lto-streamer-out.c (lto_output_string_with_length): Rename from
3662 output_string_with_length.
3663 Output 0 to indicate a non-NULL string. Update all callers to
3664 not emit 0.
3665 (lto_output_string): Rename from output_string. Make extern.
3666 Update all users.
3667 (lto_output_decl_state_streams): Make extern.
3668 (lto_output_decl_state_refs): Make extern.
3669 * lto-streamer.h (lto_input_string): Declare.
3670 (lto_input_data_block): Declare.
3671 (lto_output_string): Declare.
3672 (lto_output_string_with_length): Declare.
3673 (lto_output_decl_state_streams): Declare.
3674 (lto_output_decl_state_refs): Declare.
3675
3676 2011-03-24 Richard Guenther <rguenther@suse.de>
3677
3678 PR tree-optimization/46562
3679 * tree.c (build_invariant_address): New function.
3680 * tree.h (build_invariant_address): Declare.
3681 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
3682 a renamed function moved ...
3683 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
3684 Take valueization callback parameter.
3685 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
3686 * gimple-fold.h: New file.
3687 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
3688 (ccp_fold, fold_const_aggregate_ref,
3689 fold_ctor_reference, fold_nonarray_ctor_reference,
3690 fold_array_ctor_reference, fold_string_cst_ctor_reference,
3691 get_base_constructor): Move ...
3692 * gimple-fold.c: ... here.
3693 (gimple_fold_stmt_to_constant_1): New function
3694 split out from ccp_fold. Take a valueization callback parameter.
3695 Valueize all operands.
3696 (gimple_fold_stmt_to_constant): New wrapper function.
3697 (fold_const_aggregate_ref_1): New function split out from
3698 fold_const_aggregate_ref. Take a valueization callback parameter.
3699 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
3700 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
3701 invariant POINTER_PLUS_EXPRs to invariant form.
3702 (vn_valueize): New function.
3703 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
3704 * tree-vrp.c (vrp_valueize): New function.
3705 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
3706 to fold statements to constants.
3707 * tree-ssa-pre.c (eliminate): Properly guard propagation of
3708 function declarations.
3709 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
3710 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
3711
3712 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
3713
3714 * config/h8300/predicates.md (jump_address_operand): Fix register
3715 mode check.
3716
3717 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
3718
3719 * doc/invoke.texi (max-stores-to-sink): Document.
3720 * params.h (MAX_STORES_TO_SINK): Define.
3721 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
3722 if either vectorization or if-conversion is disabled.
3723 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
3724 tree-vect-data-refs.c vect_equal_offsets.
3725 (dr_equal_offsets_p): New function.
3726 (find_data_references_in_bb): Remove static.
3727 * tree-data-ref.h (find_data_references_in_bb): Declare.
3728 (dr_equal_offsets_p): Likewise.
3729 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
3730 (vect_drs_dependent_in_basic_block): Update calls to
3731 vect_equal_offsets.
3732 (vect_check_interleaving): Likewise.
3733 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
3734 (cond_if_else_store_replacement): Rename to...
3735 (cond_if_else_store_replacement_1): ... this. Change arguments and
3736 documentation.
3737 (cond_if_else_store_replacement): New function.
3738 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
3739 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
3740
3741 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
3742
3743 PR target/46934
3744 * config/arm/arm.md (casesi): Use the gen_int_mode() function
3745 to subtract lower bound instead of GEN_INT().
3746
3747 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
3748
3749 PR other/48179
3750 PR other/48221
3751 PR other/48234
3752 * doc/extend.texi (Alignment): Move section to match order in TOC.
3753 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3754 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3755
3756 2011-03-23 Jeff Law <law@redhat.com>
3757
3758 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
3759 before removing the edge.
3760
3761 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
3762 it may have been freed by redirect_branch_edge or
3763 redirect_edge_succ_nodup.
3764
3765 2011-03-23 Richard Guenther <rguenther@suse.de>
3766
3767 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
3768 (check_va_list_escapes): Likewise.
3769 (check_all_va_list_escapes): Likewise.
3770
3771 2011-03-23 Richard Guenther <rguenther@suse.de>
3772
3773 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
3774 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
3775 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
3776 (alias.o): Likewise.
3777 (ipa-type-escape.o): Remove.
3778 (ipa-struct-reorg.o): Likewise.
3779 (GTFILES): Remove ipa-struct-reorg.c.
3780 * alias.c: Do not include ipa-type-escape.h.
3781 * tree-ssa-alias.c: Likewise.
3782 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
3783 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
3784 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
3785 and ipa-type-escape passes.
3786 * tree-pass.h (pass_ipa_type_escape): Remove.
3787 (pass_ipa_struct_reorg): Likewise.
3788 * ipa-struct-reorg.h: Remove.
3789 * ipa-struct-reorg.c: Likewise.
3790 * ipa-type-escape.h: Likewise.
3791 * ipa-type-escape.c: Likewise.
3792 * doc/invoke.texi (-fipa-struct-reorg): Remove.
3793 (--param struct-reorg-cold-struct-ratio): Likewise.
3794 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3795 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3796 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
3797
3798 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3799
3800 * config/s390/2084.md: Enable all insn reservations also for z9_ec
3801 cpu attribute value.
3802 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
3803 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
3804 * config/s390/s390.c (processor_flags_table): New constant array.
3805 (s390_handle_arch_option): Remove.
3806 (s390_handle_option): Remove s390_handle_arch_option invocations
3807 and OPT_mwarn_framesize_ handling.
3808 (s390_option_override): Remove s390_handle_arch_option invocation.
3809 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
3810 warnings.
3811 * config/s390/s390.md (cpu attribute): Add z9_ec value.
3812 * config/s390/s390.opt (s390_tune, s390_arch)
3813 (march=): Replace s390_arch_option enum and values with
3814 processor_type. Set variable name to s390_arch. Set
3815 initialization value.
3816 (mtune=): Replace s390_arch_option with processor_type. Set
3817 variable name to s390_tune. Set initialization value.
3818
3819 2011-03-23 Julian Brown <julian@codesourcery.com>
3820
3821 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
3822 accesses which are not naturally aligned.
3823
3824 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3825
3826 PR target/47553
3827 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3828
3829 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
3830
3831 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
3832 parameter from "int" to "enum insn_code".
3833 (expand_operand_type): New enum.
3834 (expand_operand): New structure.
3835 (create_expand_operand): New function.
3836 (create_fixed_operand, create_output_operand): Likewise
3837 (create_input_operand, create_convert_operand_to): Likewise.
3838 (create_convert_operand_from, create_address_operand): Likewise.
3839 (create_integer_operand): Likewise.
3840 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
3841 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3842 (expand_insn, expand_jump_insn): Likewise.
3843 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
3844 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
3845 (expand_movstr, expand_builtin___clear_cache): Likewise.
3846 (expand_builtin_lock_release): Likewise.
3847 * explow.c (allocate_dynamic_stack_space): Likewise.
3848 (probe_stack_range): Likewise. Allow check_stack to FAIL,
3849 and use the default handling in that case.
3850 * expmed.c (check_predicate_volatile_ok): Delete.
3851 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
3852 (emit_cstore): Likewise.
3853 * expr.c (emit_block_move_via_movmem): Likewise.
3854 (set_storage_via_setmem, expand_assignment): Likewise.
3855 (emit_storent_insn, try_casesi): Likewise.
3856 (emit_single_push_insn): Likewise. Allow the expansion to fail.
3857 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
3858 (expand_vec_shift_expr, expand_binop_directly): Likewise.
3859 (expand_twoval_unop, expand_twoval_binop): Likewise.
3860 (expand_unop_direct, emit_indirect_jump): Likewise.
3861 (emit_conditional_move, vector_compare_rtx): Likewise.
3862 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
3863 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
3864 (expand_sync_lock_test_and_set): Likewise.
3865 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
3866 (emit_unop_insn): Likewise.
3867 (expand_copysign_absneg): Change icode to an insn_code.
3868 (create_convert_operand_from_type): New function.
3869 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
3870 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3871 (expand_insn, expand_jump_insn): Likewise.
3872 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
3873 than const_int_operand for operand 2.
3874
3875 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3876
3877 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
3878 if possible.
3879
3880 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3881
3882 * emit-rtl.c (emit_pattern_before_noloc): New function.
3883 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
3884 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
3885 (emit_pattern_after_noloc): New function.
3886 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
3887 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
3888
3889 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
3890
3891 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
3892 (__ffsDI2): Likewise.
3893
3894 2011-03-22 Richard Henderson <rth@redhat.com>
3895
3896 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
3897 of !TARGET_ABI_OPEN_VMS.
3898 (alpha_trampoline_init, alpha_start_function): Likewise.
3899 (alpha_expand_epilogue, alpha_file_start): Likewise.
3900 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
3901 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
3902 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
3903 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
3904 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
3905
3906 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3907
3908 * config/s390/s390-opts.h: New.
3909 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
3910 s390_arch_flags, s390_warn_framesize, s390_stack_size,
3911 s390_stack_guard): Remove.
3912 (s390_handle_arch_option): Return void. Take enum
3913 s390_arch_option value instead of string and searching array.
3914 (s390_handle_option): Don't assert that global structures are in
3915 use. Access variables via opts pointer. Use error_at. Don't use
3916 sscanf for -mstack-guard= or -mstack-size=. Update call to
3917 s390_handle_arch_option.
3918 (s390_option_override): Update call to s390_handle_arch_option.
3919 (s390_emit_prologue): Use %d format for s390_stack_size in
3920 diagnostic. Use %wd for HOST_WIDE_INT.
3921 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
3922 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
3923 * config/s390/s390.opt (config/s390/s390-opts.h): New
3924 HeaderInclude entry.
3925 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
3926 s390_arch_flags, s390_warn_framesize): New Variable entries.
3927 (s390_arch_option): New Enum and EnumValue entries.
3928 (march=): Use Enum instead of Var.
3929 (mstack-guard=, mstack-size=): Use UInteger and Var.
3930 (mtune=): Use Enum.
3931
3932 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3933
3934 * config/score/score.c (score_handle_option): Don't assert that
3935 global structures are in use. Access target_flags via opts
3936 pointer. Use value of -march= option to determine target_flags
3937 settings.
3938 * config/score/score.opt (march=): Use Enum.
3939 (score_arch): New Enum and EnumValue entries.
3940
3941 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3942
3943 * config/mep/mep.c (option_mtiny_specified): Remove.
3944 (mep_option_override): Move register handling for -mivc2 from
3945 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
3946 instead of option_mtiny_specified.
3947 (mep_handle_option): Access target_flags via opts pointer. Don't
3948 assert that global structures are in use. Defer part of -mivc2
3949 handling and move it to mep_option_override.
3950 * config/mep/mep.opt (IVC2): New Mask entry.
3951 (mivc2): Use Var and Defer instead of Mask.
3952
3953 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3954
3955 * config/v850/v850-opts.h: New.
3956 * config/v850/v850.c (small_memory): Replace with
3957 small_memory_physical_max array. Make that array static const.
3958 (v850_handle_memory_option): Take integer value of argument. Take
3959 gcc_options pointer, option text and location. Return void.
3960 Update for changes to small memory structures.
3961 (v850_handle_option): Access target_flags via opts pointer. Don't
3962 assert that global structures are in use. Update calls to
3963 v850_handle_memory_option.
3964 (v850_encode_data_area): Update references to small memory settings.
3965 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
3966 (enum small_memory_type): Move to v850-opts.h.
3967 * config/v850/v850.opt (config/v850/v850-opts.h): New
3968 HeaderInclude entry.
3969 (small_memory_max): New Variable entry.
3970 (msda): Replace by pair of options msda= and msda-. Use UInteger.
3971 (mtda, mzda): Likewise.
3972
3973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3974
3975 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
3976 pointer. Don't assert that global structures are in use.
3977
3978 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3979
3980 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
3981 via opts pointer. Don't assert that global structures are in use.
3982
3983 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3984
3985 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
3986 (munix=93): Use Var.
3987 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
3988 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
3989 * config/pa/pa-opts.h: New.
3990 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
3991 (pa_handle_option): Don't assert that global structures are in
3992 use. Access target_flags via opts pointer. Don't handle
3993 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
3994 OPT_munix_98 here.
3995 (pa_option_override): Handle deferred OPT_mfixed_range_.
3996
3997 2011-03-22 Joseph Myers <joseph@codesourcery.com>
3998
3999 * config/mn10300/mn10300-opts.h: New.
4000 * config/mn10300/mn10300.c (mn10300_processor,
4001 mn10300_tune_string): Remove.
4002 (mn10300_handle_option): Don't assert that global structures are
4003 in use. Access mn10300_processor via opts pointer. Don't handle
4004 OPT_mtune_ here.
4005 * config/mn10300/mn10300.h (enum processor_type): Move to
4006 mn10300-opts.h.
4007 (mn10300_processor): Remove.
4008 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4009 HeaderInclude entry.
4010 (mn10300_processor): New Variable entry.
4011 (mtune=): Use Var.
4012
4013 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4014
4015 * config/microblaze/microblaze.c: Don't include opts.h.
4016 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4017 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4018 (mno-clearbss): Use Var and Warn.
4019
4020 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4021
4022 * config/m32r/m32r-opts.h: New.
4023 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4024 (m32r_handle_option): Don't assert that global structures are in
4025 use. Access target_flags and m32r_cache_flush_func via opts
4026 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
4027 OPT_mno_flush_trap here.
4028 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4029 include of m32r-opts.h.
4030 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4031 HeaderInclude entry.
4032 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4033 (mmodel=): Use Enum and Var.
4034 (m32r_model): New Enum and EnumValue entries.
4035 (mno-flush-trap): Use Var.
4036 (msdata=): Use Enum and Var.
4037 (m32r_sdata): New Enum and EnumValue entries.
4038
4039 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4040
4041 * config/m32c/m32c.c: Don't include opts.h.
4042 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4043 m32c_handle_option): Remove.
4044 (m32c_option_override): Check global_options_set.x_target_memregs
4045 instead of target_memregs_set.
4046 * config/m32c/m32c.h (target_memregs): Remove.
4047 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4048 variable.
4049
4050 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4051
4052 * config/iq2000/iq2000-opts.h: New.
4053 * config/iq2000/iq2000.c: Don't include opts.h.
4054 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4055 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4056 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4057 HeaderInclude entry.
4058 (iq2000_tune): New Variable entry.
4059 (march=): Add comment. Use Enum.
4060 (iq2000_arch): New Enum and EnumValue entries.
4061 (mcpu=): Use Enum and Var.
4062 (iq2000_tune): New Enum and EnumValue entries.
4063
4064 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4065
4066 * config/ia64/ia64-opts.h: New.
4067 * config/ia64/ia64.c (ia64_tune): Remove.
4068 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4069 here. Use error_at.
4070 (ia64_option_override): Handle deferred OPT_mfixed_range_.
4071 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4072 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4073 HeaderInclude entry.
4074 (ia64_tune): New Variable entry.
4075 (mfixed-range=): Use Defer and Var.
4076 (mtune=): Use Enum and Var.
4077 (ia64_tune): New Enum and EnumValue entries.
4078
4079 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4080
4081 * config/frv/frv-opts.h: New.
4082 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4083 frv-opts.h.
4084 (frv_cpu_type): Remove.
4085 * config/frv/frv.c: Don't include opts.h.
4086 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4087 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4088 (frv_cpu_type): New Variable entry.
4089 (frv_cpu): New Enum and EnumValue entries.
4090
4091 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4092
4093 * config/cris/cris.c (cris_handle_option): Access target_flags via
4094 opts pointer. Don't assert that global structures are in use.
4095 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4096 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4097
4098 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4099
4100 * config/bfin/bfin-opts.h: New.
4101 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4102 bfin_si_revision, bfin_workarounds): Remove.
4103 (bfin_cpus): Make static const.
4104 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4105 not bfin_lib_id_given.
4106 (bfin_handle_option): Don't set bfin_lib_id_given. Access
4107 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4108 pointer. Use error_at. Don't assert that global structures are in use.
4109 * config/bfin/bfin.h: Include bfin-opts.h.
4110 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4111 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4112 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4113 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4114 entries.
4115
4116 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4117
4118 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4119 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4120 or -msoft-float here.
4121 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4122 -msoft-float and -mhard-float.
4123 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4124 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4125 msoft-float.
4126 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4127 -msoft-float.
4128 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4129 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4130 not mhard-float.
4131 (LIBGCC_SPEC): Don't handle -msoft-float.
4132 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4133 -mhard-float.
4134 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4135 msoft-float.
4136 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4137 -mfloat-abi=*, not -msoft-float and -mhard-float.
4138 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4139 -msoft-float.
4140 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4141 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4142 mhard-float and msoft-float.
4143 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4144 mfloat-abi=soft in comments, not mhard-float and msoft-float.
4145 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4146 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4147 mhard-float.
4148 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4149 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4150 msoft-float.
4151 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4152 not mhard-float.
4153 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4154 not msoft-float.
4155
4156 2011-03-22 Richard Henderson <rth@redhat.com>
4157
4158 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4159 TARGET_ABI_WINDOWS_NT.
4160 (alpha_output_function_end_prologue): Likewise.
4161 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4162 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4163 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4164 (trap, *movsi_nt_vms): Likewise.
4165 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4166 (*tablejump_osf_nt_internal): Remove.
4167 * config/alpha/predicates.md (input_operand): Only test Pmode.
4168
4169 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4170
4171 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4172 via opts pointer. Use error_at. Don't assert that global
4173 structures are in use.
4174
4175 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4176
4177 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4178 (ix86_handle_option): Access ix86_isa_flags and
4179 ix86_isa_flags_explicit via opts pointer. Don't assert that
4180 global structures are in use.
4181 (ix86_function_specific_save, ix86_function_specific_restore):
4182 Update ix86_isa_flags_explicit field name.
4183 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4184 (ix86_isa_flags_explicit): Rename TargetSave entry to
4185 x_ix86_isa_flags_explicit.
4186
4187 2011-03-22 Richard Henderson <rth@redhat.com>
4188
4189 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4190 (alpha_option_override, direct_return): Likewise.
4191 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4192 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4193 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4194 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4195 (alpha_expand_epilogue, alpha_end_function): Likewise.
4196 (alpha_init_libfuncs): Likewise.
4197 (struct machine_function): Remove unicosmk members.
4198 (print_operand) ['t']: Remove.
4199 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4200 unicosmk_output_module_name, unicosmk_output_common,
4201 current_section_align, unicosmk_output_text_section_asm_op,
4202 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4203 unicosmk_section_type_flags, unicosmk_unique_section,
4204 unicosmk_asm_named_section, unicosmk_insert_attributes,
4205 unicosmk_output_align, unicosmk_defer_case_vector,
4206 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4207 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4208 unicosmk_output_ssib, unicosmk_add_call_info_word,
4209 unicosmk_extern_head, unicosmk_output_default_externs,
4210 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4211 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4212 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4213 * config/alpha/alpha-protos.h: Update.
4214 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4215 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4216 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4217 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4218 (*mulsi_se, mulvsi3): Likewise.
4219 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4220 (*divmodsi_internal, call, call_value, realign): Likewise.
4221 (moddi3, umoddi3): Likewise; remove duplicate expander.
4222 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4223 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4224 (*movdi_nofix): Remove r/U alternative.
4225 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4226 * config/alpha/constraints.md ("U"): Remove.
4227 * config/alpha/predicates.md (call_operand"): Don't test
4228 TARGET_ABI_UNICOSMK.
4229
4230 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4231
4232 * target.def (handle_option): Take gcc_options and
4233 cl_decoded_option pointers and location_t.
4234 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
4235 * doc/tm.texi: Regenerate.
4236 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
4237 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
4238 * lto-opts.c (lto_reissue_options): Generate option structure for
4239 targetm.handle_option call.
4240 * opts.c (target_handle_option): Update call to
4241 targetm.handle_option. Remove assertions about values now passed
4242 down to hook.
4243 * targhooks.c (default_target_handle_option): New.
4244 * targhooks.h (default_target_handle_option): Declare.
4245 * config/alpha/alpha.c: Include opts.h.
4246 (alpha_handle_option): Update to new hook interface.
4247 * config/arm/arm.c: Include opts.h.
4248 (arm_handle_option): Update to new hook interface.
4249 * config/arm/t-arm (arm.o): Update dependencies.
4250 * config/bfin/bfin.c: Include opts.h.
4251 (bfin_handle_option): Update to new hook interface.
4252 * config/cris/cris.c: Include opts.h.
4253 (cris_handle_option): Update to new hook interface.
4254 * config/frv/frv.c: Include opts.h.
4255 (frv_handle_option): Update to new hook interface.
4256 * config/i386/i386.c: Include opts.h.
4257 (ix86_handle_option): Update to new hook interface.
4258 (ix86_valid_target_attribute_inner_p): Generate option structure
4259 for call to ix86_handle_option.
4260 * config/i386/t-i386 (i386.o): Update dependencies.
4261 * config/ia64/ia64.c: Include opts.h.
4262 (ia64_handle_option): Update to new hook interface.
4263 * config/ia64/t-ia64 (ia64.o): Update dependencies.
4264 * config/iq2000/iq2000.c: Include opts.h.
4265 (iq2000_handle_option): Update to new hook interface.
4266 * config/m32c/m32c.c: Include opts.h.
4267 (m32c_handle_option): Update to new hook interface.
4268 * config/m32r/m32r.c: Include opts.h.
4269 (m32r_handle_option): Update to new hook interface.
4270 * config/m68k/m68k.c: Include opts.h.
4271 (m68k_handle_option): Update to new hook interface.
4272 * config/mep/mep.c: Include opts.h.
4273 (mep_handle_option): Update to new hook interface.
4274 * config/microblaze/microblaze.c: Include opts.h.
4275 (microblaze_handle_option): Update to new hook interface.
4276 * config/mips/mips.c: Include opts.h.
4277 (mips_handle_option): Update to new hook interface.
4278 * config/mn10300/mn10300.c: Include opts.h.
4279 (mn10300_handle_option): Update to new hook interface.
4280 * config/pa/pa.c: Include opts.h.
4281 (pa_handle_option): Update to new hook interface.
4282 * config/pdp11/pdp11.c: Include opts.h.
4283 (pdp11_handle_option): Update to new hook interface.
4284 * config/rs6000/rs6000.c: Include opts.h.
4285 (rs6000_handle_option): Update to new hook interface.
4286 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4287 * config/rx/rx.c: Include opts.h.
4288 (rx_handle_option): Update to new hook interface.
4289 * config/s390/s390.c: Include opts.h.
4290 (s390_handle_option): Update to new hook interface.
4291 * config/score/score.c: Include opts.h.
4292 (score_handle_option): Update to new hook interface.
4293 * config/sh/sh.c: Include opts.h.
4294 (sh_handle_option): Update to new hook interface.
4295 * config/sparc/sparc.c: Include opts.h.
4296 (sparc_handle_option): Update to new hook interface.
4297 * config/v850/v850.c: Include opts.h.
4298 (v850_handle_option): Update to new hook interface.
4299
4300 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4301
4302 * gcc.c (driver_unknown_option_callback): Only permit and save
4303 unknown -Wno- options.
4304 (driver_wrong_lang_callback): Save options directly instead of via
4305 driver_unknown_option_callback.
4306
4307 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4308
4309 * combine.c (simplify_set): Try harder to find the best CC mode when
4310 simplifying a nested COMPARE on the RHS.
4311
4312 2011-03-22 Joseph Myers <joseph@codesourcery.com>
4313
4314 * config/alpha/gnu.h: Remove.
4315 * config/arc: Remove directory.
4316 * config/arm/netbsd.h: Remove.
4317 * config/arm/t-pe: Remove.
4318 * config/crx: Remove directory.
4319 * config/i386/netbsd.h: Remove.
4320 * config/m68hc11: Remove directory.
4321 * config/m68k/uclinux-oldabi.h: Remove.
4322 * config/mcore/mcore-pe.h: Remove.
4323 * config/mcore/t-mcore-pe: Remove.
4324 * config/netbsd-aout.h: Remove.
4325 * config/rs6000/gnu.h: Remove.
4326 * config/sh/sh-symbian.h: Remove.
4327 * config/sh/symbian-base.c: Remove.
4328 * config/sh/symbian-c.c: Remove.
4329 * config/sh/symbian-cxx.c: Remove.
4330 * config/sh/symbian-post.h: Remove.
4331 * config/sh/symbian-pre.h: Remove.
4332 * config/sh/t-symbian: Remove.
4333 * config/svr3.h: Remove.
4334 * config/vax/netbsd.h: Remove.
4335 * config.build: Don't handle i[34567]86-*-pe.
4336 * config.gcc: Remove handling of deprecations for most deprecated
4337 targets.
4338 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
4339 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
4340 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
4341 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
4342 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
4343 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
4344 Remove cases.
4345 * config.host: Don't handle i[34567]86-*-pe.
4346 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
4347 (ASM_SPEC32): Don't handle -mcall-gnu.
4348 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
4349 -mcall-gnu.
4350 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
4351 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
4352 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4353 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
4354 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
4355 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
4356 conditional on SYMBIAN.
4357 * configure.ac: Don't handle powerpc*-*-gnu*.
4358 * configure: Regenerate.
4359 * doc/extend.texi (interrupt attribute): Don't mention CRX.
4360 * doc/install-old.texi (m6811, m6812): Don't mention.
4361 * doc/install.texi (arc-*-elf*): Don't document multilib option.
4362 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
4363 (m68k-uclinuxoldabi): Don't mention.
4364 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
4365 Remove.
4366 (-mcall-gnu): Remove.
4367 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
4368 families): Remove constraint documentation.
4369
4370 2011-03-22 Marius Strobl <marius@FreeBSD.org>
4371
4372 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
4373 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
4374 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4375
4376 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
4377
4378 * config/avr/avr-protos.h (expand_epilogue): Change prototype
4379 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
4380 * config/avr/avr.c (init_cumulative_args)
4381 (avr_function_arg_advance): Use it.
4382 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
4383 sibcall epilogues.
4384 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
4385 (avr_function_ok_for_sibcall): ...this new function.
4386 (avr_lookup_function_attribute1): New static Function.
4387 (avr_naked_function_p, interrupt_function_p)
4388 (signal_function_p, avr_OS_task_function_p)
4389 (avr_OS_main_function_p): Use it.
4390 * config/avr/avr.md ("sibcall", "sibcall_value")
4391 ("sibcall_epilogue"): New expander.
4392 ("*call_insn", "*call_value_insn"): New insn.
4393 ("call_insn", "call_value_insn"): Remove
4394 ("call", "call_value", "epilogue"): Change expander to handle
4395 sibling calls.
4396
4397 2011-03-21 Nick Clifton <nickc@redhat.com>
4398
4399 * doc/invoke.texi (Overall Options): Move closing brace to end of
4400 options list.
4401 (Optimization Options): Add missing @gol.
4402 (Directory Options): Likewise.
4403 (i386 and x86-64 Options): Likewise.
4404 (RS6000 and PowerPC Options): Likewise.
4405 (i386 and x86-64 Windows Options): Likewise.
4406 (V850 Options): Add text missing from descriptions.
4407
4408 2011-03-22 Richard Henderson <rth@redhat.com>
4409
4410 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
4411 (avr_incoming_return_addr_rtx): New.
4412 (emit_push_byte): New.
4413 (expand_prologue): Use it. Remove incorrect dwarf annotation for
4414 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
4415 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
4416 (emit_pop_byte): New.
4417 (expand_epilogue): Use it. Pop frame pointer by bytes.
4418 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
4419 (INCOMING_RETURN_ADDR_RTX): New.
4420 (INCOMING_FRAME_SP_OFFSET): New.
4421 (ARG_POINTER_CFA_OFFSET): New.
4422 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
4423 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
4424 (pophi): Remove.
4425
4426 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
4427
4428 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4429
4430 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4431 (FUNCTION_ARG_ADVANCE): Likewise.
4432 * tm.texi.in: Change references to them to hook references.
4433 * tm.texi: Regenerate.
4434 * targhooks.c (default_function_arg): Eliminate check for target
4435 macro.
4436 (default_function_incoming_arg): Likewise.
4437 (default_function_arg_advance): Likewise.
4438 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4439 (function_arg_advance): Likewise.
4440 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4441
4442 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
4443
4444 * tree.c (build_call_1): New function.
4445 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
4446
4447 2011-03-22 Richard Guenther <rguenther@suse.de>
4448
4449 PR tree-optimization/48228
4450 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
4451 for single-arg PHIs.
4452
4453 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
4454
4455 PR rtl-optimization/48143
4456 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
4457 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
4458 sse2_cvtps2pd): Likewise.
4459
4460 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4461
4462 * recog.c (canonicalize_change_group): Use validate_unshare_change.
4463
4464 2011-03-22 Richard Guenther <rguenther@suse.de>
4465
4466 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
4467 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
4468 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
4469 and REALIGN_LOAD_EXPR.
4470 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
4471 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
4472 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
4473 DOT_PROD_EXPR case ...
4474 (expand_expr_real_2): ... here.
4475 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
4476 and REALIGN_LOAD_EXPR.
4477 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
4478 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
4479 (vect_create_epilog_for_reduction): Likewise.
4480 (vectorizable_reduction): Likewise.
4481 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
4482 * tree-vect-stmts.c (vectorizable_load): Likewise.
4483
4484 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4485
4486 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
4487
4488 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4489
4490 * config/s390/s390.c (s390_delegitimize_address): Fix offset
4491 handling for PLTOFF/GOTOFF.
4492
4493 2011-03-22 Nick Clifton <nickc@redhat.com>
4494
4495 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4496 trailing backslash from the end of the macro definition.
4497
4498 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4499
4500 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
4501 and PLT unspecs.
4502
4503 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
4504
4505 * expr.h (prepare_operand): Move to...
4506 * optabs.h (prepare_operand): ...here and change the insn code
4507 parameter from "int" to "enum insn_code".
4508 (insn_operand_matches): Declare.
4509 * expr.c (init_expr_target): Use insn_operand_matches.
4510 (compress_float_constant): Likewise.
4511 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
4512 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
4513 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
4514 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
4515 Likewise.
4516 (gen_cond_trap): Likewise.
4517 (prepare_operand): Likewise. Change icode to an insn_code.
4518 (insn_operand_matches): New function.
4519 * reload.c (find_reloads_address_1): Use insn_operand_matches.
4520 * reload1.c (gen_reload): Likewise.
4521 * targhooks.c (default_secondary_reload): Likewise.
4522
4523 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
4524
4525 * config/alpha/alpha.md (unspec): New define_c_enum.
4526 (unspecv): Ditto.
4527
4528 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
4529
4530 PR debug/48214
4531 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
4532 between a call and its CALL_ARG_LOCATION note.
4533
4534 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
4535
4536 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
4537
4538 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4539
4540 PR c/42544
4541 PR c/48197
4542 * c-common.c (shorten_compare): If primopN is first sign-extended
4543 to opN and then zero-extended to result type, set primopN to opN.
4544
4545 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4546
4547 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
4548 for barrier handlers.
4549
4550 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4551
4552 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
4553 UNSPEC constants to be in the unspec enumeration, and redefine
4554 all UNSPECV constants to be in the unspecv enumeration, so that
4555 dumps print which unspec/unspec_volatile this is.
4556 * config/rs6000/vector.md (UNSPEC_*): Ditto.
4557 * config/rs6000/paired.md (UNSPEC_*): Ditto.
4558 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
4559 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
4560 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
4561
4562 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
4563 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
4564 UNSPECV_LWSYNC, since these are used as unspec_volatile.
4565 * config/rs6000/sync.md (isync, lwsync): Ditto.
4566
4567 2011-03-21 Richard Guenther <rguenther@suse.de>
4568
4569 * params.def (lto-min-partition): Fix typo.
4570
4571 2011-03-21 Richard Guenther <rguenther@suse.de>
4572
4573 PR c/47939
4574 * c-decl.c (grokdeclarator): Drop to the main variant only
4575 for array types. Drop flag_gen_aux_info check.
4576
4577 2011-03-21 Richard Guenther <rguenther@suse.de>
4578
4579 PR translation/47911
4580 * params.def (lto-partitions): Fix typo.
4581 (lto-min-partition): Fix wording.
4582
4583 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
4584
4585 * config/rs6000/t-freebsd: Remove duplication from file.
4586
4587 2011-03-21 Richard Guenther <rguenther@suse.de>
4588
4589 PR middle-end/47661
4590 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
4591
4592 2011-03-21 Richard Guenther <rguenther@suse.de>
4593
4594 PR lto/48210
4595 * params.def (lto-partitions): Require at least 1 partition.
4596
4597 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4598
4599 * gthr-solaris.h: Remove.
4600 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
4601 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
4602 (LIB_SPEC): Likewise.
4603 * config/sol2.opt (threads): Remove.
4604 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
4605 (sparc*-*-solaris2*): Likewise.
4606 * configure.ac (enable_threads): Enable solaris support.
4607 * configure: Regenerate.
4608 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
4609 * doc/install.texi (Configuration, --enable-threads=lib): Remove
4610 solaris.
4611
4612 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4613
4614 * config.gcc: Obsolete *-*-solaris2.8*.
4615 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4616
4617 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4618
4619 PR bootstrap/48135
4620 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
4621 reference. Solaris 8 perl works.
4622
4623 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4624
4625 PR bootstrap/48135
4626 * doc/install.texi (Prerequisites): Move jar etc. up.
4627 Explain support library version requirements.
4628
4629 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4630
4631 PR bootstrap/48135
4632 * doc/install.texi (Prerequisites): Move Perl to build
4633 requirements. Always necessary on Solaris 2 with Sun ld.
4634
4635 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4636
4637 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
4638 binutils 2.21.
4639 (Specific, i?86-*-solaris2.[89]): Likewise.
4640 (Specific, i?86-*-solaris2.10): Likewise.
4641 (Specific, mips-sgi-irix6): Likewise.
4642 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
4643 Update for binutils 2.21.
4644
4645 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4646
4647 * configure.ac (gcc_cv_lto_plugin): Fix typo.
4648 Allow -fuse-linker-plugin for non-default plugin linker.
4649 * configure: Regenerate.
4650
4651 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
4652
4653 PR bootstrap/48167
4654 * gengtype.c (files_rules): Added rule for cp/parser.h.
4655
4656 2011-03-21 Jakub Jelinek <jakub@redhat.com>
4657
4658 PR target/48213
4659 * config/s390/s390.c (s390_delegitimize_address): Don't call
4660 lowpart_subreg if orig_x has BLKmode.
4661
4662 2011-03-21 Kai Tietz <ktietz@redhat.com>
4663
4664 PR target/12171
4665 * doc/plugins.texi: Adjust documentation for plugin register_callback.
4666 * tree.h (attribute_spec): Add new member affects_type_identity.
4667 * attribs.c (empty_attribute_table): Adjust attribute_spec
4668 initializers.
4669 * config/alpha/alpha.c: Likewise.
4670 * config/arc/arc.c: Likewise.
4671 * config/arm/arm.c: Likewise.
4672 * config/avr/avr.c: Likewise.
4673 * config/bfin/bfin.c: Likewise.
4674 * config/crx/crx.c: Likewise.
4675 * config/darwin.h: Likewise.
4676 * config/h8300/h8300.c: Likewise.
4677 * config/i386/cygming.h: Likewise.
4678 * config/i386/i386.c: Likewise.
4679 * config/ia64/ia64.c: Likewise.
4680 * config/m32c/m32c.c: Likewise.
4681 * config/m32r/m32r.c: Likewise.
4682 * config/m68hc11/m68hc11.c: Likewise.
4683 * config/m68k/m68k.c: Likewise.
4684 * config/mcore/mcore.c: Likewise.
4685 * config/mep/mep.c: Likewise.
4686 * config/microblaze/microblaze.c: Likewise.
4687 * config/mips/mips.c: Likewise.
4688 * config/rs6000/rs6000.c: Likewise.
4689 * config/rx/rx.c: Likewise.
4690 * config/sh/sh.c: Likewise.
4691 * config/sol2.h: Likewise.
4692 * config/sparc/sparc.c: Likewise.
4693 * config/spu/spu.c: Likewise.
4694 * config/stormy16/stormy16.c: Likewise.
4695 * config/v850/v850.c: Likewise.
4696
4697 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
4698
4699 * simplify-rtx.c (simplify_binary_operation_1): Handle
4700 (xor (and A B) C) case when B and C are both constants.
4701
4702 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
4703
4704 * tree-dfa.c (add_referenced_var): Fix typo in comment.
4705
4706 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
4707
4708 PR bootstrap/48168
4709 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
4710
4711 2011-03-20 Jakub Jelinek <jakub@redhat.com>
4712
4713 PR rtl-optimization/48156
4714 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
4715 assume df and df_lr are not NULL.
4716
4717 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4718
4719 PR debug/48023
4720 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
4721 between a call and its CALL_ARG_LOCATION note.
4722
4723 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
4724
4725 PR debug/48178
4726 * config/sh/sh.c (find_barrier): Don't emit a constant pool
4727 between a call and its corresponding CALL_ARG_LOCATION note.
4728
4729 2011-03-19 Anatoly Sokolov <aesok@post.ru>
4730
4731 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
4732 instead of loop. Use HARD_REGISTER_NUM_P predicate.
4733 * haifa-sched.c (setup_ref_regs): Ditto.
4734 * caller-save.c (add_used_regs_1): Ditto.
4735 * dse.c (look_for_hardregs): Ditto.
4736 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
4737 * sched-rgn.c (check_live_1): Ditto.
4738
4739 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4740
4741 * c-decl.c (diagnose_mismatched_decls): Give an error for
4742 redefining a typedef with variably modified type.
4743
4744 2011-03-18 Joseph Myers <joseph@codesourcery.com>
4745
4746 * c-decl.c (grokfield): Don't allow typedefs for structures or
4747 unions with no tag by default.
4748 * doc/extend.texi (Unnamed Fields): Update.
4749
4750 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
4751
4752 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4753 Rewrite using indirect functions.
4754 (lwp_slwpcb): Ditto.
4755 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
4756 (avx_vinsertf128<mode>): Ditto.
4757
4758 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4759
4760 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
4761 unspecs.
4762
4763 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4764
4765 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
4766 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4767
4768 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4769
4770 PR rtl-optimization/48170
4771 * gcse.c (hoist_code): Remove bogus asserts.
4772
4773 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
4774
4775 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
4776 computation for prologue/epilogue.
4777
4778 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4779
4780 * Makefile.in (check-consistency): Remove.
4781
4782 2011-03-18 Jakub Jelinek <jakub@redhat.com>
4783
4784 PR debug/48176
4785 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
4786 arange_table_in_use is 0, but either text_section_used or
4787 cold_text_section_used is true. Don't call it if
4788 !info_section_emitted.
4789
4790 2011-03-18 Anatoly Sokolov <aesok@post.ru>
4791
4792 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
4793 FUNCTION_VALUE_REGNO_P): Remove.
4794 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
4795 Remove.
4796 * config/avr/avr.c (avr_ret_register): Make static inline.
4797 (avr_function_value_regno_p): New function.
4798 (avr_libcall_value): Make static. Add 'func' argument.
4799 (avr_function_value): Make static. Rename 'func' argument to
4800 'fn_decl_or_type', forward it to avr_libcall_value. Call
4801 avr_ret_register function instead of RET_REGISTER macro.
4802 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4803
4804 2011-03-18 Jason Merrill <jason@redhat.com>
4805
4806 PR c++/23372
4807 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
4808
4809 2011-03-18 Richard Guenther <rguenther@suse.de>
4810
4811 * doc/install.texi (--enable-gold): Remove.
4812 (--with-plugin-ld): Document.
4813 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
4814
4815 2011-03-18 Andrew Pinski <pinskia@gmail.com>
4816
4817 PR middle-end/47790
4818 * expr.c (optimize_bitfield_assignment_op): Revamp to work
4819 again after expansion changes.
4820
4821 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
4822
4823 * combine.c (try_combine): Do simplification only call of
4824 subst() on i2 even when i1 is present. Update comments.
4825
4826 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
4827
4828 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
4829 and UNSPEC_PCREL_SYMOFF.
4830
4831 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4832
4833 * config/s390/s390.md: Use define_c_enum for the unspec constant
4834 definitions.
4835
4836 2011-03-18 Richard Henderson <rth@redhat.com>
4837 Jakub Jelinek <jakub@redhat.com>
4838
4839 PR bootstrap/48161
4840 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
4841 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
4842
4843 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4844
4845 PR middle-end/47725
4846 * combine.c (cant_combine_insn_p): Don't check zero/sign
4847 extended hard registers.
4848
4849 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4850
4851 PR middle-end/47725
4852 * combine.c (cant_combine_insn_p): Check zero/sign extended
4853 hard registers.
4854
4855 2011-03-17 Anatoly Sokolov <aesok@post.ru>
4856
4857 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4858 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
4859 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
4860 Change return type to bool.
4861 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4862
4863 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4864
4865 PR debug/48163
4866 * var-tracking.c (prepare_call_arguments): If CALL target
4867 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
4868 pc instead of looking it up using cselib_lookup and use
4869 Pmode for it if x has VOIDmode.
4870 * dwarf2out.c (gen_subprogram_die): If also both first and
4871 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
4872
4873 PR debug/48163
4874 * function.c (assign_parms): For data.passed_pointer parms
4875 use MEM of data.entry_parm instead of data.entry_parm itself
4876 as DECL_INCOMING_RTL.
4877 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
4878 also when passed and declared mode is the same, DECL_RTL
4879 is a MEM with pseudo as address and DECL_INCOMING_RTL is
4880 a MEM too.
4881
4882 2011-03-16 Jeff Law <law@redhat.com>
4883
4884 PR rtl-optimization/37273
4885 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4886 handle them like argument loads from stack slots. Do not double
4887 count memory for memory constants and argument loads from stack slots.
4888
4889 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4890
4891 PR debug/48160
4892 * var-tracking.c (prepare_call_arguments): Check SUBREG.
4893
4894 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
4895
4896 PR target/48171
4897 * config/i386/i386.opt: Add Save to -mavx and -mfma.
4898
4899 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4900
4901 PR bootstrap/48153
4902 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
4903 if dwarf_strict.
4904 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
4905 Clear call_arg_locations and call_arg_loc_last always.
4906
4907 PR middle-end/48152
4908 * var-tracking.c (prepare_call_arguments): If argument needs to be
4909 passed by reference, adjust argtype and mode.
4910
4911 2011-03-17 Richard Guenther <rguenther@suse.de>
4912
4913 PR middle-end/48134
4914 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
4915 a value make sure to fold the statement.
4916
4917 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
4918
4919 PR target/43872
4920 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
4921 return condition with !cfun->calls_alloca.
4922
4923 2011-03-17 Richard Guenther <rguenther@suse.de>
4924
4925 PR bootstrap/48148
4926 * lto-cgraph.c (input_overwrite_node): Clear the abstract
4927 origin for decls in other ltrans units.
4928 (input_varpool_node): Likewise.
4929
4930 2011-03-17 Richard Guenther <rguenther@suse.de>
4931
4932 PR middle-end/48165
4933 * tree-object-size.c (compute_object_offset): Properly return
4934 the offset operand of MEM_REFs as sizetype.
4935
4936 2011-03-17 Jakub Jelinek <jakub@redhat.com>
4937
4938 PR rtl-optimization/48141
4939 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
4940 * dse.c: Include params.h.
4941 (active_local_stores_len): New variable.
4942 (add_wild_read, dse_step1): Clear it when setting active_local_stores
4943 to NULL.
4944 (record_store, check_mem_read_rtx): Decrease it when removing
4945 from the chain.
4946 (scan_insn): Likewise. Increase it when adding to chain, if it
4947 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
4948 set active_local_stores to NULL before the addition.
4949 * Makefile.in (dse.o): Depend on $(PARAMS_H).
4950
4951 PR rtl-optimization/48141
4952 * dse.c (record_store): If no positions are needed in an insn
4953 that cannot be deleted, at least unchain it from active_local_stores.
4954
4955 2011-03-16 Dodji Seketeli <dodji@redhat.com>
4956
4957 PR debug/47510
4958 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
4959 (lookup_type_die_strip_naming_typedef): ... here.
4960 (get_context_die): Use it.
4961 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
4962 the anonymous struct named by the naming typedef.
4963
4964 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
4965
4966 PR target/48154
4967 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
4968 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
4969
4970 2011-03-16 Jeff Law <law@redhat.com>
4971
4972 * tree-vrp.c (identify_jump_threads): Slightly simplify type
4973 check for operands of conditional. Allow type to be a pointer.
4974
4975 2011-03-16 Richard Guenther <rguenther@suse.de>
4976
4977 PR tree-optimization/48149
4978 * fold-const.c (fold_binary_loc): Fold
4979 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
4980
4981 2011-03-16 Richard Guenther <rguenther@suse.de>
4982
4983 PR tree-optimization/26134
4984 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
4985 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
4986 (non_rewritable_mem_ref_base): Handle complex type component
4987 accesses, constrain offsets for vector and complex extracts
4988 more properly.
4989
4990 2011-03-16 Richard Guenther <rguenther@suse.de>
4991
4992 PR tree-optimization/48146
4993 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
4994 operands avoiding the need for renaming.
4995
4996 2011-03-16 Richard Guenther <rguenther@suse.de>
4997
4998 * gimple-fold.c (maybe_fold_reference): Open-code relevant
4999 constant folding. Move MEM_REF canonicalization first.
5000 Rely on fold_const_aggregate_ref for initializer folding.
5001 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5002
5003 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5004
5005 PR middle-end/48136
5006 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5007 arg0/arg1 or their arguments are always fold converted to matching
5008 types.
5009
5010 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5011 to nargs.
5012
5013 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5014
5015 PR lto/46944
5016 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5017 Handle in-tree gold.
5018 (ld_vers): Extract binutils version for gold.
5019 (gcc_cv_ld_hidden): Handle gold here.
5020 (gcc_cv_lto_plugin): Determine level of linker plugin support.
5021 * configure: Regenerate.
5022 * config.in: Regenerate.
5023 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5024 -fuse-linker-plugin otherwise.
5025 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
5026 (LINK_COMMAND_SPEC): Use it.
5027 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5028
5029 2011-03-16 Jakub Jelinek <jakub@redhat.com>
5030
5031 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5032 * calls.c: Remove debug.h include.
5033 (emit_call_1): Don't call virtual_call_token debug hook.
5034 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5035 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5036 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5037 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5038 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5039 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5040 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5041 dwarf2out_virtual_call): Remove.
5042 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5043 copy_call_info and virtual_call hooks.
5044 (dwarf2out_init): Don't initialize vcall_insn_table,
5045 debug_dcall_section and debug_vcall_section.
5046 (prune_unused_types): Don't mark nodes from dcall_table.
5047 (dwarf2out_finish): Don't output dcall or vcall tables.
5048 * final.c (final_scan_insn): Don't call direct_call or
5049 virtual_call debug hooks.
5050 * debug.h (struct gcc_debug_hooks): Remove direct_call,
5051 virtual_call_token, copy_call_info and virtual_call hooks.
5052 (debug_nothing_uid): Remove prototype.
5053 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5054 copy_call_info and virtual_call hooks.
5055 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5056 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5057 * debug.c (do_nothing_debug_hooks): Likewise.
5058 (debug_nothing_uid): Remove.
5059 * doc/invoke.texi (-fenable-icf-debug): Remove.
5060 * common.opt (-fenable-icf-debug): Likewise.
5061
5062 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5063 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5064 call's MEM. Handle functions returning aggregate through a hidden
5065 first pointer. For virtual calls add clobbered pc to call arguments
5066 chain.
5067 * dwarf2out.c (gen_subprogram_die): Emit
5068 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5069 can't be emitted.
5070
5071 PR debug/45882
5072 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5073 * rtl.h (ENTRY_VALUE_EXP): Define.
5074 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5075 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5076 * print-rtl.c (print_rtx): Likewise.
5077 * gengtype.c (adjust_field_rtx_def): Likewise.
5078 * var-tracking.c (vt_add_function_parameter): Adjust
5079 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5080 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5081 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5082 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5083 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5084
5085 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5086 Call var_location debug hook even on CALL_INSNs.
5087 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5088 * rtl.def (ENTRY_VALUE): New.
5089 * dwarf2out.c: Include cfglayout.h.
5090 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5091 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5092 (struct call_arg_loc_node): New type.
5093 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5094 tail_call_site_count): New variables.
5095 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5096 DW_TAG_GNU_call_site_parameter.
5097 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5098 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5099 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5100 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5101 and DW_AT_GNU_all_source_call_sites.
5102 (mem_loc_descriptor): Handle ENTRY_VALUE.
5103 (add_src_coords_attributes): Don't add enything if
5104 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5105 (dwarf2out_abstract_function): Save and clear call_arg_location,
5106 call_site_count and tail_call_site_count around dwarf2out_decl call.
5107 (gen_call_site_die): New function.
5108 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5109 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5110 (dwarf2out_function_decl): Clear call_arg_locations,
5111 call_arg_loc_last, set call_site_count and tail_call_site_count
5112 to -1 and free block_map.
5113 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5114 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
5115 followed by any real instructions.
5116 (dwarf2out_begin_function): Set call_site_count and
5117 tail_call_site_count to 0.
5118 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5119 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5120 attempt to force a DIE for it and worst case remove the attribute.
5121 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5122 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5123 the decl itself.
5124 * var-tracking.c: Include tm_p.h.
5125 (vt_stack_adjustments): For calls call note_register_arguments.
5126 (argument_reg_set): New variable.
5127 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5128 ensure the VALUE is resolved.
5129 (call_arguments): New variable.
5130 (prepare_call_arguments): New function.
5131 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5132 (struct expand_loc_callback_data): Add ignore_cur_loc field.
5133 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5134 always use the best expression.
5135 (vt_expand_loc): Add ignore_cur_loc argument.
5136 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5137 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5138 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5139 note for all calls.
5140 (vt_add_function_parameter): Use cselib_lookup_from_insn.
5141 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5142 argument. Don't call cselib_preserve_only_values and
5143 cselib_reset_table.
5144 (note_register_arguments): New function.
5145 (vt_initialize): Compute argument_reg_set. Call
5146 vt_add_function_parameters before processing basic blocks instead of
5147 afterwards. For calls call prepare_call_arguments before calling
5148 cselib_process_insn.
5149 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5150 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5151 (var-tracking.o): Depend on $(TM_P_H).
5152 * cfglayout.h (insn_scope): New prototype.
5153 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5154 * cfglayout.c (insn_scope): No longer static.
5155 * insn-notes.def (CALL_ARG_LOCATION): New.
5156 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5157 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5158 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5159 nothing for DECL_EXTERNAL BLOCK_VARS.
5160
5161 2011-03-16 Alan Modra <amodra@gmail.com>
5162
5163 PR target/45844
5164 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5165 create invalid offset address for vsx splat insn.
5166 * config/rs6000/predicates.md (splat_input_operand): New.
5167 * config/rs6000/vsx.md (vsx_splat_*): Use it.
5168
5169 2011-03-15 Xinliang David Li <davidxl@google.com>
5170
5171 PR c/47837
5172 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5173 (normalize_preds): New function.
5174 (is_use_properly_guarded): Normalize def predicates.
5175
5176 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5177
5178 PR target/46788
5179 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5180 in the output template.
5181
5182 2011-03-15 Richard Guenther <rguenther@suse.de>
5183
5184 PR middle-end/47650
5185 * tree-pretty-print.c (dump_function_declaration): Properly
5186 dump unprototyped and varargs function types.
5187
5188 2011-03-15 Richard Guenther <rguenther@suse.de>
5189
5190 PR tree-optimization/13954
5191 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5192 and friends.
5193
5194 2011-03-15 Richard Guenther <rguenther@suse.de>
5195
5196 PR tree-optimization/48037
5197 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5198 selects into BIT_FIELD_REFs.
5199 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5200 vector select.
5201
5202 2011-03-15 Jakub Jelinek <jakub@redhat.com>
5203
5204 PR tree-optimization/48129
5205 * builtins.c (fold_builtin_snprintf): Convert to type of
5206 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5207 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5208
5209 2011-03-15 Richard Guenther <rguenther@suse.de>
5210
5211 PR tree-optimization/41490
5212 * tree-ssa-dce.c (propagate_necessity): Handle returns without
5213 value but with VUSE.
5214 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5215 return statements.
5216 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5217 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5218 * tree-tailcall.c (find_tail_calls): Ignore returns.
5219
5220 2011-03-15 Richard Guenther <rguenther@suse.de>
5221
5222 PR middle-end/48031
5223 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5224 or variable-indexed array accesses when in gimple form.
5225
5226 2011-03-15 Richard Guenther <rguenther@suse.de>
5227
5228 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5229
5230 2011-03-15 Alan Modra <amodra@gmail.com>
5231
5232 PR target/48032
5233 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
5234 presume symbol_refs without a symbol_ref_decl are suitably
5235 aligned, nor other trees we may see here. Handle anchor symbols.
5236 (legitimate_constant_pool_address_p): Comment. Add mode param.
5237 Check cmodel=medium addresses. Adjust all calls.
5238 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
5239 creating cmodel=medium optimized access to locals.
5240 * config/rs6000/constraints.md (R): Pass QImode to
5241 legitimate_constant_pool_address_p.
5242 * config/rs6000/predicates.md (input_operand): Pass mode to
5243 legitimate_constant_pool_address_p.
5244 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
5245 Update prototype.
5246
5247 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5248
5249 PR target/48053
5250 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
5251 64-bit constants being loaded into registers other than GPRs such
5252 as loading 0 into a VSX register.
5253
5254 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5255
5256 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
5257
5258 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5259
5260 PR middle-end/47917
5261 * builtins.c (fold_builtin_snprintf): New function.
5262 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
5263 (fold_builtin_4): Likewise.
5264
5265 PR middle-end/38878
5266 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
5267 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
5268 and C - X == X also strip nops from +/-/p+ operand.
5269 When optimizing -X == C, fold C to arg0's type.
5270
5271 PR debug/47946
5272 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
5273 emit it as add_AT_int instead of add_AT_unsigned.
5274
5275 2011-03-14 Tom Tromey <tromey@redhat.com>
5276
5277 * unwind-dw2.c: Include sys/sdt.h if it exists.
5278 (_Unwind_DebugHook): Use STAP_PROBE2.
5279 * config.in, configure: Rebuild.
5280 * configure.ac: Check for sys/sdt.h.
5281
5282 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
5283
5284 * config/i386/i386.md (ROUND_FLOOR): New constant.
5285 (ROUND_CEIL): Ditto.
5286 (ROUND_TRUNC): Ditto.
5287 (ROUND_MXCSR): Ditto.
5288 (ROUND_NO_EXC): Ditto.
5289 (rint<mode>2): Use new defines instead of numerical constants.
5290 (floor<mode>2): Ditto.
5291 (ceil<mode>2): Ditto.
5292 (btrunc<mode>2): Ditto.
5293 * config/i386/i386-builtin-types.def: Define ROUND function type
5294 aliases.
5295 * config/i386/i386.c (enum ix86_builtins): Add
5296 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
5297 (struct builtin_description): Add
5298 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
5299 (ix86_expand_sse_round): New static function.
5300 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
5301 function types.
5302 (ix86_builtin_vectorized_function): Handle
5303 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5304
5305 2011-03-14 Tom Tromey <tromey@redhat.com>
5306
5307 * c-parser.c (c_parser_asm_string_literal): Clear
5308 warn_overlength_strings.
5309
5310 2011-03-14 Tom Tromey <tromey@redhat.com>
5311
5312 * c-parser.c (disable_extension_diagnostics): Save
5313 warn_overlength_strings.
5314 (restore_extension_diagnostics): Restore warn_overlength_strings.
5315
5316 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5317
5318 * BASE-VER: Change to 4.7.0.
5319
5320 2011-03-14 Richard Guenther <rguenther@suse.de>
5321
5322 PR middle-end/48098
5323 * tree.c (build_vector_from_val): Adjust assert to requirements
5324 and reality.
5325
5326 2011-03-14 Jakub Jelinek <jakub@redhat.com>
5327
5328 PR bootstrap/48102
5329 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
5330
5331 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
5332
5333 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
5334 terms of target_flags_explicit. Adjust copyright year.
5335
5336 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
5337 * config/rs6000/t-freebsd: New file. Add override for
5338 LIB2FUNCS_EXTRA.
5339
5340 2011-03-13 Chris Demetriou <cgd@google.com>
5341
5342 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
5343 (-fno-diagnostics-show-option): this, to reflect current default.
5344 (-Werror=): Update text about -fno-diagnostics-show-option.
5345
5346 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
5347
5348 PR target/48053
5349 * config/rs6000/predicates.md (easy_vector_constant_add_self,
5350 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
5351 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
5352 mode is not V2DImode or V2DFmode.
5353 (vspltis_constant): Do not handle V2DImode and V2DFmode.
5354 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
5355 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
5356 registers to 0.
5357 (movdi_internal64): Likewise.
5358
5359 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
5360
5361 PR tree-optimization/47127
5362 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
5363 parameter.
5364 (set_cloog_options): Same.
5365 (scop_to_clast): Same.
5366 (print_clast_stmt): Do not call cloog_state_malloc and
5367 cloog_state_free.
5368 (print_generated_program): Same.
5369 (gloog): Same.
5370 * graphite-clast-to-gimple.h (cloog_state): Declared.
5371 (scop_to_clast): Adjust declaration.
5372 * graphite.c (cloog_state): Defined here.
5373 (graphite_initialize): Call cloog_state_malloc.
5374 (graphite_finalize): Call cloog_state_free.
5375
5376 2011-03-11 Jason Merrill <jason@redhat.com>
5377
5378 * attribs.c (lookup_attribute_spec): Take const_tree.
5379 * tree.h: Adjust.
5380
5381 2011-03-11 Joseph Myers <joseph@codesourcery.com>
5382
5383 * config/sparc/sparc.c (sparc_option_override): Use
5384 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
5385
5386 2011-03-11 Richard Guenther <rguenther@suse.de>
5387
5388 PR tree-optimization/48067
5389 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
5390 multiplication result will be only used once on the target
5391 stmt.
5392
5393 2011-03-11 Richard Guenther <rguenther@suse.de>
5394
5395 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
5396
5397 2011-03-11 Richard Guenther <rguenther@suse.de>
5398
5399 PR lto/48073
5400 * tree.c (find_decls_types_r): Do not walk types only reachable
5401 from IDENTIFIER_NODEs.
5402
5403 2011-03-11 Jakub Jelinek <jakub@redhat.com>
5404
5405 PR middle-end/48044
5406 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
5407 all vnode->force_output nodes as needed.
5408
5409 2011-03-11 Jason Merrill <jason@redhat.com>
5410
5411 PR c++/48069
5412 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
5413 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
5414
5415 2011-03-11 Martin Jambor <mjambor@suse.cz>
5416
5417 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
5418 cgraph_node.
5419
5420 2011-03-11 Jakub Jelinek <jakub@redhat.com>
5421
5422 PR tree-optimization/48063
5423 * ipa-inline.c (cgraph_decide_inlining): Don't try to
5424 inline functions called once if !tree_can_inline_p (node->callers).
5425
5426 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
5427
5428 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
5429 extra_objs.
5430 * config/score/score3.c: Delete.
5431 * config/score/score3.h: Delete.
5432 * config/score/mul-div.S: Delete.
5433 * config/score/sfp-machine.h: Add new file.
5434 * config/score/constraints.md: Add new file.
5435 * config/score/t-score-softfp: Add new file.
5436 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
5437 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
5438 (score7_extra_constraint): Delete.
5439 (score7_option_override): Remove unused code.
5440 * config/score/score.c: Remove score3 and score5 define and code.
5441 * config/score/score.h: Remove score3 and score5 define and code.
5442 * config/score/score.md: Remove score3 template and unusual insn.
5443 * config/score/score.opt: Remove score3 and score5 options.
5444
5445 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5446
5447 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
5448 when _HPUX_SOURCE is defined.
5449 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
5450
5451 2011-03-10 Jason Merrill <jason@redhat.com>
5452
5453 PR c++/48029
5454 * stor-layout.c (layout_type): Don't set structural equality
5455 on arrays of incomplete type.
5456 * tree.c (type_hash_eq): Handle comparing them properly.
5457
5458 2011-03-10 Jakub Jelinek <jakub@redhat.com>
5459
5460 PR debug/48043
5461 * config/s390/s390.c (s390_delegitimize_address): Make sure the
5462 result mode matches original rtl mode.
5463
5464 2011-03-10 Nick Clifton <nickc@redhat.com>
5465
5466 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
5467 (andsi3, andsi3_flags): Fix timings for three operand alternative.
5468
5469 2011-03-09 Jakub Jelinek <jakub@redhat.com>
5470
5471 PR rtl-optimization/47866
5472 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
5473 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
5474 if target wasn't scalar.
5475 * function.c (assign_stack_temp_for_type): Assert that neither
5476 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
5477 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
5478 macro.
5479 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
5480
5481 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5482
5483 * config/s390/s390-protos.h (s390_label_align): New prototype.
5484 * config/s390/s390.c (s390_label_align): New function.
5485 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
5486
5487 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
5488
5489 PR target/47755
5490 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
5491 V2DI/V2DF constants. Only all 0's or all 1's are easy.
5492 (output_vec_const_move): Ditto.
5493
5494 2011-03-08 Anatoly Sokolov <aesok@post.ru>
5495
5496 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
5497 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
5498 * config/mips/mips.c (mips_preferred_reload_class): Make static.
5499 Change 'rclass' argument and result type to reg_class_t.
5500 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5501
5502 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
5503
5504 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5505 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
5506 (TARGET_MEMORY_MOVE_COST): Define.
5507 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5508
5509 2011-03-08 Jakub Jelinek <jakub@redhat.com>
5510
5511 PR debug/47881
5512 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
5513 removed anything.
5514
5515 PR tree-optimization/48022
5516 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
5517 for EQ/NE_EXPR.
5518
5519 2011-03-07 Jakub Jelinek <jakub@redhat.com>
5520
5521 PR debug/47991
5522 * var-tracking.c (find_use_val): Return NULL for
5523 cui->sets && cui->store_p BLKmode MEMs.
5524
5525 2011-03-07 Anatoly Sokolov <aesok@post.ru>
5526
5527 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5528 Remove.
5529 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
5530 xstormy16_print_operand_address): Remove.
5531 * config/stormy16/stormy16.c (xstormy16_print_operand,
5532 xstormy16_print_operand_address): Make static.
5533 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5534
5535 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
5536
5537 PR target/47862
5538 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5539 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
5540 before definition.
5541
5542 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
5543
5544 PR bootstrap/48000
5545 * cfgloopmanip.c (fix_bb_placements): Return immediately
5546 if FROM is BASE_LOOP's header.
5547
5548 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
5549
5550 * gimplify.c (gimplify_function_tree): Fix building calls
5551 to __builtin_return_address.
5552
5553 2011-03-07 Alan Modra <amodra@gmail.com>
5554
5555 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
5556 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
5557 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
5558 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
5559 return_mode args.
5560 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
5561 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
5562 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
5563 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
5564 * config/rs6000/rs6000.c
5565 (rs6000_elf_end_indicate_exec_stack): Rename to..
5566 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
5567 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
5568 (rs6000_file_start): ..here.
5569 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
5570 file scope variables.
5571 (call_ABI_of_interest): New function.
5572 (init_cumulative_args): Set above vars when function return value
5573 is a float, vector, or small struct.
5574 (rs6000_function_arg_advance_1): Likewise for function args.
5575 (rs6000_va_start): Set rs6000_passes_float if variable arg function
5576 references float args.
5577
5578 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
5579
5580 * doc/cfg.texi: Remove "See" before @ref.
5581 * doc/invoke.texi: Likewise.
5582
5583 2011-03-05 Jason Merrill <jason@redhat.com>
5584
5585 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
5586
5587 2011-03-05 Anthony Green <green@moxielogic.com>
5588
5589 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
5590
5591 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
5592
5593 PR rtl-optimization/47899
5594 * cfgloopmanip.c (fix_bb_placements): Fix first argument
5595 to flow_loop_nested_p when moving the loop upward.
5596
5597 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
5598
5599 PR target/47719
5600 * arm.md (movhi_insn_arch4): Accept any immediate constant.
5601
5602 2011-03-05 Jakub Jelinek <jakub@redhat.com>
5603
5604 PR tree-optimization/47967
5605 * ipa-cp.c (build_const_val): Return NULL instead of creating
5606 VIEW_CONVERT_EXPR for mismatching sizes.
5607 (ipcp_create_replace_map): Return NULL if build_const_val failed.
5608 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
5609 give up on versioning.
5610
5611 2011-03-05 Alan Modra <amodra@gmail.com>
5612
5613 PR target/47986
5614 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5615 full cmodel medium/large lo_sum + high addresses.
5616
5617 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5618
5619 * config/s390/s390.c (s390_decompose_address): Reject non-literal
5620 pool references in UNSPEC_LTREL_OFFSET.
5621
5622 2011-03-04 Jan Hubicka <jh@suse.cz>
5623
5624 PR lto/47497
5625 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
5626 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
5627 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
5628 Add node pointers.
5629 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
5630 cgraph_add_thunk): Add node pointers.
5631 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
5632 associated to right node.
5633 (input_node): Update use of cgraph_same_body_alias
5634 and cgraph_add_thunk.
5635
5636 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
5637
5638 * config/i386/i386.opt (mprefer-avx128): New flag.
5639 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
5640 modes when the flag -mprefer-avx128 is on.
5641
5642 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
5643
5644 * dwarf2out.c (compare_loc_operands): Fix address handling.
5645
5646 2011-03-04 Alan Modra <amodra@gmail.com>
5647
5648 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
5649
5650 2011-03-04 Richard Guenther <rguenther@suse.de>
5651
5652 PR middle-end/47968
5653 * expmed.c (extract_bit_field_1): Prefer vector modes that
5654 vec_extract patterns can handle.
5655
5656 2011-03-04 Richard Guenther <rguenther@suse.de>
5657
5658 PR middle-end/47975
5659 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
5660
5661 2011-03-04 Richard Henderson <rth@redhat.com>
5662
5663 * explow.c (emit_stack_save): Remove 'after' parameter.
5664 (emit_stack_restore): Likewise.
5665 * expr.h: Update to match.
5666 * builtins.c, calls.c, stmt.c: Likewise.
5667 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
5668 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
5669 * function.c (expand_function_end): Insert the emit_stack_save
5670 sequence before parm_birth_insn instead of after.
5671
5672 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
5673
5674 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
5675 (ssse3_pmaddubsw128): Ditto.
5676 (ssse3_pmaddubsw): Ditto.
5677
5678 2011-03-03 Steve Ellcey <sje@cup.hp.com>
5679
5680 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
5681
5682 2011-03-03 Jakub Jelinek <jakub@redhat.com>
5683
5684 PR c/47963
5685 * gimplify.c (omp_add_variable): Only call omp_notice_variable
5686 on TYPE_SIZE_UNIT if it is a DECL.
5687
5688 PR debug/47283
5689 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
5690 first operand is not is_gimple_mem_ref_addr, try to fold it.
5691 If the operand still isn't is_gimple_mem_ref_addr, clear
5692 MEM_EXPR on op0.
5693
5694 2011-03-03 Richard Guenther <rguenther@suse.de>
5695
5696 PR middle-end/47283
5697 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
5698 match comment.
5699 (refs_may_alias_p_1): For release branches return true if
5700 we are confused by our input.
5701
5702 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5703
5704 * config/s390/s390.c (s390_function_value): Rename to ...
5705 (s390_function_and_libcall_value): ... this.
5706 (s390_function_value): New function.
5707 (s390_libcall_value): New function.
5708 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
5709 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
5710 target macro definitions.
5711 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
5712
5713 2011-03-02 Joseph Myers <joseph@codesourcery.com>
5714
5715 * config/i386/freebsd64.h (CC1_SPEC): Define.
5716 * config/i386/linux64.h (CC1_SPEC): Define.
5717 * config/i386/x86-64.h (CC1_SPEC): Don't define.
5718
5719 2011-03-02 Anatoly Sokolov <aesok@post.ru>
5720
5721 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5722 Remove.
5723 * config/stormy16/stormy16.c: Include reload.h.
5724 (xstormy16_memory_move_cost): New function.
5725 (TARGET_MEMORY_MOVE_COST): Define.
5726
5727 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
5728
5729 PR rtl-optimization/47925
5730 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
5731 with side effects. Remove the more-specific check for volatile asms.
5732
5733 2011-03-02 Alan Modra <amodra@gmail.com>
5734
5735 PR target/47935
5736 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
5737 toc relative addresses for valid offsets.
5738
5739 2011-03-01 Richard Guenther <rguenther@suse.de>
5740
5741 PR tree-optimization/47890
5742 * tree-vect-loop.c (get_initial_def_for_induction): Set
5743 related stmt properly.
5744
5745 2011-03-01 Richard Guenther <rguenther@suse.de>
5746
5747 PR lto/47924
5748 * lto-streamer.c (lto_record_common_node): Also register
5749 the canonical type.
5750
5751 2011-03-01 Richard Guenther <rguenther@suse.de>
5752
5753 PR lto/46911
5754 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5755 Do not stream DECL_ABSTRACT_ORIGIN.
5756 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5757 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5758 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5759 Do not stream DECL_ABSTRACT_ORIGIN.
5760 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5761 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5762
5763 2011-02-28 Anatoly Sokolov <aesok@post.ru>
5764
5765 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
5766 FUNCTION_VALUE_REGNO_P): Remove.
5767 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
5768 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
5769 Add 'outgoing' argument.
5770 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
5771 function.
5772 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5773 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5774
5775 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
5776
5777 PR debug/28047
5778 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
5779 (lookup_filename): Likewise.
5780 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
5781
5782 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
5783 Jakub Jelinek <jakub@redhat.com>
5784
5785 PR middle-end/47893
5786 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
5787 (assign_stack_local_1): Change last argument type to int.
5788 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
5789 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
5790 don't record padding space into frame_space_list nor use those areas.
5791 (assign_stack_local): Adjust caller.
5792 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
5793 of assign_stack_local, pass 0 as last argument.
5794 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
5795 callers.
5796
5797 2011-02-28 Jakub Jelinek <jakub@redhat.com>
5798
5799 PR debug/47283
5800 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
5801 Use target address_mode and pointer_mode hooks instead of hardcoded
5802 Pmode and ptr_mode. Handle some simple cases of extending if
5803 POINTERS_EXTEND_UNSIGNED < 0.
5804 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
5805 Call convert_debug_memory_address.
5806 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
5807 convert_debug_memory_address.
5808
5809 PR middle-end/46790
5810 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
5811 * configure: Regenerated.
5812 * config.in: Regenerated.
5813 * varasm.c (default_function_section): Return NULL
5814 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
5815
5816 2011-02-28 Martin Jambor <mjambor@suse.cz>
5817
5818 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
5819 the description to match the printed values.
5820
5821 2011-02-28 Richard Guenther <rguenther@suse.de>
5822
5823 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
5824 of the copied scope tree.
5825
5826 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5827
5828 * doc/extend.texi (Function Attributes): Avoid deeply (and
5829 wrongly) nested tables.
5830
5831 2011-02-27 Jakub Jelinek <jakub@redhat.com>
5832
5833 PR middle-end/47903
5834 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
5835 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
5836 r isn't op0 nor op1.
5837
5838 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
5839
5840 * config/avr/avr.md: Remove magic comment for emacs.
5841
5842 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
5843
5844 PR target/45261
5845 * config/avr/avr.c (avr_option_override): Use error on bad options.
5846 (avr_help): New function.
5847 (TARGET_HELP): Define.
5848
5849 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
5850
5851 PR target/42240
5852 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
5853 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
5854
5855 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
5856
5857 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
5858 (ARM Options): Ditto.
5859 (i386 and x86-64 Options): Ditto.
5860 (RX Options): Ditto.
5861 (SPARC Options): Ditto.
5862
5863 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
5864
5865 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
5866 FreeBSD 6 and later. Generally use cpu generic.
5867
5868 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
5869
5870 * doc/cpp.texi: Update copyright years.
5871
5872 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
5873
5874 PR target/46898
5875 * config/lm32/lm32.md (ashrsi3): Added needed variable.
5876
5877 2011-02-25 Jon Beniston <jon@beniston.com>
5878
5879 PR target/46898
5880 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
5881 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
5882 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
5883 (lm32_block_move_inline): Add type cast to remove warning.
5884 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
5885 (gen_int_relational): Move declarations to start of function.
5886
5887 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
5888
5889 PR tree-optimization/45470
5890 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
5891 can throw internally only.
5892 * tree-vect-stmts.c (vectorizable_call): Likewise.
5893
5894 2011-02-24 Anatoly Sokolov <aesok@post.ru>
5895
5896 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
5897 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5898 * config/stormy16/stormy16-protos.h
5899 (xstormy16_preferred_reload_class): Remove.
5900 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
5901 static. Change 'rclass' argument and return type to reg_class_t.
5902 (TARGET_PREFERRED_RELOAD_CLASS,
5903 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5904
5905 2011-02-24 Richard Guenther <rguenther@suse.de>
5906
5907 * lto-streamer-in.c (input_bb): Do not find referenced vars
5908 in debug statements.
5909
5910 2011-02-23 Jason Merrill <jason@redhat.com>
5911
5912 * common.opt (fabi-version): Document v5 and v6.
5913
5914 2011-02-23 Richard Guenther <rguenther@suse.de>
5915
5916 PR tree-optimization/47849
5917 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
5918
5919 2011-02-23 Jie Zhang <jie@codesourcery.com>
5920
5921 * opts-common.c (decode_cmdline_option): Print empty string
5922 argument as "" in decoded->orig_option_with_args_text.
5923 * gcc.c (execute): Print empty string argument as ""
5924 in the verbose output.
5925 (do_spec_1): Keep empty string argument.
5926
5927 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
5928
5929 * config.gcc: Declare score-* and crx-* obsolete.
5930
5931 2011-02-23 Jie Zhang <jie@codesourcery.com>
5932
5933 PR rtl-optimization/47763
5934 * web.c (web_main): Ignore naked clobber when replacing register.
5935
5936 2011-02-22 Anatoly Sokolov <aesok@post.ru>
5937
5938 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5939 Remove.
5940
5941 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
5942
5943 PR doc/47848
5944 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
5945
5946 2011-02-22 Mike Stump <mikestump@comcast.net>
5947
5948 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
5949 assembler.
5950 * configure: Regenerate.
5951
5952 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
5953
5954 PR rtl-optimization/46002
5955 * ira-color.c (update_copy_costs): Change class intersection
5956 test to reg_class_contents[] test of 'hard_regno'.
5957
5958 2011-02-21 Joseph Myers <joseph@codesourcery.com>
5959
5960 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
5961 than Driver option.
5962 * config/hpux11.opt (mt): Likewise.
5963 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
5964 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
5965 * config/vax/elf.opt (mno-asm-pic): Likewise.
5966 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
5967
5968 2011-02-21 Mike Stump <mikestump@comcast.net>
5969
5970 PR target/47822
5971 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
5972 tree so we can get save the type.
5973 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
5974 for CFString instead of trying to use past the end of the builtins.
5975 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
5976 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
5977 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
5978 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
5979 Rename to darwin_builtin_cfstring.
5980 (darwin_init_cfstring_builtins): Return the built type.
5981
5982 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
5983
5984 PR target/47840
5985 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
5986 (_mm256_insert_epi64): Use _mm_insert_epi64.
5987
5988 2011-02-21 Anatoly Sokolov <aesok@post.ru>
5989
5990 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5991 * config/stormy16/stormy16-protos.h
5992 (xstormy16_mode_dependent_address_p): Remove.
5993 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
5994 Make static. Change return type to bool. Change argument type to
5995 const_rtx. Remove dead code.
5996 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5997
5998 2011-02-21 Richard Guenther <rguenther@suse.de>
5999
6000 PR lto/47820
6001 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6002 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6003 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6004 TUs context.
6005 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6006 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6007
6008 2011-02-20 Richard Guenther <rguenther@suse.de>
6009
6010 PR lto/47822
6011 * tree.c (free_lang_data_in_decl): Clean builtins from
6012 the TU decl BLOCK_VARS.
6013
6014 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
6015
6016 PR debug/47620
6017 PR debug/47630
6018 * haifa-sched.c (fix_tick_ready): Skip tick computation
6019 for debug insns.
6020
6021 2011-02-19 Richard Guenther <rguenther@suse.de>
6022
6023 PR lto/47647
6024 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6025 Remove lazy BLOCK_VARS streaming.
6026 (lto_input_ts_block_tree_pointers): Likewise.
6027 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6028
6029 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6030
6031 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6032
6033 2011-02-19 Joseph Myers <joseph@codesourcery.com>
6034
6035 * config/i386/biarch32.h, config/i386/mach.h,
6036 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6037
6038 2011-02-19 Jakub Jelinek <jakub@redhat.com>
6039
6040 PR target/47800
6041 * config/i386/i386.md (peephole2 for shift and plus): Use
6042 operands[1] original mode in the first insn.
6043
6044 2011-02-18 Mike Stump <mikestump@comcast.net>
6045
6046 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6047
6048 2011-02-18 Jan Hubicka <jh@suse.cz>
6049
6050 PR middle-end/47788
6051 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6052 to zero when the function is not inlinable at all.
6053
6054 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6055
6056 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6057 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6058 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6059 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6060 * config/pa/t-pa64: Likewise.
6061 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6062
6063 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6064
6065 PR driver/47787
6066 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6067
6068 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6069
6070 PR target/47792
6071 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6072
6073 2011-02-18 Anatoly Sokolov <aesok@post.ru>
6074
6075 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6076 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6077 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6078 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6079 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6080 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6081 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6082 m32r_load_postinc_p, m32r_store_preinc_predec_p,
6083 m32r_legitimate_address_p): New functions.
6084 * config/m32r/constraints.md (constraint "S"): Don't use
6085 STORE_PREINC_PREDEC_P.
6086 (constraint "U"): Don't use LOAD_POSTINC_P.
6087
6088 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
6089
6090 PR rtl-optimization/46178
6091 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6092 compute ira_hard_regno_cover_class[].
6093
6094 2011-02-18 Richard Guenther <rguenther@suse.de>
6095
6096 PR lto/47798
6097 * lto-streamer.h (lto_global_var_decls): Declare.
6098 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6099 statics for global var processing.
6100
6101 2011-02-18 Richard Guenther <rguenther@suse.de>
6102
6103 PR tree-optimization/47737
6104 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6105 edge dominance check.
6106
6107 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6108
6109 PR debug/47780
6110 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6111 avoid invalid rtx sharing.
6112
6113 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
6114
6115 * doc/cpp.texi (Obsolete Features): Add background on the
6116 origin of assertions.
6117
6118 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
6119
6120 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6121 objc_abi == 2.
6122 * config/darwin.c (output_objc_section_asm_op): Added support for
6123 ABI v1 and v2.
6124 (is_objc_metadata): New.
6125 (darwin_objc2_section): New.
6126 (darwin_objc1_section): New.
6127 (machopic_select_section): Added support for ABI v1 and v2.
6128 (darwin_emit_objc_zeroed): New.
6129 (darwin_output_aligned_bss): Detect objc metadata and treat it
6130 appropriately.
6131 (darwin_asm_output_aligned_decl_common): Same.
6132 (darwin_asm_output_aligned_decl_local): Same.
6133 * config/darwin-sections.def: Updated for ABI v1 and v2.
6134 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6135 compiling Objective-C code for the NeXT runtime, default to using
6136 ABI version 0 for 32-bit, and version 2 for 64-bit.
6137
6138 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6139
6140 * common.opt (optimize_fast): New Variable.
6141 * opts.c (default_options_optimization): Use opts->x_optimize_fast
6142 instead of local variable ofast.
6143
6144 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
6145
6146 * doc/invoke.texi (fobjc-abi-version): Documented.
6147 (fobjc-nilcheck): Documented.
6148 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6149 version.
6150
6151 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6152
6153 PR driver/47390
6154 * common.opt (export-dynamic): New Driver option.
6155 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6156
6157 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6158
6159 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6160
6161 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
6162 Jan Hubicka <jh@suse.cz>
6163
6164 PR debug/47106
6165 PR debug/47402
6166 * cfgexpand.c (account_used_vars_for_block): Remove.
6167 (estimated_stack_frame_size): Use referenced vars.
6168 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6169 that were referenced in the original function. Test src_fn
6170 rather than cfun. Drop redundant get_var_ann.
6171 (setup_one_parameter): Drop redundant get_var_ann.
6172 (declare_return_variable): Likewise.
6173 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6174 (copy_arguments_for_versioning): Drop redundant get_var_ann.
6175 * ipa-inline.c (compute_inline_parameters): Do not compute
6176 disregard_inline_limits here.
6177 (compute_inlinable_for_current, pass_inlinable): New.
6178 (pass_inline_parameters): Require PROP_referenced_vars.
6179 * cgraphunit.c (cgraph_process_new_functions): Don't run
6180 compute_inline_parameters explicitly unless function is in SSA form.
6181 (cgraph_analyze_function): Set .disregard_inline_limits.
6182 * tree-sra.c (convert_callers): Compute inliner parameters
6183 only for functions already in SSA form.
6184
6185 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6186
6187 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6188 -mlittle-endian-data.
6189
6190 2011-02-17 Joseph Myers <joseph@codesourcery.com>
6191
6192 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6193 -mno-fpu, not -fpu and -no-fpu.
6194 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6195 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6196
6197 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
6198
6199 PR target/43653
6200 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6201 input reload with PLUS RTX.
6202
6203 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6204
6205 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6206 of InverseVar(MDMX).
6207
6208 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6209
6210 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6211 --m4-340.
6212
6213 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6214
6215 * config/mn10300/mn10300.opt (mno-crt0): New.
6216
6217 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6218
6219 * config/m68k/uclinux.opt (static-libc): New Driver option.
6220
6221 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6222
6223 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6224
6225 2011-02-16 Joseph Myers <joseph@codesourcery.com>
6226
6227 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6228 %{muser-extend-enabled}.
6229
6230 2011-02-16 Richard Guenther <rguenther@suse.de>
6231
6232 PR tree-optimization/47738
6233 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
6234 the TODO from tree_predictive_commoning.
6235
6236 2011-02-15 Jeff Law <law@redhat.com>
6237
6238 Revert
6239 2011-01-25 Jeff Law <law@redhat.com>
6240
6241 PR rtl-optimization/37273
6242 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6243 handle them like argument loads from stack slots. Do not double
6244 count memory for memory constants and argument loads from stack slots.
6245
6246 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6247
6248 PR middle-end/47725
6249 * combine.c (cant_combine_insn_p): Revert the last change.
6250
6251 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
6252
6253 PR target/47755
6254 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
6255 mode for vector constants. Remove code that checks for TImode.
6256
6257 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6258
6259 PR debug/47106
6260 PR debug/47402
6261 * cgraph.h (compute_inline_parameters): Return void.
6262 * ipa-inline.c (compute_inline_parameters): Adjust.
6263
6264 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6265
6266 PR debug/47106
6267 PR debug/47402
6268 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
6269 rather than decl.
6270 * cfgexpand.c (estimated_stack_frame_size): Likewise.
6271 * ipa-inline.c (compute_inline_parameters): Adjust.
6272
6273 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6274
6275 PR debug/47106
6276 PR debug/47402
6277 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
6278 Adjust all users. Pass FN to...
6279 * tree-flow-inline.h (first_referenced_var): ... this. Add
6280 fn argument.
6281 * ipa-struct-reorg.c: Adjust.
6282 * tree-dfa.c: Adjust.
6283 * tree-into-ssa.c: Adjust.
6284 * tree-sra.c: Adjust.
6285 * tree-ssa-alias.c: Adjust.
6286 * tree-ssa-live.c: Adjust.
6287 * tree-ssa.c: Adjust.
6288 * tree-ssanames.c: Adjust.
6289 * tree-tailcall.c: Adjust.
6290
6291 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
6292
6293 PR debug/47106
6294 PR debug/47402
6295 * tree-flow.h (referenced_var_lookup): Add fn parameter.
6296 Adjust all callers.
6297 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
6298 * tree-flow-inline.h: Adjust.
6299 * gimple-pretty-print.c: Adjust.
6300 * tree-into-ssa.c: Adjust.
6301 * tree-ssa.c: Adjust.
6302 * cfgexpand.c: Adjust.
6303
6304 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6305
6306 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
6307 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6308 (EXTRA_CONSTRAINT): Delete.
6309 * config/iq2000/constraints.md: New file.
6310 * config/iq2000/iq2000.md: Include it.
6311 (define_insn ""): Delete.
6312 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
6313 unsupported constraint letters from patterns.
6314 (call_value, call_value_internal1): Likewise.
6315 (call_value_multiple_internal1): Likewise.
6316
6317 2011-02-15 Nick Clifton <nickc@redhat.com>
6318
6319 * config/mn10300/mn10300.c: Include tm-constrs.h.
6320 (struct liw_data): New data structure describing an LIW candidate
6321 instruction.
6322 (extract_bundle): Use struct liw_data. Allow small integer
6323 operands for some instructions.
6324 (check_liw_constraints): Use struct liw_data. Remove swapped
6325 parameter. Add comments describing the checks. Fix bug when
6326 assigning the source of liw1 to the source of liw2.
6327 (liw_candidate): Delete. Code moved into extract_bundle.
6328 (mn10300_bundle_liw): Use struct liw_data. Check constraints
6329 before swapping.
6330 * config/mn10300/predicates.md (liw_operand): New predicate.
6331 Allows registers and small integer constants.
6332 * config/mn10300/constraints.md (O): New constraint. Accetps
6333 integers in the range -8 to +7 inclusive.
6334 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
6335 for moving a small integer into a register. Give this alternative
6336 LIW attributes.
6337 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
6338 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
6339 using the J,K,L and M constraints,
6340 (liw): Remove SI mode on second operands to allow for HI and QI
6341 mode values.
6342 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
6343 instruction.
6344
6345 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
6346
6347 PR middle-end/47725
6348 * combine.c (cant_combine_insn_p): Check zero/sign extended
6349 hard registers.
6350
6351 2011-02-15 Richard Guenther <rguenther@suse.de>
6352
6353 PR tree-optimization/47743
6354 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
6355 for a non-type-compatible VN lookup bail out.
6356
6357 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6358
6359 * config/fr30/constraints.md: New file.
6360 * config/fr30/fr30.md: Include it.
6361 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
6362 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6363 (EXTRA_CONSTRAINT): Delete.
6364
6365 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
6366
6367 * config/frv/constraints.md: New file.
6368 * config/frv/predicates.md: Include it.
6369 * config/frv/frv.c (reg_class_from_letter): Delete.
6370 (frv_option_override): Don't initialize it.
6371 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
6372 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
6373 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
6374 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6375 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
6376 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6377 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
6378 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
6379 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
6380 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
6381 (REG_CLASS_FROM_CONSTRAINT): Delete.
6382
6383 2011-02-15 Jakub Jelinek <jakub@redhat.com>
6384
6385 PR middle-end/47581
6386 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
6387 if frame size is 0 in a leaf function.
6388
6389 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6390
6391 PR pch/14940
6392 * config/alpha/host-osf.c: New file.
6393 * config/alpha/x-osf: New file.
6394 * config.host (alpha*-dec-osf*): Use it.
6395
6396 2011-02-14 Anatoly Sokolov <aesok@post.ru>
6397
6398 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6399 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
6400 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
6401 (rx_mode_dependent_address_p): ...this. Make static. Change argument
6402 type to const_rtx.
6403 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6404
6405 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6406
6407 * config/stormy16/constraints.md: New file.
6408 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
6409 Use satisfies_constraint_Q and satisfies_constraint_R.
6410 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
6411 Delete.
6412 (xstormy16_legitiamte_address_p): Declare.
6413 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
6414 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6415 (EXTRA_CONSTRAINT): Delete.
6416 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6417 Un-staticize.
6418 (xstormy16_extra_constraint_p): Delete.
6419
6420 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
6421
6422 PR tree-optimization/46494
6423 * loop-unroll.c (split_edge_and_insert): Adjust comment.
6424 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
6425 (pass_rtl_loop_done): Add TODO_verify_flow.
6426 * fwprop.c (pass_rtl_fwprop): Likewise.
6427 * modulo-sched.c (pass_sms): Likewise.
6428 * tree-ssa-dom.c (pass_dominator): Likewise.
6429 * tree-ssa-loop-ch.c (pass_ch): Likewise.
6430 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
6431 (pass_tree_loop_done): Likewise.
6432 * tree-ssa-pre.c (execute_pre): Likewise.
6433 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
6434 * tree-ssa-sink.c (pass_sink_code): Likewise.
6435 * tree-vrp.c (pass_vrp): Likewise.
6436
6437 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6438
6439 * config/v850/constraints.md: New file.
6440 * config/v850/v850.md: Include it.
6441 * config/v850/predicates.md (reg_or_0_operand): Use
6442 satisfies_constraint_G.
6443 (special_symbolref_operand): Use satisfies_constraint_K.
6444 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
6445 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
6446 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
6447 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6448 (EXTRA_CONSTRAINT): Delete.
6449 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
6450 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
6451 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
6452
6453 2011-02-14 Anatoly Sokolov <aesok@post.ru>
6454
6455 PR target/47696
6456 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
6457 description.
6458
6459 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
6460
6461 * config/mcore/constraints.md: New file.
6462 * config/mcore/mcore.md: Include it.
6463 * config/mcore/mcore.c (reg_class_from_letter): Delete.
6464 * config/mcore/mcore.h (reg_class_from_letter): Delete.
6465 (REG_CLASS_FROM_LETTER): Delete.
6466 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
6467 insn_const_int_ok_for_constraint.
6468 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
6469 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
6470 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6471 (EXTRA_CONSTRAINT): Delete.
6472
6473 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6474
6475 PR ada/41929
6476 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
6477 (IS_SIGHANDLER): Define.
6478 (sparc64_is_sighandler): New function, split off from
6479 sparc64_fallback_frame_state.
6480 (sparc_is_sighandler): New function, split off from
6481 sparc_fallback_frame_state.
6482 (sparc64_fallback_frame_state): Merge with ...
6483 (sparc_fallback_frame_state): ... this into ...
6484 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
6485 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
6486 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
6487 stack instead of hardcoded offsets.
6488
6489 2011-02-14 Andriy Gapon <avg@freebsd.org>
6490
6491 PR target/45808
6492 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
6493
6494 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6495
6496 * configure: Regenerate.
6497
6498 2011-02-12 Joseph Myers <joseph@codesourcery.com>
6499
6500 PR driver/45731
6501 * gcc.c (asm_options): Correct spec matching --target-help.
6502
6503 2011-02-12 Martin Jambor <mjambor@suse.cz>
6504
6505 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
6506 to gimple call error.
6507
6508 2011-02-12 Mike Stump <mikestump@comcast.net>
6509
6510 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
6511 comments in backslash regions.
6512
6513 2011-02-12 Mike Stump <mikestump@comcast.net>
6514 Jakub Jelinek <jakub@redhat.com>
6515 Iain Sandoe <iains@gcc.gnu.org>
6516
6517 PR target/47324
6518 * dwarf2out.c (output_cfa_loc): When required, apply the
6519 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
6520 (output_loc_sequence): Likewise.
6521 (output_loc_operands_raw): Likewise.
6522 (output_loc_sequence_raw): Likewise.
6523 (output_cfa_loc): Likewise.
6524 (output_loc_list): Suppress register number adjustment when
6525 calling output_loc_sequence()
6526 (output_die): Likewise.
6527
6528 2011-02-12 Anatoly Sokolov <aesok@post.ru>
6529
6530 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6531 Remove macros.
6532 * config/xtensa/xtensa.c (xtensa_register_move_cost,
6533 xtensa_memory_move_cost): New functions.
6534 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
6535
6536 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
6537
6538 PR lto/47225
6539 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
6540 in the current directory.
6541 * configure: Rebuilt.
6542
6543 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
6544
6545 * config/darwin.c (darwin_override_options): Add a hunk missed
6546 from the commit of r168571. Trim comment line lengths and
6547 correct indents of the preceding block.
6548
6549 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
6550
6551 * gcc.c (driver_handle_option): Concatenate the argument to -F with
6552 the switch.
6553
6554 2011-02-11 Joseph Myers <joseph@codesourcery.com>
6555
6556 * common.opt (nostartfiles): New Driver option.
6557
6558 2011-02-11 Xinliang David Li <davidxl@google.com>
6559
6560 PR tree-optimization/47707
6561 * tree-chrec.c (convert_affine_scev): Keep type precision.
6562
6563 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
6564
6565 PR tree-optimization/47420
6566 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
6567
6568 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
6569
6570 PR rtl-optimization/47614
6571 * rtl.h (check_for_inc_dec): Declare.
6572 * dse.c (check_for_inc_dec): Externalize...
6573 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
6574 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
6575
6576 2011-02-11 Joseph Myers <joseph@codesourcery.com>
6577
6578 PR driver/47678
6579 * gcc.c (main): Do not compile inputs if there were errors in
6580 option handling.
6581 * opts-common.c (read_cmdline_option): Check for wrong language
6582 after other error checks.
6583
6584 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
6585
6586 * cgraph.c: Fix comment typos.
6587 * cgraph.h: Likewise.
6588 * cgraphunit.c: Likewise.
6589 * ipa-cp.c: Likewise.
6590 * ipa-inline.c: Likewise.
6591 * ipa-prop.c: Likewise.
6592 * ipa-pure-const.c: Likewise.
6593 * ipa-ref.c: Likewise.
6594 * ipa-reference.c: Likewise.
6595
6596 2011-02-11 Jakub Jelinek <jakub@redhat.com>
6597
6598 PR debug/47684
6599 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
6600
6601 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6602
6603 PR testsuite/47400
6604 * doc/sourcebuild.texi (Require Support): Document
6605 dg-require-ascii-locale.
6606
6607 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
6608
6609 * doc/lto.texi (Write summary): Fix missing parentheses.
6610
6611 2011-02-10 DJ Delorie <dj@redhat.com>
6612
6613 * config/m32c/m32c.c (m32c_option_override): Disable
6614 -fcombine-stack-adjustments until flag value tracking and compare
6615 optimization can be rewritten.
6616
6617 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
6618
6619 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
6620 PROCESSOR_POWER7.
6621 (PROCESSOR_DEFAULT64): Likewise.
6622
6623 2011-02-10 Richard Henderson <rth@redhat.com>
6624
6625 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
6626 change from 2011-02-03.
6627 * config/rx/rx.c (flags_from_code): Likewise.
6628 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
6629 is valid, n/pz otherwise.
6630 (rx_select_cc_mode): Return CCmode if Y is not zero.
6631
6632 2011-02-10 Richard Guenther <rguenther@suse.de>
6633
6634 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
6635
6636 2011-02-10 Richard Guenther <rguenther@suse.de>
6637
6638 PR tree-optimization/47677
6639 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
6640
6641 2011-02-10 Jakub Jelinek <jakub@redhat.com>
6642
6643 PR target/47665
6644 * combine.c (make_compound_operation): Only change shifts into
6645 multiplication for SCALAR_INT_MODE_P.
6646
6647 2011-02-10 Jie Zhang <jie@codesourcery.com>
6648
6649 PR testsuite/47622
6650 Revert
6651 2011-02-05 Jie Zhang <jie@codesourcery.com>
6652 PR debug/42631
6653 * web.c (entry_register): Don't clobber the number of the
6654 first uninitialized reference in used[].
6655
6656 2011-02-09 Richard Guenther <rguenther@suse.de>
6657
6658 PR tree-optimization/47664
6659 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
6660 all edges again.
6661
6662 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
6663
6664 PR target/46481
6665 PR target/47032
6666 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
6667 PROCESSOR_POWER7.
6668 (PROCESSOR_DEFAULT64): Same.
6669 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
6670
6671 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6672
6673 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
6674
6675 2011-02-09 Martin Jambor <mjambor@suse.cz>
6676
6677 PR middle-end/45505
6678 * tree-sra.c (struct access): New flags grp_scalar_read and
6679 grp_scalar_write. Changed description of assignment read and write
6680 flags.
6681 (dump_access): Dump new flags, reorder all of them.
6682 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
6683 to detect multiple scalar reads.
6684 (analyze_access_subtree): Use the new scalar read write flags instead
6685 of the old flags. Adjusted comments.
6686
6687 2011-02-08 DJ Delorie <dj@redhat.com>
6688
6689 PR target/47548
6690 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
6691 patterns.
6692
6693 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6694
6695 * config/m68k/uclinux.opt: New.
6696 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
6697
6698 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6699
6700 * config/cris/elf.opt (sim): New Driver option.
6701
6702 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6703
6704 * config/xtensa/elf.opt: New.
6705 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
6706
6707 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6708
6709 * config/vax/elf.opt: New.
6710 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
6711
6712 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6713
6714 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
6715
6716 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6717
6718 * config/gnu-user.opt: New.
6719 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6720 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
6721 *-*-uclinux*): Use gnu-user.opt.
6722
6723 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
6724
6725 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
6726 * config/i386/gnu.h (CPP_SPEC): Likewise.
6727
6728 2011-02-08 Ian Lance Taylor <iant@google.com>
6729
6730 * common.opt (fcx-limited-range): Add SetByCombined flag.
6731 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
6732 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
6733 (fassociative-math, freciprocal-math): Likewise.
6734 (funsafe-math-optimizations): Likewise.
6735 * opth-gen.awk: Handle SetByCombined.
6736 * optc-gen.awk: Likewise.
6737 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
6738 (set_unsafe_math_optimizations_flags): Likewise.
6739 * doc/options.texi (Option properties): Document SetByCombined.
6740
6741 2011-02-08 Joseph Myers <joseph@codesourcery.com>
6742
6743 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
6744 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
6745 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
6746 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
6747 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
6748
6749 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
6750
6751 PR tree-optimization/46834
6752 PR tree-optimization/46994
6753 PR tree-optimization/46995
6754 * graphite-sese-to-poly.c (used_outside_reduction): New.
6755 (detect_commutative_reduction): Call used_outside_reduction.
6756 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
6757 translate_scalar_reduction_to_array only when at least one
6758 loop-phi/close-phi tuple has been detected.
6759
6760 2011-02-08 Richard Guenther <rguenther@suse.de>
6761
6762 PR middle-end/47639
6763 * tree-vect-generic.c (expand_vector_operations_1): Update
6764 stmts here ...
6765 (expand_vector_operations): ... not here. Cleanup EH info
6766 and the CFG if required.
6767
6768 2011-02-08 Richard Guenther <rguenther@suse.de>
6769
6770 PR tree-optimization/47641
6771 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
6772 require type compatibility.
6773
6774 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6775
6776 * gimple-low.c (lower_function_body): Don't remove the location of
6777 the return statement here.
6778 (lower_gimple_return): Do it here instead but only if the return
6779 statement is actually used twice.
6780
6781 2011-02-08 Richard Guenther <rguenther@suse.de>
6782
6783 PR tree-optimization/47632
6784 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
6785 unused up_to_stmt parameter, return whether cfg-cleanup is
6786 necessary, remove EH info properly.
6787 (forward_propagate_into_gimple_cond): Adjust caller.
6788 (forward_propagate_into_cond): Likewise.
6789 (forward_propagate_comparison): Likewise.
6790 (tree_ssa_forward_propagate_single_use_vars): Make
6791 forward_propagate_comparison case similar to the two others.
6792
6793 2011-02-08 Nick Clifton <nickc@redhat.com>
6794
6795 * config/mn10300/mn10300.opt (mliw): New command line option.
6796 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
6797 (liw_bundling): New automaton.
6798 (liw): New attribute.
6799 (liw_op): New attribute.
6800 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
6801 (movsi_internal): Add LIW attributes.
6802 (andsi3): Likewise.
6803 (iorsi3): Likewise.
6804 (xorsi3): Likewise.
6805 (addsi3): Separate register and immediate alternatives.
6806 Add LIW attributes.
6807 (subsi3): Likewise.
6808 (cmpsi): Likewise.
6809 (aslsi3): Likewise.
6810 (lshrsi3): Likewise.
6811 (ashrsi3): Likewise.
6812 (liw): New pattern.
6813 * config/mn10300/mn10300.c (liw_op_names): New
6814 (mn10300_print_operand): Handle 'W' operand descriptor.
6815 (extract_bundle): New function.
6816 (check_liw_constraints): New function.
6817 (liw_candidate): New function.
6818 (mn10300_bundle_liw): New function.
6819 (mn10300_reorg): New function.
6820 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6821 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
6822 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
6823 __LIW__ or __NO_LIW__.
6824 * doc/invoke.texi: Describe the -mliw command line option.
6825
6826 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6827
6828 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
6829 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6830 pthread_mutex_unlock): Remove.
6831 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
6832 * config/pa/t-pa64: Likewise.
6833 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
6834 shared libc if not linking against libpthread.
6835 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6836
6837 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
6838
6839 PR target/47558
6840 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
6841 on 10.6 and later to ensure that we always use the unwinder from
6842 the system. Only add -no_compact_unwind when tarteting darwin
6843 10.6 or later.
6844
6845 2011-02-07 Steve Ellcey <sje@cup.hp.com>
6846
6847 PR target/46997
6848 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
6849 (vec_interleave_lowv2sf): Ditto.
6850 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
6851 (vec_extract_oddv2sf): Ditto.
6852
6853 2011-02-07 Mike Stump <mikestump@comcast.net>
6854
6855 PR target/42333
6856 Add __ieee_divdc3 entry point.
6857 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6858 entry point.
6859 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
6860 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
6861 * config/darwin.c (darwin_rename_builtins): Add.
6862 * config/darwin-protos.h (darwin_rename_builtins): Add.
6863
6864 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
6865
6866 PR target/47636
6867 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
6868 for the condition.
6869
6870 2011-02-07 Mike Stump <mikestump@comcast.net>
6871
6872 * config/darwin.opt (mmacosx-version-min): Update default OS version.
6873
6874 2011-02-07 Denis Chertykov <chertykov@gmail.com>
6875
6876 PR target/47534
6877 * config/avr/libgcc.S (exit): Move .endfunc
6878
6879 2011-02-07 Richard Guenther <rguenther@suse.de>
6880
6881 PR tree-optimization/47615
6882 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
6883 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
6884 (run_scc_vn): Initialize it.
6885 (visit_reference_op_load): Use it.
6886 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
6887
6888 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6889
6890 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
6891 DImode trapping arithmetic libfuncs.
6892
6893 2011-02-07 Richard Guenther <rguenther@suse.de>
6894
6895 PR tree-optimization/47621
6896 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
6897 two duplicates ...
6898 (execute_update_addresses_taken): ... here. Make it more
6899 conservative in what we accept.
6900
6901 2011-02-06 Joseph Myers <joseph@codesourcery.com>
6902
6903 * config/sparc/freebsd.h (ASM_SPEC): Define.
6904 * config/sparc/vxworks.h (ASM_SPEC): Define.
6905
6906 2011-02-06 Joseph Myers <joseph@codesourcery.com>
6907
6908 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
6909
6910 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
6911
6912 * doc/invoke.texi: Remove reference to compiler internals from
6913 user documentation.
6914
6915 * reg-notes.def: Remove REG_VALUE_PROFILE.
6916 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
6917
6918 2011-02-05 Jakub Jelinek <jakub@redhat.com>
6919
6920 PR middle-end/47610
6921 * varasm.c (default_section_type_flags): If decl is NULL,
6922 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
6923
6924 2011-02-05 Jie Zhang <jie@codesourcery.com>
6925
6926 PR debug/42631
6927 * web.c (entry_register): Don't clobber the number of the
6928 first uninitialized reference in used[].
6929
6930 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
6931
6932 PR tree-optimization/46194
6933 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
6934 (build_classic_dist_vector_1): Do not represent classic distance
6935 vectors when the access functions are variating in different loops.
6936
6937 2011-02-04 Joseph Myers <joseph@codesourcery.com>
6938
6939 * config/mips/iris6.opt: New.
6940 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
6941
6942 2011-02-04 Richard Henderson <rth@redhat.com>
6943 Steve Ellcey <sje@cup.hp.com>
6944
6945 PR target/46997
6946 * config/ia64/predicates.md (mux1_brcst_element): New.
6947 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
6948 * config/ia64/ia64.c (ia64_unpack_assemble): New.
6949 (ia64_unpack_sign): New.
6950 (ia64_expand_unpack): Rewrite using new routines.
6951 (ia64_expand_widen_sum): Ditto.
6952 (ia64_expand_dot_prod_v8qi): Ditto.
6953 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
6954 routines, add endian check.
6955 (pmpy2_even): Rename from pmpy2_r, add endian check.
6956 (pmpy2_odd): Rename from pmpy2_l, add endian check.
6957 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
6958 (vec_widen_smult_hi_v4hi): Ditto.
6959 (vec_widen_umult_lo_v4hi): Ditto.
6960 (vec_widen_umult_hi_v4hi): Ditto.
6961 (mulv2si3): Change endian checks.
6962 (sdot_prodv4hi): Rewrite with new calls.
6963 (udot_prodv4hi): New.
6964 (vec_pack_ssat_v4hi): Add endian check.
6965 (vec_pack_usat_v4hi): Ditto.
6966 (vec_pack_ssat_v2si): Ditto.
6967 (max1_even): Rename from max1_r, add endian check.
6968 (max1_odd): Rename from max1_l, add endian check.
6969 (*mux1_rev): Format change.
6970 (*mux1_mix): Ditto.
6971 (*mux1_shuf): Ditto.
6972 (*mux1_alt): Ditto.
6973 (*mux1_brcst_v8qi): Use new predicate.
6974 (vec_extract_evenv8qi): Remove endian check.
6975 (vec_extract_oddv8qi): Ditto.
6976 (vec_interleave_lowv4hi): Format change.
6977 (vec_interleave_highv4hi): Ditto.
6978 (mix2_even): Rename from mix2_r, add endian check.
6979 (mix2_odd): Rename from mux2_l, add endian check.
6980 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
6981 (vec_extract_evenodd_helper): Format change.
6982 (vec_extract_evenv4hi): Remove endian check.
6983 (vec_extract_oddv4hi): Remove endian check.
6984 (vec_interleave_lowv2si): Format change.
6985 (vec_interleave_highv2si): Format change.
6986 (vec_initv2si): Remove endian check.
6987 (vecinit_v2si): Add endian check.
6988 (reduc_splus_v2sf): Add endian check.
6989 (reduc_smax_v2sf): Ditto.
6990 (reduc_smin_v2sf): Ditto.
6991 (vec_initv2sf): Remove endian check.
6992 (fpack): Add endian check.
6993 (fswap): Add endian check.
6994 (vec_interleave_highv2sf): Add endian check.
6995 (vec_interleave_lowv2sf): Add endian check.
6996 (fmix_lr): Add endian check.
6997 (vec_setv2sf): Format change.
6998 (*vec_extractv2sf_0_be): Use shift to extract operand.
6999 (*vec_extractv2sf_1_be): New.
7000 (vec_pack_trunc_v4hi): Add endian check.
7001 (vec_pack_trunc_v2si): Format change.
7002
7003 2011-02-04 Jakub Jelinek <jakub@redhat.com>
7004
7005 PR inline-asm/23200
7006 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
7007 do bb, locus and block comparison and disallow loads if it is not set.
7008 (stmt_is_replaceable_p): New function.
7009 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7010 callers.
7011 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7012 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7013 SSA_NAME_DEF_STMT.
7014 * tree-flow.h (stmt_is_replaceable_p): New prototype.
7015
7016 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7017
7018 * config/rs6000/xilinx.opt: New.
7019 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7020
7021 2011-02-04 Joseph Myers <joseph@codesourcery.com>
7022
7023 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7024
7025 2011-02-03 Anatoly Sokolov <aesok@post.ru>
7026
7027 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7028 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7029 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7030 secondary_reload_info, xtensa_secondary_reload): Remove.
7031 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7032 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7033 (xtensa_preferred_reload_class): Make static. Change return and
7034 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7035 Use CONST_DOUBLE_P predicate.
7036 (xtensa_preferred_output_reload_class): New function.
7037 (xtensa_secondary_reload): Make static.
7038
7039 2011-02-03 Joseph Myers <joseph@codesourcery.com>
7040
7041 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7042 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7043 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7044
7045 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7046
7047 PR middle-end/31490
7048 * output.h (SECTION_RELRO): Define.
7049 (SECTION_MACH_DEP): Adjust.
7050 (get_variable_section): New prototype.
7051 * varpool.c (varpool_finalize_named_section_flags): New function.
7052 (varpool_assemble_pending_decls): Call it.
7053 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7054 * cgraphunit.c (cgraph_output_in_order): Call
7055 varpool_finalize_named_section_flags.
7056 * varasm.c (get_section): Allow section flags conflicts between
7057 relro and read-only sections if the section hasn't been declared yet.
7058 Set SECTION_OVERRIDE after diagnosing section type conflict.
7059 (get_variable_section): No longer static.
7060 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7061 readonly sections that need relocations.
7062 (decl_readonly_section_1): New function.
7063 (decl_readonly_section): Use it.
7064
7065 Revert:
7066 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7067 Steve Ellcey <sje@cup.hp.com>
7068
7069 PR middle-end/31490
7070 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7071 if section attribute used.
7072
7073 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7074
7075 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7076 * config/darwin.c (SECTION_NO_ANCHOR): Define.
7077 (darwin_init_sections): Remove assertion.
7078
7079 2011-02-03 Nick Clifton <nickc@redhat.com>
7080
7081 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7082 lt and ge.
7083 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7084 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7085 instead of "n" and "pz".
7086 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7087 CC_FLAG_S.
7088
7089 2011-02-03 Jakub Jelinek <jakub@redhat.com>
7090
7091 PR target/47312
7092 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7093 fma, expand FMA_EXPR as fma{,f,l} call.
7094
7095 PR lto/47274
7096 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7097 copy them into a unsigned char variable and pass address of it to
7098 lto_output_data_stream.
7099
7100 PR target/47564
7101 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7102 around backend_init_target and lang_dependent_init_target calls.
7103 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7104 (verify_cgraph_node): Don't call set_cfun here. Use
7105 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7106 Set error_found for incorrectly represented calls to thunks.
7107
7108 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7109
7110 PR debug/43092
7111 PR rtl-optimization/43494
7112 * rtl.h (for_each_inc_dec_fn): New type.
7113 (for_each_inc_dec): Declare.
7114 * rtlanal.c (struct for_each_inc_dec_ops): New type.
7115 (for_each_inc_dec_find_inc_dec): New fn.
7116 (for_each_inc_dec_find_mem): New fn.
7117 (for_each_inc_dec): New fn.
7118 * dse.c (struct insn_size): Remove.
7119 (replace_inc_dec, replace_inc_dec_mem): Remove.
7120 (emit_inc_dec_insn_before): New fn.
7121 (check_for_inc_dec): Use it, along with for_each_inc_dec.
7122 (canon_address): Pass mem modes to cselib_lookup.
7123 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
7124 (cselib_lookup_from_insn): Likewise.
7125 (cselib_subst_to_values): Likewise.
7126 * cselib.c (find_slot_memmode): New var.
7127 (cselib_find_slot): New fn. Use it instead of
7128 htab_find_slot_with_hash everywhere.
7129 (entry_and_rtx_equal_p): Use find_slot_memmode.
7130 (autoinc_split): New fn.
7131 (rtx_equal_for_cselib_p): Rename and implement in terms of...
7132 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
7133 Deal with autoinc. Special-case recursion into MEMs.
7134 (cselib_hash_rtx): Likewise.
7135 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
7136 address and MEM modes.
7137 (cselib_subst_to_values): Add memmode, pass it on.
7138 Deal with autoinc.
7139 (cselib_lookup): Add memmode argument, pass it on.
7140 (cselib_lookup_from_insn): Add memmode.
7141 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7142 (struct cselib_record_autoinc_data): New.
7143 (cselib_record_autoinc_cb): New fn.
7144 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
7145 mode to cselib_lookup. Reset autoinced REGs here instead of...
7146 (cselib_process_insn): ... here.
7147 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7148 to cselib_lookup.
7149 (add_uses): Likewise, also to cselib_subst_to_values.
7150 (add_stores): Likewise.
7151 * sched-deps.c (add_insn_mem_dependence): Pass mode to
7152 cselib_subst_to_values.
7153 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
7154 * gcse.c (do_local_cprop): Adjusted.
7155 * postreload.c (reload_cse_simplify_set): Adjusted.
7156 (reload_cse_simplify_operands): Adjusted.
7157 * sel-sched-dump (debug_mem_addr_value): Pass mode.
7158
7159 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
7160
7161 PR tree-optimization/45122
7162 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7163 unsafe assumptions when there's more than one loop exit.
7164
7165 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7166
7167 PR target/47272
7168 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7169 Document using vector double with the load/store builtins, and
7170 that the load/store builtins always use Altivec instructions.
7171
7172 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7173 to use altivec memory instructions, even on VSX.
7174 (vector_altivec_store_<mode>): Ditto.
7175
7176 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7177 function.
7178
7179 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7180 V2DF, V2DI support to load/store overloaded builtins.
7181
7182 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7183 altivec load/store builtins for V2DF/V2DI types.
7184
7185 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7186 set avoid indexed addresses on power6 if -maltivec.
7187 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7188 vector_altivec_load/vector_altivec_store builtins.
7189 (altivec_expand_st_builtin): Ditto.
7190 (altivec_expand_builtin): Add VSX memory builtins.
7191 (rs6000_init_builtins): Add V2DI types to internal types.
7192 (altivec_init_builtins): Add support for V2DF/V2DI altivec
7193 load/store builtins.
7194 (rs6000_address_for_altivec): Insure memory address is appropriate
7195 for Altivec.
7196
7197 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7198 vec_vsx_ld and vec_vsx_st.
7199 (vsx_store_<mode>): Ditto.
7200
7201 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7202 variables to hold long long types for VSX vector memory builtins.
7203 (RS6000_BTI_unsigned_long_long): Ditto.
7204 (long_long_integer_type_internal_node): Ditti.
7205 (long_long_unsigned_type_internal_node): Ditti.
7206
7207 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7208 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7209 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7210
7211 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7212 short cuts.
7213 (vec_vsx_st): Ditto.
7214
7215 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7216
7217 * config/pa/pa-hpux10.opt: New.
7218 * config/hpux11.opt (pthread): New Driver option.
7219 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7220 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7221
7222 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7223
7224 * config/ia64/vms.opt: New.
7225 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7226
7227 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7228
7229 PR target/47580
7230 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7231 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
7232 generator functions.
7233 (vsx_floatuns<VSi><mode>2): Ditto.
7234 (vsx_fix_trunc<mode><VSi>2): Ditto.
7235 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
7236
7237 2011-02-02 Joseph Myers <joseph@codesourcery.com>
7238
7239 * config/i386/djgpp.opt (posix): New Driver option.
7240
7241 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
7242
7243 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
7244 Move to the unsupported targets list.
7245
7246 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
7247
7248 PR rtl-optimization/47525
7249 * df-scan.c: Update copyright years.
7250 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
7251 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
7252
7253 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7254
7255 * config/i386/sysv4.h (TARGET_VERSION): Remove.
7256 (SUBTARGET_RETURN_IN_MEMORY): Remove.
7257 (ASM_OUTPUT_ASCII): Remove.
7258 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
7259
7260 2011-02-02 Jeff Law <law@redhat.com>
7261
7262 PR middle-end/47543
7263 * reload.c (find_reloads_address): Handle reg+d address where both
7264 components are invalid by reloading the entire address.
7265
7266 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7267 Richard Guenther <rguenther@suse.de>
7268
7269 PR tree-optimization/40979
7270 PR bootstrap/47044
7271 * passes.c (init_optimization_passes): After LIM call copy_prop
7272 and DCE to clean up.
7273 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
7274
7275 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
7276
7277 PR tree-optimization/47576
7278 PR tree-optimization/47555
7279 * doc/invoke.texi (scev-max-expr-complexity): Documented.
7280 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7281 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
7282 * tree-scalar-evolution.c (follow_ssa_edge): Use
7283 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
7284
7285 2011-02-02 Richard Guenther <rguenther@suse.de>
7286
7287 PR tree-optimization/47566
7288 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
7289
7290 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7291
7292 PR debug/47106
7293 PR debug/47402
7294 * tree-inline.c (declare_return_variable): Remove unused caller
7295 variable.
7296
7297 PR debug/47106
7298 PR debug/47402
7299 * tree-flow-inline.h (clear_is_used, is_used_p): New.
7300 * cfgexpand.c (account_used_vars_for_block): Use them.
7301 * tree-nrv.c (tree_nrv): Likewise.
7302 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7303 (dump_scope_block): Likewise.
7304 (remove_unused_locals): Likewise.
7305
7306 PR debug/47106
7307 PR debug/47402
7308 * tree-inline.c (declare_return_variable): Add result decl to
7309 local decls only once.
7310 * gimple-low.c (record_vars_into): Mark newly-created variables
7311 as referenced.
7312
7313 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
7314
7315 PR debug/47498
7316 PR debug/47501
7317 PR debug/45136
7318 PR debug/45130
7319 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7320 debug insns.
7321 (no_real_insns_p, schedule_block, set_priorities): Drop special
7322 treatment of boundary debug insns.
7323 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7324 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
7325 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7326 (BOUNDARY_DEBUG_INSN_P): Likewise.
7327 (SCHEDULE_DEBUG_INSN_P): Likewise.
7328 * sched-rgn.c (init_ready_list): Drop special treatment of
7329 boundary debug insns.
7330 * final.c (rest_of_clean_state): Clear notes' BB.
7331
7332 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7333
7334 * config/openbsd.opt (assert=): New Driver option.
7335
7336 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7337
7338 * config/i386/nto.opt: New.
7339 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
7340
7341 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7342
7343 * config/i386/netware.opt: New.
7344 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
7345
7346 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7347
7348 * config/interix.opt (posix): New Driver option.
7349
7350 2011-02-01 DJ Delorie <dj@redhat.com>
7351
7352 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
7353
7354 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
7355 class for A0/A1.
7356
7357 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
7358
7359 PR tree-optimization/47561
7360 * toplev.c (process_options): Print the Graphite flags. Add
7361 flag_loop_flatten to the list of options requiring Graphite.
7362
7363 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7364
7365 * config/i386/cygming.opt (posix): New Driver option.
7366
7367 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7368
7369 * config/arm/vxworks.opt: New.
7370 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
7371
7372 2011-02-01 Joseph Myers <joseph@codesourcery.com>
7373
7374 * config/alpha/elf.opt: New.
7375 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
7376 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
7377
7378 2011-02-01 Richard Guenther <rguenther@suse.de>
7379
7380 PR tree-optimization/47559
7381 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
7382 store-motion on references that can throw.
7383
7384 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
7385
7386 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
7387 * tree-pass.h (TDF_CSELIB): New macro.
7388 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
7389 cselib_lookup): Check for it rather than for TDF_DETAILS.
7390
7391 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
7392
7393 PR driver/47547
7394 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
7395 is HOST_BIT_BUCKET.
7396
7397 * opts.c (finish_options): Don't add x_aux_base_name if it is
7398 HOST_BIT_BUCKET.
7399
7400 2011-02-01 Richard Guenther <rguenther@suse.de>
7401
7402 PR tree-optimization/47555
7403 Revert
7404 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
7405
7406 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7407
7408 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
7409
7410 PR gcc/46692
7411 * config/lm32/t-lm32: Add multilib for all CPU options.
7412
7413 2011-02-01 Richard Guenther <rguenther@suse.de>
7414
7415 PR tree-optimization/47541
7416 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7417 sure to have a field at offset zero.
7418
7419 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7420
7421 * config/arc/arc.opt (EB, EL): New Driver options.
7422
7423 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7424
7425 * config/alpha/osf5.opt: New.
7426 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
7427
7428 2011-01-31 Joseph Myers <joseph@codesourcery.com>
7429
7430 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
7431
7432 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
7433
7434 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
7435 -floop-interchange.
7436 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
7437 is an alias of -floop-interchange and that it requires the
7438 Graphite infrastructure.
7439 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
7440 flag_loop_interchange based on the value of flag_tree_loop_linear.
7441
7442 2011-01-31 Jakub Jelinek <jakub@redhat.com>
7443 Richard Guenther <rguenther@suse.de>
7444
7445 PR tree-optimization/47538
7446 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
7447 type instead of r1type, except for comparisons. For right
7448 shifts and comparisons punt if there are mismatches in
7449 sizetype vs. non-sizetype types.
7450
7451 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7452
7453 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7454 avx_runtime.
7455
7456 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7457
7458 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
7459 version number.
7460 * configure: Regenerate.
7461
7462 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7463
7464 * configure.ac (gcc_cv_ld_static_option): Define.
7465 (gcc_cv_ld_dynamic_option): Define.
7466 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
7467 instead.
7468 (HAVE_LD_STATIC_DYNAMIC): Update message.
7469 (LD_STATIC_OPTION): Define.
7470 (LD_DYNAMIC_OPTION): Define.
7471 * configure: Regenerate.
7472 * config.in: Regenerate.
7473 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
7474 HAVE_LD_STATIC_DYNAMIC]: Use them.
7475
7476 2011-01-31 Nick Clifton <nickc@redhat.com>
7477
7478 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
7479 registers inside interrupt handlers if the handler is not a leaf
7480 function.
7481
7482 2011-01-31 Nick Clifton <nickc@redhat.com>
7483
7484 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
7485 reg_renumber returning an INVALID_REGNUM.
7486
7487 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
7488
7489 PR libgcj/44341
7490 * doc/install.texi: Document host options discarded when cross
7491 configuring target libraries.
7492
7493 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
7494
7495 Reverted:
7496 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
7497 PR debug/45136
7498 PR debug/45130
7499 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7500 debug insns.
7501 (no_real_insns_p, schedule_block, set_priorities): Drop special
7502 treatment of boundary debug insns.
7503 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7504 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7505 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7506 (BOUNDARY_DEBUG_INSN_P): Likewise.
7507 (SCHEDULE_DEBUG_INSN_P): Likewise.
7508 * sched-rgn.c (init_ready_list): Drop special treatment of
7509 boundary debug insns.
7510 * final.c (rest_of_clean-state): Clear notes' BB.
7511
7512 2011-01-31 Alan Modra <amodra@gmail.com>
7513
7514 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
7515 toc relative expressions as we do in print_operand_address.
7516
7517 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
7518
7519 * doc/extend.texi: Follow spelling conventions.
7520 * doc/invoke.texi: Fix a typo.
7521
7522 2011-01-30 Joseph Myers <joseph@codesourcery.com>
7523
7524 * config/hpux11.opt: New.
7525 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
7526 ia64*-*-hpux*): Use hpux11.opt.
7527
7528 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
7529
7530 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
7531 to tmake_file.
7532
7533 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7534
7535 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
7536 support sites.
7537
7538 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7539
7540 * doc/install.texi (Binaries): Remove outdated reference for
7541 Motorola 68HC11/68HC12 downloads.
7542
7543 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
7544
7545 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
7546 Drepper's paper.
7547
7548 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
7549
7550 PR bootstrap/47147
7551 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
7552 used by NetBSD.
7553
7554 2011-01-28 Ahmad Sharif <asharif@google.com>
7555
7556 * value-prof.c (check_counter): Corrected error message.
7557
7558 2011-01-29 Jie Zhang <jie@codesourcery.com>
7559
7560 * config/arm/arm.c (arm_legitimize_reload_address): New.
7561 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
7562 arm_legitimize_reload_address.
7563 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
7564
7565 2011-01-28 Ian Lance Taylor <iant@google.com>
7566
7567 * godump.c (go_define): Ignore macros whose definitions include
7568 two adjacent operands.
7569
7570 2011-01-28 Jakub Jelinek <jakub@redhat.com>
7571
7572 PR target/42894
7573 * varasm.c (force_const_mem): Store copy of x in desc->constant
7574 instead of x itself.
7575 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
7576 itself into REG_EQUAL note.
7577
7578 2011-01-28 Joseph Myers <joseph@codesourcery.com>
7579
7580 * config/freebsd.opt (posix, rdynamic): New Driver options.
7581
7582 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7583
7584 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
7585 -Bstatic/-Bdynamic.
7586 * configure: Regenerate.
7587
7588 2011-01-27 Joseph Myers <joseph@codesourcery.com>
7589
7590 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
7591 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
7592
7593 2011-01-27 Anatoly Sokolov <aesok@post.ru>
7594
7595 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
7596 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
7597 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7598 (s390_preferred_reload_class): Make static. Change return and
7599 'rclass' argument type to reg_class_t.
7600
7601 2011-01-27 Jan Hubicka <jh@suse.cz>
7602
7603 PR middle-end/46949
7604 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
7605 (process_function_and_variable_attributes): Check defined weakrefs.
7606
7607 2011-01-27 Martin Jambor <mjambor@suse.cz>
7608
7609 PR tree-optimization/47228
7610 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
7611 build_ref_for_offset.
7612
7613 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7614
7615 * config/spu/spu-elf.h (ASM_SPEC): Remove.
7616
7617 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
7618
7619 PR rtl-optimization/46856
7620 * postreload.c (reload_combine_recognize_const_pattern): Do not
7621 separate cc0 setter and user on cc0 targets.
7622
7623 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
7624
7625 PR c/43082
7626 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
7627 passed a VOID_TYPE expression, immediately emit an error and
7628 return error_mark_node.
7629
7630 2011-01-26 Jeff Law <law@redhat.com>
7631
7632 PR rtl-optimization/47464
7633 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
7634 rather than may_trap_p as needed.
7635
7636 2011-01-26 DJ Delorie <dj@redhat.com>
7637
7638 PR rtl-optimization/46878
7639 * combine.c (insn_a_feeds_b): Check for the implicit cc0
7640 setter/user dependency as well.
7641
7642 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
7643
7644 PR rtl-optimization/44469
7645 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
7646 after removing trivially dead basic blocks.
7647
7648 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7649
7650 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
7651 * config/frv/frv.h (LINK_SPEC): Likewise.
7652 * config/i386/netware.h (LINK_SPEC): Likewise.
7653 * config/m68k/linux.h (ASM_SPEC): Likewise.
7654 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
7655 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7656 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7657 * config/sparc/linux.h (ASM_SPEC): Likewise.
7658 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7659 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7660
7661 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7662
7663 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
7664 * config/frv/frv.h (ASM_SPEC): Likewise.
7665 * config/m68k/linux.h (ASM_SPEC): Likewise.
7666 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7667 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
7668 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7669 * config/sparc/linux.h (ASM_SPEC): Likewise.
7670 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7671 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7672
7673 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7674
7675 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
7676 * config/frv/frv.h (LINK_SPEC): Likewise.
7677 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7678
7679 2011-01-26 Joseph Myers <joseph@codesourcery.com>
7680
7681 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
7682 * config/frv/frv.h (ASM_SPEC): Likewise.
7683 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
7684 * config/m68k/linux.h (ASM_SPEC): Likewise.
7685 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7686 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7687 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7688 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
7689 * config/sparc/linux.h (ASM_SPEC): Likewise.
7690 * config/sparc/linux64.h (ASM_SPEC): Likewise.
7691 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7692 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
7693
7694 2011-01-26 Steve Ellcey <sje@cup.hp.com>
7695
7696 PR target/46997
7697 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
7698 (*mux2): Ditto.
7699 (vec_extract_evenodd_help): Ditto.
7700 (vec_extract_evenv4hi): Ditto.
7701 (vec_extract_oddv4hi): Ditto.
7702 (vec_interleave_lowv2si): Ditto.
7703 (vec_interleave_highv2si): Ditto.
7704 (vec_extract_evenv2si): Ditto.
7705 (vec_extract_oddv2si: Ditto.
7706 (vec_pack_trunc_v2si): Ditto.
7707
7708 2011-01-22 Jan Hubicka <jh@suse.cz>
7709
7710 PR target/47237
7711 * cgraph.h (cgraph_local_info): New field can_change_signature.
7712 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
7713 signature can change.
7714 (ipcp_estimate_growth): Call sequence simplify only if calle signature
7715 can change.
7716 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
7717 (cgraph_function_versioning): We can not change signature of functions
7718 that don't allow that.
7719 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
7720 (lto_input_node): Likewise.
7721 * ipa-inline.c (compute_inline_parameters): Compute
7722 local.can_change_signature.
7723 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
7724 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
7725 functions that can not change signature.
7726 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
7727 init_cumulative_args): Do not use local calling conventions
7728 for functions that can not change signature.
7729
7730 2011-01-22 Jan Hubicka <jh@suse.cz>
7731
7732 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
7733
7734 2011-01-26 Richard Guenther <rguenther@suse.de>
7735
7736 PR tree-optimization/47190
7737 * cgraphunit.c (process_common_attributes): New function.
7738 (process_function_and_variable_attributes): Use it.
7739
7740 2011-01-26 Richard Guenther <rguenther@suse.de>
7741
7742 PR lto/47423
7743 * cgraphbuild.c (record_eh_tables): Record reference to personality
7744 function.
7745
7746 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
7747
7748 PR debug/45454
7749 * sel-sched.c (moveup_expr): Don't let debug insns prevent
7750 non-debug insns from moving up.
7751
7752 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7753
7754 PR target/40125
7755 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
7756 t-dlldir{,-x} fragment for build and add it to tmake_file.
7757 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7758 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
7759 * config/i386/t-dlldir: New file.
7760 (SHLIB_DLLDIR): Define.
7761 * config/i386/t-dlldir-x: New file.
7762 (SHLIB_DLLDIR): Define.
7763 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
7764 (SHLIB_INSTALL): Use it.
7765
7766 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
7767
7768 PR target/47246
7769 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
7770 lower bound of the allowed Thumb-2 coprocessor load/store
7771 index range to -256. Add explaining comment.
7772
7773 2011-01-25 Ian Lance Taylor <iant@google.com>
7774
7775 * godump.c (go_define): Improve lexing of macro expansion to only
7776 accept expressions which match Go spec.
7777
7778 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
7779
7780 PR c++/43601
7781 * tree.c (handle_dll_attribute): Handle it.
7782 * doc/extend.texi (@item dllexport): Mention it.
7783 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
7784
7785 2011-01-25 Ian Lance Taylor <iant@google.com>
7786
7787 PR tree-optimization/26854
7788 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
7789 (decl_jump_unsafe): Move higher in file, with no other change.
7790 (bind): Set has_jump_unsafe_decl if appropriate.
7791 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
7792 (check_earlier_gotos): Likewise.
7793 (c_check_switch_jump_warnings): Likewise.
7794
7795 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
7796
7797 * doc/invoke.texi (Warning Options): Add missing hyphen.
7798 (-fprofile-dir): Minor grammatical fixes.
7799 (-fbranch-probabilities): Likewise.
7800
7801 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
7802
7803 PR debug/45136
7804 PR debug/45130
7805 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7806 debug insns.
7807 (no_real_insns_p, schedule_block, set_priorities): Drop special
7808 treatment of boundary debug insns.
7809 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7810 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7811 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7812 (BOUNDARY_DEBUG_INSN_P): Likewise.
7813 (SCHEDULE_DEBUG_INSN_P): Likewise.
7814 * sched-rgn.c (init_ready_list): Drop special treatment of
7815 boundary debug insns.
7816 * final.c (rest_of_clean-state): Clear notes' BB.
7817
7818 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7819
7820 * Makefile.in (LAMBDA_H): Removed.
7821 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
7822 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
7823 lambda-trans.o, and tree-loop-linear.o.
7824 (lto-symtab.o): Remove dependence on LAMBDA_H.
7825 (tree-loop-linear.o): Remove rule.
7826 (lambda-mat.o): Same.
7827 (lambda-trans.o): Same.
7828 (lambda-code.o): Same.
7829 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
7830 (tree-vect-slp.o): Same.
7831 * hwint.h (gcd): Moved here.
7832 (least_common_multiple): Same.
7833 * lambda-code.c: Removed.
7834 * lambda-mat.c: Removed.
7835 * lambda-trans.c: Removed.
7836 * lambda.h: Removed.
7837 * tree-loop-linear.c: Removed.
7838 * lto-symtab.c: Do not include lambda.h.
7839 * omega.c (gcd): Removed.
7840 * passes.c (init_optimization_passes): Remove pass_linear_transform.
7841 * tree-data-ref.c (print_lambda_vector): Moved here.
7842 (lambda_vector_copy): Same.
7843 (lambda_matrix_copy): Same.
7844 (lambda_matrix_id): Same.
7845 (lambda_vector_first_nz): Same.
7846 (lambda_matrix_row_add): Same.
7847 (lambda_matrix_row_exchange): Same.
7848 (lambda_vector_mult_const): Same.
7849 (lambda_vector_negate): Same.
7850 (lambda_matrix_row_negate): Same.
7851 (lambda_vector_equal): Same.
7852 (lambda_matrix_right_hermite): Same.
7853 * tree-data-ref.h: Do not include lambda.h.
7854 (lambda_vector): Moved here.
7855 (lambda_matrix): Same.
7856 (dependence_level): Same.
7857 (lambda_transform_legal_p): Removed declaration.
7858 (lambda_collect_parameters): Same.
7859 (lambda_compute_access_matrices): Same.
7860 (lambda_vector_gcd): Same.
7861 (lambda_vector_new): Same.
7862 (lambda_vector_clear): Same.
7863 (lambda_vector_lexico_pos): Same.
7864 (lambda_vector_zerop): Same.
7865 (lambda_matrix_new): Same.
7866 * tree-flow.h (least_common_multiple): Removed declaration.
7867 * tree-parloops.c (lambda_trans_matrix): Moved here.
7868 (LTM_MATRIX): Same.
7869 (LTM_ROWSIZE): Same.
7870 (LTM_COLSIZE): Same.
7871 (LTM_DENOMINATOR): Same.
7872 (lambda_trans_matrix_new): Same.
7873 (lambda_matrix_vector_mult): Same.
7874 (lambda_transform_legal_p): Same.
7875 * tree-pass.h (pass_linear_transform): Removed declaration.
7876 * tree-ssa-loop.c (tree_linear_transform): Removed.
7877 (gate_tree_linear_transform): Removed.
7878 (pass_linear_transform): Removed.
7879 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
7880 flag_loop_interchange.
7881
7882 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7883
7884 PR tree-optimization/47265
7885 PR tree-optimization/47443
7886 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
7887 if name still has some uses.
7888
7889 2011-01-25 Martin Jambor <mjambor@suse.cz>
7890
7891 PR tree-optimization/47382
7892 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
7893 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
7894
7895 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
7896
7897 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
7898 sjlj_except_unwind_info.
7899
7900 2011-01-25 Richard Guenther <rguenther@suse.de>
7901
7902 PR tree-optimization/47426
7903 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
7904 visible functions results escape.
7905
7906 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7907
7908 PR target/45701
7909 * config/arm/arm.c (any_sibcall_uses_r3): New function.
7910 (arm_get_frame_offsets): Use it.
7911
7912 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7913 Jakub Jelinek <jakub@redhat.com>
7914
7915 PR tree-optimization/47271
7916 * tree-if-conv.c (bb_postdominates_preds): New.
7917 (if_convertible_bb_p): Call bb_postdominates_preds.
7918 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
7919 (predicate_scalar_phi): Call bb_postdominates_preds.
7920
7921 2011-01-25 Nick Clifton <nickc@redhat.com>
7922
7923 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
7924 * config/rx/rx.c (rx_function_value): Likewise.
7925 (rx_promote_function_mode): Likewise.
7926 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
7927 in order to make it legitimate.
7928 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
7929 make sure that the first operand is the same as the result register.
7930 (addsi3_unspec): Delete.
7931 (subdi3): Do not accept immediate operands.
7932 (subdi3_internal): Likewise.
7933
7934 2011-01-25 Jeff Law <law@redhat.com>
7935
7936 PR rtl-optimization/37273
7937 * ira-costs.c (scan_one_insn): Detect constants living in memory and
7938 handle them like argument loads from stack slots. Do not double
7939 count memory for memory constants and argument loads from stack slots.
7940
7941 2011-01-25 Jakub Jelinek <jakub@redhat.com>
7942
7943 PR tree-optimization/47427
7944 PR tree-optimization/47428
7945 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
7946 coalesce if the new root var would be TREE_READONLY.
7947
7948 2011-01-25 Richard Guenther <rguenther@suse.de>
7949
7950 PR middle-end/47414
7951 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
7952 correct type for TBAA.
7953
7954 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7955
7956 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
7957 (close_phi_written_to_memory): Call for_each_index with
7958 dr_indices_valid_in_loop.
7959
7960 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7961
7962 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
7963 when it is initialized.
7964
7965 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7966
7967 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
7968 call to graphite_find_data_references_in_stmt.
7969 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
7970 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
7971 call to graphite_find_data_references_in_stmt.
7972 (analyze_drs_in_stmts): Same.
7973 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
7974 in which the scalar analysis of indices is performed.
7975 (create_data_ref): Same. Update call to dr_analyze_indices.
7976 (find_data_references_in_stmt): Update call to create_data_ref.
7977 (graphite_find_data_references_in_stmt): Same.
7978 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
7979 declaration.
7980 (create_data_ref): Same.
7981 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
7982 call to create_data_ref.
7983
7984 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7985
7986 * graphite-sese-to-poly.c (build_poly_scop): Move
7987 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
7988
7989 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7990
7991 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
7992 VAR_DECL, PARM_DECL, and RESULT_DECL.
7993
7994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
7995
7996 * graphite-dependences.c (reduction_dr_1): Allow several reductions
7997 in a reduction PBB.
7998 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
7999 that have already been marked as PBB_IS_REDUCTION.
8000
8001 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8002
8003 * graphite-scop-detection.c (same_close_phi_node): New.
8004 (remove_duplicate_close_phi): New.
8005 (make_close_phi_nodes_unique): New.
8006 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8007
8008 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8009
8010 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8011 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8012 of both data references to be the same.
8013
8014 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8015
8016 * graphite-dependences.c (build_lexicographical_constraint): Remove
8017 the gdim parameter.
8018 (build_lexicographical_constraint): Adjust call to
8019 ppl_powerset_is_empty.
8020 (dependence_polyhedron): Same.
8021 (graphite_legal_transform_dr): Same.
8022 (graphite_carried_dependence_level_k): Same.
8023 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8024 parameter.
8025 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8026
8027 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8028
8029 * graphite-sese-to-poly.c
8030 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8031 (close_phi_written_to_memory): New.
8032 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8033 and unshare_expr.
8034
8035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8036
8037 * doc/install.texi: Update the expected version number of PPL to 0.11.
8038 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8039 #if PPL_VERSION_MINOR < 11.
8040
8041 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8042
8043 * graphite-dependences.c: Include graphite-cloog-util.h.
8044 (new_poly_ddr): Inlined into dependence_polyhedron.
8045 (free_poly_ddr): Moved close by new_poly_ddr.
8046 (dependence_polyhedron_1): Renamed dependence_polyhedron.
8047 Early return NULL when ppl_powerset_is_empty returns true.
8048 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
8049 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
8050 (graphite_legal_transform_dr): Call new_poly_ddr.
8051 (graphite_carried_dependence_level_k): Same.
8052 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
8053 (dot_transformed_deps_stmt_1): Removed.
8054 (dot_deps_stmt_1): Call dot_deps_stmt_2.
8055 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
8056 (dot_deps_1): Call dot_deps_2.
8057 * Makefile.in (graphite-dependences.o): Add missing dependence on
8058 graphite-cloog-util.h.
8059
8060 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8061
8062 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8063 (build_lexicographical_constraint): Same.
8064 (dependence_polyhedron_1): Same.
8065 (graphite_legal_transform_dr): Same.
8066 (graphite_carried_dependence_level_k): Same.
8067 * graphite-ppl.c (ppl_powerset_is_empty): New.
8068 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8069 * tree-data-ref.c (dump_data_reference): Print the basic block index.
8070
8071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8072
8073 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8074 the "a followed by b" relation and document it.
8075
8076 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8077
8078 * graphite-dependences.c (build_lexicographical_constraint): Stop the
8079 iteration when the bag of constraints is empty.
8080
8081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8082
8083 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8084
8085 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8086
8087 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8088 nest and two loop depths as parameters.
8089 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8090 lst_perfect_nestify.
8091
8092 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8093
8094 * graphite-dependences.c (print_pddr): Call
8095 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8096
8097 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
8098
8099 * graphite-ppl.c (debug_gmp_value): New.
8100 * graphite-ppl.h (debug_gmp_value): Declared.
8101
8102 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
8103
8104 * doc/install.texi: Document availability of cloog-0.16.
8105
8106 2011-01-25 Vladimir Kargov <kargov@gmail.com>
8107
8108 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8109 invalid postdominance info.
8110
8111 2011-01-24 Jan Hubicka <jh@suse.cz>
8112
8113 PR c/21659
8114 * doc/extend.texi (weak pragma): Drop claim that it must
8115 appear before definition.
8116 * varasm.c (merge_weak, declare_weak): Only sanity check
8117 that DECL is not output at a time it is declared weak.
8118
8119 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
8120
8121 * machmode.def: Fixed comments.
8122
8123 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
8124
8125 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8126
8127 2011-01-24 Paul Koning <ni1d@arrl.net>
8128
8129 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8130 WORDS_BIG_ENDIAN.
8131
8132 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
8133
8134 PR target/46519
8135 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8136 (block_info): Add scanned and prev.
8137 (move_or_delete_vzeroupper_2): Return if the basic block
8138 has been scanned and the upper 128bit state is unchanged
8139 from the last scan.
8140 (move_or_delete_vzeroupper_1): Return true if the exit
8141 state is changed.
8142 (move_or_delete_vzeroupper): Visit basic blocks using the
8143 work-list based algorithm based on vt_find_locations in
8144 var-tracking.c.
8145
8146 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8147
8148 2011-01-24 Nick Clifton <nickc@redhat.com>
8149
8150 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8151 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8152 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
8153 then define __v850e1__.
8154 * doc/invoke.texi: Document -mv850es.
8155
8156 2011-01-24 Richard Henderson <rth@redhat.com>
8157
8158 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8159 compound unordered comparisons.
8160 * config/rx/rx.c (rx_split_fp_compare): Remove.
8161 * config/rx/rx-protos.h: Update.
8162 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8163 (cbranchsf4): Don't call rx_split_fp_compare.
8164 (*cbranchsf4): Use rx_split_cbranch.
8165 (*cmpsf): Don't accept "i" constraint.
8166 (*conditional_branch): Only valid after reload.
8167 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
8168
8169 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8170
8171 PR target/47385
8172 * config/rs6000/altivec.md (vector constant splitters): Add
8173 support for creating vector single precision constants if -mvsx is
8174 used and we would create the constant using Altivec primitives.
8175
8176 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
8177 Richard Sandiford <rdsandiford@googlemail.com>
8178
8179 PR rtl-optimization/47166
8180 * reload1.c (emit_reload_insns): Disable the spill_reg_store
8181 mechanism for PRE_MODIFY and POST_MODIFY.
8182 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8183 reloadreg.
8184
8185 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
8186
8187 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8188
8189 2011-01-22 Jan Hubicka <jh@suse.cz>
8190
8191 PR lto/47333
8192 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8193
8194 2011-01-22 Jan Hubicka <jh@suse.cz>
8195
8196 PR tree-optimization/43884
8197 PR lto/44334
8198 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8199 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8200
8201 2011-01-22 Anatoly Sokolov <aesok@post.ru>
8202
8203 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8204 * config/s390/s390.c (s390_register_move_cost,
8205 s390_memory_move_cost): New.
8206 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8207
8208 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8209
8210 PR middle-end/47401
8211 * except.c (sjlj_assign_call_site_values): Move setting the
8212 crtl->uses_eh_lsda flag to ...
8213 (sjlj_mark_call_sites): ... here.
8214 (sjlj_emit_function_enter): Support NULL dispatch label.
8215 (sjlj_build_landing_pads): In a function with no landing pads
8216 that still has must-not-throw regions, generate code to register
8217 a personality function with empty LSDA.
8218
8219 2011-01-21 Richard Henderson <rth@redhat.com>
8220
8221 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8222
8223 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8224
8225 * compare-elim.c: New file.
8226 * Makefile.in (OBJS-common): Add it.
8227 (compare-elim.o): New.
8228 * common.opt (fcompare-elim): New.
8229 * opts.c (default_options_table): Add OPT_fcompare_elim.
8230 * tree-pass.h (pass_compare_elim_after_reload): New.
8231 * passes.c (init_optimization_passes): Add it.
8232 * recog.h: Protect against re-inclusion.
8233 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
8234 * doc/invoke.texi (-fcompare-elim): Document it.
8235 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
8236 * doc/tm.texi: Rebuild.
8237
8238 2011-01-22 Nick Clifton <nickc@redhat.com>
8239
8240 * config/rx/rx.md (cstoresf4): Pass comparison operator to
8241 rx_split_fp_compare.
8242
8243 2011-01-22 Nick Clifton <nickc@redhat.com>
8244
8245 * config/rx/rx.md (UNSPEC_CONST): New.
8246 (deallocate_and_return): Wrap the amount popped off the stack in
8247 an UNSPEC_CONST in order to stop it being rejected by
8248 -mmax-constant-size.
8249 (pop_and_return): Add a "(return)" rtx.
8250 (call): Drop the immediate operand.
8251 (call_internal): Likewise.
8252 (call_value): Likewise.
8253 (call_value_internal): Likewise.
8254 (sibcall_internal): Likewise.
8255 (sibcall_value_internal): Likewise.
8256 (sibcall): Likewise. Generate an explicit call using
8257 sibcall_internal.
8258 (sibcall_value): Likewise.
8259 (mov<>): FAIL if a constant operand is not legitimate.
8260 (addsi3_unpsec): New pattern.
8261
8262 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
8263 (ok_for_max_constant): New function.
8264 (gen_safe_add): New function.
8265 (rx_expand_prologue): Use gen_safe_add.
8266 (rx_expand_epilogue): Likewise.
8267 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
8268 UNSPEC CONSTs.
8269
8270 2011-01-21 Jeff Law <law@redhat.com>
8271
8272 PR tree-optimization/47053
8273 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
8274 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
8275 statements are deleted.
8276 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
8277 is nonempty, then purge dead edges and cleanup the CFG.
8278
8279 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8280
8281 PR debug/47402
8282 Temporarily revert:
8283 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8284 PR debug/47106
8285 * tree-dfa.c (create_var_ann): Mark variable as used.
8286
8287 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8288
8289 PR middle-end/45566
8290 * except.c (convert_to_eh_region_ranges): Emit queued no-region
8291 notes from other section in hot/cold partitioning even if
8292 last_action is -3. Increment call_site_base.
8293
8294 PR rtl-optimization/47366
8295 * fwprop.c (forward_propagate_into): Return bool. If
8296 any changes are made, -fnon-call-exceptions is used and
8297 REG_EH_REGION note is present, call purge_dead_edges
8298 and return true if it purged anything.
8299 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
8300 any EH edges were purged.
8301
8302 2011-01-21 Jeff Law <law@redhat.com>
8303
8304 PR rtl-optimization/41619
8305 * caller-save.c (setup_save_areas): Break out code to determine
8306 which hard regs are live across calls by examining the reload chains
8307 so that it is always used.
8308 Eliminate code which checked REG_N_CALLS_CROSSED.
8309
8310 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8311
8312 PR tree-optimization/47355
8313 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
8314 NOP has non-debug uses beyond PHIs in new_bb.
8315
8316 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
8317
8318 PR debug/47106
8319 * cfgexpand.c (account_used_vars_for_block): Only account vars
8320 that are annotated as used.
8321 (estimated_stack_frame_size): Don't set TREE_USED.
8322 * tree-dfa.c (create_var_ann): Mark variable as used.
8323
8324 2011-01-21 Richard Guenther <rguenther@suse.de>
8325
8326 PR middle-end/47395
8327 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
8328
8329 2011-01-21 Richard Guenther <rguenther@suse.de>
8330
8331 PR tree-optimization/47365
8332 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
8333 (vn_reference_lookup_pieces): Adjust.
8334 (vn_reference_lookup): Likewise.
8335 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
8336 (vn_reference_lookup_3): Only look through kills if in
8337 VN_WALKREWRITE mode.
8338 (vn_reference_lookup_pieces): Adjust.
8339 (vn_reference_lookup): Likewise.
8340 (visit_reference_op_load): Likewise.
8341 (visit_reference_op_store): Likewise.
8342 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
8343 (compute_avail): Likewise.
8344 (eliminate): Likewise.
8345
8346 2011-01-21 Jakub Jelinek <jakub@redhat.com>
8347
8348 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
8349 DECL_IGNORED_P non-reg vars if they are used.
8350
8351 PR tree-optimization/47391
8352 * varpool.c (const_value_known_p): Return false if
8353 decl is volatile.
8354
8355 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
8356
8357 PR bootstrap/47215
8358 * config/i386/i386.c (ix86_local_alignment): Handle
8359 case for va_list_type_node is nil.
8360 (ix86_canonical_va_list_type): Likewise.
8361
8362 2011-01-21 Alan Modra <amodra@gmail.com>
8363
8364 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
8365 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
8366
8367 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8368
8369 * config/arm/arm.md (define_attr type): Rename f_load
8370 and f_store to f_fpa_load and f_fpa_store. Update.
8371 (write_conflict): Deal with rename fallout.
8372 (*push_fp_multi): Likewise.
8373 * config/arm/fpa.md (f_load): Use f_fpa_load.
8374 (f_store): Use f_fpa_store.
8375 (*movsf_fpa): Likewise.
8376 (*movdf_fpa): Likewise.
8377 (*movxf_fpa): Likewise.
8378 (*thumb2_movsf_fpa): Likewise.
8379 (*thumb2_movdf_fpa): Likewise.
8380 (*thumb2_movxf_fpa): Likewise.
8381 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
8382 f_loadd and f_stored.
8383 (*thumb2_movdi_vfp): Likewise.
8384 (*thumb2_movsf_vfp): Fix attribute to f_loads.
8385 (*thumb2_movsi_vfp): Likewise.
8386 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
8387 Use f_loads instead of f_load.
8388 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
8389
8390 2011-01-20 Anatoly Sokolov <aesok@post.ru>
8391
8392 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8393 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
8394 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8395 (xtensa_mode_dependent_address_p): New function.
8396 (constantpool_address_p): Make static. Change return type to bool.
8397 Change argument type to const_rtx. Use CONST_INT_P predicate.
8398
8399 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
8400
8401 PR debug/46583
8402 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
8403
8404 2011-01-20 Jakub Jelinek <jakub@redhat.com>
8405
8406 PR debug/47283
8407 * cfgexpand.c (expand_debug_expr): Instead of generating
8408 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
8409 etc. handling.
8410
8411 2011-01-20 Richard Guenther <rguenther@suse.de>
8412
8413 PR middle-end/47370
8414 * tree-inline.c (remap_gimple_op_r): Recurse manually for
8415 the pointer operand of MEM_REFs.
8416
8417 2011-01-20 Jakub Jelinek <jakub@redhat.com>
8418
8419 PR tree-optimization/46130
8420 * ipa-split.c (consider_split): If return_bb contains non-virtual
8421 PHIs other than for retval or if split_function would not adjust it,
8422 refuse to split.
8423
8424 2011-01-20 Richard Guenther <rguenther@suse.de>
8425
8426 PR tree-optimization/47167
8427 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8428 Revert previous change, only avoid enumeral type changes.
8429
8430 2011-01-19 Mike Stump <mikestump@comcast.net>
8431
8432 * doc/tm.texi.in (BRANCH_COST): Englishify.
8433 * doc/tm.texi (BRANCH_COST): Likewise.
8434
8435 2011-01-19 Dodji Seketeli <dodji@redhat.com>
8436
8437 PR c++/47291
8438 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
8439 (gen_scheduled_generic_parms_dies): New functions.
8440 (gen_struct_or_union_type_die): Schedule template parameters DIEs
8441 generation for the end of CU compilation.
8442 (dwarf2out_finish): Generate template parameters DIEs here.
8443
8444 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8445
8446 PR debug/46240
8447 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
8448 debug bind stmt on merge edges.
8449
8450 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8451
8452 PR debug/47079
8453 PR debug/46724
8454 * function.c (instantiate_expr): Instantiate incoming rtl of
8455 implicit arguments, and recurse on VALUE_EXPRs.
8456 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
8457 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
8458
8459 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
8460
8461 * c-parser.c (c_parser_for_statement): Initialize
8462 collection_expression.
8463
8464 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8465
8466 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
8467
8468 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8469
8470 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
8471 (LINK_SHLIB_SPEC): Don't use %(link_path).
8472 (SUBTARGET_EXTRA_SPECS): Remove link_path.
8473
8474 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8475
8476 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
8477 (NO_SHARED_LIB_SUPPORT): Remove.
8478 (LINK_SHLIB_SPEC): Remove one conditional definition.
8479
8480 2011-01-19 Joseph Myers <joseph@codesourcery.com>
8481
8482 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
8483 %{call_shared}.
8484 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
8485 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
8486 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
8487 %{call_shared} and conditionals on these options not being passed.
8488 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
8489 %{call_shared}.
8490
8491 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8492
8493 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
8494 simplify.
8495
8496 * ipa-split.c: Spelling fixes.
8497
8498 2011-01-19 Richard Henderson <rth@redhat.com>
8499
8500 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
8501 (*mulsi3): Likewise.
8502
8503 * longlong.h [__mn10300__] (count_leading_zeros): New.
8504 [__mn10300__] (umul_ppmm, smul_ppmm): New.
8505 [__mn10300__] (add_ssaaaa, subddmmss): New.
8506 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
8507 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
8508
8509 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8510
8511 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
8512
8513 2011-01-19 Richard Henderson <rth@redhat.com>
8514
8515 * config/mn10300/mn10300.md (addsi3_flags): New.
8516 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
8517 (subsi3_flags, subc_internal, subdi3): New.
8518 (subdi3_internal, *subdi3_degenerate): New.
8519 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
8520
8521 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
8522 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
8523 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
8524 * config/mn10300/mn10300-protos.h: Update.
8525 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
8526 (return_ret): Likewise. Rename from return_internal_regs.
8527 (return_internal): Remove.
8528
8529 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
8530 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
8531 (mn10300_legitimate_constant_p): Likewise.
8532 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
8533 (mn10300_frame_size): New.
8534 (mn10300_expand_prologue): Use it.
8535 (mn10300_expand_epilogue): Likewise.
8536 (mn10300_initial_offset): Likewise.
8537 * config/mn10300/mn10300-protos.h: Update.
8538 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
8539 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
8540 (prologue, epilogue, return_internal): Tidy output code.
8541 (mn10300_store_multiple_operation, return): Likewise.
8542 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
8543 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
8544 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
8545 (load_pic, am33_load_pic): New.
8546 (mn10300_load_pic0, mn10300_load_pic1): New.
8547
8548 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
8549 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
8550 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
8551 (cc_flags_for_mode, cc_flags_for_code): New.
8552 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
8553 overflow flag is not valid. Validate that the flags we need
8554 for the comparison are valid.
8555 (mn10300_output_cmp): Remove.
8556 (mn10300_output_add): New.
8557 (mn10300_select_cc_mode): Use cc_flags_for_code.
8558 (mn10300_split_cbranch): New.
8559 (mn10300_match_ccmode): New.
8560 (mn10300_split_and_operand_count): New.
8561 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
8562 to the function.
8563 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
8564 (addsi3): ... here. Use mn10300_output_add.
8565 (*addsi3_flags): New.
8566 (*am33_subsi3, *mn10300_subsi3): Merge...
8567 (subsi3): ... here. Use attribute isa.
8568 (*subsi3_flags): New.
8569 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
8570 when possible.
8571 (*am33_andsi3, *mn10300_andsi3): Merge...
8572 (andsi3): ... here.
8573 (*andsi3_flags): New.
8574 (andsi3 splitters): New.
8575 (*am33_iorsi3, *mn10300_iorsi3): Merge...
8576 (iorsi3): ... here.
8577 (*iorsi3_flags): New.
8578 (*am33_xorsi3, *mn10300_xorsi3): Merge...
8579 (xorsi3): ... here.
8580 (*xorsi3_flags): New.
8581 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
8582 (one_cmplsi2): ... here.
8583 (*one_cmplsi2_flags): New.
8584 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
8585 instead of "dax" in constraints. Use mn10300_split_cbranch.
8586 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
8587 use matching constraints to eliminate a self-comparison.
8588 (*integer_conditional_branch): Rename from integer_conditional_branch.
8589 Use int_mode_flags to match CC_REG.
8590 (*cbranchsi4_btst, *btstsi): New.
8591 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
8592 mn10300_split_cbranch.
8593 (*am33_cmpsf): Rename from am33_cmpsf.
8594 (*float_conditional_branch): Rename from float_conditional_branch.
8595 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
8596 (zero_extendqisi2): ... here.
8597 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
8598 (zero_extendhisi2): ... here.
8599 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
8600 (extendqisi2): ... here.
8601 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
8602 (extendhisi2): ... here.
8603 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
8604 (ashlsi3): ... here.
8605 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
8606 (lshrsi3): ... here.
8607 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
8608 (ashrsi3): ... here.
8609 (consecutive add peephole): Remove.
8610 * config/mn10300/predicates.md (label_ref_operand): New.
8611 (int_mode_flags): New.
8612 (CCZN_comparison_operator): New.
8613
8614 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
8615 (throughput_42_latency_43): New reservation.
8616 (mulsidi3, umulsidi3): New expanders.
8617 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
8618 the MDR register to allocation; separately allocate the low and
8619 high parts of the DImode result.
8620 (umulsidi3_internal): Similarly.
8621 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
8622 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
8623 (udivsi3, umodsi3): Remove.
8624 (udivmodsi4, divmodsi4): New expanders.
8625 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
8626 (*divmodsi4): Simiarly.
8627 (ext_internal): New.
8628
8629 * config/mn10300/constraints.md ("z"): New constraint.
8630 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
8631 (FIXED_REGISTERS): Don't fix MDR.
8632 (CALL_USED_REGSITERS): Reformat nicely.
8633 (REG_ALLOC_ORDER): Add MDR.
8634 (enum regclass): Add MDR_REGS.
8635 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
8636 (IRA_COVER_CLASSES): Add MDR_REGS.
8637 (REGNO_REG_CLASS): Handle MDR_REG.
8638 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
8639 (mn10300_register_move_cost): Likewise.
8640 * config/mn10300/mn10300.md (MDR_REG): New.
8641 (*movsi_internal): Handle moves to/from MDR_REGS.
8642
8643 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
8644 POST_MODIFY.
8645 (mn10300_secondary_reload): Tidy combination reload classes.
8646 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
8647 addresses for AM33. Allow symbolic offsets for reg+imm.
8648 (mn10300_regno_in_class_p): New.
8649 (mn10300_legitimize_reload_address): New.
8650 * config/mn10300/mn10300.h (enum reg_class): Remove
8651 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
8652 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
8653 SP_OR_GENERAL_REGS.
8654 (REG_CLASS_NAMES): Update to match.
8655 (REG_CLASS_CONTENTS): Likewise.
8656 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
8657 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
8658 (REGNO_IN_RANGE_P): Remove.
8659 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
8660 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
8661 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
8662 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
8663 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
8664 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
8665 (REGNO_GENERAL_P): New.
8666 (HAVE_POST_MODIFY_DISP): New.
8667 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
8668 (LEGITIMIZE_RELOAD_ADDRESS): New.
8669 * config/mn10300/mn10300-protos.h: Update.
8670
8671 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
8672 DATA_REGS for AM33 stack-pointer destination.
8673 (mn10300_preferred_output_reload_class): Likewise.
8674 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
8675 into a form appropriate for ...
8676 (TARGET_SECONDARY_RELOAD): New.
8677 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
8678 * config/mn10300/mn10300-protos.h: Update.
8679 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
8680 reload_insi; use the "A" constraint for the scratch; handle AM33
8681 moves of sp to non-address registers.
8682
8683 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
8684 (*movqi_internal): ... here.
8685 (*am33_movhi, *mn10300_movhi): Merge into...
8686 (*movhi_internal): ... here.
8687 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
8688 as the source/destination of moves from/to SP.
8689 (movsf): Only allow for AM33-2.
8690 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
8691 any integer constant constraint. Only allow for AM33-2. Tidy
8692 all of the alternative outputs.
8693 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
8694 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
8695 for MN103.
8696 (udivsi3, umodsi3): New patterns for MN103 only.
8697
8698 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
8699
8700 * doc/tm.texi.in: Spell out that a lack of register class unions
8701 can lead to ICEs.
8702 * doc/tm.texi: Regenerate.
8703
8704 2011-01-19 Jakub Jelinek <jakub@redhat.com>
8705
8706 PR rtl-optimization/47337
8707 * dce.c (check_argument_store): New function.
8708 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
8709
8710 PR tree-optimization/47290
8711 * tree-eh.c (infinite_empty_loop_p): New function.
8712 (cleanup_empty_eh): Use it.
8713
8714 2011-01-18 Steve Ellcey <sje@cup.hp.com>
8715
8716 PR target/46997
8717 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
8718 (a64_expand_widen_sum): Ditto.
8719 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
8720 (vec_extract_evenodd_help): Ditto.
8721 (vec_extract_evenv4hi): Ditto.
8722 (vec_extract_oddv4hi): Ditto.
8723 (vec_extract_evenv2si): Ditto.
8724 (vec_extract_oddv2si): Ditto.
8725 (vec_extract_evenv2sf): Ditto.
8726 (vec_extract_oddv2sf): Ditto.
8727 (vec_pack_trunc_v4hi: Ditto.
8728 (vec_pack_trunc_v2si): Ditto.
8729 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
8730 (vec_interleave_highv8qi): Ditto.
8731 (mix1_r): Ditto.
8732 (vec_extract_oddv8qi): Ditto.
8733 (vec_interleave_lowv4hi): Ditto.
8734 (vec_interleave_highv4hi): Ditto.
8735 (vec_interleave_lowv2si): Ditto.
8736 (vec_interleave_highv2si): Ditto.
8737
8738 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8739
8740 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
8741 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
8742 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
8743 (pa_c_mode_for_suffix): New.
8744 (TARGET_EXPAND_BUILTIN): Define.
8745 (TARGET_C_MODE_FOR_SUFFIX): Define.
8746 (pa_builtins): Define.
8747 (pa_init_builtins): Register __float128 type and init new support
8748 builtins.
8749 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
8750 * config/pa/quadlib.c (_U_Qfcopysign): New.
8751
8752 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
8753
8754 PR middle-end/46894
8755 * explow.c (allocate_dynamic_stack_space): Do not assume more than
8756 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
8757 are defined.
8758
8759 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8760
8761 PR tree-optimization/47179
8762 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
8763 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
8764
8765 2011-01-18 Richard Guenther <rguenther@suse.de>
8766
8767 PR rtl-optimization/47216
8768 * emit-rtl.c: Include tree-flow.h.
8769 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
8770 of replicating it with different semantics.
8771 * Makefile.in (emit-rtl.o): Adjust.
8772
8773 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8774
8775 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
8776 (cortex_a9_dp): Handle neon types correctly.
8777
8778 2011-01-18 Jakub Jelinek <jakub@redhat.com>
8779
8780 PR rtl-optimization/47299
8781 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
8782 subtarget. Use normal multiplication if both operands are constants.
8783 * expmed.c (expand_widening_mult): Don't try to optimize constant
8784 multiplication if op0 has VOIDmode. Convert op1 constant to mode
8785 before using it.
8786
8787 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8788
8789 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
8790 spacing after 'e.g.', typos, comma, hyphenation.
8791
8792 2011-01-17 Richard Henderson <rth@redhat.com>
8793
8794 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
8795 (rx_restricted_mem_operand): New.
8796 (rx_shift_operand): Use register_operand.
8797 (rx_source_operand, rx_compare_operand): Likewise.
8798 * config/rx/rx.md (addsi3_flags): New expander.
8799 (adddi3): Rewrite as expander.
8800 (adc_internal, *adc_flags, adddi3_internal): New patterns.
8801 (subsi3_flags): New expander.
8802 (subdi3): Rewrite as expander.
8803 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
8804
8805 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
8806 (rx_init_builtins): Remove sat builtin.
8807 (rx_expand_builtin): Likewise.
8808 * config/rx/rx.md (ssaddsi3): New.
8809 (*sat): Rename from sat. Represent the CC_REG input.
8810
8811 * config/rx/predicates.md (rshift_operator): New.
8812 * config/rx/rx.c (rx_expand_insv): Remove.
8813 * config/rx/rx-protos.h: Update.
8814 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
8815 operand to the canonical position.
8816 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
8817 (*bitclr, *bitclr_in_memory): Similarly.
8818 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
8819 (insv): Retain the zero_extract in the expansion.
8820
8821 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
8822 (bswaphi2, bitinvert, revw): Likewise.
8823
8824 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
8825 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
8826 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
8827 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
8828 (bitset, bitset_in_memory): Likewise.
8829 (bitinvert, bitinvert_in_memory): Likewise.
8830 (bitclr, bitclr_in_memory): Likewise.
8831 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
8832 (rx_strend, rx_cmpstrn): Likewise.
8833 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
8834 (bitop peep2 patterns): Remove.
8835
8836 * config/rx/rx.c (rx_match_ccmode): New.
8837 * config/rx/rx-protos.h: Update.
8838 * config/rx/rx.md (abssi2): Clobber, don't set flags.
8839 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
8840 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
8841 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
8842 (fix_truncsfsi2, floatsisf2): Likewise.
8843 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
8844 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
8845 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
8846 (*subsi3_flags, *xorsi3_flags): New.
8847
8848 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
8849
8850 * config/rx/rx.c (rx_print_operand): Remove workaround for
8851 unsplit comparison operations.
8852
8853 * config/rx/rx.md (movsicc): Split after reload.
8854 (*movsicc): Merge *movsieq and *movsine via match_operator.
8855 (*stcc): New pattern.
8856
8857 * config/rx/rx.c (rx_float_compare_mode): Remove.
8858 * config/rx/rx.h (rx_float_compare_mode): Remove.
8859 * config/rx/rx.md (cstoresi4): Split after reload.
8860 (*sccc): New pattern.
8861
8862 * config/rx/predicates.md (label_ref_operand): New.
8863 (rx_z_comparison_operator): New.
8864 (rx_zs_comparison_operator): New.
8865 (rx_fp_comparison_operator): New.
8866 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
8867 Validate that the flags are set properly for the comparison.
8868 (rx_gen_cond_branch_template): Remove.
8869 (rx_cc_modes_compatible): Remove.
8870 (mode_from_flags): New.
8871 (flags_from_code): Rename from flags_needed_for_conditional.
8872 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
8873 (rx_select_cc_mode): Likewise.
8874 (rx_split_fp_compare): New.
8875 (rx_split_cbranch): New.
8876 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
8877 (*cbranchsi4): Use match_operator and rx_split_cbranch.
8878 (*cbranchsf4): Similarly.
8879 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
8880 match_operator and rx_split_cbranch.
8881 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
8882 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
8883 (*cmpsi): Rename from cmpsi.
8884 (*tstsi): Rename from tstsi.
8885 (*cmpsf): Rename from cmpsf; use CC_Fmode.
8886 (*conditional_branch): Rename from conditional_branch.
8887 (*reveresed_conditional_branch): Remove.
8888 (b<code>): Remove expander.
8889 * config/rx/rx-protos.h: Update.
8890
8891 * config/rx/rx.c (rx_compare_redundant): Remove.
8892 * config/rx/rx.md (cmpsi): Don't use it.
8893 * config/rx/rx-protos.h: Update.
8894
8895 * config/rx/rx-modes.def (CC_F): New mode.
8896 * config/rx/rx.c (rx_select_cc_mode): New.
8897 * config/rx/rx.h (SELECT_CC_MODE): Use it.
8898 * config/rx/rx-protos.h: Update.
8899
8900 2011-01-17 Richard Henderson <rth@redhat.com>
8901
8902 * except.c (dump_eh_tree): Fix stray ; after for statement.
8903
8904 2011-01-17 Richard Guenther <rguenther@suse.de>
8905
8906 PR tree-optimization/47313
8907 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
8908 handling before copying the body. Properly deal with
8909 by-reference result in SSA form.
8910
8911 2011-01-17 Ian Lance Taylor <iant@google.com>
8912
8913 PR target/47219
8914 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
8915 (struct_value_alias_set): Don't define.
8916 (sparc_option_override): Don't set sparc_sr_alias_set and
8917 struct_value_alias_set.
8918 (save_or_restore_regs): Use gen_frame_mem rather than calling
8919 set_mem_alias_set.
8920 (sparc_struct_value_rtx): Likewise.
8921
8922 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
8923
8924 PR target/47318
8925 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
8926 (_mm_maskstore_pd): Likewise.
8927 (_mm_maskload_ps): Likewise.
8928 (_mm_maskstore_ps): Likewise.
8929 (_mm256_maskload_pd): Change mask to __m256i.
8930 (_mm256_maskstore_pd): Likewise.
8931 (_mm256_maskload_ps): Likewise.
8932 (_mm256_maskstore_ps): Likewise.
8933
8934 * config/i386/i386-builtin-types.def: Updated.
8935 (ix86_expand_special_args_builtin): Likewise.
8936
8937 * config/i386/i386.c (bdesc_special_args): Update
8938 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
8939 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
8940 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
8941 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
8942
8943 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
8944 Use <avxpermvecmode> on mask register.
8945 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
8946
8947 2011-01-17 Olivier Hainque <hainque@adacore.com>
8948 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8949 Eric Botcazou <ebotcazou@adacore.com>
8950
8951 PR target/46655
8952 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
8953 if <= USHRT_MAX in 32-bit mode.
8954
8955 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8956
8957 * doc/install.texi (Configuration, Specific): Wrap long
8958 lines in examples. Allow line wrapping in long options
8959 and URLs where beneficial for PDF output.
8960
8961 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
8962
8963 * config/mips/mips.c (mips_classify_symbol): Don't return
8964 SYMBOL_PC_RELATIVE for nonlocal labels.
8965
8966 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
8967
8968 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
8969
8970 2011-01-15 Jan Hubicka <jh@suse.cz>
8971
8972 PR tree-optimization/47276
8973 * ipa.c (function_and_variable_visibility): Do not try to mark alias
8974 declarations as needed.
8975
8976 2011-01-15 Martin Jambor <mjambor@suse.cz>
8977
8978 * common.opt (fdevirtualize): New flag.
8979 * doc/invoke.texi (Option Summary): Document it.
8980 * opts.c (default_options_table): Add devirtualize flag.
8981 * ipa-prop.c (detect_type_change): Return immediately if
8982 devirtualize flag is not set.
8983 (detect_type_change_ssa): Likewise.
8984 (compute_known_type_jump_func): Likewise.
8985 (ipa_analyze_virtual_call_uses): Likewise.
8986
8987 2011-01-14 Martin Jambor <mjambor@suse.cz>
8988
8989 PR tree-optimization/45934
8990 PR tree-optimization/46302
8991 * ipa-prop.c (type_change_info): New type.
8992 (stmt_may_be_vtbl_ptr_store): New function.
8993 (check_stmt_for_type_change): Likewise.
8994 (detect_type_change): Likewise.
8995 (detect_type_change_ssa): Likewise.
8996 (compute_complex_assign_jump_func): Check for dynamic type change.
8997 (compute_complex_ancestor_jump_func): Likewise.
8998 (compute_known_type_jump_func): Likewise.
8999 (compute_scalar_jump_functions): Likewise.
9000 (ipa_analyze_virtual_call_uses): Likewise.
9001 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9002
9003 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9004
9005 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9006 * config/i386/i386.opt (msse5): New Alias.
9007
9008 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9009
9010 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9011 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9012 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9013 * config/sparc/sparc.h (CC1_SPEC): Likewise.
9014
9015 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9016
9017 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9018 -mcpu options.
9019 * config/sparc/linux64.h (CC1_SPEC): Likewise.
9020 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9021 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9022 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9023 Likewise.
9024 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9025
9026 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9027
9028 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9029
9030 2011-01-14 Mike Stump <mikestump@comcast.net>
9031
9032 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9033 * config/fr30/fr30.md: Likweise
9034 (movsi_push): Likewise.
9035 (movsi_pop): Likewise.
9036 (enter_func): Likewise.
9037 * config/moxie/moxie.md (movsi_push): Likewise.
9038 (movsi_pop): Likewise.
9039
9040 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9041
9042 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9043 %{no_archive} %{exact_version}.
9044 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9045 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9046 %{no_archive} %{exact_version}.
9047 * config/mips/openbsd.h (LINK_SPEC): Likewise.
9048 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9049 * config/mips/vxworks.h: Likewise.
9050
9051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9052
9053 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9054
9055 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9056
9057 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9058 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9059
9060 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9061
9062 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9063 -nodefaultlib.
9064
9065 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9066
9067 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9068 for mcpu not cpu.
9069 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9070 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9071 not cpu.
9072 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9073 Don't handle -shlib.
9074
9075 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9076
9077 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9078 (CC1_SPEC): Don't handle -profile.
9079
9080 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9081
9082 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9083 * config/mips/mips.h (CC1_SPEC): Likewise.
9084
9085 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9086
9087 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9088 * config/mips/mips.h (CC1_SPEC): Likewise.
9089
9090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9091
9092 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9093 * config/m32r/linux.h (LINK_SPEC): Likewise.
9094 * config/mips/linux.h (LINK_SPEC): Likewise.
9095 * config/mips/linux64.h (LINK_SPEC): Likewise.
9096 * config/sparc/linux.h (LINK_SPEC): Likewise.
9097 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9098 LINK_SPEC): Likewise.
9099 * config/xtensa/linux.h (LINK_SPEC): Likewise.
9100
9101 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9102
9103 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9104 %{version:-v}.
9105 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9106
9107 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9108
9109 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9110 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9111
9112 2011-01-14 Joseph Myers <joseph@codesourcery.com>
9113
9114 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9115
9116 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9117
9118 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9119 supports -Bstatic/-Bdynamic.
9120 * configure: Regenerate.
9121
9122 2011-01-14 Jan Hubicka <jh@suse.cz>
9123 Jack Howarth <howarth@bromo.med.uc.edu>
9124
9125 PR target/46037
9126 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9127 when checking debug_info_level. Test write_symbols instead of
9128 debug_hooks->var_location when setting flag_var_tracking_uninit.
9129
9130 2011-01-14 Richard Guenther <rguenther@suse.de>
9131
9132 PR tree-optimization/47179
9133 * target.def (ref_may_alias_errno): New target hook.
9134 * targhooks.h (default_ref_may_alias_errno): Declare.
9135 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9136 (default_ref_may_alias_errno): New function.
9137 * target.h (struct ao_ref_s): Declare.
9138 * tree-ssa-alias.c: Include target.h.
9139 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9140 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9141 (targhooks.o): Likewise.
9142 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9143 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9144
9145 2011-01-14 Richard Guenther <rguenther@suse.de>
9146
9147 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
9148
9149 2011-01-14 Richard Guenther <rguenther@suse.de>
9150
9151 PR tree-optimization/47280
9152 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9153 return CFG changes.
9154 (tree_ssa_forward_propagate_single_use_vars): Deal with
9155 CFG changes from associate_plusminus.
9156
9157 2011-01-14 Richard Guenther <rguenther@suse.de>
9158
9159 PR middle-end/47281
9160 Revert
9161 2011-01-11 Richard Guenther <rguenther@suse.de>
9162
9163 PR tree-optimization/46076
9164 * tree-ssa.c (useless_type_conversion_p): Conversions from
9165 unprototyped to empty argument list function types are useless.
9166
9167 2011-01-14 Richard Guenther <rguenther@suse.de>
9168
9169 PR tree-optimization/47286
9170 * tree-ssa-structalias.c (new_var_info): Register variables are global.
9171
9172 2011-01-14 Martin Jambor <mjambor@suse.cz>
9173
9174 PR middle-end/46823
9175 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9176
9177 2011-01-13 Anatoly Sokolov <aesok@post.ru>
9178
9179 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9180 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9181 * config/xtensa/xtensa.c (xtensa_libcall_value,
9182 xtensa_function_value_regno_p): New functions.
9183 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9184
9185 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
9186
9187 PR c++/47213
9188 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9189 PE specific hook.
9190 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9191 New function prototype.
9192 * config/i386/winnt.c (i386_pe_assemble_visibility):
9193 Warn only if attribute was specified by user.
9194
9195 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9196
9197 PR target/47251
9198 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9199 floating point.
9200 (floatunsdidf2_fcfidu): Ditto.
9201
9202 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9203
9204 * config/s390/s390.c (print_operand_address): Replace 'error' with
9205 'output_operand_lossage'.
9206 (print_operand): Likewise.
9207
9208 2011-01-13 Jeff Law <law@redhat.com>
9209
9210 PR rtl-optimization/39077
9211 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9212 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9213 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9214 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9215 * gcse.c (prune_insertions_deletions): New function.
9216 (compute_pre_data): Use it.
9217
9218 2011-01-13 Dodji Seketeli <dodji@redhat.com>
9219
9220 PR debug/PR46973
9221 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9222 static function.
9223 (prune_unused_types_mark): Use it.
9224
9225 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
9226
9227 PR rtl-optimization/45352
9228 * sel-sched.c: Update copyright years.
9229 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9230 in the advancing loop when we have issued issue_rate insns.
9231
9232 2011-01-12 Richard Henderson <rth@redhat.com>
9233
9234 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
9235 (TARGET_MD_ASM_CLOBBERS): New.
9236
9237 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
9238 (TARGET_DELEGITIMIZE_ADDRESS): New.
9239
9240 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
9241 (clzsi2, *bsch): New patterns.
9242
9243 * config/mn10300/mn10300.md (INT): New mode iterator.
9244 (*mov<INT>_clr): New pattern, and peep2 to generate it.
9245
9246 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
9247 flag_split_wide_types.
9248
9249 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
9250 (mn10300_trampoline_init): Rewrite without a template, an immediate
9251 load and a direct branch.
9252 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
9253
9254 2011-01-12 Anatoly Sokolov <aesok@post.ru>
9255
9256 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9257 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
9258 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
9259 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9260
9261 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
9262
9263 PR debug/47209
9264 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
9265 of type.
9266
9267 2011-01-12 Jan Hubicka <jh@suse.cz>
9268
9269 PR driver/47244
9270 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
9271 (PLUGIN_COND_CLOSE): New macro.
9272 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
9273
9274 2011-01-12 Richard Guenther <rguenther@suse.de>
9275
9276 PR lto/47259
9277 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
9278 register variables in a MEM_REF.
9279
9280 2011-01-12 Joseph Myers <joseph@codesourcery.com>
9281
9282 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
9283 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
9284 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
9285 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
9286 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
9287 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
9288 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
9289 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
9290 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
9291 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
9292 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
9293 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
9294 * config/gnu-user.h: New. Copied from linux.h.
9295 (LINUX_TARGET_STARTFILE_SPEC): Rename to
9296 GNU_USER_TARGET_STARTFILE_SPEC.
9297 (LINUX_TARGET_ENDFILE_SPEC): Rename to
9298 GNU_USER_TARGET_ENDFILE_SPEC.
9299 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
9300 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
9301 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
9302 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
9303 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
9304 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9305 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
9306 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
9307 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
9308 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
9309 * config/arm/linux-eabi.h (CC1_SPEC): Use
9310 GNU_USER_TARGET_CC1_SPEC.
9311 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
9312 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
9313 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
9314 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
9315 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
9316 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
9317 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
9318 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
9319
9320 2011-01-12 Richard Guenther <rguenther@suse.de>
9321
9322 PR other/46946
9323 * doc/invoke.texi (ffast-math): Document it is turned on
9324 with -Ofast.
9325
9326 2011-01-12 Jan Hubicka <jh@suse.cz>
9327
9328 PR tree-optimization/47233
9329 * opts.c (common_handle_option): Disable ipa-reference with profile
9330 feedback.
9331
9332 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9333
9334 * c-parser.c (c_parser_objc_at_property_declaration): Improved
9335 error message.
9336
9337 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
9338
9339 * c-parser.c (c_lex_one_token): Updated and reindented some
9340 comments. No changes in code.
9341
9342 2011-01-11 Ian Lance Taylor <iant@google.com>
9343
9344 * godump.c (go_output_var): Don't output the variable if there is
9345 already a type with the same name.
9346
9347 2011-01-11 Ian Lance Taylor <iant@google.com>
9348
9349 * godump.c (go_format_type): Don't generate float80.
9350
9351 2011-01-11 Richard Henderson <rth@redhat.com>
9352
9353 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
9354 declaration. Rewrite for both speed and size.
9355 (mn10300_address_cost_1): Remove.
9356 (mn10300_register_move_cost): New.
9357 (mn10300_memory_move_cost): New.
9358 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
9359 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
9360 extensions, shifts, BSWAP, CLZ.
9361 (mn10300_wide_const_load_uses_clr): Remove.
9362 (TARGET_REGISTER_MOVE_COST): New.
9363 (TARGET_MEMORY_MOVE_COST): New.
9364 * config/mn10300/mn10300-protos.h: Update.
9365 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
9366
9367 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
9368 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
9369 * config/mn10300/mn10300-protos.h: Update.
9370 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
9371 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
9372 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
9373 (*test_int_bitfield, *test_byte_bitfield): Remove.
9374 (*bit_test, *subreg_bit_test): Remove.
9375 * config/mn10300/predicates.md (const_8bit_operand): Remove.
9376
9377 * config/mn10300/constraints.md ("c"): Rename from "A".
9378 ("A", "D"): New constraint letters.
9379 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
9380 (fmssf4, fnmasf4, fnmssf4): Likewise.
9381
9382 * config/mn10300/mn10300.md (isa): New attribute.
9383 (enabled): New attribute.
9384
9385 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
9386 (abssf2, negsf2): Define only for hardware fp.
9387 (sqrtsf2): Reformat.
9388 (addsf3, subsf3, mulsf3): Merge expander and insn.
9389
9390 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
9391 (DEBUGGER_AUTO_OFFSET): Remove.
9392 (DEBUGGER_ARG_OFFSET): Remove.
9393
9394 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
9395 Emit register stores with the same offsets as the hardware.
9396 (mn10300_store_multiple_operation): Don't check that the register
9397 save offsets are monotonic.
9398 * config/mn10300/mn10300-protos.h: Update.
9399
9400 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
9401
9402 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
9403 in terms of the value on the stack, not the MDR register.
9404
9405 2011-01-11 Jan Hubicka <jh@suse.cz>
9406
9407 PR lto/45721
9408 PR lto/45375
9409 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
9410 (symbol_alias_set_destroy, symbol_alias_set_contains,
9411 propagate_aliases_backward): Declare.
9412 * lto-streamer-out.c (struct sets): New sturcture.
9413 (trivally_defined_alias): New function.
9414 (output_alias_pair_p): Rewrite.
9415 (output_unreferenced_globals): Fix output of alias pairs.
9416 (produce_symtab): Likewise.
9417 * ipa.c (function_and_variable_visibility): Set weak alias destination
9418 as needed in lto.
9419 * varasm.c (symbol_alias_set_t): Remove.
9420 (symbol_alias_set_destroy): Export.
9421 (propagate_aliases_forward, propagate_aliases_backward): New functions
9422 based on ...
9423 (compute_visible_aliases): ... this one; remove.
9424 (trivially_visible_alias): New
9425 (trivially_defined_alias): New.
9426 (remove_unreachable_alias_pairs): Rewrite.
9427 (finish_aliases_1): Reorganize code checking if alias is defined.
9428 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
9429 in LTO mode.
9430
9431 2011-01-11 Richard Guenther <rguenther@suse.de>
9432
9433 PR tree-optimization/46076
9434 * tree-ssa.c (useless_type_conversion_p): Conversions from
9435 unprototyped to empty argument list function types are useless.
9436
9437 2011-01-11 Richard Guenther <rguenther@suse.de>
9438
9439 PR middle-end/45235
9440 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
9441 volatile MEMs as MEM_READONLY_P.
9442
9443 2011-01-11 Richard Guenther <rguenther@suse.de>
9444
9445 PR tree-optimization/47239
9446 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
9447
9448 2011-01-11 Jeff Law <law@redhat.com>
9449
9450 PR tree-optimization/47086
9451 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
9452 IVs from statements that might throw.
9453
9454 2011-01-10 Jan Hubicka <jh@suse.cz>
9455
9456 PR lto/45375
9457 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
9458
9459 2011-01-10 Jan Hubicka <jh@suse.cz>
9460
9461 PR lto/45375
9462 * profile.c (read_profile_edge_counts): Ignore profile inconistency
9463 when correcting profile.
9464
9465 2011-01-10 Jan Hubicka <jh@suse.cz>
9466
9467 PR lto/46083
9468 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
9469 DECL_FINI_PRIORITY.
9470 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
9471 Restore DECL_FINI_PRIORITY.
9472
9473 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9474
9475 * doc/gimple.texi: Fix quoting of multi-word return values in
9476 @deftypefn statements. Ensure presence of return value. Wrap
9477 overlong @deftypefn lines.
9478 (is_gimple_operand, is_gimple_min_invariant_address): Remove
9479 descriptions of removed functions.
9480 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
9481 of multi-word return value in @deftypefn statement.
9482
9483 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9484
9485 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
9486 (Conditional Expressions, Logical Operators)
9487 (Statement and operand traversals): Do not indent smallexample
9488 code. Fix duplicate function argument in example.
9489
9490 2011-01-10 Jeff Law <law@redhat.com>
9491
9492 PR tree-optimization/47141
9493 * ipa-split.c (split_function): Handle case where we are
9494 returning a value and the return block has a virtual operand phi.
9495
9496 2011-01-10 Jan Hubicka <jh@suse.cz>
9497
9498 PR tree-optimization/47234
9499 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
9500 (pass_feedback_split_functions): Declare.
9501 * passes.c (init_optimization_passes): Add ipa-split as subpass of
9502 tree-profile.
9503 * ipa-split.c (gate_split_functions): Update comments; disable
9504 split-functions for profile_arc_flag and branch_probabilities.
9505 (gate_feedback_split_functions): New function.
9506 (execute_feedback_split_functions): New function.
9507 (pass_feedback_split_functions): New global var.
9508
9509 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
9510
9511 PR lto/46760
9512 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
9513 calling gimple_call_set_cannot_inline.
9514
9515 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
9516
9517 * config/darwin-sections.def: Remove unused section.
9518
9519 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
9520
9521 PR c++/47218
9522 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
9523
9524 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
9525
9526 PR objc/47232
9527 * c-parser.c (c_parser_declaration_or_fndef): Improved
9528 error message.
9529
9530 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
9531
9532 * config/i386/winnt.c (i386_pe_start_function): Make sure
9533 to switch back to function's section.
9534
9535 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
9536
9537 PR gcc/46902
9538 PR testsuite/46912
9539 * plugin.c: Move include of dlfcn.h from here...
9540 * system.h: ... to here.
9541
9542 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9543
9544 * doc/cpp.texi (C++ Named Operators): Fix markup for header
9545 file name.
9546 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
9547 two extra empty pages in PDF output.
9548
9549 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
9550
9551 PR objc/47078
9552 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
9553 for error recovery purposes behave as if it was not specified so
9554 that the default type is usd.
9555
9556 2011-01-07 Jan Hubicka <jh@suse.cz>
9557
9558 PR tree-optmization/46469
9559 * ipa.c (function_and_variable_visibility): Clear needed flags on
9560 nodes with external decls; handle weakrefs merging correctly.
9561
9562 2011-01-07 Joseph Myers <joseph@codesourcery.com>
9563
9564 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
9565 not false.
9566
9567 2011-01-07 Jan Hubicka <jh@suse.cz>
9568
9569 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
9570 and no longer claim that gold is required for linker plugin.
9571 * configure: Regenerate.
9572 * gcc.c (PLUGIN_COND): New macro.
9573 (LINK_COMMAND_SPEC): Use it.
9574 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
9575 * config.in (HAVE_LTO_PLUGIN): New.
9576 * configure.ac (--with-lto-plugin): New parameter; autodetect
9577 HAVE_LTO_PLUGIN.
9578
9579 2011-01-07 Jan Hubicka <jh@suse.cz>
9580
9581 PR tree-optimization/46367
9582 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
9583 when we can update original.
9584 (cgraph_mark_inline_edge): Sanity check.
9585 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
9586
9587 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9588
9589 * config/spu/spu.h (ASM_COMMENT_START): Define.
9590
9591 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
9592
9593 PR driver/42445
9594 * gcc.c (%>S): New.
9595 (SWITCH_KEEP_FOR_GCC): Likewise.
9596 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
9597 (do_spec_1): Handle "%>".
9598
9599 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
9600
9601 2011-01-07 Jakub Jelinek <jakub@redhat.com>
9602
9603 PR target/47201
9604 * config/i386/i386.c (ix86_delegitimize_address): If
9605 simplify_gen_subreg fails, return orig_x.
9606
9607 PR bootstrap/47187
9608 * value-prof.c (gimple_stringop_fixed_value): Handle
9609 lhs of the call properly.
9610
9611 2011-01-07 Jan Hubicka <jh@suse.cz>
9612
9613 PR lto/45375
9614 * lto-opt.c (lto_reissue_options): Set flag_shlib.
9615
9616 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9617
9618 * target.def (function_switched_text_sections): New hook.
9619 * doc/tm.texi: Regenerated.
9620 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9621 * final.c (default_function_switched_text_sections): New.
9622 (final_scan_insn): Call function_switched_text_sections when a
9623 mid-function section change occurs.
9624 * output.h (default_function_switched_text_sections): Declare.
9625 * config/darwin-protos.h (darwin_function_switched_text_sections):
9626 Likewise.
9627 * config/darwin.c (darwin_function_switched_text_sections): New.
9628 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9629
9630 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
9631
9632 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
9633 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
9634 the secondary code fragment when outputting for DWARF == 2.
9635
9636 2011-01-07 Anatoly Sokolov <aesok@post.ru>
9637
9638 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9639 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
9640 Remove.
9641 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
9642 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9643
9644 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 PR debug/46704
9647 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
9648 when it is not empty.
9649
9650 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
9651
9652 Bobcat Enablement
9653 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
9654 (case ${target}): Add btver1.
9655 * config/i386/driver-i386.c (host_detect_local_cpu): Let
9656 -march=native recognize btver1 processors.
9657 * config/i386/i386-c.c (ix86_target_macros_internal): Add
9658 btver1 def_and_undef
9659 * config/i386/i386.c (struct processor_costs btver1_cost): New
9660 btver1 cost table.
9661 (m_BTVER1): New definition.
9662 (m_AMD_MULTIPLE): Includes m_BTVER1.
9663 (initial_ix86_tune_features): Add btver1 tune.
9664 (processor_target_table): Add btver1 entry.
9665 (static const char *const cpu_names): Add btver1 entry.
9666 (software_prefetching_beneficial_p): Add btver1.
9667 (ix86_option_override_internal): Add btver1 instruction sets.
9668 (ix86_issue_rate): Add btver1.
9669 (ix86_adjust_cost): Add btver1.
9670 * config/i386/i386.h (TARGET_BTVER1): New definition.
9671 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
9672 (enum processor_type): Add PROCESSOR_BTVER1.
9673 * config/i386/i386.md (define_attr "cpu"): Add btver1.
9674
9675 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9676
9677 PR target/43309
9678 * config/i386/i386.c (legitimize_tls_address)
9679 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
9680 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
9681 (tls_initial_exec_64_sun): New pattern.
9682
9683 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
9684
9685 * doc/invoke.texi (Overall Options): Improve wording and markup
9686 of the description of -wrapper.
9687
9688 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9689
9690 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
9691 rdynamic, threads): New Driver options.
9692
9693 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9694
9695 PR target/38118
9696 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
9697 if coming from .tdata.
9698 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9699
9700 2011-01-06 Jan Hubicka <jh@suse.cz>
9701
9702 PR lto/47188
9703 * collect2.c (main): Do not enable LTOmode when plugin is active.
9704
9705 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9706
9707 PR other/45915
9708 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
9709 --version output if supported.
9710 * configure: Regenerate.
9711
9712 2011-01-06 Joseph Myers <joseph@codesourcery.com>
9713
9714 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
9715 Driver options.
9716
9717 2011-01-06 Jakub Jelinek <jakub@redhat.com>
9718
9719 PR c/47150
9720 * c-convert.c (convert): When converting a complex expression
9721 other than COMPLEX_EXPR to a different complex type, ensure
9722 c_save_expr is called instead of save_expr, unless in_late_binary_op.
9723 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
9724 when converting COMPLEX_TYPE.
9725
9726 2011-01-06 Ira Rosen <irar@il.ibm.com>
9727
9728 PR tree-optimization/47139
9729 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
9730 only the last reduction value is used outside the loop. Update
9731 documentation.
9732
9733 2011-01-05 Joseph Myers <joseph@codesourcery.com>
9734
9735 * config/rtems.opt: New.
9736 * config.gcc (*-*-rtems*): Use rtems.opt.
9737
9738 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
9739
9740 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
9741 processors do not support 3DNow instructions.
9742
9743 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9744
9745 * config/spu/spu.c (spu_option_override): Set parameter
9746 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
9747
9748 2011-01-05 Jan Hubicka <jh@suse.cz>
9749
9750 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
9751 at the command line.
9752
9753 2011-01-05 Martin Jambor <mjambor@suse.cz>
9754
9755 PR lto/47162
9756 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
9757 deltas on streamed outgoing edges.
9758 (output_node_opt_summary): Output info for outgoing edges only when
9759 the node is in new parameter set.
9760 (output_cgraph_opt_summary): New parameter set, passed to the two
9761 aforementioned functions. Update its forward declaration and its
9762 callee too.
9763
9764 2011-01-05 Tom Tromey <tromey@redhat.com>
9765
9766 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
9767 operator to c_finish_omp_atomic.
9768 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
9769 (build_unary_op): Update.
9770 (build_modify_expr): Update.
9771 (build_asm_expr): Update.
9772
9773 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9774
9775 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
9776 newly inserted insns.
9777 (pad_bb): Likewise.
9778 (spu_emit_branch_hint): Likewise.
9779 (insert_hbrp_for_ilb_runout): Likewise.
9780 (spu_machine_dependent_reorg): Call df_finish_pass after
9781 schedule_insns returns.
9782
9783 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9784
9785 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
9786
9787 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
9788
9789 PR tree-optimization/47005
9790 * tree-sra.c (struct access): Add 'non_addressable' bit.
9791 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
9792 (decide_one_param_reduction): Return 0 if the parameter is passed by
9793 reference and one of the accesses in the group is non_addressable.
9794
9795 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9796
9797 PR tree-optimization/47056
9798 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
9799 (mark_load): Likewise. Handle FUNCTION_DECL specially.
9800 (mark_store): Likewise. Pass STMT to ipa_record_reference.
9801
9802 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
9803
9804 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
9805 initializer. Skip view conversions from aggregate types.
9806
9807 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
9808
9809 PR bootstrap/47055
9810 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
9811
9812 2011-01-04 Philipp Thomas <pth@suse.de>
9813
9814 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
9815 obvious typo.
9816
9817 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9818
9819 * function.c (thread_prologue_and_epilogue_insns): Do not crash
9820 on empty epilogue sequences.
9821
9822 2011-01-04 Joseph Myers <joseph@codesourcery.com>
9823
9824 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
9825 non-static): New Driver options.
9826
9827 2011-01-04 Jie Zhang <jie@codesourcery.com>
9828
9829 PR driver/47137
9830 * gcc.c (default_compilers[]): Set combinable field to 0
9831 for all assembly languages.
9832
9833 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
9834
9835 * config/mips/loongson3a.md: New file.
9836 * config/mips/mips.md: Include loongson3a.md.
9837 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
9838 TUNE_LOONGSON_3A.
9839
9840 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
9841
9842 PR middle-end/47017
9843 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
9844 instead of convert_memory_address_addr_space on the base expression.
9845
9846 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9847
9848 * config/spu/spu.c (spu_option_override): Update error text
9849 for bad -march= / -mtune= values.
9850
9851 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9852
9853 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
9854 if branch-hint optimization will be performed.
9855
9856 2011-01-03 Jakub Jelinek <jakub@redhat.com>
9857
9858 PR tree-optimization/47148
9859 * ipa-split.c (split_function): Convert arguments to
9860 DECL_ARG_TYPE if possible.
9861
9862 PR tree-optimization/47155
9863 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
9864 when computing uns.
9865
9866 PR rtl-optimization/47157
9867 * combine.c (try_combine): If undobuf.other_insn becomes
9868 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
9869 and set *new_direct_jump_p too.
9870
9871 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
9872
9873 PR tree-optimization/47021
9874 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
9875
9876 2011-01-03 Jakub Jelinek <jakub@redhat.com>
9877
9878 * gcc.c (process_command): Update copyright notice dates.
9879 * gcov.c (print_version): Likewise.
9880 * gcov-dump.c (print_version): Likewise.
9881 * mips-tfile.c (main): Likewise.
9882 * mips-tdump.c (main): Likewise.
9883
9884 2011-01-03 Martin Jambor <mjambor@suse.cz>
9885
9886 PR tree-optimization/46801
9887 * tree-sra.c (type_internals_preclude_sra_p): Check whether
9888 aggregate fields start at byte boundary instead of the bit-field flag.
9889
9890 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
9891
9892 PR driver/47137
9893 * gcc.c (main): Revert revision 168407.
9894
9895 2011-01-03 Martin Jambor <mjambor@suse.cz>
9896
9897 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
9898
9899 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9900
9901 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
9902 vector optab to expand vector/scalar shift, update gimple to vector.
9903
9904 2011-01-03 Martin Jambor <mjambor@suse.cz>
9905
9906 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
9907 a thunk.
9908
9909 2011-01-03 Martin Jambor <mjambor@suse.cz>
9910
9911 PR tree-optimization/46984
9912 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
9913 HOST_WIDE_INT.
9914 (cgraph_create_indirect_edge): Fixed line length.
9915 (cgraph_indirect_call_info): Declare.
9916 (cgraph_make_edge_direct) Update declaration.
9917 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
9918 (cgraph_create_indirect_edge): Use it.
9919 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
9920 callees.
9921 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
9922 the new thunk_delta representation.
9923 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
9924 HOST_WIDE_INT.
9925 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
9926 (ipa_read_indirect_edge_info): Likewise.
9927 * lto-cgraph.c (output_edge_opt_summary): New function.
9928 (output_node_opt_summary): Call it on all outgoing edges.
9929 (input_edge_opt_summary): New function.
9930 (input_node_opt_summary): Call it on all outgoing edges.
9931
9932 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
9933
9934 PR driver/47137
9935 * gcc.c (main): Don't check have_o when settting combine_inputs.
9936
9937 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
9938
9939 * regrename.c: Add general comment describing the pass.
9940 (struct du_head): Remove 'length' field.
9941 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
9942 (regrename_optimize): Do not sort chains. Rework comments, add others.
9943 Force renaming to the preferred class (if any) in the first pass and do
9944 not consider registers that belong to it in the second pass.
9945 (create_new_chain): Do not set 'length' field.
9946 (scan_rtx_reg): Likewise.
9947
9948 2011-01-02 Jakub Jelinek <jakub@redhat.com>
9949
9950 PR tree-optimization/47140
9951 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
9952 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
9953 to bit_value_binop.
9954
9955 PR rtl-optimization/47028
9956 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
9957 parm_birth_insn instead of at the beginning of first bb.
9958
9959 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
9960
9961 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
9962 Remove the word "see" before "@pxref".
9963 * doc/rtl.texi: Remove the word "see" before "@pxref".
9964
9965 2011-01-01 Jan Hubicka <jh@suse.cz>
9966
9967 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
9968 memory.
9969
9970 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
9971
9972 PR target/38662
9973 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
9974
9975 \f
9976 Copyright (C) 2011 Free Software Foundation, Inc.
9977
9978 Copying and distribution of this file, with or without modification,
9979 are permitted in any medium without royalty provided the copyright
9980 notice and this notice are preserved.