]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR lto/48952 (ICE in inline_merge_summary during linux kernel LTO build)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
b27981e0
HS
12011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2
3 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
5 early.
6
87e91fca
DD
72011-05-12 DJ Delorie <dj@redhat.com>
8
9 (rx_builtins): New arrays - holds builtin functions.
10 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
11 created builtin into rx_builtins array.
12 (rx_builtin_decl): New function.
13 (TARGET_BUITLIN_DECL): Define.
14 Include gt-rx.h.
15
5f2f13fd
DD
162011-05-12 DJ Delorie <dj@redhat.com>
17 Nick Clifton <nickc@redhat.com>
18
19 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
20 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
21 (rx_is_legitimate_address): Add pre-decrement and post-increment
22 addressing in HImode and QImode. Fix test for out of range
23 REG+INT addressing.
87e91fca 24 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
5f2f13fd
DD
25 (rx_align_for_label): Test label before extracting its usage
26 count.
27 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 28 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 29
57421f45
JM
302011-05-11 Jason Merrill <jason@redhat.com>
31
32 * tree.c (type_hash_canon): Use struct tree_type_non_common.
33
898c90c0
EB
342011-05-11 Eric Botcazou <ebotcazou@adacore.com>
35
36 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
37 reindent the subsequent block.
38
79bec923
ST
392011-05-11 Satoru Takabayashi <satorux@google.com>
40 Paul Pluzhnikov <ppluzhnikov@google.com>
41
e77e2cbb 42 * doc/install.texi (Configuration): Document
79bec923 43 --with-linker-hash-style.
e77e2cbb
PP
44 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
45 * config.in: Add LINKER_HASH_STYLE.
46 * configure.ac: Add --with-linker-hash-style.
47 * configure: Regenerate.
79bec923 48
d0340959
RG
492011-05-11 Richard Guenther <rguenther@suse.de>
50
51 PR middle-end/48964
52 * gimple.c (iterative_hash_canonical_type): Fix typo.
53
cb032fee
UB
542011-05-11 Uros Bizjak <ubizjak@gmail.com>
55
56 * config/i386/i386.c (legitimize_tls_address)
57 <TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
58 expanders directly for TARGET_GNU2_TLS. Determine pic and
59 __tls_get_addr symbol reference here. Update call to
60 gen_tls_global_dynamic_{32,64} for added arguments.
61 <TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
62 expanders directly for TARGET_GNU2_TLS. Determine
63 __tls_get_addr symbol reference here. Update call to
64 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
65 unique UNSPEC REG_EQUIV to libcall block.
66 (ix86_tls_get_addr): Declare static.
67 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
68 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
69 Do not determine pic and __tls_get_addr symbol reference here. Do not
70 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
71 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
72 (tls_global_dynamic_64): Add operand 2. Do not determine
73 __tls_get_addr symbol reference here. Do not call
74 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
75 (tls_local_dynamic_base64): Ditto for operand 1.
76
6d3cc8f0
EB
772011-05-11 Eric Botcazou <ebotcazou@adacore.com>
78
79 * function.c (expand_function_start): Initialize stack_check_probe_note
80 only if the generic stack checking mechanism is used.
81
51e020fc
RG
822011-05-11 Richard Guenther <rguenther@suse.de>
83
84 PR tree-optimization/15256
85 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
86 (A & B) | C, combine (A op CST1) op CST2.
87 (tree_ssa_forward_propagate_single_use_vars): Only bother to
88 visit assigns that have uses.
89
51545682
NF
902011-05-11 Nathan Froyd <froydnj@codesourcery.com>
91
cb032fee 92 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
93 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
94 (unpack_ts_type_common_value_fields): ...this. Update comment.
95 (unpack_value_fields): Adjust for renaming.
96 (lto_input_ts_type_tree_pointers): Split into...
97 (lto_input_ts_type_common_tree_pointer): ...this and...
98 (lto_input_ts_type_non_common_tree_pointers): ...this.
99 (lto_input_tree_pointers): Adjust for above split.
100 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
101 (pack_ts_type_common_value_fields): ...this. Update comment.
102 (lto_output_ts_type_tree_pointers): Split into...
103 (lto_output_ts_type_common_tree_pointers): ...this and...
104 (lto_output_ts_type_non_common_tree_pointers): ...this.
105 (lto_output_tree_pointers): Adjust for above split.
106 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
107 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
108 * stor-layout.c (vector_type_mode): Adjust location of mode field.
109 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
110 Define.
111 (struct tree_type): Split into...
112 (struct tree_type_common: ...this and...
113 (struct tree_type_with_lang_specific): ...this and...
114 (struct tree_type_non_common): ...this. Adjust accessor macros
115 accordingly.
116 (TYPE_VALUES_RAW): Define.
117 (union tree_node): Update for above changes.
118 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
119 TS_TYPE_NON_COMMON.
120 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
121 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
122 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
123 * treestructu.def (TS_TYPE): Remove.
124 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
125 Define.
126
b03c3082
JJ
1272011-05-11 Jakub Jelinek <jakub@redhat.com>
128
129 PR debug/48159
130 * tree-ssa.c (reset_debug_uses): New function.
131 * tree-flow.h (reset_debug_uses): New prototype.
132 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
133 * tree-loop-distribution.c (generate_loops_for_partition): Call
134 reset_debug_uses on the stmts that will be removed. Keep around
135 all debug stmts, don't count them as bits in partition bitmap.
136 (generate_builtin): Don't count debug stmts or labels as bits in
137 partition bitmap.
138
b5e04de5
RG
1392011-05-11 Richard Guenther <rguenther@suse.de>
140
141 * gimple.c (gimple_type_hash_1): Merge with ...
142 (gimple_type_hash): ... this.
143 (gtc_visit): Remove mode parameter and simplify accordingly.
144 (gimple_types_compatible_p_1): Likewise.
145 (gimple_types_compatible_p): Likewise.
146 (iterative_hash_gimple_type): Likewise.
147 (visit): Likewise.
148 (gimple_type_eq): Adjust.
149
fc6970e4
RE
1502011-05-11 Revital Eres <revital.eres@linaro.org>
151
152 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
153 enters the branch create an anti edge in the opposite direction
154 to prevent the creation of reg-moves.
155 * modulo-sched.c: Adjust comment to reflect the fact we are
156 scheduling closing branch.
157 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
158 (stage_count): New field in struct partial_schedule.
159 (calculate_stage_count): New function.
160 (normalize_sched_times): Rename to reset_sched_times and handle
161 incrementing the sched time of the nodes by a constant value
162 passed as parameter.
163 (duplicate_insns_of_cycles): Skip closing branch.
164 (sms_schedule_by_order): Schedule closing branch.
165 (ps_insn_find_column): Handle closing branch.
166 (sms_schedule): Call reset_sched_times and adjust the code to
167 support scheduling of the closing branch.
168 (ps_insert_empty_row): Update calls to normalize_sched_times
169 and rotate_partial_schedule functions.
170
41a58a92
RG
1712011-05-11 Richard Guenther <rguenther@suse.de>
172
173 PR middle-end/48953
174 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
175
e9f8dcf9
JM
1762011-05-11 Joseph Myers <joseph@codesourcery.com>
177
cb032fee
UB
178 * opts.c (finish_options): Move warning settings from process_options.
179 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 180
10c224a9
RG
1812011-05-11 Richard Guenther <rguenther@suse.de>
182
183 PR tree-optimization/18041
184 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
185 (simplify_bitwise_binary): ... this. Handle operand conversions
186 by applying them to the result instead.
187 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
188
825b27de
RG
1892011-05-11 Richard Guenther <rguenther@suse.de>
190
191 * gimple.c (gimple_canonical_types_compatible_p): Split out
192 from gimple_types_compatible_p and friends. Do not recurse
193 to pointed-to types.
194 (gimple_canonical_type_eq): Use it.
195 (iterative_hash_canonical_type): Split out from
196 iterative_hash_gimple_type and friends. Do not recurse
197 to pointed-to types.
198 (gimple_canonical_type_hash): Use it, allocate the hash here.
199
ca756625
RE
2002011-05-11 Revital Eres <revital.eres@linaro.org>
201
202 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
203 recognizing doloop.
204
b8abece3
RE
2052011-05-11 Revital Eres <revital.eres@linaro.org>
206
207 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
208 instead of PREV_INSN.
209
ce7b3761
RE
2102011-05-11 Revital Eres <revital.eres@linaro.org>
211
212 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
213 * loop-doloop.c (doloop_condition_get): Likewise.
214 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
215 (doloop_end): New.
216 * config/arm/arm.md (*addsi3_compare0): Remove "*".
217
a9dc9d37
NF
2182011-05-10 Nathan Froyd <froydnj@codesourcery.com>
219
220 * tree.def (CASE_LABEL_EXPR): Add an operand.
221 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
222
96703596
JM
2232011-05-10 Joseph Myers <joseph@codesourcery.com>
224
225 * c-decl.c (c_override_global_bindings_to_false): Remove.
226 (global_bindings_p): Don't check
227 c_override_global_bindings_to_false.
228 * c-tree.h (c_override_global_bindings_to_false): Remove.
229 * c-typeck.c (composite_type): Don't set
230 c_override_global_bindings_to_false.
231
dbcc9f08
MM
2322011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
233
234 PR target/48857, 48495
235 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
236 (VSX_MODE): Ditto.
237 (VSX_MOVE_MODE): Ditto.
238 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
239 VSX vector types. Add V2DImode.
240 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
241 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
242 (MODES_TIEABLE_P): Ditto.
243
244 * config/rs6000/rs6000.c (rs6000_emit_move): Use
245 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
246 VSX_VECTOR_MODE.
247 (init_cumulative_args): Ditto.
248 (rs6000_function_arg_boundary): Ditto.
249 (rs6000_function_arg_advance_1): Ditto.
250 (rs6000_function_arg): Ditto.
251 (rs6000_function_ok_for_sibcall): Ditto.
252 (emit_frame_save): Ditto.
253 (rs6000_function_value): Ditto.
254 (rs6000_libcall_value): Ditto.
255
4a68b4ca
JM
2562011-05-10 Joseph Myers <joseph@codesourcery.com>
257
258 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
259 i386/darwin-lib.h to $libgcc_tm_file.
260 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
261
bcb521e9
JM
2622011-05-10 Joseph Myers <joseph@codesourcery.com>
263
264 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
265
f10d3ac9
JM
2662011-05-10 Joseph Myers <joseph@codesourcery.com>
267
cb032fee 268 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
269 * config/rs6000/rs6000-tables.opt: New file (generated).
270 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
271 rs6000/rs6000-tables.opt to extra_options.
272 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
273 * config/rs6000/rs6000.c (rs6000_select): Remove.
274 (processor_target_table): Move contents to rs6000-cpus.def.
275 (darwin_rs6000_override_options): Check
276 global_options_set.x_rs6000_cpu_index instead of
277 rs6000_select[1].string.
278 (rs6000_option_override_internal): Likewise.
279 (rs6000_handle_option): Don't assert that global structures are in
280 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
281 (rs6000_default_cpu): New variable.
282 (rs6000_file_start): Set it instead of local default_cpu. Check
283 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
284 global_options_set.x_rs6000_tune_index instead of rs6000_select.
285 (rs6000_darwin_file_start): Check rs6000_default_cpu and
286 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
287 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
288 rs6000_select): Remove.
289 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
290 Remove.
291 (mcpu=, mtune=): Use Var, Init, Enum and Save.
292 * config/rs6000/t-rs6000
293 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
294 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
295 global_options_set.x_rs6000_cpu_index instead of
296 rs6000_select[1].string.
297 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
298 global_options_set.x_rs6000_cpu_index instead of
299 rs6000_select[1].string.
300
80cf2e08
JM
3012011-05-10 Joseph Myers <joseph@codesourcery.com>
302
303 * config.gcc (libgcc_tm_file): Define instead of including files
304 from ../../libgcc/config/ in tm_file.
cb032fee 305 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
306 * configure: Regenerate.
307 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
308 libgcc_tm.h, cs-libgcc_tm.h): New.
309 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
310 (clean): Remove libgcc_tm.h.
311 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
312 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
313 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
314
fd01a351
GJL
3152011-05-10 Georg-Johann Lay <avr@gjlay.de>
316
317 PR target/48896
318 * config/avr/avr.c (avr_ret_register): Return unsigned int
319 instead of int.
320 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
321 it to avr_libcall_value.
322 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
323 expand_expr.
324 (avr_expand_binop_builtin): Ditto.
325 (avr_expand_unop_builtin): Ditto.
326
34cc3c86
DD
3272011-05-10 DJ Delorie <dj@redhat.com>
328
329 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
330 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
331 * config/rx/rx.c (rx_align_for_label): Add label and
332 uses_threshold parameters. Do not align when the label is not
333 used enough.
334 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
335
be173289
RG
3362011-05-10 Richard Guenther <rguenther@suse.de>
337
338 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
339 a series of conversions and apply foldings similar to what
340 fold-const does.
341 (tree_ssa_forward_propagate_single_use_vars): Call it.
342
e7f78021
JJ
3432011-05-10 Jakub Jelinek <jakub@redhat.com>
344
6ae70ea2
JJ
345 PR tree-optimization/48611
346 PR tree-optimization/48794
347 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
348 referenced from RESX or EH_DISPATCH arguments.
349
e7f78021
JJ
350 PR debug/48928
351 * dfp.c (decimal_to_decnumber): Handle conversion from
352 dconst{1,2,m1,half}.
353
fca132b9
UB
3542011-05-09 Uros Bizjak <ubizjak@gmail.com>
355
356 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
357 for !flag_prefer_avx128.
358 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
359
e4c03378
EB
3602011-05-09 Eric Botcazou <ebotcazou@adacore.com>
361
362 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
363 (fold_ternary_loc): Use expr_location_or.
364
805d6a75
L
3652011-05-09 H.J. Lu <hongjiu.lu@intel.com>
366
367 PR debug/48853
368 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
369 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
370 Pmode and mem_mode is not VOIDmode.
371
e4c03378 3722011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 373
e4c03378
EB
374 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
375 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 376
51e7f377
UB
3772011-05-09 Uros Bizjak <ubizjak@gmail.com>
378
379 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
380 (const_pow2_1_to_8_operand): Ditto.
381 (const_pow2_1_to_128_operand): Ditto.
382 (const_pow2_1_to_32768_operand): Ditto.
383 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
384 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
385 in insn constraint to check integer value of operand 3.
386 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
387
388 (PINSR_MODE): New mode iterator.
389 (sse2p4_1): New mode attribute.
390 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
391 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
392 iterator. Use const_int_operand instead of
393 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
394 exact_log2 in insn constraint to check integer value of operand 3.
395
3962011-05-09 Uros Bizjak <ubizjak@gmail.com>
397
398 * config/i386/sse.md (blendbits): Remove mode attribute.
399 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
400 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
401 Check integer value of operand 3 in insn constraint.
402
0ca8de87
RG
4032011-05-09 Richard Guenther <rguenther@suse.de>
404
405 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
406 for diagnostics.
407 (lto_symtab_merge): Likewise. Do not register types here.
408 (lto_symtab_merge_decls_2): Likewise.
409 (lto_symtab_merge_decls_1): Likewise.
410 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
411 * gimple.c (enum gtc_mode): Declare.
412 (gimple_types_compatible_p): Make static.
413
a9e6994a
AK
4142011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
415
416 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
417 temporary register to match Pmode.
418
fb55d62e
UB
4192011-05-09 Uros Bizjak <ubizjak@gmail.com>
420
421 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
422 and *vec_concatv4si_1_avx.
423
eb1485a6
UB
4242011-05-09 Uros Bizjak <ubizjak@gmail.com>
425
426 PR rtl-optimization/48927
427 * ira-conflicts.c (commutative_constraint_p): Use
428 recog_data.alternative_enabled_p to disable alternatives where
429 "enabled" attribute is false.
430 (get_dup_num): Ditto.
431 * ira-lives.c (single_reg_class): Ditto.
432 (ira_implicitly_set_insn_hard_regs): Ditto.
433
c46d001a
EB
4342011-05-09 Eric Botcazou <ebotcazou@adacore.com>
435
436 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
437 (dataflow_set_preserve_mem_locs): Likewise.
438
4392011-05-09 Philipp Thomas <pth@suse.de>
440
6d9e7c41
PT
441 * config/mep/mep.c (mep_validate_vliw): Syntax description
442 should not be translated.
443
d371df6f
JM
4442011-05-09 Joseph Myers <joseph@codesourcery.com>
445
446 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
447 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 448 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
449 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
450 MIPS_ARCH_OPTION_NATIVE): Define.
451 * config/mips/mips.c (mips_cpu_info_table): Move contents to
452 mips-cpus.def.
453 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
454 mips_parse_cpu): Remove.
455 (mips_cpu_info_from_opt, mips_default_arch): New.
456 (mips_handle_option): Don't assert that global structures are in
457 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
458 (mips_option_override): Use new variables and functions to set
eb1485a6 459 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
460 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
461 definition.
462 * config/mips/mips.opt (march=): Use ToLower and Enum.
463 (mips): Use ToLower, Enum and Var.
464 (mtune=): Use ToLower and Enum.
465 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
466
4fc07af9
JH
4672011-05-08 Jan Hubicka <jh@suse.cz>
468
469 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
470 Arrange type pairs to be UID ordered.
471 (gimple_lookup_type_leader): Make inline.
472
2cf320a8
NC
4732011-05-09 Nick Clifton <nickc@redhat.com>
474
61d6def5
NC
475 PR target/48899
476 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
477 PROCESSOR_DEFAULT.
478
2cf320a8
NC
479 PR target/48897
480 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
481 variable 's'.
482
4f82319d
CLT
4832011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
484
485 * combine.c (simplify_comparison): Abstract out parts into...
486 (simplify_compare_const): ... new function.
487 (try_combine): Generalize parallel arithmetic/compare combining
488 to call simplify_compare_const() and CANONICALIZE_COMPARE().
489
74605a11
JH
4902011-05-08 Jan Hubicka <jh@suse.cz>
491
492 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
493 (cgraph_create_virtual_clone): Call hooks once virtual clone
494 is finished.
74605a11 495 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
496 * ipa-cp.c (ipcp_estimate_growth): Use
497 estimate_ipcp_clone_size_and_time.
74605a11
JH
498 * ipa-inline-transform.c (clone_inlined_nodes): Update.
499 * lto-cgraph.c (input_node): Update.
500 * ipa-inline.c (recursive_inlining): Update.
501 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
502 (evaluate_conditions_for_known_args): Break out from ...
503 (evaluate_conditions_for_edge): ... here.
504 (evaluate_conditions_for_ipcp_clone): New function.
505 (inline_node_duplication_hook): Update clone summary based
506 on parameter map.
507 (estimate_callee_size_and_time): Rename to ...
508 (estimate_node_size_and_time): take NODE instead of EDGE;
509 take POSSIBLE_TRUTHS as argument.
510 (estimate_callee_size_and_time): Update.
511 (estimate_ipcp_clone_size_and_time): New function.
512 (do_estimate_edge_time): Update.
513
5c049507
RG
5142011-05-08 Richard Guenther <rguenther@suse.de>
515
516 PR middle-end/48908
517 PR middle-end/48905
518 * expmed.c (expand_shift_1): Compute adjusted constant shift
519 amount manually.
520
f64c36ba
EB
5212011-05-08 Eric Botcazou <ebotcazou@adacore.com>
522
523 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
524
c461a957
EB
5252011-05-08 Eric Botcazou <ebotcazou@adacore.com>
526
527 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
528
7c74e556
JW
5292011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
530
531 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
532
b4c0a884
JH
5332011-05-07 Jan Hubicka <jh@suse.cz>
534
a9bcb3f0
EB
535 * ipa-inline-transform.c (inline_call): Account when program size
536 decreases.
b4c0a884 537 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
538 (edge_badness): Reorganize to be power 2 based; fix thinko when
539 computing badness for negative growth; update comments to match
540 reality; better dumps.
b4c0a884 541
c99c0026
EB
5422011-05-07 Eric Botcazou <ebotcazou@adacore.com>
543
544 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
545 type to bool and adjust comment.
546 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
547 (fold_mathfn_compare): Remove calls to global_bindings_p.
548 (fold_inf_compare): Likewise.
549 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
550 * c-tree.h (global_bindings_p): Adjust prototype.
551 * c-decl.c (global_bindings_p): Return bool and simplify.
552
1400c8e5
ZD
5532011-05-07 Zdenek Dvorak <ook@ucw.cz>
554
555 PR tree-optimization/48837
556 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
557 when accumulator transformation is performed.
558
5d0878e7
JH
5592011-05-06 Jan Hubicka <jh@suse.cz>
560
a9bcb3f0
EB
561 * i386.h (ix86_tune_indices): Add
562 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 563 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
564 * i386.c (initial_ix86_tune_features): Add
565 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
566 (software_prefetching_beneficial_p): Remove predicate.
567 (ix86_option_override_internal): Use new macro.
568
58696ce5
JH
5692011-05-06 Jan Hubicka <jh@suse.cz>
570
571 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
572
c47d0034
JH
5732011-05-06 Jan Hubicka <jh@suse.cz>
574
575 * cgraph.c (cgraph_add_thunk): Create real function node instead
576 of alias node; finalize it and mark needed/reachale; arrange visibility
577 to be right and add it into the corresponding same comdat group list.
578 (dump_cgraph_node): Dump thunks.
579 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
580 cgraph_function_with_gimple_body_p,
581 cgraph_first_function_with_gimple_body,
c47d0034
JH
582 cgraph_next_function_with_gimple_body): New functions.
583 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
584 New macros.
585 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
586 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
587 * cgraphunit.c (cgraph_finalize_function): Only look into possible
588 devirtualization when optimizing.
589 (verify_cgraph_node): Verify thunks.
590 (cgraph_analyze_function): Analyze thunks.
591 (cgraph_mark_functions_to_output): Output thunks only in combination
592 with function they are assigned to.
593 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
594 alias into normal node.
595 (assemble_thunks): New functoin.
596 (cgraph_expand_function): Use it.
597 * lto-cgraph.c (lto_output_node): Stream thunks.
598 (input_overwrite_node): Stream in thunks.
599 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
600 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
601 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
602 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
603 (inline_analyze_function): Do not care about thunk jump functions.
604 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
605 * ipa-prop.c (ipa_prop_write_jump_functions): Use
606 cgraph_function_with_gimple_body_p.
607 * passes.c (do_per_function_toporder): Use
608 cgraph_function_with_gimple_body_p.
c47d0034
JH
609 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
610 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
611 (function_called_by_processed_nodes_p): Likewise.
612
d8f426ec
JM
6132011-05-06 Joseph Myers <joseph@codesourcery.com>
614
615 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
616 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
617 entries.
618 (mabi=): Replace with separate entries for mabi=altivec,
619 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
620 mabi=ieeelongdouble and mabi=ibmlongdouble.
621 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
622 check for -mabi=spe without SPE ABI support here.
623 (rs6000_handle_option): Replace OPT_mabi_ handling with
624 OPT_mabi_altivec and OPT_mabi_spe handling.
625
80bde45b
CC
6262011-05-06 Cary Coutant <ccoutant@google.com>
627
628 * dwarf2out.c (contains_subprogram_definition): New function.
629 (should_move_die_to_comdat): Call it.
630
a91926b9
JL
6312011-05-06 Jeff Law <law@redhat.com>
632
633 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
634 remove_ctrl_stmt_and_useless_edges.
635 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
636 (fixup_template_block, thread_single_edge): Likewise.
637 (mark_threaded_blocks): Use THREAD_TARGET.
638
1fc1b66d
AM
6392011-05-06 Alan Modra <amodra@gmail.com>
640
641 PR target/48900
642 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
643 const0_rtx as the arg to the dummy __tls_get_addr libcall.
644
e194de64
UB
6452011-05-06 Uros Bizjak <ubizjak@gmail.com>
646
647 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
648 constraint modifier to "r".
649
d740dc9e
JM
6502011-05-06 Joseph Myers <joseph@codesourcery.com>
651
652 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
653 fall through for OPT_mcmodel_.
654
cab78b15
AK
6552011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
656
657 * config/s390/s390.c (s390_asm_trampoline_template): Comment
658 instruction sizes.
e194de64 659 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 660
ee6824ae
RR
6612011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
662
eb1485a6
UB
663 PR target/47930
664 * config/arm/arm.opt (marm): Document it.
665 (mthumb): Reject negative variant.
ee6824ae 666
9ef58464
UB
6672011-05-06 Uros Bizjak <ubizjak@gmail.com>
668
669 PR target/48898
670 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
671 Fix typo in "ccvt" variable name.
672
155b6176
TG
6732011-05-06 Tristan Gingold <gingold@adacore.com>
674
675 PR target/48895
676 * config/vms/vms-ar.c (main): Remove cwd variable.
677
3becc47b
JJ
6782011-05-06 Jakub Jelinek <jakub@redhat.com>
679
680 PR debug/48902
681 * var-tracking.c (prepare_call_arguments): Move else before #endif.
682
3d528853
NF
6832011-05-05 Nathan Froyd <froydnj@codesourcery.com>
684
685 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
686 * gimplify.c (gimplify_switch_expr): Likewise.
687 * omp-low.c (expand_omp_sections): Likewise.
688 * tree-eh.c (lower_try_finally_switch): Likewise.
689 (lower_eh_dispatch): Likewise.
690 * tree.h (build_case_label): Declare.
691 * tree.c (build_case_label): Define.
692
deb5046b
JM
6932011-05-05 Jason Merrill <jason@redhat.com>
694
695 PR c++/40975
696 * tree-inline.c (copy_tree_r): Use copy_statement_list.
697 (copy_statement_list): Don't recurse.
698 * stor-layout.c (copy_self_referential_tree_r): Don't allow
699 STATEMENT_LIST.
700
013c0411
JM
7012011-05-05 Joseph Myers <joseph@codesourcery.com>
702
703 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
704 through from -mfpu= handling.
705 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
706
a0905f8b
BS
7072011-05-05 Bernd Schmidt <bernds@codesourcery.com>
708
709 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
710 POST_MODIFY.
711
fc4538e4
SE
7122011-05-05 Steve Ellcey <sje@cup.hp.com>
713
714 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
715 for 11.31.
716 (hppa[12]*-*-hpux11*): Ditto.
717 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
718 * config/ia64/hpux-unix2003.h: New.
719 * config/pa/pa-hpux1131.opt: New.
720 * config/pa/pa-hpux1131.h: New.
721 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
722 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 723 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 724
1e30c578
JJ
7252011-05-05 Jakub Jelinek <jakub@redhat.com>
726
727 PR debug/48853
728 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
729 instead of mode as 3rd argument to recursive call.
730 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
731 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
732 VOIDmode.
733 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
734 don't give up if mode is Pmode and mem_mode is not VOIDmode.
735 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
736 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
737
d19eb620
JB
7382011-05-05 Julian Brown <julian@codesourcery.com>
739
740 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
741 parenthesis in D-register case.
742
c860fe8c
JM
7432011-05-05 Joseph Myers <joseph@codesourcery.com>
744
745 * opt-functions.awk (var_type_struct): Handle Enum options.
746 * optc-gen.awk: Don't check range of variables of character type.
747 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
748 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
749 rs6000_sdata_name, rs6000_explicit_options): Remove.
750 (rs6000_option_override_internal): Check for -malign-power here.
751 Use global_options_set instead of rs6000_explicit_options.
752 (rs6000_parse_fpu_option): Remove.
753 (rs6000_handle_option): Access variables via opts and opts_set
754 pointers. Use error_at and warning_at. Add fall-through
755 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
756 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
757 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
758 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
759 here. Don't use rs6000_parse_fpu_option.
760 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
761 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
762 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
763 (mrecip=): Use Var.
764 (mspe): Use Var and Save.
765 (mtraceback=): Use Enum and Var.
766 (rs6000_traceback_type): New Enum and EnumValue entries.
767 (mfloat-gprs=): Use Enum, Var and Save.
768 (rs6000_float_gprs): New Enum and EnumValue entries.
769 (mlong-double-): use Var and Save.
770 (msched-costly-dep=, minsert-sched-nops=): Use Var.
771 (malign-): Use Enum and Var.
772 (rs6000_alignment_flags): New Enum and EnumValue entries.
773 (mfpu=): Use Enum.
774 (fpu_type_t): New Enum and EnumValue entries.
775 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
776 global_options_set instead of rs6000_explicit_options.
777 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
778 global_options_set instead of rs6000_explicit_options.
779 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
780 global_options_set instead of rs6000_explicit_options.
781 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
782 global_options_set instead of rs6000_explicit_options.
783 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
784 global_options_set instead of rs6000_explicit_options.
785 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
786 global_options_set instead of rs6000_explicit_options.
787 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
788 definition.
789 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
790 global_options_set instead of rs6000_explicit_options.
791 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
792 (rs6000_cmodel): New Enum and EnumValue entries.
793 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
794 global_options_set instead of rs6000_explicit_options.
795 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
796 (mtls-size=): Use Enum and Var.
797 (rs6000_tls_size): New Enum and EnumValue entries.
798
0691dde9
MM
7992011-05-05 Michael Matz <matz@suse.de>
800
801 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
802 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
803 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
804 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
805 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
806 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
807 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
808 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
809 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
810 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
811 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
812 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
813 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
814 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
815 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
816 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
817
86529a49
RG
8182011-05-05 Richard Guenther <rguenther@suse.de>
819
820 * expmed.c (expand_variable_shift): Rename to ...
821 (expand_shift_1): ... this. Take an expanded shift amount.
822 For rotates recurse directly not building trees for the shift amount.
823 (expand_variable_shift): Wrap around expand_shift_1.
824 (expand_shift): Adjust.
825
d0228c2e
JJ
8262011-05-05 Jakub Jelinek <jakub@redhat.com>
827
828 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
829
907a08d9
EB
8302011-05-05 Eric Botcazou <ebotcazou@adacore.com>
831
832 * tree.h (get_pending_sizes): Remove prototype.
833 (put_pending_size): Likewise.
834 (put_pending_sizes): Likewise.
835 * stor-layout.c (pending_sizes): Delete.
836 (get_pending_sizes): Likewise.
837 (put_pending_size): Likewise.
838 (put_pending_sizes): Likewise.
839 (variable_size): Do not call put_pending_size and tidy up.
840 * function.h (struct function): Remove dont_save_pending_sizes_p.
841 * lto-streamer-in.c (input_function): Do not stream it.
842 * lto-streamer-out.c (output_function): Likewise.
843 * tree-inline.c (initialize_cfun): Do not copy it.
844 * c-decl.c (store_parm_decls): Do not set it.
845 * omp-low.c (create_task_copyfn): Likewise.
846 * tree-optimize.c (tree_rest_of_compilation): Likewise.
847
386d9c57
UB
8482011-05-05 Uros Bizjak <ubizjak@gmail.com>
849
850 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
851 conditions.
852 (*movdf_internal): Ditto.
853 (*movdf_internal_nointeger): Ditto.
854 (*movsf_internal): Ditto.
855
a04a722b
JM
8562011-05-05 Joseph Myers <joseph@codesourcery.com>
857
858 * c-decl.c (finish_decl): Don't call get_pending_sizes.
859 (grokparm): Add parameter expr. Pass it to grokdeclarator.
860 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
861 (c_variable_size): Remove.
862 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
863 call put_pending_sizes.
864 (get_parm_info): Add parameter expr. Use it to set
865 arg_info->pending_sizes.
866 (store_parm_decls): Use arg_info->pending_sizes instead or calling
867 get_pending_sizes.
868 * c-parser.c (c_parser_parms_declarator): Update call to
869 c_parser_parms_list_declarator.
870 (c_parser_parms_list_declarator): Take parameter expr. Update
871 call to push_parm_decl. Update recursive call. Don't call
872 get_pending_sizes. Update calls to get_parm_info.
873 (c_parser_objc_method_definition): Update calls to
874 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 875 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
876 (c_parser_objc_method_decl): Add parameter expr. Update call to
877 grokparm.
386d9c57 878 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
879 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
880 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
881
c92a6f97
MH
8822011-05-05 Michael Hope <michael.hope@linaro.org>
883
386d9c57
UB
884 PR pch/45979
885 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
886 __ARM_EABI__ hosts.
c92a6f97 887
07ea0048
UW
8882011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
889
890 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
891 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
892 (spu_output_mi_thunk): New function.
893
d634bfa1
RO
8942011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
895
896 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
897 targetm.asm_out.print_operand.
898 * config/sol2.c: Include target.h.
899
40fda55b
JH
9002011-05-04 Jan Hubicka <jh@suse.cz>
901
902 * ipa-inline.c (reset_edge_caches): New function.
903 (update_caller_keys): Add check_inlinablity_for; do not
904 reset edge caches; remove now unnecesary loop.
386d9c57 905 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
906 (update_all_callee_keys): Likewise.
907 (inline_small_functions): Sanity check cache; update code
908 recomputing it.
909
0360f70d
BS
9102011-05-04 Bernd Schmidt <bernds@codesourcery.com>
911
912 PR rtl-optimization/47612
913 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
914 as the last insn of the sequence to be moved.
915
7a994646
TB
9162011-05-04 Tobias Burnus <burnus@net-b.de>
917
918 PR fortran/48864
919 * doc/invoke.texi (Ofast): Document that it
920 enables Fortran's -fno-protect-parens.
921
7a2f7208
UB
9222011-05-04 Uros Bizjak <ubizjak@gmail.com>
923
924 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
925
a2d42931
EB
9262011-05-04 Eric Botcazou <ebotcazou@adacore.com>
927
928 * stor-layout.c (variable_size): Do not issue errors.
929
f81b1a3d
RG
9302011-05-04 Richard Guenther <rguenther@suse.de>
931
932 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
933 for array-ref indices.
934 (tree_coverage_counter_addr): Likewise.
935 (build_fn_info_type): Use size_int for index types.
936 (build_gcov_info): Likewise.
937
c62c040f
RG
9382011-05-04 Richard Guenther <rguenther@suse.de>
939
940 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
941 to build_int_cst.
942 * c-typeck.c (really_start_incremental_init): Use bitsize_int
943 for constructor indices.
944 (push_init_level): Likewise.
945
1e3287d0
RG
9462011-05-04 Richard Guenther <rguenther@suse.de>
947
948 * explow.c (promote_mode): Move variable declarations before code.
949
6c32445b
NF
9502011-05-04 Nathan Froyd <froydnj@codesourcery.com>
951
952 * tree.h (build_function_type_array): Declare.
953 (build_varargs_function_type_array): Declare.
954 (build_function_type_vec, build_varargs_function_type_vec): Define.
955 * tree.c (build_function_type_array_1): New function.
956 (build_function_type_array): New function.
957 (build_varargs_function_type_array): New function.
958
fdabf269
RS
9592011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
960
961 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
962 before setting STMT_VINFO_TYPE.
963
a207915a
UW
9642011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
965
966 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
967 instead of spu_pass_by_reference.
968
5e617be8
AK
9692011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
970
971 * calls.c (emit_library_call_value_1): Invoke
972 promote_function_mode hook on libcall arguments.
973 * explow.c (promote_function_mode, promote_mode): Handle TYPE
974 argument being NULL.
975 * targhooks.c (default_promote_function_mode): Lisewise.
976 * config/s390/s390.c (s390_promote_function_mode): Likewise.
977 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
978
979 * doc/tm.texi: Document that TYPE argument might be NULL.
980
486d04be
SH
9812011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
982
983 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
984
9b19b026
SH
9852011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
986
987 From Bernd Schmidt
988 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
989
502bc3df
RO
9902011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
991
992 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
993 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
994 Move ...
995 * mips-tfile.c: ... here.
996 Don't include coretypes.h, tm.h, filenames.h.
997 (saber_stop): Remove definition and all calls.
998 [__SABER__]: Remove.
999 (__LINE__): Remove default.
1000 (Size_t, Ptrdiff_t): Remove definitions.
1001 Replace by size_t, ptrdiff_t.
1002 [!MIPS_DEBUGGING_INFO]: Remove.
1003 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1004 (progname): Add const.
1005 (STATIC): Remove.
1006 Replace all uses by static.
1007 (ALIGN_SYMTABLE_OFFSET): Remove default.
1008 * mips-tdump.c: Don't include coretypes.h, tm.h.
1009 Remove !MIPS_IS_STAB guard.
1010 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1011 $(TM_H), filenames.h dependencies.
1012 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1013
991eb6ef
SH
10142011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1015
1016 From Jie Zhang
1017 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1018 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1019
420ccc84
SH
10202011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1021
1022 From Bernd Schmidt
1023 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1024 account and save/restore RETS.
1025 (PROFILE_BEFORE_PROLOGUE): Define.
1026 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1027 the push insn to use predecrement.
1028
9f8d69ee
SH
10292011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1030
1031 From Jie Zhang
1032 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1033
662c03f4
NC
10342011-05-04 Nick Clifton <nickc@redhat.com>
1035
1036 * config/mn10300/mn10300.c: Include cfgloop.h.
1037 (DUMP): New macro.
1038 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1039 Lcc or a FLcc insn into the instruction stream.
1040 (mn10300_block_contains_call): New function. Returns true if the
1041 given basic block contains a CALL insn.
1042 (mn10300_loop_contains_call_insn): New function. Returns true if
1043 the given loop contains a CALL insn.
1044 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1045 to use the SETLB and Lcc or FLcc insns.
1046 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1047 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1048 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1049 disable the SETLB optimization.
1050 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1051 __SETLB__ or __NO_SETLB__.
1052 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1053 (movsf_internal): Handle MDR register.
1054 (cmpsi): Make visible.
1055 (setlb): New pattern.
1056 (Lcc): New pattern.
1057 (FLcc): New pattern.
1058
843b6915
UB
10592011-05-04 Uros Bizjak <ubizjak@gmail.com>
1060
1061 PR target/48860
1062 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1063 for reg<->xmm moves.
1064 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1065 (vec_concatv2di_rex64_sse): Ditto.
1066 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1067 (*vec_extractv2di_1_rex64): Ditto.
1068
1069 Revert:
1070 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1071
1072 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1073 reg<->xmm moves.
1074 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1075
d35936ab
RG
10762011-05-04 Richard Guenther <rguenther@suse.de>
1077
1078 * tree.h (int_const_binop): Remove notrunc argument.
1079 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1080 create integer constants that are properly truncated.
1081 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
1082 (const_binop): Remove zero notrunc argument to int_const_binop.
1083 (size_binop_loc): Likewise.
1084 (fold_div_compare): Likewise.
1085 (maybe_canonicalize_comparison_1): Likewise.
1086 (fold_comparison): Likewise.
1087 (fold_binary_loc): Likewise.
1088 (multiple_of_p): Likewise.
1089 * expr.c (store_constructor): Likewise.
1090 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1091 (maybe_fold_stmt_addition): Likewise.
1092 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
1093 * stor-layout.c (layout_type): Likewise.
1094 * tree-data-ref.c (tree_fold_divides_p): Likewise.
1095 * tree-sra.c (build_ref_for_offset): Likewise.
1096 (build_user_friendly_ref_for_offset): Likewise.
1097 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
1098 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1099 * tree-ssa-loop-niter.c (inverse): Likewise.
1100 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1101 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
1102 * tree-switch-conversion.c (check_range): Likewise.
1103 (build_constructors): Likewise.
1104 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1105 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
1106 (extract_range_from_assert): Likewise.
1107 (vrp_int_const_binop): Likewise.
1108 (extract_range_from_binary_expr): Likewise.
1109 (extract_range_from_unary_expr): Likewise.
1110 (check_array_ref): Likewise.
1111 (find_case_label_range): Likewise.
1112 (simplify_div_or_mod_using_ranges): Likewise.
1113 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
1114 comparing case labels for merging.
1115
8992c063
MW
11162011-05-03 Mark Wielaard <mjw@redhat.com>
1117
1118 * dwarf2out.c (debug_str_hash_forced): Removed.
1119 (gen_label_for_indirect_string): Removed.
1120 (get_debug_string_label): Removed.
1121 (AT_string_form): Generate label directly.
1122 (output_indirect_string): Test indirect_string_node for
1123 DW_FORM_strp instead of checking label and refcount.
1124 (prune_indirect_string): Removed.
1125 (prune_unused_types): Don't check debug_str_hash_forced or
1126 call prune_indirect_string.
1127
4868e6ea
AO
11282011-05-04 Alexandre Oliva <aoliva@redhat.com>
1129
1130 PR other/48093
1131 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
1132
01a5c0ab
AO
11332011-05-04 Alexandre Oliva <aoliva@redhat.com>
1134
1135 PR debug/47994
1136 PR debug/47919
1137 * combine.c (try_combine): Skip debug insns at m_split tests.
1138
6ac00218
MW
11392011-04-26 Mark Wielaard <mjw@redhat.com>
1140
1141 PR42288
1142 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
1143 when info_section_emitted.
1144
3af42a7b
JM
11452011-05-03 Joseph Myers <joseph@codesourcery.com>
1146
1147 * config/mips/mips-opts.h: New.
1148 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
1149 to mips-opts.h.
1150 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
1151 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
1152 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
1153 via opts pointer.
1154 * config/mips/mips.h (enum mips_code_readable_setting): Move to
1155 mips-opts.h.
1156 (mips_abi, mips_code_readable): Don't declare.
843b6915 1157 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
1158 (mabi=): Use Enum and Var.
1159 (mips_abi): New Enum and EnumValue entries.
1160 (mcode-readable=): Use Enum and Var.
1161 (mips_code_readable_setting): New Enum and EnumValue entries.
1162 (mr10k-cache-barrier=): Use Enum and Var.
1163 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
1164
1cb1a99f
JH
11652011-05-03 Jan Hubicka <jh@suse.cz>
1166
1167 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
1168 replace hash by pointer map.
1169 (cgraph_node_set_element_def, cgraph_node_set_element,
1170 const_cgraph_node_set_element, varpool_node_set_element_def,
1171 varpool_node_set_element, const_varpool_node_set_element): Remove.
1172 (free_cgraph_node_set, free_varpool_node_set): New function.
1173 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
1174 * tree-emutls.c: Free varpool node set.
1175 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
1176 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1177 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
1178 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1179 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
1180 Move here from ipa.c; implement using pointer_map
1181 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
1182 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
1183 debug_cgraph_node_set, varpool_node_set_new,
1184 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
1185 dump_varpool_node_set, debug_varpool_node_set):
1186 Move to ipa-uitls.c.
1187 * passes.c (ipa_write_summaries): Update.
1188
7f31f4db
SH
11892011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1190
7a2f7208
UB
1191 From Mike Frysinger:
1192 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
1193 bf542/bf544/bf547/bf548/bf549.
7f31f4db 1194
b70fce6d
UB
11952011-05-03 Uros Bizjak <ubizjak@gmail.com>
1196
1197 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
1198
265b1d82
SH
11992011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1200
1201 From Bernd Schmidt:
1202 * config/bfin/bfin.md (MOVCC): New mode_macro.
1203 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1204 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1205 comments from generated assembly.
1206
f0b568f3
SH
12072011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1208
1209 From Bernd Schmidt
1210 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1211 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1212 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1213 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1214 * config/bfin/lib1funcs.asm (___muldi3): New function.
1215
2c67cf6e
NF
12162011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1217
1218 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1219 build_function_type_list instead of build_function_type.
1220 Rearrange initialization of `args' to do so.
1221
f9ac28ad
NF
12222011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1223
1224 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1225 instead of build_function_type.
1226
22b8798c
NF
12272011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1228
1229 * config/rs6000/rs6000.c (spe_init_builtins): Call
1230 build_function_type_list instead of build_function_type.
1231 (paired_init_builtins, altivec_init_builtins): Likewise.
1232 (builtin_function_type): Likewise.
1233
4cb44528
NF
12342011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1235
1236 * config/sh/sh.c (sh_media_init_builtins): Call
1237 build_function_type_list instead of build_function_type.
1238
4c203a6a
NF
12392011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1240
1241 * config/sparc/sparc.c (sparc_file_end): Call
1242 build_function_type_list instead of build_function_type.
1243
d6a3d62b
NF
12442011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1245
1246 * config/alpha/alpha.c (alpha_init_builtins): Call
1247 build_function_type_list instead of build_function_type.
1248
de530b86
NF
12492011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1250
1251 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1252 build_function_type_list instead of build_function_type.
1253
baeec5f2
NF
12542011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1255
1256 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1257 build_function_type_list instead of build_function_type.
1258 Delete `endlink' variable.
1259
c19afe52
NF
12602011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1261
1262 * config/avr/avr.c (avr_init_builtins): Call
1263 build_function_type_list instead of build_function_type.
1264
a341df0a
NF
12652011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1266
1267 * config/picochip/picochip.c (picochip_init_builtins): Call
1268 build_function_type_list instead of build_function_type.
1269 Delete `endlink' variable.
1270
2102b1e1
NF
12712011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1272
1273 * config/bfin/bfin.c (bfin_init_builtins): Call
1274 build_function_type_list instead of build_function_type.
1275
9f111209
SH
12762011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1277
1278 From Bernd Schmidt
1279 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1280 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1281
7071d064
SH
12822011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1283
1284 From Jie Zhang:
1285 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1286 libbffastfp overrides libgcc when -mfast-fp.
1287
44fb48ef
SH
12882011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1289
1290 Originally from Bernd Schmidt
1291 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1292 * config/bfin/bfin.c (override_options): Test it and error if
1293 TARGET_FDPIC.
1294
1a3a9152
SH
12952011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1296
1297 Originally From Bernd Schmidt
1298 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1299 FD-PIC.
1300
7134c090
JL
13012011-05-03 Jeff Law <law@redhat.com>
1302
1303 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1304 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1305 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
1306 than accessing AUX field directly. Free the AUX field before
1307 clearing it.
7134c090
JL
1308 (thread_block, thread_through_loop_header): Likewise.
1309 (thread_single_edge, mark_threaded_blocks): Likewise.
1310 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1311 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 1312
2c7eebae
BS
13132011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1314
1315 * function.c (init_function_start): Call decide_function_section.
1316 * varasm.c (decide_function_section): New function.
1317 (assemble_start_function): When not using
1318 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1319 or first_function_block_is_cold.
1320 * rtl.h (decide_function_section): Declare.
1321
17038fcf
JJ
13222011-05-03 Uros Bizjak <ubizjak@gmail.com>
1323 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR target/48774
1326 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1327 only succeed if req_mode is the same as set_mode.
1328
3810076b
BS
13292011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1330
1331 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1332 * genemit.c (gen_exp): Handle RETURN.
1333 * emit-rtl.c (verify_rtx_sharing): Likewise.
1334 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1335 * rtl.c (copy_rtx): RETURN is shared.
1336 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1337 (ret_rtx): New.
1338 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1339 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1340 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1341 * config/cris/cris.c (cris_expand_return): Likewise.
1342 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1343 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1344 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1345 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1346 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1347 Likewise.
1348 * config/v850/v850.c (expand_epilogue): Likewise.
1349 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1350 * config/arm/arm.md (epilogue): Likewise.
1351 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1352 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1353 variable to ret_reg.
1354
9efdb4ad
RG
13552011-05-03 Richard Guenther <rguenther@suse.de>
1356
1357 PR lto/48846
1358 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1359 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1360 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1361
60a45536
RG
13622011-05-03 Richard Guenther <rguenther@suse.de>
1363
1364 * c-decl.c (grokdeclarator): Instead of looking at
1365 TREE_OVERFLOW check if the constant fits in the index type.
1366
3188ed59
RS
13672011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1368
1369 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1370 (vec_store_lanes<mode><mode>): Likewise.
1371
272c6793
RS
13722011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1373
1374 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1375 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1376 convert_optab_index values.
1377 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1378 * genopinit.c (optabs): Initialize the new optabs.
1379 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1380 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1381 (expand_STORE_LANES): New functions.
1382 * tree.h (build_array_type_nelts): Declare.
1383 * tree.c (build_array_type_nelts): New function.
1384 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1385 (vect_model_load_cost): Likewise.
1386 (vect_store_lanes_supported, vect_load_lanes_supported)
1387 (vect_record_strided_load_vectors): Declare.
1388 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1389 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1390 (vect_transform_strided_load): Split out statement recording into...
1391 (vect_record_strided_load_vectors): ...this new function.
1392 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1393 (write_vector_array, create_array_ref): New functions.
1394 (vect_model_store_cost): Add store_lanes_p argument.
1395 (vect_model_load_cost): Add load_lanes_p argument.
1396 (vectorizable_store): Try to use store-lanes functions for
1397 interleaved stores.
1398 (vectorizable_load): Likewise load-lanes and loads.
1399 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1400 to vect_model_store_cost.
1401 (vect_build_slp_tree): Likewise vect_model_load_cost.
1402
0f6d54f7
RS
14032011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1404
1405 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1406 * hooks.c (hook_bool_mode_uhwi_false): New function.
1407 * target.def (array_mode_supported_p): New hook.
1408 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1409 * doc/tm.texi: Regenerate.
1410 * stor-layout.c (mode_for_array): New function.
1411 (layout_type): Use it.
1412 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1413 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1414
b15eacc7
EB
14152011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1416
1417 PR target/48723
1418 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1419 for -fstack-check if the size to allocate is negative.
1420
575bfb00
LC
14212011-05-02 Lawrence Crowl <crowl@google.com>
1422
1423 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1424 (timevar_cond_start): New for starting a timer only when it is not
1425 already running.
1426 (timevar_cond_stop): New for stopping a timer when it was not already
1427 running.
1428
1429 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1430 (timevar_cond_start): New as above.
1431 (timevar_cond_stop): New as above.
1432
1433 * timevar.def: Add start/stop timers for compiler phases,
1434 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1435 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1436 and TV_PHASE_FINALIZE.
1437 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1438 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1439 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1440 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1441 Make unused TV_OVERLOAD into a start/stop timer.
1442
1443 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1444 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1445 to indicate that they are start/stop timers.
1446
1447 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1448 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1449 Move initialization to do_compile.
1450 (do_compile): Add initialization from above.
1451 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1452
1453 * c-decl.c (c_write_global_declarations): Add start/stop of
1454 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1455
1456 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1457 or TV_PARSE_INLINE, as appropriate.
1458 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1459 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1460
3533b943
JM
14612011-05-02 Jason Merrill <jason@redhat.com>
1462
1463 PR c++/40975
1464 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1465
2609a0ce
SM
14662011-05-02 Simon Martin <simartin@users.sourceforge.net>
1467
1468 PR c/35445
1469 * c-decl.c (finish_decl): Only create a composite if the types are
1470 compatible.
1471
6b0e4cbb
JM
14722011-05-02 Joseph Myers <joseph@codesourcery.com>
1473
1474 * config/fr30/fr30-protos.h (Mmode): Don't define.
1475 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1476 definition where used.
1477 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1478 define. Expand definitions where used.
1479 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1480 Expand definitions where used.
1481 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1482 rx_function_arg, rx_function_arg_advance,
1483 rx_function_arg_boundary): Expand definitions of those macros.
1484 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1485 definition where used.
1486
4e938ce6
UB
14872011-05-02 Uros Bizjak <ubizjak@gmail.com>
1488
1489 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1490 reg<->xmm moves.
1491 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1492 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1493 with *movv2sf_internal_rex64_avx.
1494 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1495 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1496 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1497 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1498 "vex" in "prefix" attribute calculation.
1499 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1500
36019c19
SH
15012011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1502
7a2f7208
UB
1503 PR target/47951
1504 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1505 inputs match the output.
36019c19 1506
f69ea688
AS
15072011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1508
1509 PR target/47955
1510 * config/m68k/m68k.c (m68k_expand_prologue): Set
1511 current_function_static_stack_size.
1512
c33406f5
JH
15132011-05-02 Jan Hubicka <jh@suse.cz>
1514
1515 * lto-streamer.c (lto_streamer_cache_insert_1,
1516 lto_streamer_cache_lookup, lto_streamer_cache_create,
1517 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1518 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1519
47c94d21
JM
15202011-05-02 Joseph Myers <joseph@codesourcery.com>
1521
1522 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1523 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1524 config/m68k/t-opts: New files.
1525 * config/m68k/m68k-tables.opt: New file (generated).
1526 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1527 extra_options and m68k/t-opts to tmake_file.
1528 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1529 (all_isas): Initialize using m68k-isas.def.
1530 (all_microarchs): Initialize using m68k-microarchs.def.
1531 (m68k_find_selection): Remove.
1532 (m68k_handle_option): Don't assert that global structures are in
1533 use. Use error_at. Access variables via opts pointer. Don't
1534 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1535 directly for -m68020-40 and -m68020-60.
1536 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1537 m68k_tune_entry here.
1538 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1539 to m68k-opts.h.
1540 (m68k_library_id_string): Remove declaration.
4e938ce6 1541 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
1542 (m68k_library_id_string): New Variable.
1543 (march=, mcpu=, mtune=): Use Enum and Var.
1544
e562bf36
RG
15452011-05-02 Richard Guenther <rguenther@suse.de>
1546
1547 * varasm.c (output_constructor_regular_field): Compute zero-based
1548 index with double-ints. Make sure to ICE instead of producing
1549 wrong code.
1550 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1551 in asserts. Properly use a signed type.
1552
6bec6c98
UB
15532011-05-02 Uros Bizjak <ubizjak@gmail.com>
1554
1555 * config/i386/sse.md (V): New mode iterator.
1556 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1557 TARGET_SSE2.
1558 (V_256): Rename from AVX256MODE.
1559 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1560 condition to all users.
1561 (VF1): Ditto.
1562 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1563 condition to all users.
1564 (VF_128): Make V4SF mode unconditional.
1565 (VF_256): Rename from AVX256MODEF2P.
1566 (VI4F_128): Rename from SSEMODE4S.
1567 (VI8F_128): Rename from SSEMODE2D.
1568 (VI4F_256): Rename from AVX256MODE8P.
1569 (VI8F_256): Rename from AVX256MODE4P.
1570 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1571 (ssescalarmodesuffix): Remove SF and DF modes.
1572 (SSEMODE124): Remove.
1573 (SSEMODE1248): Ditto.
1574 (SSEMODEF2P): Ditto.
1575 (AVXMODEF2P): Ditto.
1576 (AVXMODEFDP): Ditto.
1577 (AVXMODEFSP): Ditto.
1578 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1579 unconditional.
1580 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1581 unconditional.
1582 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1583 xop_pcmov_<mode>256. Use V mode iterator.
1584
1585 Adjust RTX patterns globally for renamed mode attributes.
1586
2dfdcb4b
UW
15872011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1588
1589 * haifa-sched.c (sched_emit_insn): Emit insn before first
1590 non-scheduled insn. Inform back-end about new insn. Add
1591 new insn to scheduled_insns list.
1592
90bc4623
RG
15932011-05-02 Richard Guenther <rguenther@suse.de>
1594
1595 PR tree-optimization/48822
1596 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1597 (process_scc): Indicate which iteration we start.
1598
bc0fe8cb
JH
15992011-05-02 Jan Hubicka <jh@suse.cz>
1600
1601 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1602 (lto_section_overrun): New.
1603 * lto-section-out.c (append_block): Rename to ...
1604 (lto_append_block): ... this one; export.
1605 (lto_output_1_stream): Move lto lto-streamer.h
1606 (lto_output_data_stream): Update.
1607 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1608 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1609 functions.
1610
f070a9d1
RG
16112011-05-02 Richard Guenther <rguenther@suse.de>
1612
1613 * tree.c (tree_code_counts): New global array.
1614 (record_node_allocation_statistics): Count individual tree codes.
1615 (dump_tree_statistics): Dump individual code stats.
1616
09dfe187
JH
16172011-05-01 Jan Hubicka <jh@suse.cz>
1618
1619 * ipa-inline.c (caller_growth_limits): Fix thinko when
1620 looking for largest stack frame.
1621 * ipa-inline.h (dump_inline_summary): Declare.
1622 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1623 on stack usage.
1624 (dump_inline_summary): Export.
1625 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1626
6f76a878
AS
16272011-05-01 Anatoly Sokolov <aesok@post.ru>
1628
1629 * reginfo.c (memory_move_cost): Change rclass argument type form
1630 'enum reg_class' to reg_class_t.
1631 * reload.h (memory_move_cost): Update prototype.
1632 * postreload.c reload_cse_simplify_set): Change type dclass var to
1633 reg_class_t.
1634 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1635 Update prototype.
1636 (ira_allocate_and_set_costs): Change aclass argument type form
1637 'enum reg_class' to reg_class_t.
6bec6c98 1638 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
1639 Change aclass argument type to reg_class_t.
1640 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1641 to reg_class_t.
1642 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1643 memory_move_cost call.
1644
1645 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1646 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1647 Change type tmp var to reg_class_t.
1648
9a4ac625
JH
16492011-04-30 Jan Hubicka <jh@suse.cz>
1650
1651 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1652 inlining into function with flatten attribute.
1653 (want_inline_small_function_p): Be more realistic about inlining
1654 cold calls where callee size grows.
1655
dd8352ee
JH
16562011-04-30 Jan Hubicka <jh@suse.cz>
1657
1658 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1659 flags.
1660
46e43d2b
AS
16612011-04-30 Anatoly Sokolov <aesok@post.ru>
1662
1663 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1664 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1665 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1666 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1667 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1668 (print_operand): Rename to...
1669 (sparc_print_operand): ...this. Make static. Adjust
1670 sparc_print_operand function call.
1671 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1672 functions.
1673
ecb62563
JH
16742011-04-30 Jan Hubicka <jh@suse.cz>
1675
6bec6c98 1676 PR middle-end/48752
ecb62563
JH
1677 * ipa-inline.c (early_inliner): Disable when doing late
1678 addition of function.
1679
edb9b69e
JJ
16802011-04-30 Jakub Jelinek <jakub@redhat.com>
1681
be80a87e
JJ
1682 * dwarf2out.c (get_address_mode): New inline.
1683 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1684 if not dwarf_strict emit
1685 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1686 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1687 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1688 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1689 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1690 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1691 mem_loc_descriptor callers.
1692 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1693 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1694 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1695 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1696 (base_types): New variable.
1697 (get_base_type_offset, calc_base_type_die_sizes,
1698 base_type_for_mode, mark_base_types, base_type_cmp,
1699 move_marked_base_types): New functions.
1700 (calc_die_sizes): Assert that die_offset is 0 or equal to
1701 next_die_offset.
1702 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1703 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1704 callers. If not dwarf_strict, call mem_loc_descriptor even for
1705 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1706 (gen_subprogram_die): Don't give up on call site parameters
1707 with non-integral or large integral modes. Adjust
1708 mem_loc_descriptor callers.
1709 (prune_unused_types): Call prune_unused_types_mark on base_types
1710 vector entries.
1711 (resolve_addr): Call mark_base_types.
1712 (dwarf2out_finish): Call move_marked_base_types.
1713
edb9b69e
JJ
1714 PR tree-optimization/48809
1715 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1716 type.
1717 (gen_inbound_check): Don't compute index_expr - range_min in utype
1718 again, instead reuse SSA_NAME initialized in build_arrays.
1719 Remove two useless gsi_for_stmt calls.
1720
a6545a3d
JL
17212011-04-29 Jeff Law <law@redhat.com>
1722
1723 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1724
af8bca3c
MJ
17252011-04-29 Martin Jambor <mjambor@suse.cz>
1726
1727 * cgraph.h (cgraph_postorder): Remove declaration.
1728 * ipa-utils.h (ipa_free_postorder_info): Declare.
1729 (ipa_reverse_postorder): Likewise.
1730 * cgraphunit.c: Include ipa-utils.h.
1731 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1732 * ipa-inline.c: Include ipa-utils.h.
1733 (ipa_inline): Update call to ipa_reverse_postorder.
1734 * ipa-pure-const.c (propagate_pure_const): Update call to
1735 ipa_reduced_postorder and ipa_print_order. Call
1736 ipa_free_postorder_info to clean up.
1737 (propagate_nothrow): Likewise.
1738 * ipa-reference.c (propagate): Removed a useless call to
1739 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1740 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1741 * ipa.c: Include ipa-utils.h.
1742 (ipa_profile): Update call to ipa_reverse_postorder.
1743 (cgraph_postorder): Moved to...
1744 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1745 (ipa_utils_print_order): Renamed to ipa_print_order.
1746 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1747 comments.
1748 (ipa_free_postorder_info): New function.
1749 * passes.c: Include ipa-utils.h.
1750 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1751 (ipa_write_summaries): Likewise.
1752 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1753 (cgraphunit.o): Likewise.
1754 (ipa.o): Likewise.
1755 (ipa-inline.o): Likewise.
1756
b15c64ee
JH
17572011-04-29 Jan Hubicka <jh@suse.cz>
1758
1759 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1760 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1761 * ipa-inline.h (clause_t): Turn into unsigned int.
1762 * ipa-inline-analysis.c (add_clause): Do more simplification.
1763 (and_predicates): Shortcut more cases.
1764 (predicates_equal_p): Move forward; check that clauses are properly
1765 ordered.
1766 (or_predicates): Shortcut more cases.
1767 (edge_execution_predicate): Rewrite as...
1768 (set_cond_stmt_execution_predicate): ... this function; handle
1769 __builtin_constant_p.
1770 (set_switch_stmt_execution_predicate): New .
1771 (compute_bb_predicates): New.
1772 (will_be_nonconstant_predicate): Update TODO.
1773 (estimate_function_body_sizes): Use compute_bb_predicates
1774 and free them later, always try to estimate if stmt is constant.
1775 (estimate_time_after_inlining, estimate_size_after_inlining):
1776 Gracefully handle optimized out edges.
1777 (read_predicate): Fix off by one error.
1778
a88fdc2a
NP
17792011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1780
1781 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1782
d984c8ef
XDL
17832011-04-27 Xinliang David Li <davidxl@google.com>
1784
1785 * tree-profile.c (init_ic_make_global_vars): Set
1786 tls attribute on ic vars.
1787 * coverage.c (coverage_end_function): Initialize
1788 function_list with zero.
1789
45a2c477
RG
17902011-04-29 Richard Guenther <rguenther@suse.de>
1791
1792 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1793 for the type of the result.
1794 (fold_builtin_isascii): Likewise.
1795 (fold_builtin_toascii): Use integer_type_node where appropriate.
1796 (fold_builtin_logb): Likewise.
1797 (fold_builtin_frexp): Likewise.
1798 (fold_builtin_strstr): Likewise.
1799 (fold_builtin_strpbrk): Likewise.
1800 (fold_builtin_fputs): Likewise.
1801 (fold_builtin_sprintf): Likewise.
1802 (fold_builtin_snprintf): Likewise.
1803 (fold_builtin_printf): Likewise.
1804 (do_mpfr_remquo): Use a proper type for the assigned constant.
1805 (do_mpfr_lgamma_r): Likewise.
1806 * dwarf2out.c (resolve_one_addr): Use size_int.
1807 * except.c (init_eh): Likewise.
1808 (assign_filter_values): Use integer_type_node for filter values.
1809 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1810 indices.
1811 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1812 for EH region numbers.
1813 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1814 for the shift amount.
1815
eb6c3df1
RG
18162011-04-29 Richard Guenther <rguenther@suse.de>
1817
1818 * expr.h (expand_shift): Rename to ...
1819 (expand_variable_shift): ... this.
1820 (expand_shift): Take a constant shift amount.
1821 * expmed.c (expand_shift): Rename to ...
1822 (expand_variable_shift): ... this.
1823 (expand_shift): New wrapper around expand_variable_shift.
1824 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1825 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1826 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1827 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1828 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1829 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1830 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1831 emit_store_flag_1, emit_store_flag): Likewise.
1832 * builtins.c (expand_builtin_signbit): Likewise.
1833 * calls.c (load_register_parameters): Likewise.
1834 * function.c (assign_parm_setup_block): Likewise.
1835 * lower-subreg.c (resolve_shift_zext): Likewise.
1836 * optabs.c (widen_bswap, expand_abs_nojump,
1837 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1838 * spu/spu.c (spu_expand_extv): Likewise.
1839 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1840
9f616812
RG
18412011-04-29 Richard Guenther <rguenther@suse.de>
1842
1843 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1844 for the remapped region number.
1845 * predict.c (build_predict_expr): Use integer_type_node for the
1846 predict kind.
1847 * fold-const.c (fold_binary_loc): Use integer_type_node for
1848 the shift amount. Use a proper type for the PLUS_EXPR operand.
1849
b823cdfe
MM
18502011-04-29 Michael Matz <matz@suse.de>
1851
1852 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1853 other trees that just builtins.
1854 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1855
413581ba
RG
18562011-04-29 Richard Guenther <rguenther@suse.de>
1857
1858 * tree-nested.c (get_trampoline_type): Use size_int.
1859 (get_nl_goto_field): Likewise.
1860 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1861 for all indexes.
1862 (lower_eh_constructs_2): Likewise.
1863 (lower_resx): Likewise.
1864 (lower_eh_dispatch): Likewise.
1865 * tree-mudflap.c (mf_build_string): Use size_int.
1866 (mudflap_register_call): Use integer_type_node for the flag.
1867 (mudflap_enqueue_constant): Use size_int.
1868 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1869 instead of rebuilding it.
1870
5c04e9f4
RG
18712011-04-29 Richard Guenther <rguenther@suse.de>
1872
1873 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1874 Handle OBJ_TYPE_REF.
1875 (find_func_aliases_for_call): Use it more consistently.
1876
5c24671b
AO
18772011-04-29 Alexandre Oliva <aoliva@redhat.com>
1878
1879 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1880 (rank_for_schedule): Use it.
1881 (schedule_block): Set it.
1882
10adac51
XDL
18832011-04-28 David Li <davidxl@google.com>
1884
1885 * tree.c (crc32_string): Use crc32_byte.
1886 (crc32_byte): New function.
1887 * tree.h (crc32_byte): New function.
1888 * gcov.c (read_graph_file): Handle new cfg_cksum.
1889 (read_count_file): Ditto.
1890 * profile.c (instrument_values): Ditto.
1891 (get_exec_counts): Ditto.
1892 (read_profile_edge_counts): Ditto.
1893 (compute_branch_probabilities): Ditto.
1894 (compute_value_histograms): Ditto.
1895 (branch_prob): Ditto.
1896 (end_branch_prob): Ditto.
1897 * coverage.c (read_counts_file): Ditto.
1898 (get_coverage_counts): Ditto.
1899 (tree_coverage_counter_addr): Ditto.
1900 (coverage_checksum_string): Ditto.
1901 (coverage_begin_output): Ditto.
1902 (coverage_end_function): Ditto.
1903 (build_fn_info_type): Ditto.
1904 (build_fn_info_value): Ditto.
1905 * libgcov.c (gcov_exit): Ditto.
1906 * gcov-dump.c (tag_function): Ditto.
1907 (compute_checksum): Remove.
1908
5d6358a5
AM
19092011-04-29 Alan Modra <amodra@gmail.com>
1910
1911 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1912 unspec plus offset. Tidy macho code.
1913
85ad2ef5
MJ
19142011-04-29 Martin Jambor <mjambor@suse.cz>
1915
1916 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1917 node instead of a decl. Update all callers.
1918 * cgraph.h: Update declaration.
1919
437f4a00
IR
19202011-04-28 Ira Rosen <ira.rosen@linaro.org>
1921
1922 PR tree-optimization/48765
1923 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1924 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1925 to indicate if loop aware SLP is being used. Scan the statements
1926 and update the vectorization factor according to the type of
1927 vectorization before statement analysis.
1928 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1929 pass it to vect_analyze_loop_operations.
1930 (vectorizable_reduction): Set number of copies to 1 in case of pure
1931 SLP statement.
1932 * tree-vect-stmts.c (vectorizable_conversion,
1933 vectorizable_assignment, vectorizable_shift,
1934 vectorizable_operation, vectorizable_type_demotion,
1935 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1936 Likewise.
1937 (vectorizable_condition): Move the check that it is not SLP
1938 vectorization before the number of copies check.
1939 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1940 to vectorize the loop using SLP.
1941
c6fc44f3
JJ
19422011-04-28 Jakub Jelinek <jakub@redhat.com>
1943
1944 PR middle-end/48597
1945 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1946 inline asm.
1947
6c0170ea
JM
19482011-04-28 Joseph Myers <joseph@codesourcery.com>
1949
1950 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1951 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1952 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1953 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1954 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1955 linux*.h headers.
6bec6c98 1956 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
1957 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1958 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1959 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 1960 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
1961 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1962 REG_NAME.
1963 * config/i386/linux.h (REG_NAME): Don't define.
1964 * config/i386/linux64.h (REG_NAME): Don't define.
1965 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1966 Undefine before defining.
1967
970dabbd
JH
19682011-04-28 Jan Hubicka <jh@suse.cz>
1969
6bec6c98
UB
1970 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1971 nonconstant_names array.
970dabbd
JH
1972 (estimate_function_body_sizes): Build nonconstant_names array; handle
1973 BUILT_IN_CONSTANT_P.
1974
8d3e3924
RG
19752011-04-28 Richard Guenther <rguenther@suse.de>
1976
1977 PR bootstrap/48804
1978 Revert
1979 2011-04-28 Richard Guenther <rguenther@suse.de>
1980
1981 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1982 as late as possible.
6bec6c98 1983
8576f20a
RG
19842011-04-28 Richard Guenther <rguenther@suse.de>
1985
1986 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1987 (debug_constraint): Do it here.
1988 (dump_constraints): And here.
1989 (rewrite_constraints): And here.
1990 (dump_constraint_edge): Remove.
1991 (dump_constraint_graph): Rewrite to produce DOT output.
1992 (solve_constraints): Build succ graph as late as possible.
1993 Dump constraint graphs before and after solving.
1994
e38811ce
RG
19952011-04-28 Richard Guenther <rguenther@suse.de>
1996
1997 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1998 New function split out from ...
1999 (find_func_aliases): ... here. Call it.
2000 (find_func_aliases_for_call): Likewise.
2001
fbaf0d0c
GDR
20022011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2003
2004 * internal-fn.h (internal_fn_name_array): Declare.
2005 (internal_fn_flags_array): Likewise.
2006
cbb734aa
UB
20072011-04-27 Uros Bizjak <ubizjak@gmail.com>
2008
2009 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2010 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2011 Move from sse.md.
2012 (ssemodefsuffix): Remove.
2013 (ssevecmodesuffix): New mode attribute.
2014 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2015 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2016 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2017 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2018 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2019 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2020 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2021 ssemodesuffix mode attribute.
2022 (float splitters): Use ssevecmodesuffix mode attribute.
2023 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2024 (sseinsmode): Rename from avxvecmode.
2025 (avxsizesuffix): Rename from avxmodesuffix.
2026 (sseintvecmode): Rename from avxpermvecmode.
2027 (ssedoublevecmode): Rename from ssedoublesizemode.
2028 (ssehalfvecmode): Rename from avxhalfvecmode.
2029 (ssescalarmode): Rename from avxscalarmode.
2030 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2031 templates for ssemodesuffix mode attribute.
2032 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2033 mode attribute.
2034
2035 Adjust RTX patterns globally for renamed mode attributes.
2036
991278ab
JH
20372011-04-27 Jan Hubcika <jh@suse.cz>
2038
2039 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2040 * ipa-inline-analysis.c: Include alloc-pool.h.
2041 (edge_predicate_pool): New.
2042 (trye_predicate_p): New function
2043 (false_predicate_p): New function.
2044 (add_clause): Sanity check that false clauses are "optimized";
2045 never add clauses to predicate that is already known to be false.
2046 (and_predicate): Use flase_predicate_p.
2047 (evaulate_predicate): Rename to ...
2048 (evaluate_predicate): ... this one; update all callers; assert
2049 that false is not listed among possible truths.
2050 (dump_predicate): Use true_predicate_p.
2051 (account_size_time): Use false_predicate_p.
2052 (evaulate_conditions_for_edge): Rename to ...
2053 (evaluate_conditions_for_edge) ... this one.
2054 (edge_set_predicate): New function.
2055 (inline_edge_duplication_hook): Duplicate edge predicates.
2056 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 2057 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
2058 (dump_inline_summary): Update.
2059 (estimate_function_body_sizes): Set edge predicates.
2060 (estimate_calls_size_and_time): Handle predicates.
2061 (estimate_callee_size_and_time): Update.
2062 (remap_predicate): Add toplev_predicate; update comment.
2063 (remap_edge_predicates): New function.
2064 (inline_merge_summary): Compute toplev predicate; update.
2065 (read_predicate): New function.
2066 (read_inline_edge_summary): Use it.
2067 (inline_read_section): Likewise.
2068 (write_predicate): New function.
2069 (write_inline_edge_summary): Use it.
2070 (inline_write_summary): Likewise.
2071 (inline_free_summary): Free alloc pool and edge summary vec.
2072
648b5f85
RG
20732011-04-27 Richard Guenther <rguenther@suse.de>
2074
2075 * tree-ssa-structalias.c (changed_count): Remove.
2076 (changed): Use a bitmap.
2077 (unify_nodes): Adjust.
2078 (do_sd_constraint): Likewise.
2079 (do_ds_constraint): Likewise.
2080 (do_complex_constraint): Likewise.
2081 (solve_graph): Likewise.
2082
4d5dcfb2
JH
20832011-04-27 Jan Hubicka <jh@suse.cz>
2084
2085 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
2086
200eb7d2
UB
20872011-04-27 Uros Bizjak <ubizjak@gmail.com>
2088
2089 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
2090 (avx_vperm2f128_*_operand): Ditto.
2091 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
2092 Use avx_vpermilp_parallel in insn condition.
2093 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
2094 Use avx_vperm2f128_parallel in insn condition.
2095
7d6e2521
RG
20962011-04-27 Richard Guenther <rguenther@suse.de>
2097
2098 * Makefile.in (tree-ssa-structalias.o): Remove
2099 gt-tree-ssa-structalias.h dependency.
2100 (GTFILES): Remove tree-ssa-structalias.c.
2101 * tree.c (allocate_decl_uid): New function.
2102 (make_node_stat): Use it.
2103 (copy_node_stat): Likewise.
2104 * tree.h (allocate_decl_uid): Declare.
2105 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
2106 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
2107 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 2108 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
2109 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
2110 (struct heapvar_map): Likewise.
2111 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
2112 heapvar_insert): Likewise.
2113 (make_heapvar_for): Rename to ...
2114 (make_heapvar): ... this. Simplify.
2115 (fake_var_decl_obstack): New global var.
2116 (build_fake_var_decl): New function.
2117 (make_constraint_from_heapvar): Adjust.
2118 (handle_lhs_call): Likewise.
2119 (create_function_info_for): Likewise.
2120 (intra_create_variable_infos): Likewise.
2121 (init_alias_vars): Allocate fake_var_decl_obstack.
2122 (init_alias_heapvars, delete_alias_heapvars): Remove.
2123 (compute_points_to_sets): Do not call init_alias_heapvars.
2124 (ipa_pta_execute): Likewise.
2125 (delete_points_to_sets): Free fake_var_decl_obstack.
2126
526ed6c2
UW
21272011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2128
2129 * config/spu/divmovti4.c (union qword_UTItype): New data type.
2130 (si_from_UTItype, si_to_UTItype): New functions.
2131 (__udivmodti4): Use them to implement type-punning.
2132 * config/spu/multi3.c (union qword_TItype): New data type.
2133 (si_from_TItype, si_to_TItype): New functions.
2134 (__multi3): Use them to implement type-punning.
2135
c187d33c
UW
21362011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2137
2138 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
2139
40982661
JH
21402011-04-27 Jan Hubicka <jh@suse.cz>
2141
2142 * ipa-prop.c (function_insertion_hook_holder): New holder.
2143 (ipa_add_new_function): New function.
200eb7d2
UB
2144 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
2145 Register/deregister holder.
40982661 2146
9aef53ee
RG
21472011-04-27 Richard Guenther <rguenther@suse.de>
2148
2149 PR tree-optimization/48772
200eb7d2 2150 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 2151
f63d806d
RG
21522011-04-27 Richard Guenther <rguenther@suse.de>
2153
2154 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
2155 TARGET_MEM_REF handling.
2156
e1ea7451
NC
21572011-04-27 Nick Clifton <nickc@redhat.com>
2158
9b5db25d
NC
2159 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
2160 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
2161 (REG_CLASS_NAMES): Likewise.
2162 (REG_CLASS_CONTENTS): Likewise.
2163 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2164 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
2165 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
2166 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
2167 (EVEN_REGS): New macro. Alias for QUAD_REGS.
2168 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
2169 duplicate register classes.
97d20907 2170 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
2171 (frv_register_move_cost): Likewise.
2172
e1ea7451
NC
2173 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
2174 end of the regno_reg_class array.
2175
5c2f94b4
JJ
21762011-04-27 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR c/48742
2179 * c-typeck.c (build_binary_op): Don't wrap arguments if
2180 int_operands is true.
2181
57a944d7
KK
21822011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
2183
2184 PR target/48767
2185 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
2186 targetm.calls.must_pass_in_stack for void type.
2187
898b8927
JH
21882011-04-26 Jan Hubicka <jh@suse.cz>
2189
2190 * cgraphbuild.c (build_cgraph_edges): Update call
2191 of cgraph_create_edge and cgraph_create_indirect_edge.
2192 * cgraph.c (cgraph_create_edge_including_clones,
2193 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
2194 cgraph_update_edges_for_call_stmt_node): Do not take nest
2195 argument; do not initialize call_stmt_size/time.
2196 (dump_cgraph_node): Do not dump nest.
2197 (cgraph_clone_edge): Do not take loop_nest argument;
2198 do not propagate it; do not clone call_stmt_size/time.
2199 (cgraph_clone_node): Likewise.
2200 (cgraph_create_virtual_clone): Update.
2201 * cgraph.h (struct cgraph_edge): Remove
2202 call_stmt_size/call_stmt_time/loop_nest.
2203 (cgraph_create_edge, cgraph_create_indirect_edge,
2204 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2205 prototype.
2206 * tree-emutls.c (gen_emutls_addr): Update.
2207 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2208 loop_nest; handle indirect calls, too.
2209 (clone_inlined_nodes): Do not care about updating inline summaries.
2210 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2211 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2212 stream call_stmt_size/call_stmt_time/loop_nest.
2213 * ipa-inline.c (edge_badness): Update.
2214 (ipa_inline): dump summaries after inlining.
2215 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 2216 New.
898b8927
JH
2217 (inline_edge_summary): New function.
2218 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2219 (inline_edge_removal_hook): Handle edge summaries.
2220 (inline_edge_duplication_hook): New hook.
2221 (inline_summary_alloc): Alloc hooks.
2222 (initialize_growth_caches): Do not register removal hooks.
2223 (free_growth_caches); Do not free removal hook.
2224 (dump_inline_edge_summary): New function.
2225 (dump_inline_summary): Use it.
2226 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2227 (inline_update_callee_summaries): New function.
2228 (inline_merge_summary): Use it.
2229 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2230 (read_inline_edge_summary): New function.
2231 (inline_read_section): Use it.
2232 (write_inline_edge_summary): New function.
2233 (inline_write_summary): Use it.
2234 (inline_free_summary): Free edge new holders.
2235 * tree-inline.c (copy_bb): Update.
2236
ffa03772
JM
22372011-04-26 Jason Merrill <jason@redhat.com>
2238
2239 * tree-eh.c (lower_try_finally_switch): Create the label along with
2240 the CASE_LABEL_EXPR.
2241
6d7b45ad
DM
22422011-04-26 David S. Miller <davem@davemloft.net>
2243 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2244
2245 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2246 * configure: Regenerate.
2247
df10b6d4
MM
22482011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2249
2250 PR target/48258
2251 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2252 reduction.
2253 (VEC_reduc): New code iterator and splitters for vector reduction.
2254 (VEC_reduc_name): Ditto.
2255 (VEC_reduc_rtx): Ditto.
2256 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2257 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2258
2259 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2260 support for extracting SF on VSX.
2261
2262 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2263 generating xscvspdp.
2264 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2265 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2266 double add, minimum, maximum vector reduction.
2267 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2268 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2269 optimize double vector reduction.
2270 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2271
35a5db04
JM
22722011-04-26 Joseph Myers <joseph@codesourcery.com>
2273
2274 * config/fr30/fr30.h (inhibit_libc): Don't define.
2275 * config/m32r/m32r-protos.h: Correct comment.
2276 * config/v850/v850.h (GHS_default_section_names,
2277 GHS_current_section_names): Use tree, not union tree_node *.
2278
2f964ad6
XDL
22792011-04-26 Xinliang David Li <davidxl@google.com>
2280
200eb7d2 2281 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
2282 * c-family/c-opts.c (c_common_handle_option): Set
2283 warn_maybe_uninitialized.
2284 * opts.c (common_handle_option): Ditto.
2285 * common.opt: New option.
2286 * tree-ssa.c (warn_uninit): Add one more parameter.
2287 (warn_uninitialized_var): Pass warning code.
2288 * tree-flow.h: Interface change.
2289
2290
9c7bd91a
RO
22912011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2292
200eb7d2 2293 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
2294 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2295 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2296
c2f36e21
RO
22972011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2298
2299 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2300 * config/mips/mips.opt (mmips-tfile): Remove.
2301
2302 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2303 mips-tdump reference to ...
200eb7d2 2304 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
2305 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2306 reference by Tru64 UNIX.
2307
2c9da85b
JJ
23082011-04-26 Jakub Jelinek <jakub@redhat.com>
2309
0c5f6539
JJ
2310 PR debug/48768
2311 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2312 is error_mark_node, set value to NULL.
2313
2c9da85b
JJ
2314 PR tree-optimization/48734
2315 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2316 if return value from maybe_fold_*_comparsions isn't something
2317 the code is prepared to handle.
2318
77fa1d54
UB
23192011-04-26 Uros Bizjak <ubizjak@gmail.com>
2320
2321 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2322 mode check.
2323 (ext_QIreg_nomode_operands): Remove.
2324 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2325 (*andsi_1): Ditto.
2326 (*andhi_1): Ditto.
2327
0e2a6c2b
AS
23282011-04-26 Andrew Stubbs <ams@codesourcery.com>
2329
2330 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2331
961562d8
RB
23322011-04-26 Richard Guenther <rguenther@suse.de>
2333
2334 * c-typeck.c (build_unary_op): Do not expand array-refs via
2335 pointer arithmetic. Only adjust qualifiers for function types.
2336
23372011-04-26 Richard Guenther <rguenther@suse.de>
2338
2339 PR middle-end/48694
2340 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2341 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
2342 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2343 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 2344
a0d260fc
PC
23452011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2346
77fa1d54 2347 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
a0d260fc 2348 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
6bec6c98 2349 * doc/extend.texi: Document __underlying_type.
a0d260fc 2350
4d583bb9
SB
23512011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2352
2353 * config/rs6000/titan.md (automata_option "progress"): Remove.
2354
1f3fcdc3
JL
23552011-04-25 Jeff Law <law@redhat.com>
2356
2357 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2358
e5b0dad8
JK
23592011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2360
2361 * system.h (ENUM_BITFIELD): Remove.
2362
5157a881 23632011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 2364 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
2365
2366 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2367 for STORE_FLAG_VALUE==-1 case.
2368
ed4c109e
RS
23692011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2370
2371 PR target/43804
2372 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2373 LEGITIMATE_PIC_OPERAND_P.
2374
f3181aa2
JH
23752011-04-24 Jan Hubicka <jh@suse.cz>
2376
2377 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2378 WPA hack.
77fa1d54
UB
2379 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2380 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2381 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
2382 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2383 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2384 Sanity check predicate length.
2385 (remap_predicate): Likewise; sanity check jump functions.
2386 (inline_read_section, inline_write_summary): Sanity check
2387 predicate length.
2388
5307cbaa
PC
23892011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2390
2391 PR other/48748
2392 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2393 __is_literal_type, and __is_trivial; update throughout about
2394 possibly cv-qualified void types.
2395
bebd5f99
GP
23962011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2397
2398 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2399 testsuite and make it version agnostic.
2400
7ee28a74
JH
24012011-04-22 Jan Hubicka <jh@suse.cz>
2402
2403 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2404
16997bc0
JJ
24052011-04-23 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR c/48685
2408 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2409 to VOID_TYPE even around MODIFY_EXPR.
2410
f94d4ab1
MS
24112011-04-22 Mike Stump <mikestump@comcast.net>
2412
1a84c183 2413 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
2414 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2415 comment.
2416
632b4f8e
JH
24172011-04-22 Jan Hubicka <jh@suse.cz>
2418
2419 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
2420 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2421 ipa-prop.c; update all uses.
632b4f8e 2422 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
2423 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2424 merge summary of inlined function into former caller.
632b4f8e
JH
2425 * ipa-inline.c (max_benefit): Remove.
2426 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
2427 (update_caller_keys): Use
2428 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
2429 (update_callee_keys): Likewise.
2430 (update_all_callee_keys): Likewise.
77fa1d54
UB
2431 (inline_small_functions): Do not collect max_benefit; do not reset
2432 estimated_growth; call free_growth_caches and initialize_growth_caches.
2433 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2434 struct size_time_entry): New structures.
632b4f8e 2435 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
2436 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2437 and estimated_growth.
632b4f8e
JH
2438 (edge_growth_cache_entry): New structure.
2439 (node_growth_cache, edge_growth_cache): New global vars.
2440 (estimate_growth): Turn into inline.
2441 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2442 initialize_growth_caches, free_growth_caches): Declare.
2443 (estimate_edge_growth): Rewrite.
2444 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
2445 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2446 functions.
632b4f8e
JH
2447 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2448 (NUM_CONDITIONS): New constant.
2449 (predicate_conditions): New enum.
2450 (IS_NOT_CONSTANT): New constant.
2451 (edge_removal_hook_holder): New var.
2452 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
2453 (true_predicate, single_cond_predicate, false_predicate,
2454 not_inlined_predicate, add_condition, add_clause, and_predicates,
2455 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2456 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
2457 evaulate_conditions_for_edge): New functions.
2458 (inline_summary_alloc): Move to heap.
2459 (inline_node_removal_hook): Clear condition and entry vectors.
2460 (inline_edge_removal_hook): New function.
2461 (initialize_growth_caches, free_growth_caches): New function.
2462 (dump_inline_summary): Update.
2463 (edge_execution_predicate): New function.
2464 (will_be_nonconstant_predicate): New function.
2465 (estimate_function_body_sizes): Compute BB and constantness predicates.
2466 (compute_inline_parameters): Do not clear estimated_growth.
2467 (estimate_edge_size_and_time): New function.
2468 (estimate_calls_size_and_time): New function.
2469 (estimate_callee_size_and_time): New function.
2470 (remap_predicate): New function.
2471 (inline_merge_summary): New function.
2472 (do_estimate_edge_time): New function based on...
2473 (estimate_edge_time): ... this one.
2474 (do_estimate_edge_growth): New function.
2475 (do_estimate_growth): New function based on....
2476 (estimate_growth): ... this one.
2477 (inline_analyze_function): Analyze after deciding on jump functions.
2478 (inline_read_section): New function.
2479 (inline_read_summary): Use it.
2480 (inline_write_summary): Write all the new data.
2481 * ipa-prop.c (ipa_get_param_decl_index): Export.
2482 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
2483 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2484 Declare.
2485 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
2486 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2487 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2488 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2489 cgraph_edge_inlinable_p): Remove.
2490 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
2491 (cgraph_process_new_functions): Update call of
2492 compute_inline_parameters.
632b4f8e 2493
1df5b0db
RG
24942011-04-22 Richard Guenther <rguenther@suse.de>
2495
2496 * tree.c (build_int_cst): Properly create canonicalized integer
2497 constants.
2498 (build_int_cst_type): Remove scary comments.
2499
ae01169c
XDL
25002011-04-22 Xinliang David Li <davidxl@google.com>
2501
2502 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2503 by default when -Wno-error is not specified.
2504 * opts-global.c (decode_options): Remove call to
2505 control_warning_options.
2506
93dfac24
JJ
25072011-04-22 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR tree-optimization/48717
2510 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2511 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2512
1b5f5069
JM
25132011-04-22 Joseph Myers <joseph@codesourcery.com>
2514
2515 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2516 definition where used.
2517
144f4153
JJ
25182011-04-22 Jakub Jelinek <jakub@redhat.com>
2519
2520 PR c/48716
2521 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2522 TREE_STATIC variables declared inside of some OpenMP construct.
2523
f9fd305b
MJ
25242011-04-22 Martin Jambor <mjambor@suse.cz>
2525
2526 PR middle-end/48585
1d284ec5 2527 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 2528
49819fef
AM
25292011-04-22 Alexander Monakov <amonakov@ispras.ru>
2530
2531 PR c/36750
2532 * c-typeck.c (pop_init_level): Do not warn about initializing
2533 with ` = {0}'.
2534
401f6699
AM
25352011-04-22 Alan Modra <amodra@gmail.com>
2536
2537 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2538 when returning call_cookie.
2539 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2540 pointers, to functions with no more vector args than the current
2541 function, and some non-local calls for ABI_V4.
2542 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2543 sibcall_nonlocal_aix64): Combine to ..
2544 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2545 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2546 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2547 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2548 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2549 operand.
2550 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2551 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2552 sibcall_value_symbolic_64): Delete.
2553
903d1e67
XDL
25542011-04-21 Xinliang David Li <davidxl@google.com>
2555
2556 * cgraph.h: Remove pid.
2557 * cgraph.c: Remove pid.
2558 * value-prof.c (init_node_map): New function.
2559 (del_node_map): New function.
2560 (find_func_by_funcdef_no): New function.
2561 (gimple_ic_transform): Call new function.
2562 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2563 * function.c (get_last_funcdef_no): New function.
2564 * function.h (get_last_funcdef_no): New function.
2565 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2566 to libgcov function.
2567 (tree-profiling): Call node map init and delete function.
2568
7378e95f
ILT
25692011-04-21 Ian Lance Taylor <iant@google.com>
2570
2571 * godump.c (go_format_type): Use exported Go name for anonymous
2572 field name.
2573
e84a6fcf
NF
25742011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2575
2576 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2577 Call builtin_function_type_list instead of builtin_function_type.
2578 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2579
4fe058e2
NF
25802011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2581
2582 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2583 build_function_type_list instead of build_function_type.
2584 Delete variable `endlink'.
2585
1ba0a2d2
NF
25862011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2587
2588 * config/s390/s390.c (s390_init_builtins): Call
2589 build_function_type_list instead of build_function_type.
2590
c0676219
NF
25912011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2592
2593 * config/ia64/ia64.c (ia64_init_builtins): Call
2594 build_function_type_list instead of builtin_function_type.
2595
6ddfda8a
ER
25962011-04-21 Easwaran Raman <eraman@google.com>
2597
3a6448ea 2598 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
2599 (add_stack_var): ...and its reference here...
2600 (expand_stack_vars): ...and here.
2601 (stack_var_cmp): Sort by descending order of size.
2602 (partition_stack_vars): Change heuristic.
1d284ec5 2603 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
2604 (dump_stack_var_partition): Add newline after each partition.
2605
23756963
DA
26062011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2607 Jeff Law <law@redhat.com>
2608
77fa1d54 2609 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
2610 * gengtype.c (matching_file_name_substitute): Likewise.
2611
aa2a43d2
RG
26122011-04-21 Richard Guenther <rguenther@suse.de>
2613
2614 PR lto/48703
1d284ec5 2615 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 2616
4d931f41
EB
26172011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2618
2619 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2620
f103fa7a
RG
26212011-04-21 Richard Guenther <rguenther@suse.de>
2622
2623 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2624 file name.
2625
e19f6650
RG
26262011-04-21 Richard Guenther <rguenther@suse.de>
2627
2628 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2629 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2630 Use DECL_P, not SSA_VAR_P.
2631 (ptr_derefs_may_alias_p): Likewise.
2632 (ptr_deref_may_alias_ref_p_1): Likewise.
2633 (decl_refs_may_alias_p): Likewise.
2634 (refs_may_alias_p_1): Likewise.
2635 (ref_maybe_used_by_call_p_1): Likewise.
2636 (call_may_clobber_ref_p_1): Likewise.
2637 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2638 are either MEM_REF or TARGET_MEM_REF.
2639 (indirect_refs_may_alias_p): Likewise.
2640 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2641 for MEM_EXPR of indirect calls.
2642
9d1831bb
TG
26432011-04-21 Tristan Gingold <gingold@adacore.com>
2644
2645 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2646 (dst_file_info_struct): Remove flen field.
2647 (lookup_filename): Remove code that set flen field.
2648
f199c029
TG
26492011-04-21 Tristan Gingold <gingold@adacore.com>
2650
2651 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2652
2894086e
UB
26532011-04-21 Uros Bizjak <ubizjak@gmail.com>
2654
2655 PR target/48708
2656 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2657 vec_extract and vec_concat for non-SSE4_1 targets.
2658
53f94a5c
RG
26592011-04-21 Richard Guenther <rguenther@suse.de>
2660
2661 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2662 return statements.
2663
f0dca5ba
JM
26642011-04-21 Joseph Myers <joseph@codesourcery.com>
2665
2666 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2667 undefine.
2668 (FILE): Don't undefine.
2669
984514ac
JM
26702011-04-21 Joseph Myers <joseph@codesourcery.com>
2671
2672 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2673 struct rtx_def *.
2674 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2675 struct rtx_def *.
2676 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 2677 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
2678 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2679 rtx_def *.
2680 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2681 definitions where used.
2682 * config/microblaze/microblaze.h (struct microblaze_args): Use
2683 rtx, not struct rtx_def *.
2684 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2685 rtx_def *.
2894086e
UB
2686 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2687 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
2688 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2689 not struct rtx_def *.
2690 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2691 struct rtx_def *.
2692 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2693 rtx_def *.
2894086e 2694 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 2695
0b5a2724
RS
26962011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2697
2698 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2699 operand_equal_p to compare DR_BASE_ADDRESSes.
2700 (vect_check_interleaving): Likewise.
2701
4b18d683
RS
27022011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2703
2704 PR target/46329
2705 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2706 for all Neon struct constants.
2707
1a627b35
RS
27082011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2709
2710 * target.def (legitimate_constant_p): New hook.
2711 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2712 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2713 * doc/tm.texi: Regenerate.
2714 * hooks.h (hook_bool_mode_rtx_true): Declare.
2715 * hooks.c (hook_bool_mode_rtx_true): Define.
2716 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2717 * calls.c (precompute_register_parameters): Replace uses of
2718 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2719 (emit_library_call_value_1): Likewise.
2720 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2721 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2722 * ira-costs.c (scan_one_insn): Likewise.
2723 * recog.c (general_operand, immediate_operand): Likewise.
2724 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2725 * reload1.c (init_eliminable_invariants): Likewise.
2726
2727 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2728 mode argument.
2729 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2730 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2731 argument.
2732 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2733 * config/alpha/predicates.md (input_operand): Update call to
2734 alpha_legitimate_constant_p.
2735
2736 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2737 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2738 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2739 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2740 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2741 (arm_legitimate_constant_p): New functions.
2742 (arm_cannot_force_const_mem): Make static.
2743
2744 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2745
2746 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2747 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2748 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2749 instead of bfin_legitimate_constant_p.
2750 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2751 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2752
2753 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2754
2755 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2756
2757 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2758 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2759 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2760 (frv_legitimate_constant_p): Make static. Add a mode argument.
2761
2762 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2763 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2764 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2765
2766 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2767 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2768 * config/i386/i386.c (legitimate_constant_p): Rename to...
2769 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2770 argument.
2771 (ix86_cannot_force_const_mem): Update accordingly.
2772 (ix86_legitimate_address_p): Likewise.
2773 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2774 * config/i386/i386.md: Update commentary.
2775
2776 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2777 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2778 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2779 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2780
2781 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2782
2783 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2784 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2785 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2786 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2787
2788 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2789 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2790 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2791
2792 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2793 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2794 (m32r_legitimate_constant_p): New function.
2795
2796 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2797 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2798 LEGITIMATE_CONSTANT_P.
2799 (LEGITIMATE_CONSTANT_P): Delete.
2800 * config/m68k/m68k.c (m68k_expand_prologue): Call
2801 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2802 (m68k_legitimate_constant_p): New function.
2803 * config/m68k/m68k.md: Update comments.
2804
2805 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2806 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2807 (mcore_legitimate_constant_p): New function.
2808
2809 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2810 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2811 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2812 Add a mode argument.
2813 (mep_legitimate_address): Update accordingly.
2814 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2815
2816 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2817 Delete.
2818 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2819 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2820 static. Check OP's mode for VOIDmode.
2821 (microblaze_legitimate_constant_p): New function.
2822 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2823
2824 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2825 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2826 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2827 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2828 * config/mips/predicates.md: Update comments.
2829
2830 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2831 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2832 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2833 (mmix_legitimate_constant_p): Make static, return a bool, and take
2834 a mode argument.
2835 (mmix_print_operand_address): Update accordingly.
2836
2837 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2838 Delete.
2839 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
2840 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2841 static. Add a mode argument.
1a627b35
RS
2842 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2843
2844 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2845
2846 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2847 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2848 (pa_legitimate_constant_p): New function.
2849
2850 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2851
2852 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2853 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2854 (pdp11_legitimate_constant_p): New function.
2855
2856 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2857 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2858 (rs6000_legitimate_constant_p): New function.
2859
2860 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2861 (rx_legitimate_constant_p): ...this.
2862 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2863 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2864 (rx_legitimate_constant_p): ...this.
2865 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2866 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2867
2868 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2869 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2870 * config/s390/s390.c (legitimate_constant_p): Rename to...
2871 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2872 and add a mode argument.
2873 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2874
2875 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2876
2877 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2878 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2879 (sh_legitimate_constant_p): New function.
2880
2881 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2882 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2883 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2884 (legitimate_constant_p): Rename to...
2885 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2886 argument.
2887 (constant_address_p): Update accordingly.
2888
2889 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2890 argument and return a bool.
2891 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2892 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2893 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2894 (spu_rtx_costs): Update accordingly.
2895 * config/spu/predicates.md (vec_imm_operand): Likewise.
2896
2897 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2898
2899 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2900 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2901 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2902
2903 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2904 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2905 * config/vax/vax.c (legitimate_constant_p): Likewise.
2906
2907 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2908 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2909 (xtensa_legitimate_constant_p): New function.
2910
fbbf66e7
RS
29112011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2912
2913 * target.def (cannot_force_const_mem): Add a mode argument.
2914 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2915 * doc/tm.texi: Regenerate.
2916 * hooks.h (hook_bool_mode_rtx_false): Declare.
2917 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2918 (hook_bool_mode_const_rtx_true): Likewise.
2919 (hook_bool_mode_rtx_false): New function.
2920 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2921 to be non-VOID. Update call to cannot_force_const_mem.
2922 (find_reloads): Update accordingly.
2923 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2924 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2925 argument.
2926 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2927 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2928 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2929 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2930 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2931 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2932 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2933 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2934 (m68k_cannot_force_const_mem): ...this new function.
2935 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2936 argument.
2937 (mips_const_insns, mips_legitimize_const_move): Update calls.
2938 (mips_secondary_reload_class): Likewise.
2939 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2940 (pa_cannot_force_const_mem): ...this new function.
2894086e 2941 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
2942 (rs6000_cannot_force_const_mem): ...this new function.
2943 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2944 argument.
2945 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2946 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2947 to...
2948 (xtensa_cannot_force_const_mem): ...this new function.
2949
b861891b
NF
29502011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2951
2952 * config/mips/mips.c (mips16_build_function_stub): Call
2953 build_function_type_list instead of build_function_type.
2954 (mips16_build_call_stub): Likewise.
2955
34149ed5
NF
29562011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2957
2958 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2959 instead of build_function_type.
2960
12526412
NF
29612011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2962
2963 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2964 instead of build_function_type.
2965
3b84d61f
UB
29662011-04-20 Uros Bizjak <ubizjak@gmail.com>
2967
2968 PR target/48678
2969 * config/i386/i386.md (insv): Change operand 0 constraint to
2970 "register_operand". Change operand 1 and 2 constraint to
2971 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2972 * config/i386/sse.md (sse4_1_pinsrb): Export.
2973 (sse2_pinsrw): Ditto.
2974 (sse4_1_pinsrd): Ditto.
2975 (sse4_1_pinsrq): Ditto.
2976 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2977 * config/i386/i386.c (ix86_expand_pinsr): New.
2978
4a25752b
ER
29792011-04-20 Easwaran Raman <eraman@google.com>
2980
2981 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2982 containing union type only with -fstrict-aliasing.
2983
04695783
JM
29842011-04-20 Jim Meyering <meyering@redhat.com>
2985
2986 Remove useless if-before-free tests.
2987 * calls.c (expand_call, save_area): Likewise.
2988 * cfgcleanup.c (try_forward_edges): Likewise.
2989 * collect2.c (collect_execute): Likewise.
2990 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2991 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2992 * coverage.c (coverage_checksum_string): Likewise.
2993 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2994 * cselib.c (cselib_init): Likewise.
2995 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2996 (df_set_clean_cfg): Likewise.
2997 * function.c (free_after_compilation): Likewise.
2998 * gcc.c (do_spec_1, main): Likewise.
2999 * gcov.c (create_file_names): Likewise.
3000 * gensupport.c (identify_predicable_attribute): Likewise.
3001 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3002 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3003 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3004 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3005 * ipa-pure-const.c (local_pure_const): Likewise.
3006 * ipa-reference.c (propagate): Likewise.
3007 * ira-costs.c (free_ira_costs): Likewise.
3008 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3009 * matrix-reorg.c (mat_free): Likewise.
3010 * prefix.c (get_key_value): Likewise.
3011 * profile.c (compute_value_histograms): Likewise.
3012 * reload1.c (free_reg_equiv): Likewise.
3013 * sched-deps.c (free_deps): Likewise.
3014 * sel-sched-ir.c (fence_clear): Likewise.
3015 * sese.c (set_rename, if_region_set_false_region): Likewise.
3016 * tree-data-ref.c (free_rdg): Likewise.
3017 * tree-eh.c (lower_try_finally): Likewise.
3018 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3019 * tree-ssa-live.c (delete_var_map): Likewise.
3020 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3021 * tree-ssa-pre.c (phi_trans_add): Likewise.
3022
6788475a
JJ
30232011-04-20 Jakub Jelinek <jakub@redhat.com>
3024
3025 PR tree-optimization/48611
3026 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3027 beyond ERT_MUST_NOT_THROW region.
3028
0eda4033
CM
30292011-04-20 Catherine Moore <clm@codesourcery.com>
3030
3031 * config/mips/mips.opt (mfix-24k): New.
3032 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3033 * config/mips/mips.md (length): Increase by 4 for stores if
3034 fixing 24K errata.
3035 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3036 all noreorder if fixing 24K errata.
3037 * doc/invoke.texi: Document mfix-24k.
3038
01475747
CLT
30392011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3040
3041 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 3042 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 3043
bc2c1a60
AS
30442011-04-20 Andrew Stubbs <ams@codesourcery.com>
3045
3046 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3047 (const_ok_for_op): ... to here.
3048
583722ee
KT
30492011-04-20 Kai Tietz <ktietz@redhat.com>
3050
2894086e
UB
3051 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3052 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 3053
422c0989
AS
30542011-04-20 Andrew Stubbs <ams@codesourcery.com>
3055
3056 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3057
d7978bff
RG
30582011-04-20 Richard Guenther <rguenther@suse.de>
3059
3060 PR tree-optimization/47892
3061 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3062 are if-convertible.
3063
818412ba
EB
30642011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3065
3066 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3067
b501ce4e
TG
30682011-04-20 Tristan Gingold <gingold@adacore.com>
3069
3070 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3071
516edfdd
GJL
30722011-04-20 Georg-Johann Lay <avr@gjlay.de>
3073
3074 PR target/18145
3075
3076 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3077 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3078 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3079 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3080 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3081
3082 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
3083 New prototype.
3084
3085 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
3086 (avr_asm_named_section, avr_asm_output_aligned_common,
3087 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
3088 New functions to update...
3089 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
3090 (avr_asm_init_sections): Overwrite section callbacks for
3091 data_section, bss_section.
3092 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
3093 from here to...
3094 (avr_file_end): ...here.
3095
dafc9511
RG
30962011-04-20 Richard Guenther <rguenther@suse.de>
3097
3098 PR middle-end/48695
3099 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 3100 objects and types here. Adjust for their offset before comparing.
dafc9511 3101
1da0876c
RS
31022011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3103
3104 * tree-vect-stmts.c (vectorizable_store): Only chain one related
3105 statement per copy.
3106
25583c4f
RS
31072011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
3108
3109 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
3110 (GIMPLE_H): Include $(INTERNAL_FN_H).
3111 (OBJS-common): Add internal-fn.o.
3112 (internal-fn.o): New rule.
3113 * internal-fn.def: New file.
3114 * internal-fn.h: Likewise.
3115 * internal-fn.c: Likewise.
3116 * gimple.h: Include internal-fn.h.
3117 (GF_CALL_INTERNAL): New gf_mask.
3118 (gimple_statement_call): Put fntype into a union with a new
3119 internal_fn field.
3120 (gimple_build_call_internal): Declare.
3121 (gimple_build_call_internal_vec): Likewise.
3122 (gimple_call_same_target_p): Likewise.
3123 (gimple_call_internal_p): New function.
3124 (gimple_call_internal_fn): Likewise.
3125 (gimple_call_fntype): Return null for internal calls.
3126 (gimple_call_set_fntype): Assert that the function is not internal.
3127 (gimple_call_set_fn): Likewise.
3128 (gimple_call_set_fndecl): Likewise.
3129 (gimple_call_set_internal_fn): New function.
3130 (gimple_call_addr_fndecl): Handle null functions.
3131 (gimple_call_return_type): Likewise null types.
3132 * gimple.c (gimple_build_call_internal_1): New function.
3133 (gimple_build_call_internal): Likewise.
3134 (gimple_build_call_internal_vec): Likewise.
3135 (gimple_call_same_target_p): Likewise.
3136 (gimple_call_flags): Handle calls to internal functions.
3137 (gimple_call_fnspec): New function.
3138 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
3139 (gimple_has_side_effects): Handle null functions.
3140 (gimple_rhs_has_side_effects): Likewise.
3141 (gimple_call_copy_skip_args): Handle calls to internal functions.
3142 * cfgexpand.c (expand_call_stmt): Likewise.
3143 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
3144 * gimple-fold.c (gimple_fold_call): Handle null functions.
3145 (gimple_fold_stmt_to_constant_1): Don't fold
3146 calls to internal functions.
3147 * gimple-low.c (gimple_check_call_args): Handle calls to internal
3148 functions.
3149 * gimple-pretty-print.c (dump_gimple_call): Likewise.
3150 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
3151 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
3152 (do_warn_unused_result): Likewise.
3153 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
3154 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
3155 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
3156 the target of a call.
3157 (initialize_hash_element): Update accordingly.
3158 (hashable_expr_equal_p): Use gimple_call_same_target_p.
3159 (iterative_hash_hashable_expr): Handle calls to internal functions.
3160 (print_expr_hash_elt): Likewise.
3161 * tree-ssa-pre.c (can_value_number_call): Likewise.
3162 (eliminate): Handle null functions.
3163 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
3164 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
3165 (find_func_aliases): Likewise.
3166 * value-prof.c (gimple_ic_transform): Likewise.
3167 (gimple_indirect_call_to_profile): Likewise.
3168 * lto-streamer-in.c (input_gimple_stmt): Likewise.
3169 * lto-streamer-out.c (output_gimple_stmt): Likewise.
3170
1a3118e9
JH
31712011-04-19 Jan Hubicka <jh@suse.cz>
3172
3173 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
3174 * ipa-inline.c (inline_small_functions): Compute summaries first,
3175 populate heap later.
1a3118e9 3176
fee8b6da
JH
31772011-04-19 Jan Hubicka <jh@suse.cz>
3178
3179 * cgraph.h (save_inline_function_body): Remove.
3180 * ipa-inline-transform.c: New file, broke out of...
3181 * ipa-inline.c: ... this one; Update toplevel comment.
3182 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
3183 make global.
3184 (update_noncloned_frequencies): Move to ipa-inline-transform.c
3185 (cgraph_mark_inline_edge): Rename to inline_call; move to
3186 ipa-inline-transform.c.
3187 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
3188 move to ipa-inline-transform.c
3189 (recursive_inlining, inline_small_functions, flatten_function,
3190 ipa_inline, inline_always_inline_functions,
3191 early_inline_small_functions): Update.
3192 (inline_transform): Move to ipa-inline-transform.c.
3193 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
3194 Declare.
3195 * Makefile.in (ipa-inline-transform.o): New file.
3196 * cgraphunit.c (save_inline_function_body): Move to
3197 ipa-inline-transform.c
3198
f0679612
DD
31992011-04-19 DJ Delorie <dj@redhat.com>
3200
3201 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3202 registers if we already know there aren't any.
3203 (m32c_emit_epilogue): Don't emit a barrier here.
3204 (m32c_emit_eh_epilogue): Likewise.
3205 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3206 operands at expand time.
3207 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3208 int" wchar type.
3209 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3210 duplicates. Provide aliases instead.
3211 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3212 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3213 the compiler.
3214
32257ddc
AS
32152011-04-19 Anatoly Sokolov <aesok@post.ru>
3216
3217 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3218 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3219 (general_or_i64_p, sparc_register_move_cost): New function.
3220
60bea929
RO
32212011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3222
3223 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 3224 Add lynx, mipssde. Sort table.
60bea929 3225
444b3995 32262011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 3227
9d12f71a
EB
3228 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3229 not negative.
444b3995 3230
d708ce50
JJ
32312011-04-19 Jakub Jelinek <jakub@redhat.com>
3232
3233 PR target/48678
3234 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3235 is a SUBREG with non-MODE_INT mode inside of it.
3236
49c471e3
MJ
32372011-04-19 Martin Jambor <mjambor@suse.cz>
3238
3239 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3240 also according to actual contants.
3241 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3242 (gimple_fold_call): Use it.
3243 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3244
0004f992
MJ
32452011-04-19 Martin Jambor <mjambor@suse.cz>
3246
3247 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3248 non-pointer assignments.
3249
40591473
MJ
32502011-04-19 Martin Jambor <mjambor@suse.cz>
3251
3252 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3253 account anc_offset and otr_type from the indirect edge info.
3254 * ipa-prop.c (get_ancestor_addr_info): New function.
3255 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3256 get_ancestor_addr_info, call it.
3257 (ipa_note_param_call): Do not initialize information about polymorphic
3258 calls, return the indirect call graph edge. Remove the last
3259 parameter, adjust all callers.
3260 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3261 parameters. Initialize polymorphic information in the indirect edge.
3262
abe36b81
EB
32632011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3264
3265 PR lto/48148
3266 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3267 the types if they have different enumeration identifiers.
3268
e6416b30
JH
32692011-04-19 Jan Hubicka <jh@suse.cz>
3270
3271 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3272 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3273 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3274 (optimize_function_for_size_p) ... here.
3275
d39132ea
RG
32762011-04-19 Richard Guenther <rguenther@suse.de>
3277
3278 PR lto/48207
3279 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3280 langhook.
3281
ff7037dc
EB
32822011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3283
3284 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3285 if DECL_NO_INLINE_WARNING_P is set on the function.
3286
c1ee2892
BS
32872011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3288
3289 PR fortran/47976
3290 * reload1.c (inc_for_reload): Return void. All callers changed.
3291 (emit_input_reload_insns): Don't try to delete previous output
3292 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
3293
32942011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3295
3296 * gengtype.h: Updated copyright year.
3297 (struct input_file_st): Add inpisplugin field.
3298 (type_fileloc): New function.
3299 * gengtype.c
3300 (write_typed_struct_alloc_def): Add gcc_assert.
3301 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3302 (write_typed_alloc_defns): Don't output for plugin files.
3303 (input_file_by_name): Clear inpisplugin field.
3304 (main): Set inpisplugin field for plugin files.
3305
897e0a89
NP
33062011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3307
3308 * gengtype-state.c (string_eq): New.
3309 (read_state): Use string_eq instead of strcmp when creating the
3310 state_ident_tab.
3311
363ee90e
WG
33122011-04-19 Wei Guozhi <carrot@google.com>
3313
3314 PR target/47855
3315 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3316 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3317 linkage.
3318 * config/arm/constraints.md (Uu): New constraint.
3319 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3320
18a24fed
TG
33212011-04-19 Tristan Gingold <gingold@adacore.com>
3322
3323 * config.gcc (-*-*-*vms): Added.
3324 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3325 definitions moved.
3326 * config/vms/vms-ld.c: New file.
3327 * config/vms/vms-ar.c: New file.
3328 * config/vms/t-vmsnative: New file.
3329
1c13f168
XDL
33302011-04-18 Xinliang David Li <davidxl@google.com>
3331
3332 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3333
84825707
JJ
33342011-04-18 Jakub Jelinek <jakub@redhat.com>
3335
3336 PR middle-end/48661
3337 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3338 if TREE_TYPE (v) is non-NULL.
3339
3340 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3341 gimple_get_virt_mehtod_for_binfo.
3342 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3343 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3344 callers.
3345 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3346
7d4f8d02 33472011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
3348 Steve Ellcey <sje@cup.hp.com>
3349
7d4f8d02
EB
3350 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3351 use its mode as source mode if it isn't VOIDmode.
7254cb57 3352
474e8e70
DCR
33532011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3354
3355 * doc/passes.texi: Fill crossref nodes.
3356
cff41484
JM
33572011-04-18 Jim Meyering <meyering@redhat.com>
3358
7d4f8d02 3359 Fix doubled-word typos in comments and strings
cff41484
JM
3360 * config/alpha/vms-unwind.h: s/for for/for/
3361 * config/arm/unwind-arm.h: Likewise.
3362 * config/microblaze/microblaze.c: Likewise.
3363 * config/sh/constraints.md: s/in in/in/
3364 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3365
f60c2554
UB
33662011-04-18 Uros Bizjak <ubizjak@gmail.com>
3367
3368 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3369 (AVX_FLOAT_MODE_P): Ditto.
3370 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3371 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3372 (AVX_VEC_FLOAT_MODE_P): Ditto.
3373 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3374 (UNSPEC_MASKSTORE): Ditto.
3375 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3376 Merge from <sse>_movmsk<ssemodesuffix> and
3377 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3378 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3379 iterator.
3380 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3381 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3382 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3383
09a2806f
JH
33842011-04-18 Jan Hubicka <jh@suse.cz>
3385
8a8dccb2
JH
3386 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3387
09a2806f
JH
3388 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3389 (want_inline_function_called_once_p): Break out the logic from
3390 ipa_inline.
3391 (edge_badness): Ensure that profile is not misupdated.
3392 (lookup_recursive_calls): Prioritize by call frequencies.
3393 (inline_small_functions): Move program size estimates here;
3394 actually process whole queue even when unit growth has been
3395 met. (to properly compute inline_failed reasons and for the
f60c2554 3396 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
3397 (ipa_inline): Remove unit summary code; first inline hot calls
3398 of functions called once, cold calls next.
3399 (order, nnodes): Remove unused variables.
3400 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3401 (GTFILES): Remove ipa-inline.c
3402 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3403
3eea52ef
EB
34042011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3405
3406 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3407
229a1c59 34082011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 3409 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
3410
3411 * arm.c (neon_builtin_type_bits): Remove.
3412 (typedef enum neon_builtin_mode): New.
3413 (T_MAX): Don't define.
3414 (typedef enum neon_builtin_datum): Remove bits, codes[],
3415 num_vars and base_fcode. Add mode, code and fcode.
3416 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3417 VAR10): Change accordingly.
3418 (neon_builtin_data[]): Change accordingly
3419 (arm_init_neon_builtins): Change accordingly.
3420 (neon_builtin_compare): Remove.
3421 (locate_neon_builtin_icode): Remove.
3422 (arm_expand_neon_builtin): Change accordingly.
3423
3424 * arm.h (enum arm_builtins): Move to ...
3425 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3426
3427 * arm.c (arm_builtin_decl): Declare.
3428 (TARGET_BUILTIN_DECL): Define.
3429 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3430 (arm_builtin_decls[]): New.
3431 (arm_init_neon_builtins): Store builtin declarations in
3432 arm_builtin_decls[].
3433 (arm_init_tls_builtins): Likewise.
3434 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3435 (arm_builtin_decl): New.
3436
75e802cc
RG
34372011-04-18 Richard Guenther <rguenther@suse.de>
3438
3439 * tree.c (upper_bound_in_type): Build properly canonicalized
3440 INTEGER_CSTs.
3441 (lower_bound_in_type): Likewise.
3442
3b45a007
RG
34432011-04-18 Richard Guenther <rguenther@suse.de>
3444
3445 * gimple.h (gimple_call_addr_fndecl): New function.
3446 (gimple_call_fndecl): Use it.
3447 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3448 for direct calls.
3449 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3450 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3451
d25a79ea
RG
34522011-04-18 Richard Guenther <rguenther@suse.de>
3453
3454 PR middle-end/48650
3455 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3456
7d5fc814
EB
34572011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3458
3459 PR lto/48492
3460 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3461 DECL_IN_CONSTANT_POOL without RTL.
3462
7e7cfcf6
UW
34632011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3464 Ira Rosen <ira.rosen@linaro.org>
3465
3466 PR target/48252
3467 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3468 to match neon_vzip/vuzp/vtrn_internal.
3469 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3470 outputs explicitly dependent on both inputs.
3471 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3472
49eab32e
JJ
34732011-04-18 Jakub Jelinek <jakub@redhat.com>
3474
3475 PR tree-optimization/48616
3476 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3477 whether the shift is by scalar or vector based on whether all SLP
3478 scalar stmts have the same rhs.
3479
e54170f4
CLT
34802011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3481
3482 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3483 memory operands.
3484
b14ee6c9
RS
34852011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3486
3487 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3488 registers.
3489
10158cd3
JH
34902011-04-17 Jan Hubicka <jh@suse.cz>
3491
3492 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
3493 * cgrpahunit.c (cgraph_finalize_function): Do not set
3494 finalized_by_frontend.
10158cd3
JH
3495 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3496 finalized_by_frontend.
3497
2e9bb6ba
JH
34982011-04-17 Jan Hubicka <jh@suse.cz>
3499
3500 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3501 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3502 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
3503 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3504 method.
2e9bb6ba
JH
3505 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3506 gimple-fold.c
3507 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3508
beb628e1
EB
35092011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3510
3511 PR lto/48538
3512 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3513 is non-null before accessing it.
3514 (input_cgraph): Remove trailing spaces.
3515
3e2fdd24
RE
35162011-04-17 Revital Eres <revital.eres@linaro.org>
3517
3518 * params.def (sms-min-sc): New param flag.
3519 * modulo-sched.c (sms_schedule): Use it.
3520 * doc/invoke.texi (sms-min-sc): Document it.
3521
4c0f7679
JH
35222011-04-17 Jan Hubicka <jh@suse.cz>
3523
3524 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3525 present, also set gimple_call_set_cannot_inline.
3526 * ipa-inline.c: Update toplevel comment.
3527 (MAX_TIME): Remove.
3528 (cgraph_clone_inlined_nodes): Fix linebreaks.
3529 (cgraph_check_inline_limits): Restructure to ...
3530 (caller_growth_limits): ... this one; be more tolerant
3531 on growth in nested inline chains; add explanatory comment;
3532 fix stack accounting thinko introduced by previous patch.
3533 (cgraph_default_inline_p): Remove.
3534 (report_inline_failed_reason): New function.
3535 (can_inline_edge_p): New function.
3536 (can_early_inline_edge_p): New function.
3537 (leaf_node_p): Move upwards in file.
3538 (want_early_inline_function_p): New function.
3539 (want_inline_small_function_p): New function.
3540 (want_inline_self_recursive_call_p): New function.
3541 (cgraph_edge_badness): Rename to ...
3542 (edge_badness) ... this one; fix linebreaks.
3543 (update_edge_key): Update call of edge_baddness; add
3544 detailed dump about queue updates.
3545 (update_caller_keys): Use can_inline_edge_p and
3546 want_inline_small_function_p.
3547 (cgraph_decide_recursive_inlining): Rename to...
3548 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
3549 want_inline_self_recursive_call_p; simplify and remove no longer
3550 valid FIXME.
4c0f7679
JH
3551 (cgraph_set_inline_failed): Remove.
3552 (add_new_edges_to_heap): Use can_inline_edge_p and
3553 want_inline_small_function_p.
3554 (cgraph_decide_inlining_of_small_functions): Rename to ...
3555 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
3556 can/want predicates; cleanup debug ouput; work edges till fibheap
3557 is exhausted and do not stop once unit growth is reached; remove
3558 later loop processing remaining edges.
4c0f7679
JH
3559 (cgraph_flatten): Rename to ...
3560 (flatten_function): ... this one; use can_inline_edge_p
3561 and can_early_inline_edge_p predicates.
3562 (cgraph_decide_inlining): Rename to ...
3563 (ipa_inline): ... this one; remove unreachable nodes before
3564 inlining functions called once; simplify the pass.
3565 (cgraph_perform_always_inlining): Rename to ...
3566 (inline_always_inline_functions): ... this one; use
f60c2554 3567 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
3568 (cgraph_decide_inlining_incrementally): Rename to ...
3569 (early_inline_small_functions): ... this one; simplify
3570 using new predicates; cleanup; make dumps prettier.
3571 (cgraph_early_inlining): Rename to ...
3572 (early_inliner): newer inline regular functions into always-inlines;
3573 fix updating of call stmt summaries.
3574 (pass_early_inline): Update for new names.
3575 (inline_transform): Fix formating.
3576 (gate_cgraph_decide_inlining): Rename to ...
3577 (pass_ipa_inline): ... this one.
3578 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3579 * ipa-inline-analysis.c (dump_inline_summary): Update.
3580 (compute_inline_parameters): Do not compute disregard_inline_limits;
3581 look for mismatching arguments.
3582 (estimate_growth): Fix handlig of non-trivial self recursion.
3583 (inline_read_summary): Do not read info->disregard_inline_limits.
3584 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
3585 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3586 and move all checks into can_inline_edge_p predicate; re-enable code
3587 comparing optimization levels.
4c0f7679
JH
3588 (expand_call_inline): Do not test inline_forbidden_into_p.
3589 * Makefile.in (ipa-inline.o): Update arguments.
3590
54333b7c
RE
35912011-04-17 Revital Eres <revital.eres@linaro.org>
3592
3593 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3594
42c2bf92
RE
35952011-04-17 Revital Eres <revital.eres@linaro.org>
3596
3597 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3598
b183e9e0
MM
35992011-04-17 Michael Matz <matz@suse.de>
3600
3601 PR tree-optimization/48622
3602 PR lto/48645
3603 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3604 in same order as they're written.
3605
b8a17fa2
JDA
36062011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3607
3608 * config/pa/predicates.md: Reorganize and simplify predicates.
3609 Eliminate duplicate code checks.
3610 (arith_operand): Rename to arith14_operand
3611 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3612 * config/pa/pa.md: Use renamed operands.
3613 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3614 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3615 arith11_operand, adddi3_operand, indexed_memory_operand,
3616 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3617 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3618 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3619 move_dest_operand, move_src_operand, prefetch_cc_operand,
3620 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3621 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3622 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3623 div_operand, int5_operand, movb_comparison_operator,
3624 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3625 arith_double_operand, ireg_operand, lhs_lshift_operand,
3626 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3627 integer_store_memory_operand): Likewise.
3628 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3629 (integer_store_memory_operand, read_only_operand,
3630 function_label_operand, borx_reg_operand,
3631 non_hard_reg_operand): Likewise.
3632 (eq_neq_comparison_operator): Delete unused operator.
3633 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3634 function_label_operand.
3635 (emit_move_sequence): Likewise.
3636
8dfb9f16
UB
36372011-04-16 Uros Bizjak <ubizjak@gmail.com>
3638
3639 * config/i386/sse.md (sseunpackmode): New mode attribute.
3640 (ssepackmode): Ditto.
3641 (vec_pack_trunc_<mode>): Macroize expander from
3642 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3643 (vec_unpacks_lo_<mode>): Macroize expander from
3644 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3645 (vec_unpacks_hi_<mode>): Macroize expander from
3646 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3647 (vec_unpacku_lo_<mode>): Macroize expander from
3648 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3649 (vec_unpacku_hi_<mode>): Macroize expander from
3650 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3651 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3652 ix86_expand_sse4_unpack.
3653 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3654
e7f23018
JH
36552011-04-16 Jan Hubicka <jh@suse.cz>
3656
3657 * cgraphbuild.c: Include ipa-inline.h.
3658 (reset_inline_failed): Use initialize_inline_failed.
3659 * cgraph.c: Include ipa-inline.h.
3660 (cgraph_create_node_1): Do not initialize estimated_growth.
3661 (initialize_inline_failed): More to ipa-inline-analysis.c
3662 (dump_cgraph_node): Do not dump inline flags.
3663 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3664 and disregard_inline_limits flags.
3665 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3666 time, size, estimated_growth.
8dfb9f16
UB
3667 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3668 Update.
e7f23018
JH
3669 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3670 DECL_DISREGARD_INLINE_LIMITS.
3671 (cgraph_analyze_function): Do not initialize
3672 node->local.disregard_inline_limits.
3673 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3674 inlinable, versionable and disregard_inline_limits.
3675 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
3676 cgraph_check_inline_limits, cgraph_default_inline_p,
3677 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3678 add_new_edges_to_heap): Update.
3679 (cgraph_decide_inlining_of_small_function): Update; set
3680 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
3681 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3682 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
3683 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3684 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3685 time, size and estimated_growth parameters.
e7f23018
JH
3686 (estimate_edge_growth): Update.
3687 (initialize_inline_failed): Declare.
3688 * ipa-split.c: Include ipa-inline.h
3689 (execute_split_functions): Update.
3690 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3691 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3692 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3693 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3694 estimated_growth to INT_MIN.
3695 (inline_node_duplication_hook): Likewise.
3696 (dump_inline_summary): Dump new fields.
3697 (compute_inline_parameters): Update.
3698 (estimate_edge_time, estimate_time_after_inlining,
3699 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3700 inline_write_summary):
3701 (initialize_inline_failed): Move here from cgraph.c.
3702 * tree-sra.c: Include ipa-inline.h.
3703 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
3704 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3705 ipa-inline.h.
e7f23018 3706
e81b8564
UB
37072011-04-16 Uros Bizjak <ubizjak@gmail.com>
3708
3709 * config/i386/sse.md (V16): New mode iterator.
3710 (VI1, VI8): Ditto.
3711 (AVXMODEQI, AVXMODEDI): Remove.
3712 (sse2, sse3): New mode attribute.
3713 (mov<mode>): Use V16 mode iterator.
3714 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3715 (push<mode>1): Use V16 mode iterator.
3716 (movmisalign<mode>): Ditto.
3717 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3718 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3719 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3720 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3721 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3722 avx_movdqu<avxmodesuffix>.
3723 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3724 *avx_movdqu<avxmodesuffix>.
3725 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3726 avx_lddqu<avxmodesuffix>.
3727 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3728 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3729 avx_movnt<AVXMODEDI:mode>.
3730 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3731 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3732
4743d438
BS
37332011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3734
3735 PR target/48629
3736 * haifa-sched.c (prune_ready_list, schedule_block): Use
3737 sched_pressure_p rather than flag_sched_pressure.
3738
eb229cf4
PH
37392011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3740
3741 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3742 cgraph_get_node instead of cgraph_get_create_node.
3743
2ba172e0
JJ
37442011-04-15 Jakub Jelinek <jakub@redhat.com>
3745
3746 * cfgexpand.c (expand_debug_expr): Use
3747 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3748
63d2a353
MM
37492011-04-15 Michael Matz <matz@suse.de>
3750
3751 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3752 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3753 * function.c (gimplify_parameters): Ditto.
3754 * gimplify.c (gimplify_vla_decl): Ditto.
3755
3756 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3757 (gimple_call_set_alloca_for_var): New inline function.
3758 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
3759 * gimple.c (gimple_build_call_from_tree): Remember
3760 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
3761 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3762
3763 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3764 calls if they were for VLA objects.
3765
dee74c34
MJ
37662011-04-15 Martin Jambor <mjambor@suse.cz>
3767
3768 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3769 of ADR_EXPRs.
3770
8e5837bc
MJ
37712011-04-15 Martin Jambor <mjambor@suse.cz>
3772
3773 PR middle-end/48601
3774 * tree-emutls.c (lower_emutls_function_body): Call
3775 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3776 result is non-NULL.
3777
0dc33c3c
NP
37782011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3779
3780 * c-decl.c (detect_field_duplicates): Call
3781 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3782
edcdea5b
NF
37832011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3784
3785 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3786 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3787 * ipa-pure-const.c (check_stmt): Call it.
3788 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3789
8456558d
RG
37902011-04-15 Richard Guenther <rguenther@suse.de>
3791
3792 PR tree-optimization/48290
3793 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3794 Properly decide inhibiting propagation based on the valueized
3795 operand. Do loop-closed SSA form preserving here ...
3796 (init_copy_prop): ... not here.
3797
266446be
L
37982011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3799
3800 PR target/48612
3801 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3802 (*ieee_smax<mode>3): Likewise.
3803
17465c6e
AK
38042011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3805
3806 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3807 Replace match_operand with match_dup for the third operand in
3808 these expanders.
3809
bce204e5
MK
38102011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3811
3812 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3813 to track processing of conditionals. Update all callers.
3814 (try_combine, simplify_if_then_else): Update.
3815
3162fdf4
MK
38162011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3817
3818 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3819 -fsched-pressure.
3820
79002a57 38212011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 3822
79002a57
GJL
3823 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3824 instead of match_operand for operand 3.
3825
4fd3a105
RS
38262011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3827
3828 * recog.h (insn_operand_data): Add an "allows_mem" field.
3829 * genoutput.c (output_operand_data): Initialize it.
3830 * optabs.c (maybe_legitimize_operand_same_code): New function.
3831 (maybe_legitimize_operand): Use it when matching the original
3832 op->value.
3833
ad19c4be
EB
38342011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3835
3836 * gimplify.c: Fix issues in comments throughout.
3837 (voidify_wrapper_expr): Fix long line.
3838 (build_stack_save_restore): Likewise.
3839 (gimplify_loop_expr): Likewise.
3840 (gimplify_compound_lval): Likewise.
3841 (gimplify_init_ctor_eval): Likewise.
3842 (gimplify_modify_expr_rhs): Likewise.
3843 (omp_notice_threadprivate_variable): Likewise.
3844
b25aa0e8 38452011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 3846
b25aa0e8
EB
3847 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3848 original one if this is not a builtin function.
e7925582 3849
09db7afe
JJ
38502011-04-14 Jakub Jelinek <jakub@redhat.com>
3851
3852 PR target/48605
3853 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3854 offset it as needed based on top 2 bits in operands[3], change
3855 MEM mode to SFmode and mask those 2 bits away from operands[3].
3856
c59633d9
NP
38572011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3858
3859 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3860 change from objc_declare_protocols() to objc_declare_protocol().
3861
5e60198b
UB
38622011-04-14 Uros Bizjak <ubizjak@gmail.com>
3863
3864 * config/i386/sse.md (sse4_1): New mode attribute.
3865 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3866 avx_blend<ssemodesuffix><avxmodesuffix> and
3867 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3868 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3869 avx_blendv<ssemodesuffix><avxmodesuffix> and
3870 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3871 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3872 avx_dp<ssemodesuffix><avxmodesuffix> and
3873 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3874 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3875 (sse4_1_packusdw): Merge with *avx_packusdw.
3876 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3877 (sse4_1_pblendw): Merge with *avx_pblendw.
3878 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3879 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3880 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3881 VF mode iterator.
3882 (sse4_1_round<ssescalarmodesuffix>): Merge with
3883 *avx_round<ssescalarmodesuffix>.
3884 (aesenc): Merge with *avx_aesenc.
3885 (aesenclast): Merge with *avx_aesenclast.
3886 (aesdec): Merge with *avx_aesdec.
3887 (aesdeclast): Merge with *avx_aesdeclast.
3888 (pclmulqdq): Merge with *pclmulqdq.
3889 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3890 New predicate.
3891 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3892
6f197850
L
38932011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3894
3895 PR middle-end/48608
3896 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3897 (align_local_variable): This. Update DECL_ALIGN.
3898 (add_stack_var): Updated.
3899 (expand_one_stack_var): Likewise.
3900
4a5ba3ed
RG
39012011-04-14 Richard Guenther <rguenther@suse.de>
3902
3903 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3904 Remove.
3905 (dse_initialize_block_local_data, dse_leave_block,
3906 record_voperand_set, get_stmt_uid): Likewise.
3907 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3908 (dse_optimize_stmt): Remove voperand set handling code.
3909 Simplify and improve to handle any kind of killing stmt.
3910 (dse_record_phi): Remove.
3911 (dse_enter_block): Simplify.
3912 (tree_ssa_dse): Likewise.
3913 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3914
10a5dd5d
JH
39152011-04-14 Jan Hubicka <jh@suse.cz>
3916
3917 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3918 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3919 (cgraph_local_info): Remove inline_summary.
3920 * ipa-cp.c: Include ipa-inline.h.
3921 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3922 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3923 accesor.
3924 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3925 (input_overwrite_node): Do not set inline summary.
3926 (input_node): Do not stream inline summary.
3927 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3928 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3929 growth; we do not have inline parameters computed for that anyway.
3930 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3931 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3932 (inline_summary_t): New type and VECtor.
3933 (debug_inline_summary, dump_inline_summaries): Declare.
3934 (inline_summary): Use VOCtor.
3935 (estimate_edge_growth): Kill hack computing call stmt size directly.
3936 * lto-section-in.c (lto_section_name): Add inline section.
3937 * ipa-inline-analysis.c: Include lto-streamer.h
3938 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3939 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3940 (inline_summary_vec): Define.
3941 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3942 dump_inline_summaries): New functions.
5e60198b
UB
3943 (estimate_function_body_sizes): Properly compute size/time of outgoing
3944 calls.
3945 (compute_inline_parameters): Alloc inline_summary; do not compute
3946 size/time of incomming calls.
10a5dd5d
JH
3947 (estimate_edge_time): Avoid missing time summary hack.
3948 (inline_read_summary): Read inline summary info.
3949 (inline_write_summary): Write inline summary info.
3950 (inline_free_summary): Free all hooks and inline summary vector.
3951 * lto-streamer.h: Add LTO_section_inline_summary section.
3952 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3953 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3954
b602d918
RS
39552011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3956
3957 * tree-vectorizer.h (vect_strided_store_supported): Add a
3958 HOST_WIDE_INT argument.
3959 (vect_strided_load_supported): Likewise.
3960 (vect_permute_store_chain): Return void.
3961 (vect_transform_strided_load): Likewise.
3962 (vect_permute_load_chain): Delete.
3963 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3964 count argument. Check that the count is a power of two.
3965 (vect_strided_load_supported): Likewise.
3966 (vect_permute_store_chain): Return void. Update after above changes.
3967 Assert that the access is supported.
3968 (vect_permute_load_chain): Likewise.
3969 (vect_transform_strided_load): Return void.
3970 * tree-vect-stmts.c (vectorizable_store): Update calls after
3971 above interface changes.
3972 (vectorizable_load): Likewise.
3973 (vect_analyze_stmt): Don't check for strided powers of two here.
3974
ab4472fa
RG
39752011-04-14 Richard Guenther <rguenther@suse.de>
3976
3977 PR tree-optimization/48590
3978 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3979 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3980 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3981 BUILT_IN_STACK_SAVE.
3982 * tree-ssa-dce.c (propagate_necessity): Handle
3983 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3984
32dabdaf
NP
39852011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3986
3987 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3988 objc_declare_class.
3989
daade206
RG
39902011-04-14 Richard Guenther <rguenther@suse.de>
3991
3992 * tree.h (get_object_alignment_1): Declare.
3993 * builtins.c (get_object_alignment_1): Split out worker from ...
3994 (get_object_alignment): ... here.
3995 * fold-const.c (get_pointer_modulus_and_residue): Use
3996 get_object_alignment_1.
3997
920e8172
RS
39982011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3999
4000 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4001 type parameter.
4002 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4003 parameter. Generalise code to handle arrays as well as vectors.
4004 (vect_setup_realignment): Update accordingly.
4005 * tree-vect-stmts.c (vectorizable_store): Likewise.
4006 (vectorizable_load): Likewise.
4007
5ce1ee7f
RS
40082011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4009
4010 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4011 within the per-copy loop.
4012
6438fe33 40132011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
4014
4015 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4016 in the dump file.
4017
6438fe33 40182011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
4019
4020 * doc/options.texi (Negative): Explicitly mention that the
4021 Negative chain must be circular.
4022
61e46a7d
NF
40232011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4024
4025 * function.h (block_chainon): Declare.
4026 * function.c (block_chainon): Define.
4027
43ea6502 40282011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b
UB
4029 Eric Weddington <eric.weddington@atmel.com>
4030 Georg-Johann Lay <avr@gjlay.de>
4031
f60c2554 4032 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
4033 New Includes
4034 (avr_init_builtins, avr_expand_builtin,
4035 avr_expand_delay_cycles, avr_expand_unop_builtin,
4036 avr_expand_binop_builtin ): New functions.
4037 (avr_builtin_id): New enum
4038 (struct avr_builtin_description): New struct
4039 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4040 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 4041
43ea6502 4042 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 4043 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
4044 UNSPECV_DELAY_CYCLES): new enumeration values
4045 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4046 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4047 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4048 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4049 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4050 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4051 "fmulsu"): New insns
5e60198b 4052
43ea6502
AS
4053 * config/avr/avr-c.c: fix line endings
4054 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4055 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4056 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4057 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4058 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 4059
43ea6502
AS
4060 * doc/extend.texi (AVR Built-in Functions): New node
4061 (Target Builtins): Add documentation of AVR
4062 built-in functions.
4063
8a9b55f3
GJL
40642011-04-14 Georg-Johann Lay <avr@gjlay.de>
4065
4066 PR target/44643
4067 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4068 alone. Error if non-const data has attribute progmem.
4069
94bd1825
NF
40702011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4071
4072 * tree.h (struct tree_constructor): Include tree_typed instead of
4073 tree_common.
4074 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4075 TS_TYPED instead of TS_COMMON.
4076
5e60198b 40772011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
4078
4079 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4080 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4081 (sse2_psadbw): Merge with *avx_psadbw.
4082 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
4083 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
4084 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
4085 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
4086 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
4087 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
4088 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
4089 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
4090 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
4091 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
4092 (ssse3_palignrti): Merge with *avx_palignrti.
4093
4b1a4694
NF
40942011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4095
4096 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
4097 * tree-ssanames.c (fini_ssanames): VEC_free it.
4098 (make_ssa_name_fn): Update for VECness of free_ssanames.
4099 (release_ssa_name, release_dead_ssa_names): Likewise.
4100 * tree.h (struct tree_ssa_name): Include tree_typed instead of
4101 tree_common.
4102 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
4103 TS_TYPED instead of TS_COMMON.
4104
4da3b811
NF
41052011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4106
4107 * postreload-gcse.c (gcse_after_reload_main): Add calls to
4108 statistics_counter_event.
4109 * tree-ssa-copyrename.c (stats): Define.
4110 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
4111 statistics_counter_event.
4112 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
4113 (bswap_stats, widen_mul_stats): Define.
4114 (insert_reciprocals): Increment rdivs_inserted.
4115 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
4116 rfuncs_inserted. Add calls to statistics_counter_event.
4117 (execute_cse_sincos_1): Increment inserted.
4118 (execute_cse_sincos): Zeroize sincos_stats. Add call to
4119 statistics_counter_event.
4120 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
4121 of bswap_stats. Add calls to statistics_counter_event.
4122 (convert_mult_to_widen): Increment widen_mults_inserted.
4123 (convert_plusminus_to_widen): Increment maccs_inserted.
4124 (convert_mult_to_fma): Increment fmas_inserted.
4125 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
4126 calls to statistics_counter_event.
4127
89fa552a
VM
41282011-04-13 Vladimir Makarov <vmakarov@redhat.com>
4129
4130 PR rtl-optimization/48455
4131 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
4132 `temp_costs->mem_cost'.
4133
03dfc36d
JH
41342011-04-13 Jan Hubicka <jh@suse.cz>
4135
4136 * ipa-inline.h: New file.
4137 * ipa-inline-analysis.c: New file. Broken out of ...
4138 * ipa-inline.c: ... this file; update toplevel comment;
4139 include ipa-inline.h
4140 (inline_summary): Move to ipa-inline.h
4141 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
4142 ipa-inline-analysis.c.
7d4f8d02
EB
4143 (cgraph_estimate_time_after_inlining): Rename to
4144 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
4145 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
4146 to estimate_edge_growth.
4147 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
4148 rename to estimate_size_after_inlining.
4149 (cgraph_mark_inline_edge): Update for new naming convention.
4150 (cgraph_check_inline_limits): Likewise.
4151 (cgraph_edge_badness): Likewise.
4152 (cgraph_decide_recursive_inlining): Likewise.
4153 (cgraph_decide_inlining_of_small_functions): Likewise.
4154 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
4155 (cgraph_estimate_growth): Rename to estimate_growth; move to
4156 ipa-inline-analysis.c.
03dfc36d
JH
4157 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
4158 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
4159 (compute_inline_parameters): Likewise.
4160 (compute_inline_parameters_for_current): Likewise.
4161 (pass_inline_parameters): Likewise.
4162 (inline_indirect_intraprocedural_analysis): Likewise.
4163 (analyze_function): Rename to inline_analyze_function; likewise.
4164 (add_new_function): Move to ipa-inline-analysis.c.
4165 (inline_generate_summary): Likewise.
4166 (inline_read_summary): Likewise.
4167 (inline_write_summary): Likewise.
4168 * Makefile.in (ipa-inline-analysis.c): New file.
4169
7673c962
RO
41702011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4171
4172 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
4173 * configure: Regenerate.
4174
9698252f
NF
41752011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4176
4177 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
4178 instead of tree_common.
4179 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
4180 Likewise.
4181 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
4182 TS_TYPED rather than TS_COMMON.
4183 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
4184
3a7bfdd5
GJL
41852011-04-01 Georg-Johann Lay <avr@gjlay.de>
4186
4187 PR target/45263
86d83530
GJL
4188 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
4189 r20 around calls of __tablejump_elpm__
3a7bfdd5 4190
20790697
JJ
41912011-04-13 Jakub Jelinek <jakub@redhat.com>
4192
4193 PR middle-end/48591
4194 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
4195 NULL.
4196 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
4197
094d7661
BS
41982011-04-13 Bernd Schmidt <bernds@codesourcery.com>
4199
4200 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
4201 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4202 (cfi_vec): New typedef.
4203 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4204 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4205 (cie_cfi_vec): New static variable.
4206 (cie_cfi_head): Delete.
4207 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4208 declaration changed. Use vector rather than list operations.
4209 (new_cfi): Don't initialize the dw_cfi_next field.
4210 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4211 rather than list operations.
4212 (lookup_cfa): Use vector rather than list operations.
4213 (output_cfis): New argument upto. Accept a cfi_vec rather than
4214 a dw_cfi_ref list head as argument. All callers changed.
4215 Iterate over the vector using upto as a maximum index.
4216 (output_all_cfis): New static function.
4217 (output_fde): Use vector rather than list operations. Use the
4218 new upto argument for output_cfis rather than manipulating a
4219 list.
4220 (dwarf2out_begin_prologue): Change initializations to match
4221 new struct members.
4222 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4223 from the vector length rather than searching for the end of a list.
4224 Use output_all_cfis.
4225 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4226
673a5740
NC
42272011-04-13 Nick Clifton <nickc@redhat.com>
4228
4229 * config/rx/rx.md (movmemsi): Do not use this pattern when
4230 volatile pointers are involved.
4231
1ee8b298
UB
42322011-04-13 Uros Bizjak <ubizjak@gmail.com>
4233
4234 * config/i386/sse.md (pinsrbits): Remove.
4235 (sse2_packsswb): Merge with *avx_packsswb.
4236 (sse2_packssdw): Merge with *avx_packssdw.
4237 (sse2_packuswb): Merge with *avx_packuswb.
4238 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4239 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4240 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4241 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4242 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4243 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4244 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4245 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4246 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4247 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4248 (sse2_loadld): Merge with *avx_loadld.
4249 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4250 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4251 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4252 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4253 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4254
81f653d6
NF
42552011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4256
4257 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4258 calling TREE_CHAIN.
4259 * print-tree.c (print_node): Likewise.
4260 * tree-inline.c (copy_tree_r): Likewise.
4261 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4262 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4263 instead of TS_COMMON.
4264 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4265 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4266 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4267 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4268 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4269 ...and these...
4270 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4271 * tree.h: ...here.
4272 (TREE_CHAIN): Check for a TS_COMMON structure.
4273 (TREE_TYPE): Check for a TS_TYPED structure.
4274
ed940a4a
PH
42752011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4276
4277 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4278 cgraph_get_create_node instead of cgraph_node.
4279
eb345401
NP
42802011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4281
4282 * c-parser.c (c_parser_initelt): Updated call to
4283 objc_build_message_expr.
4284 (c_parser_postfix_expression): Likewise.
4285
a6c46762
KT
42862011-04-12 Kai Tietz <ktietz@redhat.com>
4287
4288 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4289 MASK_MS_BITFIELD_LAYOUT bit.
4290
b4ccfed9
JJ
42912011-04-12 Jakub Jelinek <jakub@redhat.com>
4292
4293 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4294 assert it is always true.
4295 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4296 moves.
4297
0d8a2528
NP
42982011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4299
4300 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4301 compiling Objective-C to be more efficient.
4302
06bd234a
AF
43032011-04-12 Axel Freyn <axel-freyn@gmx.de>
4304
4305 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4306 argv_copied.
4307
28569ac3
RS
43082011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4309
4310 * recog.h, genoutput.c, optabs.c: Revert last patch.
4311
ae59e00d
RR
43122011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4313
81b1e7eb
UB
4314 PR target/48090
4315 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 4316
cff1b7e0
RS
43172011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4318
4319 * recog.h (insn_operand_data): Add an "allows_mem" field.
4320 * genoutput.c (output_operand_data): Initialize it.
4321 * optabs.c (maybe_legitimize_operand_same_code): New function.
4322 (maybe_legitimize_operand): Use it when matching the original
4323 op->value.
4324
77059241
RS
43252011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4326
4327 * genpreds.c (process_define_predicate): Move most processing
4328 to gensupport.c. Continue to validate the expression.
4329 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4330 (process_define_predicate): Move processing to gensupport.c.
4331 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4332 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4333 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4334 argument.
4335 (valid_predicate_name_p): New function, split out from old
4336 genpreds.c:process_define_predicate.
4337 (process_define_predicate): New function, combining code from
4338 old genpreds.c and genrecog.c functions.
4339 (process_rtx): Call it for DEFINE_PREDICATE and
4340 DEFINE_SPECIAL_PREDICATE.
4341
6308e208
RS
43422011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4343
4344 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4345 size of a '%A' memory reference.
4346 (T_DREG, T_QREG): New neon_builtin_type_bits.
4347 (arm_init_neon_builtins): Assert that the load and store operands
4348 are neon_struct_operands.
4349 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4350 (NEON_ARG_MEMORY): New builtin_arg.
4351 (neon_dereference_pointer): New function.
4352 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4353 Handle NEON_ARG_MEMORY.
4354 (arm_expand_neon_builtin): Update after above interface changes.
4355 Use NEON_ARG_MEMORY for loads and stores.
4356 * config/arm/predicates.md (neon_struct_operand): New predicate.
4357 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4358 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4359 (V_four_elem): Tweak formatting.
4360 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4361 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4362 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4363 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4364 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4365 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4366 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4367 Use %A in the output template.
4368 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4369 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4370 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4371 the width of the memory access. Remove post-increment.
4372 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4373
e5db8f2f
NC
43742011-04-12 Nick Clifton <nickc@redhat.com>
4375
4376 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4377 instruction for interrupt handlers if the target is the basic V850
4378 architecture.
4379 (expand_epilogue): Likewise.
4380
74f091d6
JJ
43812011-04-12 Jakub Jelinek <jakub@redhat.com>
4382
4383 PR rtl-optimization/48549
4384 * combine.c (propagate_for_debug): Also stop after BB_END of
4385 this_basic_block. Process LAST and just stop processing after it.
4386 (combine_instructions): If last_combined_insn has been deleted,
4387 set last_combined_insn to its PREV_INSN.
4388
f20ca725
RG
43892011-04-12 Richard Guenther <rguenther@suse.de>
4390
4391 PR tree-optimization/46076
4392 * gimple.h (struct gimple_statement_call): Add fntype field.
4393 (gimple_call_fntype): Adjust.
4394 (gimple_call_set_fntype): New function.
4395 * gimple.c (gimple_build_call_1): Set the call function type.
4396 * gimplify.c (gimplify_call_expr): Preserve the function
4397 type the frontend used for the call.
4398 (gimplify_modify_expr): Likewise.
4399 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4400 function type.
4401 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4402 function type.
4403 * tree-ssa.c (useless_type_conversion_p): Function pointer
4404 conversions are useless.
4405
a358e188
MJ
44062011-04-12 Martin Jambor <mjambor@suse.cz>
4407
4408 * cgraph.h (cgraph_node): Remove function declaration.
4409 (cgraph_create_node): Declare.
4410 (cgraph_get_create_node): Likewise.
4411 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4412 Updated all callers.
4413 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4414 the decl does not already exist. Call cgraph_get_create_node instead
4415 of cgraph_node.
4416 (cgraph_get_create_node): New function.
4417 (cgraph_same_body_alias): Update comment.
4418 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4419 assert it does not return NULL.
4420 (cgraph_update_edges_for_call_stmt): Likewise.
4421 (cgraph_clone_edge): Likewise.
4422 (cgraph_create_virtual_clone): Likewise.
4423 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4424 instead of cgraph_node.
4425 (cgraph_add_new_function): Call cgraph_create_node or
4426 cgraph_get_create_node instead of cgraph_node.
4427 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4428 instead of cgraph_node.
4429 (record_eh_tables): Likewise.
4430 (mark_address): Likewise.
4431 (mark_load): Likewise.
4432 (build_cgraph_edges): Call cgraph_get_create_node instead
4433 of cgraph_node.
4434 (rebuild_cgraph_edges): Likewise.
4435 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4436 instead of cgraph_node.
4437 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4438 cgraph_node.
4439 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4440 cgraph_create_node instead of cgraph_node.
4441 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4442 of cgraph_node.
4443 * lto-cgraph.c (input_node): Likewise.
4444 * lto-streamer-in.c (input_function): Likewise.
4445 * varasm.c (mark_decl_referenced): Likewise.
4446 (assemble_alias): Likewise.
4447
fe660d7b
MJ
44482011-04-12 Martin Jambor <mjambor@suse.cz>
4449
4450 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4451 instead of cgraph_node and assert it does not return NULL.
4452 * lto-streamer-in.c (lto_read_body): Likewise.
4453 * omp-low.c (new_omp_context): Likewise.
4454 (create_task_copyfn): Likewise.
4455 * tree-emutls.c (lower_emutls_function_body): Likewise.
4456 * matrix-reorg.c (transform_allocation_sites): Likewise.
4457
bae5cddf
JJ
44582011-04-12 Jakub Jelinek <jakub@redhat.com>
4459
4460 PR c/48552
4461 * c-typeck.c (build_asm_expr): Error out on attempts to use
4462 void type outputs or inputs for constraints that allow reg or
4463 don't allow memory.
4464
06eb52ca
CLT
44652011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4466 Richard Earnshaw <rearnsha@arm.com>
4467
4468 PR target/48250
4469 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4470 to use sign-magnitude offsets. Reject unsupported unaligned
4471 cases. Add detailed description in comments.
4472 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4473 condition from TARGET_32BIT to TARGET_ARM.
4474
648a616b
NF
44752011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4476
4477 * tree.h (struct typed_tree): New.
4478 (struct tree_common): Include it instead of tree_base.
4479 (TREE_TYPE): Update for new location of type field.
4480 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4481 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4482 (union tree_node): Add typed field.
4483 * treestruct.def (TS_TYPED): New.
4484 * lto-streamer.c (check_handled_ts_structures): Handle it.
4485 * tree.c (MARK_TS_TYPED): New macro.
4486 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4487
1e6d1da0
EB
44882011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4489
4490 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4491 (force_nonfallthru): Do not alter the loop nest if no basic block
4492 was created.
4493
44942011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
4495
4496 * config/i386/sse.md (VI): New mode iterator.
4497 (SSEMODEI): Remove.
4498 (AVX256MODEI): Ditto.
4499 (AVXMODEF4P): Ditto.
4500 (avxvecpsmode): Ditto.
4501 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4502 (sse2_andnot<mode>3): New expander.
4503 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4504 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4505 (<any_logic:code><mode>3): Use VI mode iterator.
4506 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4507 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4508 (*andnottf3): Handle AVX three-operand constraints.
4509 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4510
b1372d5d 45112011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 4512 Robert Millan <rmh@gnu.org>
b1372d5d
JM
4513
4514 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4515 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4516 GNU_USER_DYNAMIC_LINKER64): Define.
4517 (REG_NAME): Don't undefine.
4518 (MD_UNWIND_SUPPORT): Undefine.
4519 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4520 (REG_NAME): Don't undefine.
4521 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 4522 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 4523
761c0c6e
JM
45242011-04-11 Joseph Myers <joseph@codesourcery.com>
4525
4526 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4527 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4528
26e0228f
XDL
45292011-04-11 Xinliang David Li <davidxl@google.com>
4530
4531 * value-profile.c (check_ic_target): New function.
4532 (gimple_ic_transform): Sanity check indirect call target.
4533 * gimple-low.c (gimple_check_call_args): Interface change.
4534 (gimple_check_call_matching_types): New function.
4535 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
4536
45372011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4538
4539 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4540 tree-pretty-print.h & realmpfr.h.
4541
a58dfa49
VM
45422011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4543
4544 PR middle-end/48464
4545 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4546 (setup_allocno_and_important_classes): Ditto.
4547
107fd1c1
JM
45482011-04-11 Joseph Myers <joseph@codesourcery.com>
4549
4550 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4551 GNU_USER_DYNAMIC_LINKER.
4552 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4553 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4554 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4555 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4556 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4557 GNU_USER_TARGET_OS_CPP_BUILTINS.
4558 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4559 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4560 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4561 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4562 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4563 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4564 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4565 GNU_USER_TARGET_OS_CPP_BUILTINS.
4566 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4567 GNU_USER_DYNAMIC_LINKER.
4568 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4569 GNU_USER_TARGET_OS_CPP_BUILTINS.
4570 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4571 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4572 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4573 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4574 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4575 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4576 GNU_USER_DYNAMIC_LINKER64): Remove.
4577 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4578 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4579 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4580 GNU_USER_DYNAMIC_LINKER.
4581 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4582 GNU_USER_TARGET_OS_CPP_BUILTINS.
4583 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4584 GNU_USER_TARGET_OS_CPP_BUILTINS.
4585 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4586 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4587 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4588 GNU_USER_TARGET_OS_CPP_BUILTINS.
4589 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4590 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4591 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4592 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4593 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4594 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4595 GNU_USER_DYNAMIC_LINKER.
4596 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4597 GNU_USER_TARGET_OS_CPP_BUILTINS.
4598 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4599 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4600 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4601 GNU_USER_DYNAMIC_LINKER.
4602 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4603 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4604 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4605 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4606 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4607 GNU_USER_DYNAMIC_LINKER.
4608 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4609 GNU_USER_DYNAMIC_LINKERN32.
4610 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4611 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4612 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4613 GNU_USER_DYNAMIC_LINKER32.
4614 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4615 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4616 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4617 GNU_USER_DYNAMIC_LINKER.
4618 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4619 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4620 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4621 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 4622 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
4623 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4624 GNU_USER_DYNAMIC_LINKER32.
4625 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4626 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4627 GNU_USER_DYNAMIC_LINKER.
4628 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4629 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4630 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4631 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4632 GNU_USER_DYNAMIC_LINKER64.
4633 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4634 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4635 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4636 GNU_USER_DYNAMIC_LINKER.
4637 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4638 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4639 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4640 GNU_USER_DYNAMIC_LINKER.
4641 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4642 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4643 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4644 GNU_USER_DYNAMIC_LINKER32.
4645 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4646 GNU_USER_DYNAMIC_LINKER64.
4647 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4648 GNU_USER_DYNAMIC_LINKER64.
4649 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4650 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4651 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4652 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 4653 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 4654
e24609cf
JM
46552011-04-11 Joseph Myers <joseph@codesourcery.com>
4656
4657 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4658 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4659 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4660 GNU_USER_DYNAMIC_LINKER.
4661 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4662 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4663 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4664 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4665 GNU_USER_DYNAMIC_LINKER64.
4666 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4667 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4668 GNU_USER_LINK_EMULATION.
4669 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4670 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4671 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4672 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4673 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4674 CPP_SPEC, CC1_SPEC): Remove.
4675 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4676 (GNU_USER_DYNAMIC_LINKER): Define.
4677 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4678 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4679 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4680 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4681 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4682 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4683 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4684 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4685 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4686 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4687 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4688 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4689 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4690 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4691 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4692 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4693 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4694 GNU_USER_DYNAMIC_LINKER.
4695 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4696 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4697 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4698 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4699 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4700 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4701 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4702 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4703 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 4704 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 4705
b8ce4e94
KT
47062011-04-11 Kai Tietz <ktietz@redhat.com>
4707
4708 PR target/9601
4709 PR target/11772
4710 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4711 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4712 comment.
4713 (ix86_is_msabi_thiscall): Removed.
4714 (ix86_is_type_thiscall): Likewise.
4715 (ix86_get_callcvt): New function.
4716 (ix86_comp_type_attributes): Simplify check.
4717 (ix86_function_regparm): Use ix86_get_callcvt for calling
4718 convention attribute checks.
4719 (ix86_return_pops_args): Likewise.
4720 (ix86_static_chain): Likewise.
4721 (x86_this_parameter): Likewise.
4722 (x86_output_mi_thunk): Likewise.
4723 (ix86_function_type_abi): Optimize check for types without attributes.
4724 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4725 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4726 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4727 by flag-values.
4728 (IX86_BASE_CALLCVT): Helper macro.
4729 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4730 Use ix86_get_callcvt for calling convention attribute checks and avoid
4731 symbol-decoration for stdcall in TARGET_RTD case.
4732 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4733 Likewise.
4734 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4735 for declaration.
4736
798dd0ba
UB
47372011-04-11 Uros Bizjak <ubizjak@gmail.com>
4738
4739 * config/i386/sse.md (VI_128): New mode iterator.
4740 (VI12_128): Rename from SSEMODE12.
4741 (VI14_128): Rename from SSEMODE14.
4742 (VI124_128): New mode iterator.
4743 (VI24_128): Rename from SSEMODE248.
4744 (VI248_128): Rename from SSEMODE248.
4745 (SSEMODE124C8): Remove.
4746 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4747 (*sse2_<plusminus_insn><mode>3): Merge with
4748 *avx_<plusminus_insn><mode>3.
4749 (*mulv8hi3): Merge with *avx_mulv8hi3.
4750 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4751 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4752 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4753 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4754 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4755 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4756 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4757 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4758 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4759 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4760 (*<smaxmin:code>v8hi3): Ditto.
4761 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4762 (*<smaxmin:code>v16qi3): Ditto.
4763 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4764 (*sse2_eq<mode>3): Ditto.
4765 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4766 (*sse2_gt<mode>3): Ditto.
4767 (vcondv2di): Split out of vcond<mode>.
4768 (vconduv2di): Split out of vcondu<mode>.
4769
956011be
RG
47702011-04-11 Richard Guenther <rguenther@suse.de>
4771
4772 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4773 before calling tree_low_cst.
4774
e6313a78
RG
47752011-04-11 Richard Guenther <rguenther@suse.de>
4776
4777 * stor-layout.c (layout_type): Compute all array index size operations
4778 in the original type.
4779 (initialize_sizetypes): Add comment.
4780 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4781
e69d7376
JM
47822011-04-11 Joseph Myers <joseph@codesourcery.com>
4783
4784 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4785
9f9ebcdf
MJ
47862011-04-11 Martin Jambor <mjambor@suse.cz>
4787
4788 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4789 of cgraph_node, handle NULL return value.
4790 (cgraph_global_info): Likewise.
4791 (cgraph_rtl_info): Likewise.
4792 * tree-inline.c (estimate_num_insns): Likewise.
4793 * gimplify.c (unshare_body): Likewise.
4794 (unvisit_body): Likewise.
4795 (gimplify_body): Likewise.
4796 * predict.c (optimize_function_for_size_p): Likewise.
4797 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4798 (call_may_clobber_ref_p_1): Likewise.
4799 * varasm.c (function_section_1): Likewise.
4800 (assemble_start_function): Likewise.
4801
581985d7
MJ
48022011-04-11 Martin Jambor <mjambor@suse.cz>
4803
4804 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4805 of cgraph_node.
4806 * final.c (rest_of_clean_state): Likewise.
4807 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4808 * passes.c (pass_init_dump_file): Likewise.
4809 (execute_all_ipa_transforms): Likewise.
4810 (function_called_by_processed_nodes_p): Likewise.
4811 * predict.c (maybe_hot_frequency_p): Likewise.
4812 (probably_never_executed_bb_p): Likewise.
4813 (compute_function_frequency): Likewise.
4814 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4815 (unnest_nesting_tree_1): Likewise.
4816 (lower_nested_functions): Likewise.
4817 * tree-optimize.c (execute_fixup_cfg): Likewise.
4818 (tree_rest_of_compilation): Likewise.
4819 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4820 * tree-sra.c (ipa_early_sra): Likewise.
4821 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4822 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4823 * ipa.c (record_cdtor_fn): Likewise.
4824 * ipa-inline.c (cgraph_early_inlining): Likewise.
4825 (compute_inline_parameters_for_current): Likewise.
4826 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4827 * ipa-pure-const.c (local_pure_const): Likewise.
4828 * ipa-split.c (split_function): Likewise.
4829 (execute_split_functions): Likewise.
4830 * cgraphbuild.c (build_cgraph_edges): Likewise.
4831 (rebuild_cgraph_edges): Likewise.
4832 (cgraph_rebuild_references): Likewise.
4833 (remove_cgraph_callee_edges): Likewise.
4834 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4835 (verify_cgraph_node): Likewise.
4836 (cgraph_analyze_functions): Likewise.
4837 (cgraph_preserve_function_body_p): Likewise.
4838 (save_inline_function_body): Likewise.
4839 (save_inline_function_body): Likewise.
4840 * tree-inline.c (copy_bb): Likewise.
4841 (optimize_inline_calls): Likewise.
4842
57dbdc5a
MJ
48432011-04-11 Martin Jambor <mjambor@suse.cz>
4844
4845 PR tree-optimization/48195
4846 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4847 ipa_check_create_edge_args.
4848 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4849 ipa_check_create_edge_args.
4850 * ipa-inline.c (inline_generate_summary): Do not call
4851 ipa_check_create_node_params and ipa_check_create_edge_args.
4852 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4853 ipa_check_create_edge_args.
4854
d108e679
AS
48552011-04-09 Anatoly Sokolov <aesok@post.ru>
4856
4857 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4858 instead of loop.
4859 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4860 * function.c (record_hard_reg_sets): Likewise.
4861 * ira.c (compute_regs_asm_clobbered): Likewise.
4862 * sched-deps.c (sched_analyze_1): Likewise.
4863 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4864
3411bc59
XDL
48652011-04-09 Xinliang David Li <davidxl@google.com>
4866
4867 PR tree-optimization/PR48484
4868 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4869 has_valid_pred lazily
4870
b365495a
DS
48712011-04-09 Duncan Sands <baldrick@free.fr>
4872
4873 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4874
68bc509a
EB
48752011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4876
4877 * combine.c (combine_validate_cost): Adjust comments. Set registered
4878 cost of I0 to zero at the end, if any.
4879
041e059f
XDL
48802011-04-08 Xinliang David Li <davidxl@google.com>
4881
68bc509a
EB
4882 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4883 to insane profile data.
041e059f 4884
444b3995
XDL
48852011-04-08 Xinliang David Li <davidxl@google.com>
4886
4887 * ipa-cp.c (ipcp_update_profiling): Correct
4888 negative scale factor due to insane profile data.
4889
6a801cf2
XDL
48902011-04-08 Xinliang David Li <davidxl@google.com>
4891
4892 * final.c (dump_basic_block_info): New function.
4893 (final): Dump basic block.
4894 (final_scan_insn): Remove old dump.
4895
d5f3624e
SK
48962011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4897
68bc509a
EB
4898 PR target/47829
4899 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4900 crtbegin/crtend.
d5f3624e 4901
42821aff
MM
49022011-04-08 Michael Matz <matz@suse.de>
4903
4904 PR middle-end/48389
4905 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4906 functions.
4907 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4908 * rtl.h (rebuild_jump_labels_chain): Declare.
4909 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4910 insns inserted on edges.
4911
ad7be009
JM
49122011-04-08 Joseph Myers <joseph@codesourcery.com>
4913
4914 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4915 * config/arm/arm-arches.def: New.
4916 * config/arm/arm-opts.h: New.
4917 * config/arm/genopt.sh: New.
4918 * config/arm/arm-tables.opt: New (generated).
4919 * config/arm/arm.c (arm_handle_option, arm_target_help,
4920 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4921 (all_architectures): Get most table contents from arm-arches.def.
4922 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4923 arm_selected_tune here.
4924 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4925 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4926 (march=, mcpu=, mtune=): Use Enum and Var.
4927 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4928 (arm.o): Update dependencies.
ecbb6fb7 4929
42821aff 49302011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
4931
4932 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4933 of header_file.
4934 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4935 (write_typed_alloc_defns): Likewise.
4936 (main): Calls write_typed_alloc_defns with output_header.
4937
8d189b3f
VM
49382011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4939
68bc509a 4940 PR inline-asm/48435
8d189b3f
VM
4941 * ira-color.c (setup_profitable_hard_regs): Add comments.
4942 Don't take prohibited hard regs into account.
4943 (setup_conflict_profitable_regs): Rename to
4944 get_conflict_profitable_regs.
4945 (check_hard_reg_p): Check prohibited hard regs.
4946
44f370bf
NF
49472011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4948
4949 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4950 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4951 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4952
483d7ad3
JDA
49532011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4954
4955 PR target/48366
4956 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 4957 move from floating point to shift amount register.
483d7ad3
JDA
4958 (emit_move_sequence): Remove secondary reload support for floating
4959 point to shift amount amount register copies.
4960 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4961 amount register copies.
4962 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4963 register, return false if mode isn't a scalar integer mode.
4964 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4965
97e03fa1
RG
49662011-04-08 Richard Guenther <rguenther@suse.de>
4967
4968 * gimple.c (gimple_call_flags): Remove kludge.
4969
9d40778b
AM
49702011-04-08 Alexander Monakov <amonakov@ispras.ru>
4971
4972 * sel-sched.c (sel_region_init): Move call to
4973 sel_setup_region_sched_flags after setup_current_loop_nest.
4974
19ac7892
AB
49752011-04-08 Andrey Belevantsev <abel@ispras.ru>
4976
4977 PR rtl-optimization/48272
19ac7892
AB
4978 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4979 init_insn_reg_pressure_info. Adjust a caller.
4980 * sched-int.h (init_insn_reg_pressure_info): Declare.
4981 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4982 when sched-pressure is enabled.
4983
0f8c63cc
RG
49842011-04-08 Richard Guenther <rguenther@suse.de>
4985
4986 * gimple.c (gimple_set_modified): Do not queue calls to
4987 MODIFIED_NORETURN_CALLS here ...
4988 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4989
5e5a425e
RG
49902011-04-08 Richard Guenther <rguenther@suse.de>
4991
4992 PR lto/48467
4993 * toplev.c (lang_dependent_init): Do not open asm_out_file
4994 in WPA mode, nor perform debug machinery initialization.
4995 (finalize): Do not unlink asm_out_file in WPA mode.
4996
9bfc434b
RG
49972011-04-08 Richard Guenther <rguenther@suse.de>
4998
4999 * gimple.h (gimple_call_fntype): New function.
5000 (gimple_call_return_type): Use it.
5001 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5002 * gimple-low.c (gimple_check_call_args): Likewise.
5003 * gimple.c (gimple_call_flags): Likewise.
5004 (gimple_call_arg_flags): Likewise.
5005 (gimple_call_return_flags): Likewise.
5006 * tree-cfg.c (verify_gimple_call): Likewise.
5007 (do_warn_unused_result): Likewise.
5008 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5009 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5010
7c1f0b40
DM
50112011-04-08 Dmitry Melnik <dm@ispras.ru>
5012
5013 PR rtl-optimization/48235
5014 * sel-sched.c (code_motion_process_successors): Recompute the last
5015 insn in basic block if control flow changed.
5016 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5017 Update condition for ilist_remove.
5018
ea4d630f
AM
50192011-04-08 Alexander Monakov <amonakov@ispras.ru>
5020
5021 PR rtl-optimization/48302
5022 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5023 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5024 it to record added preheader blocks.
5025 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5026 on to sel_add_loop_preheaders.
5027 (sel_region_init): Move call to setup_current_loop_nest after
5028 sel_init_bbs.
5029
07643d76
AM
50302011-04-08 Alexander Monakov <amonakov@ispras.ru>
5031
5032 PR target/48273
5033 * cfgloop.h (loop_has_exit_edges): New helper.
5034 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5035 non-clonable.
5036 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5037 that have no exit edges.
5038
1f3b2b4e
AM
50392011-04-08 Alexander Monakov <amonakov@ispras.ru>
5040
5041 PR rtl-optimization/48442
5042 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5043 all callers. Adjust assert.
5044
554f1948
JJ
50452011-04-08 Jakub Jelinek <jakub@redhat.com>
5046
5047 PR tree-optimization/48377
5048 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5049 is_packed to true even for types with smaller TYPE_ALIGN than
5050 TYPE_SIZE.
5051
ddf72388
RG
50522011-04-08 Richard Guenther <rguenther@suse.de>
5053
5054 PR bootstrap/48513
5055 * doc/tm.texi: Re-generate.
5056
0c27e2d8
WG
50572011-04-08 Wei Guozhi <carrot@google.com>
5058
5059 PR target/47855
5060 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5061 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5062 * config/arm/arm.md (*push_multi): Change the length computation to
5063 call a C function.
5064
07c5f94e
AS
50652011-04-08 Anatoly Sokolov <aesok@post.ru>
5066
5067 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5068 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5069 * doc/tm.texi: Regenerate.
5070 * system.h (ASM_OUTPUT_BSS): Poison.
5071 * varasm.c (asm_output_bss): Remove function.
5072 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 5073
07c5f94e
AS
5074 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5075 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5076 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5077 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5078 Likewise.
5079 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5080 Likewise.
5081 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5082 Likewise.
5083 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5084
5f2c36e1
JM
50852011-04-07 Joseph Myers <joseph@codesourcery.com>
5086
5087 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
5088 EnumValue lines.
5089
39e7722b
JM
50902011-04-07 Joseph Myers <joseph@codesourcery.com>
5091
5092 * config/m68k/m68k.c (m68k_handle_option): Don't handle
5093 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
5094 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
5095 OPT_mcpu32.
5096 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5097 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
5098 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
5099 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
5100 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
5101 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
5102 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
5103 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
5104 options. Don't map other m68k options manually. Don't handle
5105 old-style options as canonical.
5106 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 5107 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 5108
cf103ca4
EB
51092011-04-07 Eric Botcazou <ebotcazou@adacore.com>
5110
5111 * basic-block.h (force_nonfallthru): Move to...
5112 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
5113 (force_nonfallthru): ...here.
5114 * cfghooks.c (force_nonfallthru): New function.
5115 * cfgrtl.c (force_nonfallthru): Rename into...
5116 (rtl_force_nonfallthru): ...this.
5117 (commit_one_edge_insertion): Do not set AUX field.
5118 (commit_edge_insertions): Do not discover new basic blocks.
5119 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
5120 (cfg_layout_rtl_cfg_hooks): Likewise.
5121 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
5122 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
5123 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
5124
14431f58
AS
51252011-04-07 Anatoly Sokolov <aesok@post.ru>
5126
5127 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
5128 Remove macros.
5129
3729983c
UB
51302011-04-07 Uros Bizjak <ubizjak@gmail.com>
5131
5132 * config/i386/sse.md: Update copyright year.
5133 (avxcvtvecmode): Remove.
5134 (sse_movhlps): Merge with *avx_movhlps.
5135 (sse_movlhps): Merge with *avx_movlhps.
5136 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
5137 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
5138 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
5139 (sse_loadhps): Merge with *avx_loadhps.
5140 (sse_storelps): Merge with *avx_storelps.
5141 (sse_loadlps): Merge with *avx_loadlps.
5142 (sse_movss): Merge with *avx_movss.
5143 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
5144 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
5145 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
5146 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
5147 (vec_set<mode>_0): Ditto.
5148 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
5149 (sse4_1_insertps): Merge with *avx_insertps.
5150 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
5151 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
5152 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
5153 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
5154 (sse2_storehpd): Merge with *avx_storehpd.
5155 (sse2_loadhpd): Merge with *avx_loadhpd.
5156 (sse2_loadlpd): Merge with *avx_loadlpd.
5157 (sse2_movsd): Merge with *avx_movsd.
5158 (*vec_concatv2df): Merge with *vec_concatv2df.
5159
4e626909
JJ
51602011-04-07 Jakub Jelinek <jakub@redhat.com>
5161
5162 PR debug/48343
5163 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 5164 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
5165 (try_combine): Add last_combined_insn parameter, pass it instead of
5166 i3 to propagate_for_debug.
5167
3729983c 51682011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
5169
5170 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
5171 to handle MDR <-> data register transfers.
5172 (movhi_internal): Likewise.
5173
20c03367
AM
51742011-04-07 Alan Modra <amodra@gmail.com>
5175
5176 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
5177 previous stack info.
5178
bf22920b
TV
51792011-04-07 Tom de Vries <tom@codesourcery.com>
5180
5181 PR target/43920
5182 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
5183 flow_find_cross_jump. Swap variables to implement backward replacement.
5184 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
5185
823918ae
TV
51862011-04-07 Tom de Vries <tom@codesourcery.com>
5187
5188 PR target/43920
5189 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
5190 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
5191 and bb2.
5192 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
5193 src1 or src2. Redirect edges to the last basic block. Update
5194 frequency and count on multiple basic blocks in case of fallthru.
823918ae 5195
472c95f5
TV
51962011-04-07 Tom de Vries <tom@codesourcery.com>
5197
5198 PR target/43920
5199 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
5200 function.
3729983c
UB
5201 (old_insns_match_p): Change return type. Replace return false/true
5202 with return dir_none/dir_both. Use can_replace_by.
5203 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5204 direction from dir_p. Register replacement direction in dir, last_dir
5205 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
5206 merge_dir. Return replacement direction in dir_p.
5207 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5208 return type of old_insns_match_p.
5209 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5210 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5211 flow_find_cross_jump.
5212 * basic-block.h (enum replace_direction): New type.
5213 (flow_find_cross_jump): Add parameter to declaration.
5214
a95d4000
UB
52152011-04-06 Uros Bizjak <ubizjak@gmail.com>
5216
5217 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5218 (AVXMODEDCVTPS2DQ): Ditto.
5219 (VEC_FLOAT_MODE): Ditto.
5220 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5221 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5222 (<any_logic:code><mode>3): Use VF mode iterator.
5223 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5224 Use VF mode iterator.
5225 (copysign<mode>3): Use VF mode iterator.
5226 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5227 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5228 (*<any_logic:code><MODEF:mode>3): Merge with
5229 *avx_<any_logic:code><MODEF:mode>3.
5230 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5231 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5232 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5233 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5234 (sse2_cvtdq2ps): Use %v modifier.
5235 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5236 (avx_cvtps2dq<avxmodesuffix>): Remove.
5237 (sse2_cvtps2dq): Use %v modifier.
5238 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5239 (avx_cvttps2dq<avxmodesuffix>): Remove.
5240 (sse2_cvttps2dq): Use %v modifier.
5241 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5242 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5243 (sse2_cvtsd2siq): Fix insn template.
5244 (sse2_cvtsd2siq_2): Ditto.
5245 (sse2_cvttsd2siq): Ditto.
5246 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5247 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5248
ad01c437
JM
52492011-04-06 Joseph Myers <joseph@codesourcery.com>
5250
5251 * gcov-io.c: Use GCC Runtime Library Exception.
5252
fe846284
JJ
52532011-04-06 Jakub Jelinek <jakub@redhat.com>
5254
5255 PR debug/48466
5256 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5257 as base_reg whatever register reg has been eliminated to, instead
5258 of hardcoding STACK_POINTER_REGNUM.
5259
acce4e77
JM
52602011-04-06 Joseph Myers <joseph@codesourcery.com>
5261
5262 * doc/tm.texi.in: Document C target hooks as separate from general
5263 target hooks.
5264 * doc/tm.texi: Regenerate.
5265 * genhooks.c (struct hook_desc): Add docname field.
5266 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5267 docname field.
5268 (hook_array): Include c-target.def.
5269 (emit_documentation): Use docname field in output.
5270 (emit_init_macros): Take docname argument. Only emit definitions
5271 for hooks matching docname.
5272 (main): Expect additional arguments in all cases. Pass argument
5273 to emit_init_macros.
5274 * target.def: Move initial macro definitions and comments to
5275 target-hooks-macros.h.
5276 (gcc_targetcm): Move to c-family/c-target.def.
5277 * target.h (targetcm): Move declaration to c-family/c-target.h.
5278 * targhooks.c (default_handle_c_option): Move to
5279 c-family/c-opts.c.
5280 * targhooks.h (default_handle_c_option): Move declaration to
5281 c-family/c-common.h.
5282 * target-hooks-macros.h: New file.
5283 * config.gcc (target_has_targetcm): Define and use to add to
5284 c_target_objs and cxx_target_objs.
5285 * config/default-c.c: New file.
5286 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5287 of target.h and target-def.h.
5288 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5289 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5290 darwin_check_cfstring_format_arg): Make static.
5291 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5292 TARGET_STRING_OBJECT_REF_TYPE_P,
5293 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5294 * config/darwin-protos.h (darwin_objc_construct_string,
5295 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5296 declare.
5297 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5298 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 5299 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
5300 * config/t-darwin (darwin-c.o): Update dependencies.
5301 * system.h (TARGET_HAS_TARGETCM): Poison.
5302 * Makefile.in (TARGET_H): Update.
5303 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5304 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5305 (default-c.o): New target.
5306 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 5307 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
5308 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5309 c-target.def.
5310 (build/genhooks.o): Update dependencies.
5311
275b4baa 53122011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 5313
275b4baa
RG
5314 * ipa-inline.c (enum inlining_mode): Remove.
5315 (cgraph_flatten): Use some other token.
5316 (cgraph_edge_early_inlinable_p): New function, split out from ...
5317 (cgraph_perform_always_inlining): New function, split out from ...
5318 (cgraph_decide_inlining_incrementally): ... here.
5319 (cgraph_mark_inline_edge): Adjust.
5320 (cgraph_early_inlining): Re-structure.
5321 (pass_early_inline): Require SSA form.
5322
f15b8bdf 53232011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
5324 Julian Brown <julian@codesourcery.com>
5325 Mark Shinwell <shinwell@codesourcery.com>
5326
5327 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5328 LO_REGS only for Thumb-1.
5329 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5330 be used in short instructions when optimising for size on Thumb-2.
5331
516426da
EB
53322011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5333
5334 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5335 associated with user returns to be preserved.
5336
96621ebf
TG
53372011-04-06 Tristan Gingold <gingold@adacore.com>
5338
f15b8bdf
EB
5339 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5340 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
5341 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5342 if XCOFF_DEBUGGING_INFO.
5343
07c0852e
UB
53442011-04-06 Uros Bizjak <ubizjak@gmail.com>
5345
5346 * config/i386/i386.md (attribute isa): New.
5347 (attribute enabled): New.
5348 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5349 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5350 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5351 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5352 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5353 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5354 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5355 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5356
5357 * config/i386/sse.md (VF): New mode iterator.
5358 (VF1): Ditto.
5359 (VF2): Ditto.
5360 (VF_128): Ditto.
5361 (SSEMODEF4): Remove.
5362 (attribute sse): Handle V8SF and V4DF modes.
5363 (<absneg:code><mode>2): Use VF mode iterator.
5364 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5365 mode iterator.
5366 (<plusminus_insn><mode>3): Use VF mode iterator.
5367 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5368 Use VF mode iterator.
5369 (<sse>_vm<plusminus_insn><mode>3): Merge with
5370 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5371 (mul<mode>3): Use VF mode iterator.
5372 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5373 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5374 mode iterator.
5375 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5376 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5377 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5378 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5379 mode iterator.
5380 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5381 Use VF1 mode iterator.
5382 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5383 (sqrt<VF2:mode>2): New expander.
5384 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5385 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5386 and sqrtv2df2. Use VF mode iterator.
5387 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5388 mode iterator.
5389 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5390 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5391 Use VF1 mode iterator.
5392 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5393 (<smaxmin:code><mode>3): Use VF mode iterator.
5394 (*<smaxmin:code><mode>3_finite): Merge with
5395 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5396 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5397 (<sse>_vm<smaxmin:code><mode>2): Merge with
5398 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5399 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5400 mode iterator.
5401 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5402 mode iterator.
5403 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5404 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5405 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5406 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5407 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5408 VF mode iterator.
5409 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5410 Use VF_128 mode iterator.
5411 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5412 mode iterator.
5413 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5414 VF_128 mode iterator.
5415 (vcond<mode>): Use VF mode iterator.
5416 * config/i386/predicates.md (sse_comparison_operator): Merge with
5417 avx_comparison_float_operator. Do not declare as special_predicate.
5418 * config/i386/i386.c (struct builtin_description): Update for renamed
5419 compare patterns.
5420 (ix86_expand_args_builtin): Ditto.
5421 (ix86_expand_sse_compare_mask): Ditto.
5422
ff5d142c
RG
54232011-04-06 Richard Guenther <rguenther@suse.de>
5424
5425 * tree-inline.c (estimate_num_insns): For calls simply account
5426 for all passed arguments and a used return value.
5427
d7d1d041 54282011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 5429
d7d1d041
RG
5430 PR tree-optimization/47663
5431 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5432 call_stmt_time fields.
5433 (cgraph_edge_inlinable_p): Declare.
5434 (cgraph_edge_recursive_p): New inline function.
5435 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5436 (cgraph_clone_edge): Copy it.
5437 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5438 Account for call stmt time.
5439 (cgraph_estimate_time_after_inlining): Take edge argument.
5440 (cgraph_estimate_edge_growth): Account call stmt size.
5441 (cgraph_estimate_size_after_inlining): Take edge argument.
5442 (cgraph_mark_inline_edge): Adjust.
5443 (cgraph_check_inline_limits): Likewise.
5444 (cgraph_recursive_inlining_p): Remove.
5445 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5446 (cgraph_decide_recursive_inlining): Take edge argument and
5447 adjust.
5448 (cgraph_decide_inlining_of_small_functions): Do not avoid
5449 diags for recursive inlining here.
5450 (cgraph_flatten): Adjust.
5451 (cgraph_decide_inlining_incrementally): Likewise.
5452 (estimate_function_body_sizes): Remove call cost handling.
5453 (compute_inline_parameters): Initialize caller edge call costs.
5454 (cgraph_estimate_edge_growth): New function.
5455 (cgraph_estimate_growth): Use it.
5456 (cgraph_edge_badness): Likewise.
5457 (cgraph_check_inline_limits): Take an edge argument.
5458 (cgraph_decide_inlining_of_small_functions): Adjust.
5459 (cgraph_decide_inlining): Likewise.
5460 * tree-inline.c (estimate_num_insns): Only account for call
5461 return value if it is used.
5462 (expand_call_inline): Avoid diagnostics on recursive inline
5463 functions here.
5464 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5465 (input_edge): Input edge call costs.
5466
2feb95f7
RO
54672011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5468
5469 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5470
26fbd9c2
JW
54712011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5472
5473 * doc/invoke.texi (Spec Files): Fix typo.
5474
694dc0ca
EB
54752011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5476
5477 * profile.c (branch_prob): Move declaration of local variable. Remove
5478 obsolete ??? comment. Expand the location explicitly instead of using
5479 the LOCATION_FILE and LOCATION_LINE macros.
5480
4925d0d5
WG
54812011-04-06 Wei Guozhi <carrot@google.com>
5482
5483 PR target/47855
5484 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5485 (arm_cond_branch): Likewise.
5486 (arm_cond_branch_reversed): Likewise.
5487 (arm_jump): Likewise.
5488 (push_multi): Likewise.
5489 * config/arm/constraints.md (Py): New constraint.
5490
f55dfa2f
NF
54912011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5492
5493 PR bootstrap/48471
5494 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5495 Move these...
5496 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5497 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5498 #ifdef DBX_DEBUGGING_INFO.
5499
fca96842
BS
55002011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5501
5502 PR bootstrap/48403
5503 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5504 if old and new states differ.
5505
30b83e38
JM
55062011-04-05 Joseph Myers <joseph@codesourcery.com>
5507
5508 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5509 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5510 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5511 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5512 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5513 mcfv4e): Use Alias.
5514 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5515 ColdFire options to -mcpu= options.
5516
277a9aa5
JL
55172011-04-05 Jeff Law <law@redhat.com>
5518
5519 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5520 check if BB is a successor of LOOP->header and return
5521 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5522
c1e2610e
SB
55232011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5524
5525 * cprop.c (struct reg_use): Remove.
5526 (reg_use_table): Make an array of RTX.
5527 (find_used_regs, constprop_register, local_cprop_pass,
5528 bypass_block): Simplify users of reg_use_table.
5529 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5530 on one of the uses found by find_used_regs.
5531
e532f586
NF
55322011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5533
5534 PR bootstrap/48469
5535 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5536 declaration.
5537
3fb7c055
NF
55382011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5539
5540 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5541 as an rtx.
5542 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5543
b71b43d9
SB
55442011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5545
5546 PR middle-end/48441
5547 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5548
b405b274
NF
55492011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5550
5551 * combine.c: Include obstack.h.
5552 (struct insn_link): Define.
5553 (uid_log_links): Adjust type.
5554 (FOR_EACH_LOG_LINK): New macro.
5555 (insn_link_obstack): Declare.
5556 (alloc_insn_link): Define.
5557 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5558 type of link variables.
5559 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5560 (try_combine, record_promoted_values, distribute_notes): Likewise.
5561 (distribute_links): Likewise. Tweak prototype.
5562 (clear_log_links): Delete.
5563 (adjust_for_new_dest): Call alloc_insn_link.
5564 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5565
6409abe3
NF
55662011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5567
5568 * gcse.c (modify_mem_list): Convert to an array of VECs.
5569 (canon_modify_mem_list, compute_transp): Tweak formatting.
5570 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5571 (load_killed_in_block_p): Likewise.
5572 (record_last_mem_set_info): Likewise.
5573 (clear_modify_mem_tables): Likewise.
5574
170d8157
TV
55752011-04-05 Tom de Vries <tom@codesourcery.com>
5576
5577 PR middle-end/48461
5578 * function.c (emit_use_return_register_into_block): Only define if
5579 HAVE_return.
5580
c5911a55
EB
55812011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5582
5583 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5584
abd016e6
JM
55852011-04-05 Joseph Myers <joseph@codesourcery.com>
5586
5587 * config/rx/rx-opts.h: New.
5588 * config/rx/rx.c (rx_cpu_type): Remove.
5589 (rx_handle_option): Don't assert that global structures are in
5590 use. Access variables via opts pointer. Defer most handling of
5591 OPT_mint_register_. Use error_at.
5592 (rx_option_override): Handle deferred OPT_mint_register_ here.
5593 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5594 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5595 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5596 (rx_cpu_types): New Enum and EnumValue entries.
5597 (mint-register=): Use Defer and use Var accordingly.
5598
1ed13f83
NF
55992011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5600
5601 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5602 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5603 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5604 Move these...
5605 (debug_free_queue, debug_nesting, symbol_queue_index):
5606 ...and these...
5607 * dbxout.c: ...to here. Make static.
5608
6ce1edcf
NF
56092011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5610
5611 * gcse.c (modify_pair): Define. Define a VEC of it.
5612 (canon_modify_mem_list): Convert to an array of VECs.
5613 (free_insn_expr_list_list): Delete.
5614 (clear_modify_mem_tables): Call VEC_free instead.
5615 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5616 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5617 (canon_list_insert, compute_transp): Likewise.
5618
c201ac94
TV
56192011-04-05 Tom de Vries <tom@codesourcery.com>
5620
5621 PR target/43920
5622 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5623 for size.
5624
4c029f40
TV
56252011-04-05 Tom de Vries <tom@codesourcery.com>
5626
5627 PR target/43920
5628 * function.c (emit_use_return_register_into_block): New function.
5629 (thread_prologue_and_epilogue_insns): Use
5630 emit_use_return_register_into_block.
5631
2a562b0a
TV
56322011-04-05 Tom de Vries <tom@codesourcery.com>
5633
5634 PR target/43920
5635 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5636 insn.
5637
0248bceb
TV
56382011-04-05 Tom de Vries <tom@codesourcery.com>
5639
5640 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5641
ffa94123
YZ
56422011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5643
798dd0ba
UB
5644 * config/arm/arm.md (define_constants for unspec): Replace with
5645 define_c_enum.
5646 (define_constants for unspecv): Replace with define_c_enum.
5647 * config/arm/neon.md (define_constants for unspec): Replace with
5648 define_c_enum.
ffa94123 5649
3b8f9b46
RH
56502011-04-04 Richard Henderson <rth@redhat.com>
5651
720cf80f 5652 PR bootstrap/48400
3b8f9b46
RH
5653 * dwarf2out.c (output_line_info): Always emit line info from
5654 at least one section.
5655 (dwarf2out_init): Create text_section_line_info here ...
5656 (set_cur_line_info_table): ... not here.
5657
720cf80f 56582011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
5659
5660 PR target/48380
5661 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 5662 not called.
e5b0e1ca 5663
720cf80f 5664 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 5665
196565d4
SB
56662011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5667
b77f9eab
SB
5668 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5669 (expr_equiv_p): Remove.
5670 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5671 (hash_scan_set): Update call to insert_set_in_table.
5672 (dump_hash_table): Dump <dest, src> pair.
5673 (lookup_set): Simplify. Lookup <dest, src> pair.
5674 (compute_transp): Remove, fold heavily simplified code into...
5675 (compute_local_properties): ...here. Expect COMP and TRANSP
5676 unconditionally.
5677 (find_avail_set): Take set directly from struct expr.
5678 (find_bypass-set): Likewise.
5679 (bypass_block): Likewise.
5680 (cprop_insn): Likewise. Remove redundant INSN_P test.
5681
384d7a55
SB
5682 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5683 checks on form of COND from find_implicit_sets to here.
5684 (find_implicit_sets): Cleanup control flow. Split critical edges
5685 if it exposes implicit sets. Allocate/resize implicit_sets as
5686 necessary.
5687 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5688 changed something. Run df_analyze after find_implicit_sets if any
5689 edges were split. Do not allocate implicit_sets here.
5690
3084ce69
SB
5691 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5692 (gcse_obstack): Renamed to cprop_obstack.
5693 (GNEW, GNEWVEC, GNEWVAR): Remove.
5694 (gmalloc): Remove.
5695 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5696 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5697 (gcse_alloc): Likewise, and rename to cprop_alloc.
5698 (alloc_gcse_men, free_gcse_mem): Remove.
5699 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5700 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5701 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5702
196565d4
SB
5703 * cprop.c (oprs_not_set_p): Remove.
5704 (mark_set, mark_clobber): Remove.
5705 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5706 (reg_not_set_p): New function.
5707 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5708 (cprop_insn): Likewise.
5709 (cprop_jump): Use FOR_EACH_EDGE.
5710
9b69cf83
BS
57112011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5712
5713 PR bootstrap/48403
5714 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5715 (rank_for_schedule): Use scheduled_insns vector instead of
5716 last_scheduled_insn.
5717 (ok_for_early_queue_removal): Likewise.
5718 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5719 we have a dbg_cnt.
5720 (choose_ready): Likewise.
5721 (commit_schedule): Use VEC_iterate.
5722 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5723 a dbg_cnt, use it and ensure the first insn is in the ready list.
5724 (haifa_sched_init): Allocate scheduled_insns.
5725 (sched_extend_ready_list): Don't allocate it; reserve space.
5726 (haifa_sched_finish): Free it.
5727
24f48c2f
JM
57282011-04-04 Joseph Myers <joseph@codesourcery.com>
5729
5730 * optc-gen.awk: Always remove type from Variable entry before
5731 recording in var_seen.
5732
8effe856
EB
57332011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5734
5735 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5736 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5737 call to tidy_fallthru_edges.
5738
413519ae
JM
57392011-04-04 Joseph Myers <joseph@codesourcery.com>
5740
5741 * doc/options.texi (ToLower): Document.
3729983c 5742 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
5743 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5744 * opts.h (cl_option): Add cl_tolower field.
5745 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5746 arguments with lowercase strings.
5747 * config/rx/rx.opt (mcpu=): Add ToLower.
5748 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5749 argument.
5750
7d34a1b0
RS
57512011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5752
5753 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5754
c30e7434
RS
57552011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5756
5757 * config/vax/vax.c: Include reload.h.
5758
112a861d
AS
57592011-04-04 Anatoly Sokolov <aesok@post.ru>
5760
5761 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5762 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5763 (sparc_preferred_reload_class): New function.
5764
e8c6bb74
JJ
57652011-04-04 Jakub Jelinek <jakub@redhat.com>
5766
2aeaa366 5767 PR debug/48401
e8c6bb74
JJ
5768 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5769 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5770
2c081caf
NF
57712011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5772
5773 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5774 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5775
53802f27
AS
57762011-04-03 Anatoly Sokolov <aesok@post.ru>
5777
5778 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5779 (ASM_OUTPUT_ALIGNED_BSS): Define.
5780
e89964e3
MM
57812011-04-03 Michael Matz <matz@suse.de>
5782
5783 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5784 and next_slot members.
5785 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5786 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5787 (lto_streamer_cache_append): Declare.
5788 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5789 unsigned index, remove offset parameter, ensure that we append
5790 or update existing entries.
5791 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5792 parameter, update next_slot for append.
5793 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5794 parameter.
5795 (lto_streamer_cache_insert_at): Likewise.
5796 (lto_streamer_cache_append): New function.
5797 (lto_streamer_cache_lookup): Use unsigned index.
5798 (lto_streamer_cache_get): Likewise.
5799 (lto_record_common_node): Don't test tree_node_can_be_shared.
5800 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5801 (lto_streamer_cache_delete): Don't free offsets member.
5802 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5803 (lto_output_string_with_length): Use lto_output_data_stream.
5804 (lto_output_tree_header): Remove ix parameter, don't write it.
5805 (lto_output_builtin_tree): Likewise.
5806 (lto_write_tree): Adjust callers to above, don't track and write
5807 offset, write unsigned index.
5808 (output_unreferenced_globals): Don't emit all global vars.
5809 (write_global_references): Use unsigned indices.
5810 (lto_output_decl_state_refs): Likewise.
5811 (write_symbol): Likewise.
5812 * lto-streamer-in.c (lto_input_chain): Move earlier.
5813 (input_function): Use unsigned index.
5814 (input_alias_pairs): Don't read and then ignore all global vars.
5815 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5816 don't pass it back, use lto_streamer_cache_append.
5817 (lto_register_var_decl_in_symtab): Use unsigned index.
5818 (lto_register_function_decl_in_symtab): Likewise.
5819 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5820 index.
5821 (lto_get_builtin_tree): Don't read index, use
5822 lto_streamer_cache_append.
5823 (lto_read_tree): Adjust call to lto_materialize_tree.
5824
5825 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5826 don't use function calls in arguments to MIN.
5827
5828 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5829 twice.
5830
5831 * gimple.c (gimple_type_leader_entry): Mark deletable.
5832
b9a5b5b2
AM
58332011-04-03 Alan Modra <amodra@gmail.com>
5834
5835 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5836
ac6a641b
MM
58372011-04-03 Michael Matz <matz@suse.de>
5838
5839 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5840 an integer.
5841 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5842
0038d4e0
MM
58432011-04-03 Michael Matz <matz@suse.de>
5844
e9c18386 5845 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
5846 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5847 without function context.
5848 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5849 current_function_decl and cfun.
5850
91f2fae8
MM
58512011-04-03 Michael Matz <matz@suse.de>
5852
5853 * tree.c (decl_init_priority_insert): Don't create entry for
5854 default priority.
5855 (decl_fini_priority_insert): Ditto.
5856 (fields_compatible_p, find_compatible_field): Remove.
5857 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5858 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5859
da29e070
EB
58602011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5861
5862 * combine.c (try_combine): Remove useless local variable.
5863
4979c28b 58642011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 5865 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
5866
5867 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5868 non-variable offsets and compare the remaining bases of the two
5869 accesses instead of looking for exact same data-ref.
5870
b4ddcaee
KT
58712011-04-02 Kai Tietz <ktietz@redhat.com>
5872
f90298e1
KT
5873 PR target/48416
5874 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5875
b4ddcaee
KT
5876 * i386.c (ix86_is_msabi_thiscall): New helper function.
5877 (ix86_is_type_thiscall): New helper function.
5878 (ix86_comp_type_attributes): Handle thiscall for method-functions
5879 special.
5880 (init_cumulative_args): Likewise.
5881 (find_drap_reg): Likewise.
5882 (ix86_static_chain): Likewise.
5883 (x86_this_parameter): Likewise.
5884 (x86_output_mi_thunk): Likewise.
5885
2a9d769a 58862011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
5887 Nicolas Setton <setton@adacore.com>
5888 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
5889
5890 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5891 (add_gnat_descriptive_type_attribute): New function.
5892 (gen_array_type_die): Call it.
5893 (gen_enumeration_type_die): Likewise.
5894 (gen_struct_or_union_type_die): Likewise.
5895 (modified_type_die): Likewise.
5896 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5897 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5898 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5899
15a03a11
JJ
59002011-04-01 Jakub Jelinek <jakub@redhat.com>
5901
5902 PR bootstrap/48148
5903 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5904 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5905
5906 Revert:
5907 2011-03-17 Richard Guenther <rguenther@suse.de>
5908
5909 PR bootstrap/48148
5910 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5911 origin for decls in other ltrans units.
5912 (input_varpool_node): Likewise.
5913
19228b93
JJ
59142011-04-01 Jakub Jelinek <jakub@redhat.com>
5915
5916 PR middle-end/48335
5917 * expr.c (expand_assignment): Handle all possibilities
5918 if TO_RTX is CONCAT.
e9c18386 5919 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
5920 (store_split_bit_field): If SUBREG_REG (op0) or
5921 op0 itself has smaller mode than word, return it
5922 for offset 0 and const0_rtx for out-of-bounds stores.
5923 If word is const0_rtx, skip it.
5924
88cb339e
N
59252011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5926
5927 * config/h8300/h8300.c (print_operand_address): Rename to...
5928 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5929 Call h8300_print_operand and h8300_print_operand_address instead of
5930 print_operand and print_operand_address. Declare.
5931 (print_operand): Renake to...
5932 (h8300_print_operand): ...this. Make static. Adjust comments.
5933 Call h8300_print_operand instead of print_operand. Declare.
5934 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5935 (h8300_register_move_cost): Likewise.
5936 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5937 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5938 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5939 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5940 * config/h8300/h8300-protos.h (print_operand): Delete.
5941 (print_operand_address): Delete.
5942
756d6ee9
RH
59432011-04-01 Richard Henderson <rth@redhat.com>
5944
5945 PR 48400
5946 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5947 in strict mode before dwarf4. Re-order tests to early out
5948 before switching sections.
5949
ceaaaeab
NF
59502011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5951
5952 * config/h8300/constraints.md: New file.
5953 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5954 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5955 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5956 * config/h8300/predicates.md (bit_operand): Likewise.
5957 (incdec_operand): Use satisfies_constraint_M and
5958 satisfies_constraint_O. Don't use C code block.
5959 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5960 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5961 (compute_mov_length): Use satisfies_constraint_G.
5962 (fix_bit_operand): Use satisfies_constraint_U.
5963 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5964 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5965 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5966 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5967 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5968 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5969 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5970 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5971 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5972 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5973 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5974 (EXTRA_MEMORY_CONSTRAINT): Delete.
5975
08ae38e0
AP
59762011-04-01 Andrew Pinski <pinskia@gmail.com>
5977 Michael Meissner <meissner@linux.vnet.ibm.com>
5978
5979 PR target/48262
5980 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5981 operands, as per the specifications.
5982
5983 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5984 (vec_extract_evenv4sf): Ditto.
5985 (vec_extract_evenv8hi): Ditto.
5986 (vec_extract_evenv16qi): Ditto.
5987 (vec_extract_oddv4si): Ditto.
5988
bdb0b0f6
MW
59892011-03-31 Mark Wielaard <mjw@redhat.com>
5990
5991 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5992 high_pc attribute if the CU has no associated code. Only output
5993 DW_AT_entry_pc for CU if not generating strict dwarf and
5994 dwarf_version < 4.
5995
722279e4
BS
59962011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5997
5998 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5999 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6000 out of ...
6001 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6002 * final.c (final_start_function): Call the new function rather
6003 than using a NULL argument for dwarf2out_frame_debug.
6004
c5dd277d
BS
6005 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6006 that contains the prologue.
6007
ec4efea9
BS
6008 * haifa-sched.c (queue_insn): New arg REASON. All callers
6009 changed. Print it in debugging output.
6010
2a6a0d80
BS
6011 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6012
86014d07
BS
6013 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6014 Split most of the code into...
6015 (begin_move_insn): ... here. New function.
6016 (ebb_sched_info): Add a pointer to it.
6017 * haifa-sched.c (scheduled_insns): New static variable.
6018 (sched_extend_ready_list): Allocate it.
6019 (schedule_block): Use it to record the order of scheduled insns.
6020 Perform RTL changes to move insns only after all scheduling
6021 decisions have been made.
6022 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6023 begin_move_insn field.
6024 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6025 * sched-int.h (struct haifa_sched_info): Remove second argument
6026 from begin_schedule_ready hook. Add new member begin_move_insn.
6027 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6028 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6029
9d701248
BS
6030 * haifa-sched.c (prune_ready_list): New function, broken out of
6031 schedule_block.
6032 (schedule_block): Use it.
6033
1ca1dad5
UW
60342011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6035
6036 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6037
49568e45
KT
60382011-04-01 Kai Tietz <ktietz@redhat.com>
6039
6040 * config.gcc (*-*-mingw*): Allow as option the
6041 posix threading model.
07c0852e 6042 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
6043 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6044 definition.
6045 (CPP_SPEC): Add pthread/no-pthread handling.
6046 (LIB_SPEC): Likewise.
6047 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6048 (LIB_SPEC): Likewise.
6049 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6050 flag to pass -pthread option for shared libgcc build.
6051 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6052 for shared libgcc build.
6053 * config/i386/t-mingw-pthread: New file.
6054 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6055 New define to enable use of library pthread by default.
6056 * config/i386/mingw.opt (pthread): New driver option.
6057 (no-pthread): New driver option.
e9c18386 6058 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
6059 * config/i386/mingw-w64.opt: Likewise.
6060
636b4106
GF
60612011-04-01 Gary Funck <gary@intrepid.com>
6062
6063 * c-decl.c (grokdeclarator): Fix formatting.
6064
f04713ee
RS
60652011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6066
6067 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6068 instead of n_operands.
6069 (set_storage_via_setmem): Likewise.
6070 * optabs.c (maybe_gen_insn): Likewise.
6071 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6072 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6073 (mips_expand_builtin_direct): Likewise.
6074 * config/spu/spu.c (expand_builtin_args): Likewise.
6075
b29387ee
RS
60762011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6077
6078 * recog.h (insn_data_d): Add n_generator_args.
6079 * genoutput.c (data): Likewise.
6080 (output_insn_data): Print it.
6081 (max_opno, num_dups): Delete.
6082 (scan_operands): Just fill in "d->operand[...]".
6083 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
6084
e792559a
RS
60852011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6086
6087 * gensupport.h (pattern_stats): New structure.
6088 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
6089 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
6090 (max_operand_1, max_operand_vec): Delete.
6091 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
6092
e8110d6f
NF
60932011-03-31 Nathan Froyd <froydnj@codesourcery.com>
6094
6095 * emit-rtl.c (emit_pattern_after_setloc): New function.
6096 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
6097 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
6098 (emit_pattern_after): New function.
6099 (emit_insn_after, emit_jump_insn_after): Call it.
6100 (emit_call_insn_after, emit_debug_insn_after): Likewise.
6101 (emit_pattern_before_setloc): New function.
6102 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
6103 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
6104 Likewise.
6105 (emit_pattern_before): New function.
6106 (emit_insn_before, emit_jump_insn_before): Call it.
6107 (emit_call_insn_before, emit_debug_insn_before): Likewise.
6108
576f85f1
RH
61092011-03-31 Richard Henderson <rth@redhat.com>
6110
6111 * dwarf2out.c (dw_separate_line_info_ref): Remove.
6112 (dw_separate_line_info_entry): Remove.
6113 (enum dw_line_info_opcode): New.
6114 (dw_line_info_entry): Use it.
6115 (dw_line_info_table, dw_line_info_table_p): New.
6116 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
6117 (line_info_table, line_info_label_num): Remove.
6118 (line_info_table_in_use): Remove.
6119 (separate_line_info_table): Remove.
6120 (separate_line_info_table_allocated): Remove.
6121 (separate_line_info_table_in_use): Remove.
6122 (LINE_INFO_TABLE_INCREMENT): Remove.
6123 (line_info_label_num): New.
6124 (cur_line_info_table): New.
6125 (text_section_line_info, cold_text_section_line_info): New.
6126 (separate_line_info): New.
6127 (SEPARATE_LINE_CODE_LABEL): Remove.
6128 (print_dwarf_line_table): Remove.
6129 (debug_dwarf): Don't dump it.
6130 (output_one_line_info_table): New.
6131 (output_line_info): Use it.
6132 (new_line_info_table): New.
6133 (set_cur_line_info_table): New.
6134 (dwarf2out_switch_text_section): Use it.
6135 (dwarf2out_begin_function): Likewise.
6136 (push_dw_line_info_entry): New.
6137 (dwarf2out_source_line): Rewrite for new line info tables.
6138 (dwarf2out_init): Remove dead initailizations.
6139
300d83d9
JM
61402011-03-31 Joseph Myers <joseph@codesourcery.com>
6141
6142 * opts.h (cl_option): Add comments to fields. Add bit-fields for
6143 various flags.
6144 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
6145 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
6146 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
6147 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
6148 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
6149 * opt-functions.awk (flag_init, switch_bit_fields): New.
6150 (switch_flags): Don't handle flags moved to bit-fields. Don't
6151 generate CL_MISSING_OK or CL_SAVE.
6152 * optc-gen.awk: Update to generate bit-field output as well as
6153 flags field.
6154 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
6155 bit-field instead of CL_REJECT_DRIVER flag.
6156 * opts-common.c (generate_canonical_option,
6157 decode_cmdline_option): Use bit-fields instead of CL_* flags.
6158 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
6159 instead of CL_REJECT_NEGATIVE flag.
6160 * toplev.c (print_switch_values): Use cl_report bit-field instead
6161 of CL_REPORT flag.
6162
d4d73ce2
EB
61632011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6164
6165 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
6166 a zero minimum index only if it is redundant.
6167
b8faca75
VM
61682011-03-31 Vladimir Makarov <vmakarov@redhat.com>
6169
6170 PR rtl-optimization/48381
6171 * ira-color.c (assign_hard_reg): Use hard reg set intersection
6172 instead of ira_class_hard_reg_index for calculating conflicting
6173 hard registers.
6174
7d11cebe
SB
61752011-03-31 Steven Bosscher <steven@gcc.gnu.org>
6176
6177 * cprop.c: Clean up hash table building.
6178 (reg_avail_info): Remove.
6179 (oprs_available_p): Remove.
6180 (record_last_reg_set_info): Remove.
6181 (record_last_set_info): Remove.
6182 (reg_available_p): New function.
6183 (gcse_constant_p): Do not treat unfolded conditions as constants.
6184 (make_set_regs_unavailable): New function.
6185 (hash_scan_set): Simplify with new reg_available_p.
6186 (compute_hash_table_work): Traverse insns stream only once.
6187 Do not compute reg_avail_info. Traverse insns in reverse order.
6188 Record implicit sets after recording explicit sets from the block.
6189
98faf84f
MM
61902011-03-31 Michael Matz <matz@suse.de>
6191
e9c18386 6192 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 6193
f52d97da
AS
61942011-03-31 Anatoly Sokolov <aesok@post.ru>
6195
6196 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
6197 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
6198 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6199 (h8300_mode_dependent_address_p): New function.
6200 (h8300_get_index): Make static.
6201
e16b6fd0
JL
62022011-03-31 Jeff Law <law@redhat.com>
6203
10c51983
JL
6204 * reload1.c (elimination_effects): Fix typo in recent change.
6205
e9c18386 6206 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
6207 typo potentially leading to null pointer dereference.
6208
6209 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6210 (setup_save_areas): Corresponding changes to avoid useless
6211 assignments.
6212
6213 * jump.c (reversed_comparison_code_parts): Avoid successive return
6214 statements when REVERSE_CONDITION is defined.
6215
6216 * expr.c (expand_assignment): Avoid useless assignments.
6217 (expand_expr_real_1): Likewise.
6218 (expand_expr_real_2): Avoid useless statements.
6219
6220 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6221
6222 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6223
6224 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6225 statements.
6226
6227 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6228
eb1eb914
JM
62292011-03-31 Joseph Myers <joseph@codesourcery.com>
6230
6231 PR target/47109
6232 * doc/tm.texi.in (TARGET_VERSION): Remove.
6233 * doc/tm.texi: Regenerate.
6234 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6235 * collect2.c (main): Don't use TARGET_VERSION.
6236 * mips-tdump.c (main): Don't use TARGET_VERSION.
6237 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 6238 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
6239 * config/rs6000/vxworksae.h: Remove.
6240 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6241 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6242 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6243 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6244 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6245 * config/arm/arm.h (TARGET_VERSION): Remove.
6246 * config/arm/coff.h (TARGET_VERSION): Remove.
6247 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6248 * config/arm/elf.h (TARGET_VERSION): Remove.
6249 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6250 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6251 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6252 * config/arm/pe.h (TARGET_VERSION): Remove.
6253 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6254 * config/arm/semi.h (TARGET_VERSION): Remove.
6255 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6256 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6257 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6258 * config/avr/avr.h (TARGET_VERSION): Remove.
6259 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6260 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6261 * config/frv/frv.h (TARGET_VERSION): Remove.
6262 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6263 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6264 * config/i386/darwin.h (TARGET_VERSION): Remove.
6265 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6266 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6267 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6268 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6269 * config/i386/gnu.h (TARGET_VERSION): Remove.
6270 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6271 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6272 * config/i386/linux.h (TARGET_VERSION): Remove.
6273 * config/i386/linux64.h (TARGET_VERSION): Remove.
6274 * config/i386/lynx.h (TARGET_VERSION): Remove.
6275 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6276 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6277 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6278 * config/i386/netware.h (TARGET_VERSION): Remove.
6279 * config/i386/nto.h (TARGET_VERSION): Remove.
6280 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6281 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6282 * config/ia64/elf.h (TARGET_VERSION): Remove.
6283 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6284 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6285 * config/ia64/linux.h (TARGET_VERSION): Remove.
6286 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6287 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6288 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6289 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6290 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6291 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6292 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6293 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6294 * config/m68k/linux.h (TARGET_VERSION): Remove.
6295 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6296 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6297 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6298 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6299 * config/mep/mep.h (TARGET_VERSION): Remove.
6300 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6301 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6302 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6303 * config/mips/linux.h (TARGET_VERSION): Remove.
6304 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6305 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6306 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6307 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6308 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6309 * config/pa/pa.h (TARGET_VERSION): Remove.
6310 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6311 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6312 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6313 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6314 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6315 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6316 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6317 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6318 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6319 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6320 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6321 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6322 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6323 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6324 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6325 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6326 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6327 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6328 * config/s390/linux.h (TARGET_VERSION): Remove.
6329 * config/s390/s390.h (TARGET_VERSION): Remove.
6330 * config/s390/tpf.h (TARGET_VERSION): Remove.
6331 * config/score/score.h (TARGET_VERSION): Remove.
6332 * config/sh/linux.h (TARGET_VERSION): Remove.
6333 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6334 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6335 * config/sh/sh.h (TARGET_VERSION): Remove.
6336 * config/sh/sh64.h (TARGET_VERSION): Remove.
6337 * config/sh/superh.h (TARGET_VERSION): Remove.
6338 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6339 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6340 * config/sparc/linux.h (TARGET_VERSION): Remove.
6341 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6342 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6343 TARGET_NAME32, TARGET_NAME): Remove.
6344 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6345 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6346 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6347 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6348 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6349 * config/spu/spu.h (TARGET_VERSION): Remove.
6350 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6351 * config/v850/v850.h (TARGET_VERSION): Remove.
6352 * config/vax/linux.h (TARGET_VERSION): Remove.
6353 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6354 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6355 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6356
ace31bca
EB
63572011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6358
6359 PR target/48142
6360 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6361 frame-related from frame-unrelated adjustments to the stack pointer.
6362
76f9db36
JJ
63632011-03-31 Jakub Jelinek <jakub@redhat.com>
6364
6365 * common.opt (fdebug-types-section): Move earlier.
6366 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6367
b7826465
AT
63682011-03-31 Andreas Tobler <andreast@fgznet.ch>
6369
6370 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6371 var.
6372
1290e54c
NF
63732011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6374
6375 * tree.h (CASE_CHAIN): Define.
6376 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6377 (gimple_redirect_edge_and_branch): Likewise.
6378
bddc98e1
VM
63792011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6380
6381 PR middle-end/48367
6382 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6383 calculation.
6384
c865e437
JL
63852011-03-30 Jeff Law <law@redhat.com>
6386
b3750213 6387 * PR bootstrap/48371
c865e437
JL
6388 * reload1.c (reload): Fix botch in last change.
6389
6390 * reload.h (struct reload): Fix typo introduced in last change.
6391
2cdf9574
JM
63922011-03-30 Joseph Myers <joseph@codesourcery.com>
6393
6394 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6395 Undocumented. Remove help text.
6396 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6397 -mhard-float.
6398
666a21a2
JM
63992011-03-30 Joseph Myers <joseph@codesourcery.com>
6400
6401 * doc/options.texi (NegativeAlias): Document.
6402 (Alias): Mention NegativeAlias.
6403 * opt-functions.awk: Handle NegativeAlias.
e9c18386 6404 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
6405 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6406 * opts.h (CL_NEGATIVE_ALIAS): Define.
6407 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6408 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6409 OPT_mspe_.
6410 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6411 Alias entries.
6412 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6413 mno-spe and mno-isel instead of mspe=no and -misel=no.
6414
0fa4e351
MW
64152011-03-29 Mark Wielaard <mjw@redhat.com>
6416
6417 * common.opt (fdebug-types-section): New flag.
6418 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6419 * dwarf2out.c (use_debug_types): New define.
6420 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6421 (print_die): Guard output of type unit signatures using
6422 use_debug_types.
6423 (build_abbrev_table): Replace assert of dwarf_version >= 4
6424 with assert on use_debug_types.
6425 (size_of_die): Likewise.
6426 (unmark_dies): Likewise.
6427 (value_format): Decide AT_ref_external form on use_debug_types.
6428 (output_die): Replace dwarf_version version check guard with
6429 use_debug_types where appropriate.
6430 (modified_type_die): Likewise.
6431 (gen_reference_type_die): Likewise.
6432 (dwarf2out_start_source_file): Likewise.
6433 (dwarf2out_end_source_file): Likewise.
6434 (prune_unused_types_walk_attribs): Likewise.
6435 (dwarf2out_finish): Likewise.
6436
4648deb4
VM
64372011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6438
6439 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6440
4f431835
RS
64412011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6442
6443 PR rtl-optimization/48332
6444 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6445 mode of input operand N and modeN to its actual mode.
6446
f2034d06
JL
64472011-03-30 Jeff Law <law@redhat.com>
6448
6449 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6450 define accessor macro.
6451 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6452 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6453 (reg_equiv_init): Likewise.
6454 (reg_equivs_size): New variable.
6455 (reg_equiv_init_size): Remove.
6456 (allocate_initial_values): Move prototype to here from....
6457 * integrate.h (allocate_initial_values): Remove prototype.
6458 * integrate.c: Include reload.h.
6459 (allocate_initial_values): Corresponding changes.
6460 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6461 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6462 (update_equiv_regs): Corresponding changes.
6463 (ira): Corresponding changes.
6464 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6465 (push_secondary_reload): Corresponding changes.
6466 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6467 (make_memloc, find_reloads_address): Corresponding changes.
6468 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6469 (find_reloads_address_1): Corresponding changes.
6470 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6471 (refers_to_regno_for_reload_p): Corresponding changes.
6472 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6473 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6474 * reload1.c: Include ggc.h.
6475 (grow_reg_equivs): New function.
6476 (replace_pseudos_in, reload): Corresponding changes.
6477 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6478 (eliminate_regs_1, elimination_effects): Corresponding changes.
6479 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6480 (delete_output_reload): Likewise.
6481 * caller-save.c (mark_referenced_regs): Corresponding changes.
6482 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6483 * frv/predicates.md (frv_load_operand): Corresponding changes.
6484 * microblaze/microblaze.c (double_memory_operand): Corresponding
6485 changes.
6486 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6487 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 6488 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
6489 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6490 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6491 changes.
6492 * pa/pa.c (emit_move_sequence): Corresponding changes.
6493 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6494
159b81b0
RS
64952011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6496
6497 PR target/47551
6498 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6499 structure modes. Don't check neon_vector_mem_operand for
6500 vector or structure modes.
6501
a6217191
RS
65022011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6503 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6504
6505 PR target/43590
6506 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6507 operand 1 and reshuffle the operands to match.
6508 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6509
bd837408
CS
65102011-03-30 Christian Schüler <cschueler@gmx.de>
6511
6955d771 6512 PR driver/48208
bd837408 6513 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 6514
6955d771 6515 PR driver/48260
bd837408
CS
6516 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6517 handler function.
6518 * config/darwin.opt: Added '-arch' option.
6519
e9c0470a
NC
65202011-03-30 Nick Clifton <nickc@redhat.com>
6521
6522 * config/rx/rx.md: Add peepholes and patterns to combine
6523 extending loads and simple arithmetic instructions.
6524 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
6525 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6526 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 6527 modes to use pre-decrement and post-increment addressing.
e9c18386 6528 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 6529 addresses.
e9c18386
UB
6530 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6531 (rx_memory_move_cost): Adjust cost of stores.
6532 (rx_adjust_insn_length): New function.
e9c0470a 6533
8a87e7ab
JJ
65342011-03-30 Jakub Jelinek <jakub@redhat.com>
6535
6536 PR c/48305
6537 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6538 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6539 matching arg00/arg01 types.
6540
12486e03
EB
65412011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6542
6543 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6544 last_location to UNKNOWN_LOCATION.
6545
0b99eef6
L
65462011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6547
6548 PR target/48349
6549 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6550 FLOAT_SSE_REGS.
6551
023592aa
JM
65522011-03-30 Joseph Myers <joseph@codesourcery.com>
6553 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6554
6555 PR bootstrap/48337
6556 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6557 Init(PROCESSOR_V7).
6558 (sparc_cpu): Likewise.
6559 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6560 PROCESSOR_V7.
6561
ad3b266b
VM
65622011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6563
6564 PR target/48336
6565 PR middle-end/48342
6566 PR rtl-optimization/48345
6567 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6568 hard regs for given mode from profitable regs when doing secondary
6569 allocation.
6570
633c9126
JL
65712011-03-29 Jeff Law <law@redhat.com>
6572
6573 PR bootstrap/48327
6574 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6575 do_not_duplicate field.
6576 (lookup_redirection_data): Corresponding changes.
6577 (create_duplicates): Always create a template block.
6578 (redirect_edges): Remove code which reused the original block
6579 when it was going to become unreachable code.
6580 (thread_block): Don't set do_not_duplicate field.
6581
eb50f63a
JM
65822011-03-29 Joseph Myers <joseph@codesourcery.com>
6583
6584 * lto-opts.c (register_user_option_p, lto_register_user_option):
6585 Make type argument unsigned.
6586 * lto-streamer.h (lto_register_user_option): Make type argument
6587 unsigned.
6588 * opth-gen.awk: Make CL_* macros unsigned.
6589 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6590 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6591 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6592 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6593 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6594 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6595 (find_opt): Make lang_mask argument unsigned.
6596
76763a6d
VM
65972011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6598
6599 PR rtl-optimization/48331
6600 PR rtl-optimization/48334
6601 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6602 for any used algorithm.
6603
5c82436e
VM
66042011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6605
6606 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6607 to parent_max.
6608
7a81008b
UB
66092011-03-29 Uros Bizjak <ubizjak@gmail.com>
6610
6611 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6612 (alpha_option_override): Don't set alpha_sr_alias_set.
6613 (emit_frame_store_1): Use gen_frame_mem rather than calling
6614 set_mem_alias_set.
6615 (alpha_expand_epilogue): Ditto.
6616
86c8d1f6
IR
66172011-03-29 Ira Rosen <ira.rosen@linaro.org>
6618
6619 PR tree-optimization/48290
6620 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6621 vectorization, check that relevant phis in the basic block after
6622 the inner loop are really inner loop's exit phis.
6623
0d12220f
RS
66242011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6625
e8cf17e7 6626 PR debug/48190
0d12220f
RS
6627 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6628 (cached_dw_loc_list_def): New structure.
6629 (cached_dw_loc_list): New typedef.
6630 (cached_dw_loc_list_table): New variable.
6631 (cached_dw_loc_list_table_hash): New function.
6632 (cached_dw_loc_list_table_eq): Likewise.
6633 (add_location_or_const_value_attribute): Take a bool cache_p.
6634 Cache the list when the parameter is true.
6635 (gen_formal_parameter_die): Update caller.
6636 (gen_variable_die): Likewise.
6637 (dwarf2out_finish): Likewise.
6638 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6639 while generating debug info for the decl.
6640 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6641 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6642 (resolve_addr): Cache the result of resolving a chain of
6643 location lists.
6644
1756cb66
VM
66452011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6646
6647 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6648 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 6649
1756cb66
VM
6650 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6651 after regstat_init_n_sets_and_refs.
6652
6653 * ira.c: Add more comments at the top.
6654 (setup_stack_reg_pressure_class, setup_pressure_classes):
6655 Add comments how we compute the register pressure classes.
6656 (setup_allocno_and_important_classes): Add more comments.
6657 (setup_class_translate_array, reorder_important_classes)
6658 (setup_reg_class_relations): Add comments.
6659
6660 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6661 start of the file.
6662
6663 * ira-color.c: Add 2011 to the Copyright line.
6664 (assign_hard_reg): Add more comments.
6665 (improve_allocation): Ditto.
6666
6667 * ira-costs.c: Add 2011 to the Copyright line.
6668 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6669 comments.
6670 (setup_regno_cost_classes_by_mode): Ditto.
6671
6672 Initial patches from ira-improv branch:
6673
6674 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6675
f60c2554 6676 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
6677 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6678 (ira_create_allocno): Remove initialization of
6679 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6680 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6681 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6682 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6683 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6684 Initialize ALLOCNO_ADD_DATA.
6685 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6686 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6687 ALLOCNO_REG.
6688 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6689 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6690
6691 * ira.c (ira_reallocate): Remove.
6692 (setup_pressure_classes): Call
6693 ira_init_register_move_cost_if_necessary. Use
6694 ira_register_move_cost instead of ira_get_register_move_cost.
6695 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6696 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6697
6698 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6699 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6700 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6701 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6702 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6703 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6704 Fix formatting.
7a81008b 6705 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
6706 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6707 (struct allocno_color_data): New.
6708 (allocno_color_data_t): New typedef.
6709 (allocno_color_data): New definition.
6710 (ALLOCNO_COLOR_DATA): New macro.
6711 (struct object_color_data): New.
6712 (object_color_data_t): New typedef.
6713 (object_color_data): New definition.
6714 (OBJECT_COLOR_DATA): New macro.
6715 (update_copy_costs, calculate_allocno_spill_cost): Call
6716 ira_init_register_move_cost_if_necessary. Use
6717 ira_register_move_cost instead of ira_get_register_move_cost.
6718 (move_spill_restore, update_curr_costs): Ditto.
6719 (allocno_spill_priority): Make it inline.
7a81008b 6720 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
6721 (struct coalesce_data, coalesce_data_t): New.
6722 (allocno_coalesce_data): New definition.
6723 (ALLOCNO_COALESCE_DATA): New macro.
6724 (merge_allocnos, coalesced_allocno_conflict_p): Use
6725 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6726 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6727 (coalesce_allocnos): Ditto.
6728 (setup_coalesced_allocno_costs_and_nums): Ditto.
6729 (collect_spilled_coalesced_allocnos): Ditto.
6730 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6731 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6732 (coalesce_spill_slots): Ditto.
6733 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6734 free allocno_coalesce_data.
6735
6736 * ira-conflicts.c: Fix formatting.
6737 (process_regs_for_copy): Call
6738 ira_init_register_move_cost_if_necessary. Use
6739 ira_register_move_cost instead of ira_get_register_move_cost.
6740 (build_object_conflicts): Optimize.
6741
6742 * ira-costs.c (record_reg_classes): Optimize. Call
6743 ira_init_register_move_cost_if_necessary. Use
6744 ira_register_move_cost, ira_may_move_in_cost, and
6745 ira_may_move_out_cost instead of ira_get_register_move_cost and
6746 ira_get_may_move_cost.
6747 (record_address_regs): Ditto.
6748 (scan_one_insn): Optimize.
6749 (find_costs_and_classes): Optimize.
6750 (process_bb_node_for_hard_reg_moves): Call
6751 ira_init_register_move_cost_if_necessary. Use
6752 ira_register_move_cost instead of ira_get_register_move_cost.
6753
6754 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6755 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6756 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6757 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6758 definitions.
6759 (ira_initiate_emit_data, ira_finish_emit_data)
6760 (create_new_allocno): New functions.
7a81008b 6761 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
6762 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6763 Use ira_register_move_cost instead of ira_get_register_move_cost.
6764
6765 * ira-int.h: Fix some comments.
7a81008b
UB
6766 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6767 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
6768 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6769 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6770 add_data.
6771 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6772 bitfield after mode. Make hard_regno a short int. Make
6773 hard_regno short. Remove first_coalesced_allocno and
6774 next_coalesced_allocno. Move mem_optimized_dest_p,
6775 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6776 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6777 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6778 temp, colorable_p. Add new member add_data.
6779 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6780 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6781 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6782 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6783 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6784 (ALLOCNO_ADD_DATA): New macro.
6785 (ira_emit_data_t): New typedef.
6786 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6787 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6788 from struct ira_allocno.
6789 (ALLOCNO_EMIT_DATA): New macro.
6790 (ira_allocno_emit_data, allocno_emit_reg): New.
6791 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 6792 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
6793 (OBJECT_ADD_DATA): New macro.
6794 (ira_reallocate): Remove.
6795 (ira_initiate_emit_data, ira_finish_emit_data): New.
6796 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6797 (ira_init_register_move_cost_if_necessary): New.
6798 (ira_object_conflict_iter_next): Merge into
6799 ira_object_conflict_iter_cond.
7a81008b 6800 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 6801
f60c2554 6802 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
6803 ira_init_register_move_cost_if_necessary. Use
6804 ira_register_move_cost instead of ira_get_register_move_cost.
6805
6806 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6807
6808 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6809
6810 * ira-costs.c: Fix formatting.
6811 (cost_classes, cost_classes_num): Remove.
6812 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6813 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6814 (cost_classes_del, cost_classes_htab): New.
6815 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6816 (initiate_regno_cost_classes, setup_cost_classes): New.
6817 (setup_regno_cost_classes_by_aclass): New.
7a81008b 6818 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
6819 (record_reg_classes): Use regno_cost_classes instead of
6820 cost_classes. Move checking opposite operand up.
6821 (record_address_regs): Use regno_cost_classes
6822 instead of cost_classes.
6823 (scan_one_insn): Ditto. Use always general register.
6824 (print_allocno_costs): Use regno_cost_classes instead of
6825 cost_classes.
6826 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6827 (find_costs_and_classes): Set up cost classes for each registers.
6828 Use also their mode for this. Use regno_cost_classes instead of
6829 cost_classes.
6830 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6831 cost_classes.
6832 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6833 (ira_costs, ira_set_pseudo_classes): Call
6834 initiate_regno_cost_classes and finish_regno_cost_classes.
6835
6836 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6837
6838 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6839
6840 * target.def (ira_cover_classes): Remove.
6841
7a81008b 6842 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
6843
6844 * doc/tm.texi.in: Ditto.
6845
6846 * ira-conflicts.c: Remove mentioning cover classes from the file.
6847 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 6848 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
6849
6850 * targhooks.c (default_ira_cover_classes): Remove.
6851
6852 * targhooks.h (default_ira_cover_classes): Ditto.
6853
6854 * haifa-sched.c: Remove mentioning cover classes from the file.
6855 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6856 ira_pressure_classes and ira_pressure_classes_num instead of
6857 ira_reg_class_cover_size and ira_reg_class_cover. Use
6858 sched_regno_pressure_class instead of sched_regno_cover_class.
6859 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6860 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6861
6862 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6863 classes from the file.
6864 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6865 (struct object_hard_regs, struct object_hard_regs_node): New.
6866 (struct ira_object): New members profitable_hard_regs,
6867 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6868 (struct ira_allocno): Rename cover_class to aclass. Rename
6869 cover_class_cost and updated_cover_class_cost to class_cost and
6870 updated_class_cost. Remove splay_removed_p and
6871 left_conflict_size. Add new members colorable_p.
6872 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6873 (ALLOCNO_COLORABLE_P): New macro.
6874 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6875 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6876 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6877 (OBJECT_...): Rename parameter C to O.
6878 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6879 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6880 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6881 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6882 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6883 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6884 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6885 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6886 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6887 x_ira_reg_class_subunion.
6888 (ira_max_memory_move_cost, ira_max_register_move_cost)
6889 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6890 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6891 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 6892 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
6893 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6894 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6895 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6896 (ira_tune_allocno_costs_and_cover_classes): Rename to
6897 ira_tune_allocno_costs.
6898 (ira_debug_hard_regs_forest): New.
6899 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6900 (ira_object_conflict_iter_next): Fix comments.
7a81008b 6901 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
6902 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6903 cover_class to aclass.
6904 (ira_allocate_and_accumulate_costs): Ditto.
6905 (ira_allocate_and_set_or_copy_costs): Ditto.
6906
6907 * opts.c (decode_options): Remove ira_cover_class check.
6908
6909 * ira-color.c: Remove mentioning cover classes from the file. Use
6910 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6911 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6912 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6913 (splay-tree.h): Remove include.
6914 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6915 before copy_freq_compare_func.
6916 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6917 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6918 New definitions.
6919 (hard_regs_roots, hard_regs_node_vec): Ditto.
6920 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6921 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6922 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6923 (create_new_object_hard_regs_node): Ditto.
6924 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 6925 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
6926 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6927 Ditto.
6928 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6929 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6930 (remove_unused_object_hard_regs_nodes): Ditto.
6931 (enumerate_object_hard_regs_nodes): Ditto.
6932 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6933 (object_hard_regs_subnode_t): Ditto.
6934 (struct object_hard_regs_subnode): Ditto.
6935 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6936 (setup_object_hard_regs_subnode_index): Ditto.
6937 (get_object_hard_regs_subnodes_num): Ditto.
6938 (form_object_hard_regs_nodes_forest): Ditto.
6939 (finish_object_hard_regs_nodes_tree): Ditto.
6940 (finish_object_hard_regs_nodes_forest): Ditto.
6941 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 6942 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
6943 (pseudos_have_intersected_live_ranges_p): Rename to
6944 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6945 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6946 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6947 (update_copy_costs): Remove assert. Skip cost update if the hard
6948 reg does not belong the class.
6949 (assign_hard_reg): Process only profitable hard regs.
6950 (uncolorable_allocnos_num): Make it scalar.
6951 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6952 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6953 and ira_reg_class_max_nregs.
6954 (bucket_allocno_compare_func): Check frequency first.
6955 (sort_bucket): Add compare function as a parameter.
6956 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6957 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6958 (push_allocno_to_stack): Rewrite for checking new allocno
6959 colorability.
7a81008b 6960 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
6961 (push_only_colorable): Pass new parameter to sort_bucket.
6962 (push_allocno_to_spill): Remove.
6963 (allocno_spill_priority_compare): Make it inline and rewrite.
6964 (splay_tree_allocate, splay_tree_free): Remove.
6965 (allocno_spill_sort_compare): New function.
6966 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6967 build and use splay tree. Choose first allocno in uncolorable
6968 allocno bucket to spill. Remove setting spill cost.
6969 (all_conflicting_hard_regs): Remove.
6970 (setup_allocno_available_regs_num): Check only profitable hard
6971 regs. Print info about hard regs nodes.
6972 (setup_allocno_left_conflicts_size): Remove.
6973 (put_allocno_into_bucket): Don't call
7a81008b 6974 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
6975 (improve_allocation): New.
6976 (color_allocnos): Call setup_profitable_hard_regs,
6977 form_object_hard_regs_nodes_forest, improve_allocation,
6978 finish_object_hard_regs_nodes_forest. Setup spill cost.
6979 (print_loop_title): Use pressure classes.
6980 (color_allocnso): Ditto.
6981 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6982 and allocnos_for_spilling.
6983 (ira_sort_regnos_for_alter_reg): Don't setup members
6984 {first,next}_coalesced_allocno.
6985 (color): Remove allocating and freeing removed_splay_allocno_vec.
6986 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6987 prohibited_class_mode_regs.
6988
6989 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6990 formatting.
6991 (update_allocno_pressure_excess_length): Use pressure classes.
6992 (inc_register_pressure, dec_register_pressure): Check for pressure
6993 class.
6994 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6995 pressure class. Use ira_reg_class_nregs instead of
6996 ira_reg_class_max_nregs.
6997 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6998 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6999 (single_reg_class): Use ira_reg_class_nregs instead of
7000 ira_reg_class_max_nregs.
7001 (process_bb_node_lives): Use pressure classes.
7002
7003 * ira-emit.c: Remove mentioning cover classes from the file. Use
7004 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7005 (change_loop): Use pressure classes.
7006 (modify_move_list): Call ira_set_allocno_class instead of
7007 ira_set_allocno_cover_class.
7008
7009 * ira-build.c: Remove mentioning cover classes from the file. Use
7010 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7011 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7012 ALLOCNO_UPDATED_CLASS_COST instead of
7013 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7014 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7015 (ira_create_allocno): Remove initialization of
7016 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7017 ALLOCNO_COLORABLE_P.
7018 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7019 Update conflict regs for the objects.
7020 (create_cap_allocno): Remove assert. Don't propagate
7021 ALLOCNO_AVAILABLE_REGS_NUM.
7022 (ira_free_allocno_costs): New function.
7023 (finish_allocno): Change a part of code into call of
7024 ira_free_allocno_costs.
7025 (low_pressure_loop_node_p): Use pressure classes.
7026 (object_range_compare_func): Don't compare classes.
7027 (setup_min_max_conflict_allocno_ids): Ditto.
7028
7029 * loop-invariant.c: Remove mentioning cover classes from the file.
7030 Use ira_pressure_classes and ira_pressure_classes_num instead of
7031 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
7032 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7033 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7034 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
7035 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7036 STACK_REG_COVER_CLASS.
7037 (get_regno_cover_class): Rename to get_regno_pressure_class.
7038 (move_loop_invariants): Initialize and finalize regstat.
7039
7040 * ira.c: Remove mentioning cover classes from the file. Add
7041 comments about coloring without cover classes. Use ALLOCNO_CLASS
7042 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7043 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7044 setup_class_subset_and_memory_move_costs.
7045 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7046 (setup_cover_and_important_classes): Rename to
7047 setup_allocno_and_important_classes.
7048 (setup_class_translate_array): New.
7049 (setup_class_translate): Call it for allocno and pressure classes.
7050 (cover_class_order): Rename to allocno_class_order.
7051 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7052 of ira_class_translate.
7053 (reorder_important_classes): Set up ira_important_class_nums.
7054 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7055 (print_class_cover): Rename to print_classes. Add parameter.
7056 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7057 Print pressure classes too.
7058 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7059 setup_reg_subclasses.
7a81008b 7060 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
7061 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7062 (setup_prohibited_class_mode_regs): Use
7a81008b 7063 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
7064 (clarify_prohibited_class_mode_regs): New function.
7065 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7066 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7067 (ira_init_once): Initialize them.
7068 (free_register_move_costs): Process them.
7069 (ira_init): Move calls of find_reg_classes and
7070 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7071 Call clarify_prohibited_class_mode_regs.
7072 (ira_no_alloc_reg): Remove.
7073 (too_high_register_pressure_p): Use pressure classes.
7074
7075 * sched-deps.c: Remove mentioning cover classes from the file.
7076 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7077 ira_pressure_classes and ira_pressure_classes_num instead of
7078 ira_reg_class_cover_size and ira_reg_class_cover.
7079 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7080 sched_regno_pressure_class instead of sched_regno_cover_class.
7081 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7082 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7083
7084 * ira.h: Add 2010 to Copyright.
7085 (ira_no_alloc_reg): Remove external.
7086 (struct target_ira): Rename x_ira_hard_regno_cover_class,
7087 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
7088 x_ira_class_translate to x_ira_hard_regno_allocno_class,
7089 x_ira_allocno_classes_num, x_ira_allocno_classes, and
7090 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
7091 x_ira_pressure_classes, x_ira_pressure_class_translate, and
7092 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
7093 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
7094 x_ira_no_alloc_regs.
7a81008b 7095 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
7096 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
7097 ira_allocno_classes_num and ira_allocno_classes.
7098 (ira_class_translate): Rename to ira_allocno_class_translate.
7099 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
7100 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
7101 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7102 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
7103 (ira_no_alloc_regs): New.
7104
7105 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
7106 classes from the file. Use ALLOCNO_CLASS instead of
7107 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
7108 ALLOCNO_COVER_CLASS_COST.
7109 (regno_cover_class): Rename to regno_aclass.
7110 (record_reg_classes): Use ira_reg_class_subunion instead of
7111 ira_reg_class_union.
7112 (record_address_regs): Check overflow.
7113 (scan_one_insn): Ditto.
7a81008b 7114 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
7115 (print_pseudo_costs): Use REG_N_REFS.
7116 (find_costs_and_classes): Use classes intersected with them on the
7117 1st pass. Check overflow. Use ira_reg_class_subunion instead of
7118 ira_reg_class_union. Use ira_allocno_class_translate and
7119 regno_aclass instead of ira_class_translate and regno_cover_class.
7120 Modify code for finding regno_aclass. Setup preferred classes for
7121 the next pass.
7122 (setup_allocno_cover_class_and_costs): Rename to
7123 setup_allocno_class_and_costs. Use regno_aclass instead of
7124 regno_cover_class. Use ira_set_allocno_class instead of
7125 ira_set_allocno_cover_class.
7126 (init_costs, finish_costs): Use regno_aclass instead of
7127 regno_cover_class.
7128 (ira_costs): Use setup_allocno_class_and_costs instead of
7129 setup_allocno_cover_class_and_costs.
7130 (ira_tune_allocno_costs_and_cover_classes): Rename to
7131 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
7132 by processing objects. Use ira_reg_class_max_nregs instead of
7133 ira_reg_class_nregs.
7134
7135 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
7136
7137 * sched-int.h: Remove mentioning cover classes from the file.
7138 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
7139
7140 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
7141 classes from the file.
7142 (struct reg_pref): Rename coverclass into allocnoclass.
7143 (reg_cover_class): Rename to reg_allocno_class.
7144
7a81008b 7145 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
7146
7147 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
7148
7149 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
7150
7151 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
7152
7153 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
7154
7155 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
7156
7157 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
7158
7159 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
7160
7161 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
7162
7163 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
7164
7165 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
7166 (i386_ira_cover_classes): Ditto.
7167
7168 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7169
7170 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
7171
7172 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
7173
7174 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
7175
7176 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
7177
7178 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
7179
7180 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
7181 (mips_ira_cover_classes): Ditto.
7182
7183 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
7184
7185 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
7186
7187 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
7188
7189 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
7190
7191 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
7192
7193 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
7194 (IRA_COVER_CLASSES_VSX): Ditto.
7195
7196 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
7197 (rs6000_ira_cover_classes): Ditto.
7198
7199 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
7200
7201 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7202
7203 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7204
7205 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7206
7207 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7208
7209 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7210
7211 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7212
7213 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7214
7215 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7216
7217 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7218
2b80199f
JJ
72192011-03-29 Jakub Jelinek <jakub@redhat.com>
7220
71dae1fe
JJ
7221 PR debug/48253
7222 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7223 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7224 dw_fde_unlikely_section_end_label, cold_in_std_section,
7225 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7226 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7227 fields.
7228 (output_fde): Use dw_fde_second_{begin,end} if second is
7229 true, otherwise dw_fde_{begin,end}.
7230 (output_call_frame_info): Test dw_fde_second_begin != NULL
7231 instead of dw_fde_switched_sections.
7232 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7233 fields, initialize new fields. Initialize in_std_section
7234 unconditionally from the first partition.
7235 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7236 dw_fde_second_begin is non-NULL.
7237 (dwarf2out_switch_text_section): Stop initializing removed
7238 dw_fde_struct fields, initialize new fields, initialize
7239 also dw_fde_end here. Set dw_fde_switch_cfi even when
7240 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7241 (struct var_loc_list_def): Add last_before_switch field.
7242 (arange_table, arange_table_allocated, arange_table_in_use,
7243 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7244 (size_of_aranges): Count !in_std_section and !second_in_std_section
7245 hunks in fdes, instead of looking at arange_table_in_use.
7246 (output_aranges): Add aranges_length argument, don't call
7247 size_of_aranges here. Instead of using aranges_table*
7248 emit ranges for fdes when !in_std_section resp.
7249 !second_in_std_section.
7250 (dw_loc_list): Break ranges crossing section switch.
7251 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 7252 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
7253 (gen_subprogram_die): Don't call add_arange. Use
7254 dw_fde_{begin,end} for first partition and if switched
7255 section dw_fde_second_{begin,end} for the second.
7256 (var_location_switch_text_section_1,
7257 var_location_switch_text_section): New functions.
7258 (dwarf2out_begin_function): Initialize cold_text_section even
7259 when function_section () isn't text_section.
7260 (prune_unused_types): Don't walk arange_table.
7261 (dwarf2out_finish): Don't needlessly test
7262 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7263 If info_section_emitted, call size_of_aranges and if it indicates
7264 non-empty .debug_aranges, call output_aranges with the computed
7265 size. Stop using removed dw_fde_struct fields, use
7266 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7267 for second.
7268
2b80199f
JJ
7269 PR debug/48203
7270 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7271 create ENTRY_VALUE if incoming or address of incoming's MEM
7272 is a hard REG.
7273 * dwarf2out.c (mem_loc_descriptor): Don't emit
7274 DW_OP_GNU_entry_value of DW_OP_fbreg.
7275 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7276 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7277 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7278 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7279 ENTRY_VALUE_EXPs.
7280 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7281 is a REG_P or MEM_P with REG_P address, compute hash directly
7282 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7283 (preserve_only_constants): Don't clear VALUES forwaring
7284 ENTRY_VALUE to some other VALUE.
7285
8a445129
RS
72862011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7287
7288 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7289 instead of GEN_INT.
7290
c82fee88
EB
72912011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7292
7293 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7294 block before expanding the statement.
7295 (expand_gimple_stmt_1): Likewise. Set them here...
7296 (expand_gimple_stmt): ...and not here. Tidy.
7297 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7298 unknown.
7299
e45425ec
SB
73002011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7301
7302 * Makefile.in: New rule for cprop.o.
7303 * gcse.c: Move constant/copy propagation to cprop.c.
7304 (compute_local_properties): Only handle expression tables.
7305 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7306 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7307 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7308 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 7309 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
7310 compute_cprop_data, find_used_regs, try_replace_reg,
7311 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7312 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7313 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7314 find_bypass_set, reg_killed_on_edge, bypass_block,
7315 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7316 execute_rtl_cprop, pass_rtl_cprop): Move to...
7317 * cprop.c: ...here. New file, constant/copy propagation for RTL
7318 moved from gcse.c to here with minor cleanups in duplicated code.
7319
c09d5426
L
73202011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7321
7322 * config/i386/i386.c (flag_opts): Fix a typo in
7323 -mavx256-split-unaligned-store.
7324
9eaa7740
AS
73252011-03-28 Anatoly Sokolov <aesok@post.ru>
7326
7327 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7328 LIBCALL_VALUE): Remove macros.
7329 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7330 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7331 (h8300_function_value, h8300_libcall_value,
7332 h8300_function_value_regno_p): New functions.
7333
dcec2be2
AS
73342011-03-28 Anatoly Sokolov <aesok@post.ru>
7335
7336 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7337
520af9ec
JL
73382011-03-28 Jeff Law <law@redhat.com>
7339
7340 * tree-ssa-threadupdate.c (redirect_edges): Call
7341 create_edge_and_update_destination_phis as needed.
7342 (create_edge_and_update_destination_phis): Accept new BB argument.
7343 All callers updated.
7344 (thread_block): Do not update the profile when threading around
7345 intermediate blocks.
7346 (thread_single_edge): Likewise.
7347 (determine_bb_domination_status): If BB is not a successor of the
7348 loop header, return NONDOMINATING.
7349 (register_jump_thread): Note when we register a jump thread around
7350 an intermediate block.
7351 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7352 (thread_across_edge): Use it.
7353
7450b54f
TG
73542011-03-28 Tristan Gingold <gingold@adacore.com>
7355
7356 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7357 when for_return is 2.
7358
649beb33
JL
73592011-03-28 Jeff Law <law@redhat.com>
7360
7361 * var-tracking.c (canonicalize_values_mark): Delete unused
7362 lhs assignment.
7363 (canonicalize_values_star, set_variable_part): Likewise.
7364 (clobber_variable_part, delete_variable_part): Likewise.
7365
d5b8da97
SB
73662011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7367
7368 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7369
322dd859
MJ
73702011-03-28 Martin Jambor <mjambor@suse.cz>
7371
7372 * tree-inline.c (expand_call_inline): Do not check that destination
7373 node is analyzed.
7374 (optimize_inline_calls): Assert that destination node is analyzed.
7375 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7376 not call tree_lowering_passes.
7377 * cgraph.h (cgraph_analyze_function): Declare.
7378 * cgraphunit.c (cgraph_analyze_function): Make public.
7379
aa53e58b
JM
73802011-03-28 Joseph Myers <joseph@codesourcery.com>
7381
7382 * config/sparc/sparc-opts.h: New.
7383 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7384 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7385 (sparc_option_override): Store processor_type enumeration rather
7386 than string in cpu_default. Remove name and enumeration from
7387 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7388 without using sparc_select. Use target_flags_explicit instead of
7389 fpu_option_set.
7390 * config/sparc/sparc.h (enum processor_type): Move to
7391 sparc-opts.h.
7392 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7393 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7394 HeaderInclude entry.
7395 (mcpu=, mtune=): Use Var and Enum.
7396 (sparc_processor_type): New Enum and EnumValue entries.
7397
dd350eba
RO
73982011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7399 Iain Sandoe <iains@gcc.gnu.org>
7400
7401 PR target/48245
7402 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7403
1b29f05e
EB
74042011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7405
7406 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7407 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7408 Insert new statements at it in lieu of STMT.
7409 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7410 * tree-vect-stmts.c (vectorizable_store): Likewise.
7411 (vectorizable_load): Likewise.
7412
506e6808
UB
74132011-03-28 Uros Bizjak <ubizjak@gmail.com>
7414
7415 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7416 (divtf3): Ditto.
7417 (multf3): Ditto.
7418 (subtf3): Ditto.
7419
2e939ee9
L
74202011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7421
7422 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7423 unaligned 256bit load/store.
7424 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7425 (*avx_movdqu<avxmodesuffix>): Likewise.
7426
5e85ab88
JDA
74272011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7428
7429 PR target/48288
7430 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7431 * config/pa/pa.md (iordi3): Use new predicate in expander.
7432 (iorsi3): Likewise.
7433
47be3d6d
AS
74342011-03-27 Anatoly Sokolov <aesok@post.ru>
7435
506e6808 7436 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 7437 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
7438 * config/mips/mips-protos.h (mips_function_value): Remove.
7439 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
7440 (mips_function_value_1): ... this. Make static. Handle receiving
7441 the function type in 'fn_decl_or_type' argument.
7442 (mips_function_value, mips_libcall_value,
7443 mips_function_value_regno_p): New function.
7444 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7445 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7446
d253656a
L
74472011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7448
7449 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7450 and -mavx256-split-unaligned-store.
7451 (ix86_option_override_internal): Split 32-byte AVX unaligned
7452 load/store by default.
7453 (ix86_avx256_split_vector_move_misalign): New.
7454 (ix86_expand_vector_move_misalign): Use it.
7455
7456 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7457 -mavx256-split-unaligned-store.
7458
7459 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7460 256bit load/store. Generate unaligned store on misaligned memory
7461 operand.
7462 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7463 256bit load/store.
7464 (*avx_movdqu<avxmodesuffix>): Likewise.
7465
7466 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7467 -mavx256-split-unaligned-store.
7468
1ea9206a
RS
74692011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7470
7471 PR target/38598
7472 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7473 Update commentary.
7474
b99ce2a8
RS
74752011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7476
7477 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7478 opno arguments with an expand_operand. Use create_input_operand.
7479 (mips_prepare_builtin_target): Delete.
7480 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7481 functions.
7482 (mips_expand_builtin_direct): Use create_output_operand and
7483 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7484 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7485 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7486
69d52339
IR
74872011-03-27 Ira Rosen <ira.rosen@linaro.org>
7488
7489 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7490 function.
7491 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7492
ba5e9aca
EB
74932011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7494
7495 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7496 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7497 basic blocks and call commit_edge_insertions directly.
7498 (fixup_abnormal_edges): Move from here to...
7499 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7500 on the edges and return whether some have actually been inserted.
7501 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7502 compensation code.
7503
5d369d58
AB
75042011-03-26 Andrey Belevantsev <abel@ispras.ru>
7505
7506 PR rtl-optimization/48144
7507 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7508 (merge_expr_data): ... here.
7509 (av_set_intersect): Rename to av_set_code_motion_filter.
7510 Update all callers. Call merge_history_vect when an expression
7511 is found in both sets.
7512 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7513
f082c000
AM
75142011-03-26 Alan Modra <amodra@gmail.com>
7515
7516 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7517 cmodel medium addresses.
7518 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7519 64-bit gpr loads and stores.
7520 (rs6000_secondary_reload_ppc64): New function.
7521 * config/rs6000/rs6000-protos.h: Declare it.
7522 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7523
8ac5e12e
AM
75242011-03-26 Alan Modra <amodra@gmail.com>
7525
7526 PR target/47487
7527 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7528 GNU Go in traceback table.
7529
c2654ded
RH
75302011-03-25 Richard Henderson <rth@redhat.com>
7531
7532 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7533 if there are exactly 6 operands.
7534 (set_storage_via_setmem): Similarly.
7535
ba78087b
KT
75362011-03-25 Kai Tietz <ktietz@redhat.com>
7537
7538 * collect2.c (write_c_file_stat): Handle backslash
7539 as right-hand directory separator.
7540 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7541 checking just for slash.
7542 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7543 instead of checking for trailing slash.
7544 * gcc.c (record_temp_file): Use filename_cmp instead
7545 of strcmp.
7546 (do_spec_1): Likewise.
7547 (replace_outfile_spec_function): Likewise.
7548 (is_directory): Use filename_ncmp instead of strncmp.
7549 (print_multilib_info): Likewise.
7550 * gcov.c (find_source): Use filename_cmp instead
7551 instead of strcmp.
7552 (make_gcov_file_name): Fix order of slash/backslash
7553 checks.
7554 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7555 (add_standard_paths): Likewise.
7556 * mips-tfile.c (saber_stop): Handle backslash.
7557 * prefix.c (update_path): Use filename_ncmp instead of
7558 strncmp.
7559 * profile.c (output_location): Use filename_cmp instead
7560 of strcmp.
7561 * read-md.c (handle_toplevel_file): Handle backslash.
7562 * tlink.c (frob_extension): Likewise.
7563 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7564 strcmp.
7565 * tree-dump.c (dequeue_and_dump): Handle backslash.
7566 * tree.c (get_file_function_name): Likewise.
7567 * gengtype.c (read_input_list): Likewise.
7568 (get_file_realbasename): Likewise.
7569 (get_output_file_with_visibility): Use filename_cmp
7570 instead of strcmp.
7571
75f6ec9a
RS
75722011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7573
7574 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7575 case to VFPv1.
7576
6c4e2997
NF
75772011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7578
7579 * fold-const.c (expr_location_or): New function.
7580 (fold_truth_not_expr): Call it.
7581
0edf1bb2
JL
75822011-03-25 Jeff Law <law@redhat.com>
7583
7584 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7585 va_end.
7586 * c-family/c-common.c (def_fn_type): Likewise.
7587 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7588 * emit-rtl.c (gen_rtvec): Likewise.
7589 * lto/lto-lang.c (def_fn_type): Likewise.
7590
fdc2de95
RG
75912011-03-25 Richard Guenther <rguenther@suse.de>
7592
7593 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7594 also generate copies.
7595 (fini_copy_prop): Handle constant values properly.
7596
21385db0
JJ
75972011-03-25 Jakub Jelinek <jakub@redhat.com>
7598
7599 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7600 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7601 (hash_loc_operands, compare_loc_operands): Handle
7602 DW_OP_GNU_entry_value.
7603
6510e8bb
KT
76042011-03-25 Kai Tietz <ktietz@redhat.com>
7605
7606 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7607 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7608 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7609 comment and use macro TARGET_64BIT_MS_ABI instead.
7610 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7611 and change default behavior for 32-bit MS_ABI.
7612 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7613 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7614 32-bit, too.
7615 (ix86_cfun_abi): Likewise.
7616 (ix86_maybe_switch_abi): Adjust comment.
7617 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7618 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7619 instead of checking for SYSV_ABI.
7620 (ix86_nsaved_sseregs): Likewise.
7621 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7622 to 16 bytes.
7623 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7624 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7625 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7626 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7627 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7628
34019e28
RG
76292011-03-25 Richard Guenther <rguenther@suse.de>
7630
7631 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7632 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7633 (verify_gimple): Remove.
7634 * tree-cfg.c (verify_gimple_call): Merge verification
7635 from verify_stmts.
7636 (verify_gimple_phi): Merge verification from verify_stmts.
7637 (verify_gimple_label): New function.
7638 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7639 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7640 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7641 (verify_stmts): Rename to verify_gimple_in_cfg.
7642 (verify_gimple_in_cfg): New function.
7643 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7644 * tree-ssa.c (verify_ssa): Likewise.
7645 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7646
605896f5
RG
76472011-03-25 Richard Guenther <rguenther@suse.de>
7648
7649 * passes.c (init_optimization_passes): Add FRE pass after
7650 early SRA.
7651
7baa7c13
BS
76522011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7653 Andrew Stubbs <ams@codesourcery.com>
7654
7655 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7656 for Cortex-A8.
7657 (arm_movdi_vfp_cortexa8): New pattern.
7658 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7659 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7660 instructions when tuning for Cortex-A8. Set attribute "arch".
7661 * config/arm/arm.md: Move include arm-tune.md up a bit.
7662 (define_attr "arch"): Add "onlya8" and "nota8" values.
7663 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7664
45dbce1b
NF
76652011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7666
4ff08abf 7667 PR bootstrap/48282
45dbce1b
NF
7668 Revert:
7669 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7670
7671 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7672 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7673 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7674 * passes.c (init_optimization_passes): Move
7675 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7676
ac9a30ae
KT
76772011-03-25 Kai Tietz <ktietz@redhat.com>
7678
7679 * c-typeck.c (comptypes_internal): Replace target
7680 hook call of comp_type_attributes by version in tree.c file.
7681 * gimple.c (gimple_types_compatible_p_1): Likewise.
7682 * tree-ssa.c (useless_type_conversion_p): Likewise.
7683 * tree.c (build_type_attribute_qual_variant): Likewise.
7684 (attribute_value_equal): New static helper function.
7685 (comp_type_attributes): New function.
7686 (merge_attributes): Use attribute_value_equal for comparison.
7687 (attribute_list_contained): Likewise.
7688 * tree.h (comp_type_attributes): New prototype.
7689
afdac116
RG
76902011-03-25 Richard Guenther <rguenther@suse.de>
7691
7692 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7693 of complex types at -O0.
7694 (verify_gimple_assign_binary): Likewise.
7695 (verify_gimple_assign_ternary): Likewise.
7696
ec6165f8
MW
76972011-03-24 Mark Wielaard <mjw@redhat.com>
7698
7699 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7700 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7701
2a5ac39a
MW
77022011-03-24 Mark Wielaard <mjw@redhat.com>
7703
7704 PR debug/48041
7705 * dwarf2out.c (output_abbrev_section): Only write table when
7706 abbrev_die_table_in_use > 1.
7707
e533b2a4
RH
77082011-02-24 Richard Henderson <rth@redhat.com>
7709
7710 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7711 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7712 (alpha_expand_unaligned_load_words): Use extql.
7713 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7714 (emit_insxl): Handle all modes for consistency.
7715
0b2a7367
RH
77162011-02-24 Richard Henderson <rth@redhat.com>
7717
7718 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7719 (alpha_expand_unaligned_load): Likewise.
7720 (alpha_expand_unaligned_store): Likewise.
7721 (alpha_expand_unaligned_load_words): Likewise.
7722 (alpha_expand_unaligned_store_words): Likewise.
7723 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7724 (alpha_split_lock_test_and_set_12): Likewise.
7725 (print_operand, alpha_fold_builtin_extxx): Likewise.
7726 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7727 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7728 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7729 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7730 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7731 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7732 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7733 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7734 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7735 (extwl, extll, extql): Similarly.
7736 (inswh, inslh, insqh): Similarly.
7737 (mskbl, mskwl, mskll, mskql): Similarly.
7738 (mskwh, msklh, mskqh): Similarly.
7739
315b2bef
RH
77402011-02-24 Richard Henderson <rth@redhat.com>
7741
7742 * config/alpha/alpha.md (attribute isa): Add er, ner.
7743 (attribute enabled): Handle them.
7744 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7745
67102517
RH
77462011-02-24 Richard Henderson <rth@redhat.com>
7747
7748 * config/alpha/alpha.md (attribute isa): Add vms.
7749 (attribute enabled): Handle it.
7750 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7751 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7752 (*movtf): Rename from *movtf_internal for consistency.
7753 (*movsi): Merge with *movsi_nt_vms.
7754 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7755 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7756 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7757 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7758
6aba5cb4
RH
77592011-02-24 Richard Henderson <rth@redhat.com>
7760
7761 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7762 (extendqisi2, extendhisi2): Likewise.
7763 (extendqidi2): Simplify BWX/non-BWX expansions.
7764 (extendhidi2): Similarly.
7765
bdfb351b
RH
77662011-02-24 Richard Henderson <rth@redhat.com>
7767
7768 * config/alpha/alpha.md (attribute isa): New.
7769 (attribute enabled): New.
7770 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7771 (zero_extendqisi2, zero_extendqidi2): Similarly.
7772 (zero_extendhisi2, zero_extendhidi2): Similarly.
7773 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7774
6abe71eb
RH
77752011-02-24 Richard Henderson <rth@redhat.com>
7776
7777 * config/alpha/predicates.md (input_operand): Revert last change;
7778 update comment to mention 32-bit VMS rather than Windows.
7779
7114321e
NF
77802011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7781
7782 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7783 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7784 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7785 * passes.c (init_optimization_passes): Move
7786 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7787
c8679567
EB
77882011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7789
7790 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7791
27173058
UB
77922011-03-24 Uros Bizjak <ubizjak@gmail.com>
7793
7794 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7795 correctly.
7796
6f0c9f06
JJ
77972011-03-24 Jakub Jelinek <jakub@redhat.com>
7798
7799 PR debug/48204
7800 * simplify-rtx.c (simplify_const_unary_operation): Call
7801 real_convert when changing mode class with FLOAT_EXTEND.
7802
662666e5
NC
78032011-03-24 Nick Clifton <nickc@redhat.com>
7804
7805 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7806 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7807 * config/rx/rx.c (rx_option_override): Set align_jumps,
7808 align_loops and align_labels if not set by the user.
7809 (rx_align_for_label): New function.
7810 (rx_max_skip_for_label): New function.
7811 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7812 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7813 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7814 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7815 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7816
2b99b2b8
RS
78172011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7818
7819 PR rtl-optimization/48263
7820 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7821 and original commutative_p handling. Use maybe_gen_insn.
7822
ccecd6ea
AK
78232011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7824
7825 * reload.c (find_reloads_subreg_address): Add address_reloaded
7826 parameter and return true there if the full address has been
7827 reloaded.
7828 (find_reloads_toplev): Pass address_reloaded flag.
7829 (find_reloads_address_1): Don't use address_reloaded parameter.
7830
67295642
JL
78312011-03-24 Jeff Law <law@redhat.com>
7832
7833 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7834 unused variable "ann".
7835 (remove_unused_locals): Likewise.
7836
7837 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7838 statement.
7839
7840 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7841 after it is freed.
7842
212aa74f
AK
78432011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7844
7845 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7846 for invalid symbolic addresses.
7847 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7848 larl operands.
7849
fe784e0d
EB
78502011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7851
7852 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7853 the argument in calls to fold_truth_not_expr.
7854
63ee8641
NF
78552011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7856
7857 * tree.c (record_node_allocation_statistics): New function.
7858 (make_node_stat, copy_node_stat, build_string): Call it.
7859 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7860 (build1_stat, build_omp_clause): Likewise.
7861
61be2a1c
RS
78622011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7863
7864 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7865 last commit.
7866
a881aaa7
RG
78672011-03-24 Richard Guenther <rguenther@suse.de>
7868
7869 PR tree-optimization/48271
7870 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7871 blocks that still exist.
7872
dbaa912c
RG
78732011-03-24 Richard Guenther <rguenther@suse.de>
7874
7875 PR tree-optimization/48270
7876 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7877 not free datarefs before ddrs.
7878
1d60cc55
EB
78792011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7880
7881 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7882 from the address built for a reference with variable offset.
7883
c78dd519
UB
78842011-03-24 Uros Bizjak <ubizjak@gmail.com>
7885
7886 PR target/48237
7887 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7888 alternatives that can be handled with movq or movabsq insn.
7889 (*movdf_internal): Disable for !TARGET_64BIT.
7890 (*movdf_internal_nointeger): Ditto.
7891 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7892
b25b9e8f
NF
78932011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7894
7895 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7896 (FUNCTION_ARG_ADVANCE): Likewise.
7897 * tm.texi.in: Change references to them to hook references.
7898 * tm.texi: Regenerate.
c78dd519 7899 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
7900 (default_function_incoming_arg): Likewise.
7901 (default_function_arg_advance): Likewise.
c78dd519 7902 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
7903 (function_arg_advance): Likewise.
7904 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7905
190b2187
RG
79062011-03-24 Richard Guenther <rguenther@suse.de>
7907
7908 PR middle-end/48269
7909 * tree-object-size.c (addr_object_size): Do not double-account
7910 for MEM_REF offsets.
7911
a183b5c7
DN
79122011-03-24 Diego Novillo <dnovillo@google.com>
7913
7914 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 7915 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
7916 (lto_input_data_block): Move from lto-opts.c. Make extern.
7917 Update all users.
7918 (lto_input_string): Rename from input_string. Make extern.
7919 Update all users.
7920 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7921 output_string_with_length.
7922 Output 0 to indicate a non-NULL string. Update all callers to
7923 not emit 0.
7924 (lto_output_string): Rename from output_string. Make extern.
7925 Update all users.
7926 (lto_output_decl_state_streams): Make extern.
7927 (lto_output_decl_state_refs): Make extern.
7928 * lto-streamer.h (lto_input_string): Declare.
7929 (lto_input_data_block): Declare.
7930 (lto_output_string): Declare.
7931 (lto_output_string_with_length): Declare.
7932 (lto_output_decl_state_streams): Declare.
7933 (lto_output_decl_state_refs): Declare.
7934
cfef45c8
RG
79352011-03-24 Richard Guenther <rguenther@suse.de>
7936
7937 PR tree-optimization/46562
7938 * tree.c (build_invariant_address): New function.
7939 * tree.h (build_invariant_address): Declare.
7940 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7941 a renamed function moved ...
7942 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7943 Take valueization callback parameter.
7944 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7945 * gimple-fold.h: New file.
7946 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7947 (ccp_fold, fold_const_aggregate_ref,
7948 fold_ctor_reference, fold_nonarray_ctor_reference,
7949 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7950 get_base_constructor): Move ...
7951 * gimple-fold.c: ... here.
7952 (gimple_fold_stmt_to_constant_1): New function
7953 split out from ccp_fold. Take a valueization callback parameter.
7954 Valueize all operands.
7955 (gimple_fold_stmt_to_constant): New wrapper function.
7956 (fold_const_aggregate_ref_1): New function split out from
7957 fold_const_aggregate_ref. Take a valueization callback parameter.
7958 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7959 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7960 invariant POINTER_PLUS_EXPRs to invariant form.
7961 (vn_valueize): New function.
7962 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7963 * tree-vrp.c (vrp_valueize): New function.
7964 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7965 to fold statements to constants.
7966 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7967 function declarations.
7968 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7969 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7970
5e0a7e40
RS
79712011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7972
7973 * config/h8300/predicates.md (jump_address_operand): Fix register
7974 mode check.
7975
bfe068c3
IR
79762011-03-24 Ira Rosen <ira.rosen@linaro.org>
7977
7978 * doc/invoke.texi (max-stores-to-sink): Document.
7979 * params.h (MAX_STORES_TO_SINK): Define.
7980 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7981 if either vectorization or if-conversion is disabled.
7982 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7983 tree-vect-data-refs.c vect_equal_offsets.
7984 (dr_equal_offsets_p): New function.
7985 (find_data_references_in_bb): Remove static.
7986 * tree-data-ref.h (find_data_references_in_bb): Declare.
7987 (dr_equal_offsets_p): Likewise.
7988 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7989 (vect_drs_dependent_in_basic_block): Update calls to
7990 vect_equal_offsets.
7991 (vect_check_interleaving): Likewise.
7992 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7993 (cond_if_else_store_replacement): Rename to...
7994 (cond_if_else_store_replacement_1): ... this. Change arguments and
7995 documentation.
7996 (cond_if_else_store_replacement): New function.
7997 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7998 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7999
4908b0bf
CLT
80002011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8001
8002 PR target/46934
8003 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8004 to subtract lower bound instead of GEN_INT().
8005
2be478a2
JW
80062011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8007
8008 PR other/48179
8009 PR other/48221
8010 PR other/48234
8011 * doc/extend.texi (Alignment): Move section to match order in TOC.
8012 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8013 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8014
0c617be4
JL
80152011-03-23 Jeff Law <law@redhat.com>
8016
8017 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8018 before removing the edge.
8019
8020 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8021 it may have been freed by redirect_branch_edge or
8022 redirect_edge_succ_nodup.
8023
58da96fe
RG
80242011-03-23 Richard Guenther <rguenther@suse.de>
8025
c78dd519 8026 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
8027 (check_va_list_escapes): Likewise.
8028 (check_all_va_list_escapes): Likewise.
8029
b8beb4d1
RG
80302011-03-23 Richard Guenther <rguenther@suse.de>
8031
8032 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8033 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8034 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8035 (alias.o): Likewise.
8036 (ipa-type-escape.o): Remove.
8037 (ipa-struct-reorg.o): Likewise.
8038 (GTFILES): Remove ipa-struct-reorg.c.
8039 * alias.c: Do not include ipa-type-escape.h.
8040 * tree-ssa-alias.c: Likewise.
8041 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8042 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8043 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8044 and ipa-type-escape passes.
8045 * tree-pass.h (pass_ipa_type_escape): Remove.
8046 (pass_ipa_struct_reorg): Likewise.
8047 * ipa-struct-reorg.h: Remove.
8048 * ipa-struct-reorg.c: Likewise.
8049 * ipa-type-escape.h: Likewise.
8050 * ipa-type-escape.c: Likewise.
8051 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8052 (--param struct-reorg-cold-struct-ratio): Likewise.
8053 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8054 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8055 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8056
f137aa63
AK
80572011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8058
8059 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8060 cpu attribute value.
8061 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8062 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8063 * config/s390/s390.c (processor_flags_table): New constant array.
8064 (s390_handle_arch_option): Remove.
8065 (s390_handle_option): Remove s390_handle_arch_option invocations
8066 and OPT_mwarn_framesize_ handling.
8067 (s390_option_override): Remove s390_handle_arch_option invocation.
8068 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8069 warnings.
8070 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8071 * config/s390/s390.opt (s390_tune, s390_arch)
8072 (march=): Replace s390_arch_option enum and values with
8073 processor_type. Set variable name to s390_arch. Set
8074 initialization value.
8075 (mtune=): Replace s390_arch_option with processor_type. Set
8076 variable name to s390_tune. Set initialization value.
8077
bf90208f
JB
80782011-03-23 Julian Brown <julian@codesourcery.com>
8079
8080 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8081 accesses which are not naturally aligned.
8082
3460fdf3
RS
80832011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8084
8085 PR target/47553
8086 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
8087
a5c7d693
RS
80882011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
8089
8090 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
8091 parameter from "int" to "enum insn_code".
8092 (expand_operand_type): New enum.
8093 (expand_operand): New structure.
8094 (create_expand_operand): New function.
8095 (create_fixed_operand, create_output_operand): Likewise
8096 (create_input_operand, create_convert_operand_to): Likewise.
8097 (create_convert_operand_from, create_address_operand): Likewise.
8098 (create_integer_operand): Likewise.
8099 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
8100 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8101 (expand_insn, expand_jump_insn): Likewise.
8102 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
8103 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
8104 (expand_movstr, expand_builtin___clear_cache): Likewise.
8105 (expand_builtin_lock_release): Likewise.
8106 * explow.c (allocate_dynamic_stack_space): Likewise.
8107 (probe_stack_range): Likewise. Allow check_stack to FAIL,
8108 and use the default handling in that case.
8109 * expmed.c (check_predicate_volatile_ok): Delete.
8110 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
8111 (emit_cstore): Likewise.
8112 * expr.c (emit_block_move_via_movmem): Likewise.
8113 (set_storage_via_setmem, expand_assignment): Likewise.
8114 (emit_storent_insn, try_casesi): Likewise.
8115 (emit_single_push_insn): Likewise. Allow the expansion to fail.
8116 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
8117 (expand_vec_shift_expr, expand_binop_directly): Likewise.
8118 (expand_twoval_unop, expand_twoval_binop): Likewise.
8119 (expand_unop_direct, emit_indirect_jump): Likewise.
8120 (emit_conditional_move, vector_compare_rtx): Likewise.
8121 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
8122 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
8123 (expand_sync_lock_test_and_set): Likewise.
8124 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
8125 (emit_unop_insn): Likewise.
8126 (expand_copysign_absneg): Change icode to an insn_code.
8127 (create_convert_operand_from_type): New function.
8128 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
8129 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
8130 (expand_insn, expand_jump_insn): Likewise.
8131 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
8132 than const_int_operand for operand 2.
8133
78fadbab
AK
81342011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8135
8136 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
8137 if possible.
8138
5f02387d
NF
81392011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8140
8141 * emit-rtl.c (emit_pattern_before_noloc): New function.
8142 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
8143 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
8144 (emit_pattern_after_noloc): New function.
8145 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
8146 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
8147
fdf3e18a
NF
81482011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8149
8150 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
8151 (__ffsDI2): Likewise.
8152
42d085c1
RH
81532011-03-22 Richard Henderson <rth@redhat.com>
8154
8155 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
8156 of !TARGET_ABI_OPEN_VMS.
8157 (alpha_trampoline_init, alpha_start_function): Likewise.
8158 (alpha_expand_epilogue, alpha_file_start): Likewise.
8159 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
8160 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
8161 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
8162 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
8163 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
8164
cabbe12a
JM
81652011-03-22 Joseph Myers <joseph@codesourcery.com>
8166
8167 * config/s390/s390-opts.h: New.
8168 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
8169 s390_arch_flags, s390_warn_framesize, s390_stack_size,
8170 s390_stack_guard): Remove.
8171 (s390_handle_arch_option): Return void. Take enum
8172 s390_arch_option value instead of string and searching array.
8173 (s390_handle_option): Don't assert that global structures are in
8174 use. Access variables via opts pointer. Use error_at. Don't use
8175 sscanf for -mstack-guard= or -mstack-size=. Update call to
8176 s390_handle_arch_option.
8177 (s390_option_override): Update call to s390_handle_arch_option.
8178 (s390_emit_prologue): Use %d format for s390_stack_size in
8179 diagnostic. Use %wd for HOST_WIDE_INT.
8180 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
8181 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
8182 * config/s390/s390.opt (config/s390/s390-opts.h): New
8183 HeaderInclude entry.
8184 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
8185 s390_arch_flags, s390_warn_framesize): New Variable entries.
8186 (s390_arch_option): New Enum and EnumValue entries.
8187 (march=): Use Enum instead of Var.
8188 (mstack-guard=, mstack-size=): Use UInteger and Var.
8189 (mtune=): Use Enum.
8190
05b12036
JM
81912011-03-22 Joseph Myers <joseph@codesourcery.com>
8192
8193 * config/score/score.c (score_handle_option): Don't assert that
8194 global structures are in use. Access target_flags via opts
8195 pointer. Use value of -march= option to determine target_flags
8196 settings.
8197 * config/score/score.opt (march=): Use Enum.
8198 (score_arch): New Enum and EnumValue entries.
8199
dd51e35a
JM
82002011-03-22 Joseph Myers <joseph@codesourcery.com>
8201
8202 * config/mep/mep.c (option_mtiny_specified): Remove.
8203 (mep_option_override): Move register handling for -mivc2 from
8204 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8205 instead of option_mtiny_specified.
8206 (mep_handle_option): Access target_flags via opts pointer. Don't
8207 assert that global structures are in use. Defer part of -mivc2
8208 handling and move it to mep_option_override.
8209 * config/mep/mep.opt (IVC2): New Mask entry.
8210 (mivc2): Use Var and Defer instead of Mask.
8211
4a8d3d91
JM
82122011-03-22 Joseph Myers <joseph@codesourcery.com>
8213
8214 * config/v850/v850-opts.h: New.
8215 * config/v850/v850.c (small_memory): Replace with
8216 small_memory_physical_max array. Make that array static const.
8217 (v850_handle_memory_option): Take integer value of argument. Take
8218 gcc_options pointer, option text and location. Return void.
8219 Update for changes to small memory structures.
8220 (v850_handle_option): Access target_flags via opts pointer. Don't
8221 assert that global structures are in use. Update calls to
8222 v850_handle_memory_option.
c78dd519
UB
8223 (v850_encode_data_area): Update references to small memory settings.
8224 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
8225 (enum small_memory_type): Move to v850-opts.h.
8226 * config/v850/v850.opt (config/v850/v850-opts.h): New
8227 HeaderInclude entry.
8228 (small_memory_max): New Variable entry.
8229 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8230 (mtda, mzda): Likewise.
8231
117fdbfa
JM
82322011-03-22 Joseph Myers <joseph@codesourcery.com>
8233
8234 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8235 pointer. Don't assert that global structures are in use.
8236
d715091c
JM
82372011-03-22 Joseph Myers <joseph@codesourcery.com>
8238
8239 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8240 via opts pointer. Don't assert that global structures are in use.
8241
1bb721dc
JM
82422011-03-22 Joseph Myers <joseph@codesourcery.com>
8243
8244 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8245 (munix=93): Use Var.
8246 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8247 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8248 * config/pa/pa-opts.h: New.
8249 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8250 (pa_handle_option): Don't assert that global structures are in
8251 use. Access target_flags via opts pointer. Don't handle
8252 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8253 OPT_munix_98 here.
8254 (pa_option_override): Handle deferred OPT_mfixed_range_.
8255
cd8d8754
JM
82562011-03-22 Joseph Myers <joseph@codesourcery.com>
8257
8258 * config/mn10300/mn10300-opts.h: New.
8259 * config/mn10300/mn10300.c (mn10300_processor,
8260 mn10300_tune_string): Remove.
8261 (mn10300_handle_option): Don't assert that global structures are
8262 in use. Access mn10300_processor via opts pointer. Don't handle
8263 OPT_mtune_ here.
8264 * config/mn10300/mn10300.h (enum processor_type): Move to
8265 mn10300-opts.h.
8266 (mn10300_processor): Remove.
8267 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8268 HeaderInclude entry.
8269 (mn10300_processor): New Variable entry.
8270 (mtune=): Use Var.
8271
24e6e6b1
JM
82722011-03-22 Joseph Myers <joseph@codesourcery.com>
8273
8274 * config/microblaze/microblaze.c: Don't include opts.h.
8275 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8276 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8277 (mno-clearbss): Use Var and Warn.
8278
8a784afb
JM
82792011-03-22 Joseph Myers <joseph@codesourcery.com>
8280
8281 * config/m32r/m32r-opts.h: New.
8282 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8283 (m32r_handle_option): Don't assert that global structures are in
8284 use. Access target_flags and m32r_cache_flush_func via opts
8285 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8286 OPT_mno_flush_trap here.
8287 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8288 include of m32r-opts.h.
8289 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8290 HeaderInclude entry.
8291 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8292 (mmodel=): Use Enum and Var.
8293 (m32r_model): New Enum and EnumValue entries.
8294 (mno-flush-trap): Use Var.
8295 (msdata=): Use Enum and Var.
8296 (m32r_sdata): New Enum and EnumValue entries.
8297
bbfc9a8c
JM
82982011-03-22 Joseph Myers <joseph@codesourcery.com>
8299
8300 * config/m32c/m32c.c: Don't include opts.h.
8301 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8302 m32c_handle_option): Remove.
8303 (m32c_option_override): Check global_options_set.x_target_memregs
8304 instead of target_memregs_set.
8305 * config/m32c/m32c.h (target_memregs): Remove.
8306 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8307 variable.
8308
e24b8335
JM
83092011-03-22 Joseph Myers <joseph@codesourcery.com>
8310
8311 * config/iq2000/iq2000-opts.h: New.
8312 * config/iq2000/iq2000.c: Don't include opts.h.
8313 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 8314 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
8315 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8316 HeaderInclude entry.
8317 (iq2000_tune): New Variable entry.
8318 (march=): Add comment. Use Enum.
8319 (iq2000_arch): New Enum and EnumValue entries.
8320 (mcpu=): Use Enum and Var.
8321 (iq2000_tune): New Enum and EnumValue entries.
8322
e6cc0c98
JM
83232011-03-22 Joseph Myers <joseph@codesourcery.com>
8324
8325 * config/ia64/ia64-opts.h: New.
8326 * config/ia64/ia64.c (ia64_tune): Remove.
8327 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8328 here. Use error_at.
8329 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8330 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8331 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8332 HeaderInclude entry.
8333 (ia64_tune): New Variable entry.
8334 (mfixed-range=): Use Defer and Var.
8335 (mtune=): Use Enum and Var.
8336 (ia64_tune): New Enum and EnumValue entries.
8337
db25893c
JM
83382011-03-22 Joseph Myers <joseph@codesourcery.com>
8339
8340 * config/frv/frv-opts.h: New.
8341 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8342 frv-opts.h.
8343 (frv_cpu_type): Remove.
8344 * config/frv/frv.c: Don't include opts.h.
8345 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 8346 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
8347 (frv_cpu_type): New Variable entry.
8348 (frv_cpu): New Enum and EnumValue entries.
8349
6c223f5d
JM
83502011-03-22 Joseph Myers <joseph@codesourcery.com>
8351
8352 * config/cris/cris.c (cris_handle_option): Access target_flags via
8353 opts pointer. Don't assert that global structures are in use.
8354 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8355 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8356
bbd399cf
JM
83572011-03-22 Joseph Myers <joseph@codesourcery.com>
8358
8359 * config/bfin/bfin-opts.h: New.
8360 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8361 bfin_si_revision, bfin_workarounds): Remove.
8362 (bfin_cpus): Make static const.
8363 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8364 not bfin_lib_id_given.
8365 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8366 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 8367 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
8368 * config/bfin/bfin.h: Include bfin-opts.h.
8369 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8370 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8371 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8372 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8373 entries.
8374
5e1b4d5a
JM
83752011-03-22 Joseph Myers <joseph@codesourcery.com>
8376
8377 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8378 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8379 or -msoft-float here.
8380 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8381 -msoft-float and -mhard-float.
c78dd519 8382 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
8383 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8384 msoft-float.
8385 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8386 -msoft-float.
8387 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8388 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8389 not mhard-float.
8390 (LIBGCC_SPEC): Don't handle -msoft-float.
8391 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8392 -mhard-float.
8393 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8394 msoft-float.
8395 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8396 -mfloat-abi=*, not -msoft-float and -mhard-float.
8397 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8398 -msoft-float.
8399 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8400 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8401 mhard-float and msoft-float.
8402 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8403 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8404 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8405 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8406 mhard-float.
8407 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8408 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8409 msoft-float.
8410 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8411 not mhard-float.
8412 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8413 not msoft-float.
8414
800d1de1
RH
84152011-03-22 Richard Henderson <rth@redhat.com>
8416
8417 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8418 TARGET_ABI_WINDOWS_NT.
8419 (alpha_output_function_end_prologue): Likewise.
8420 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8421 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8422 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8423 (trap, *movsi_nt_vms): Likewise.
8424 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8425 (*tablejump_osf_nt_internal): Remove.
8426 * config/alpha/predicates.md (input_operand): Only test Pmode.
8427
c59ddd2b
JM
84282011-03-22 Joseph Myers <joseph@codesourcery.com>
8429
8430 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8431 via opts pointer. Use error_at. Don't assert that global
8432 structures are in use.
8433
1333f97f
JM
84342011-03-22 Joseph Myers <joseph@codesourcery.com>
8435
8436 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8437 (ix86_handle_option): Access ix86_isa_flags and
8438 ix86_isa_flags_explicit via opts pointer. Don't assert that
8439 global structures are in use.
8440 (ix86_function_specific_save, ix86_function_specific_restore):
8441 Update ix86_isa_flags_explicit field name.
c78dd519 8442 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
8443 (ix86_isa_flags_explicit): Rename TargetSave entry to
8444 x_ix86_isa_flags_explicit.
8445
75db85d8
RH
84462011-03-22 Richard Henderson <rth@redhat.com>
8447
8448 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8449 (alpha_option_override, direct_return): Likewise.
8450 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8451 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8452 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8453 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8454 (alpha_expand_epilogue, alpha_end_function): Likewise.
8455 (alpha_init_libfuncs): Likewise.
8456 (struct machine_function): Remove unicosmk members.
8457 (print_operand) ['t']: Remove.
8458 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8459 unicosmk_output_module_name, unicosmk_output_common,
8460 current_section_align, unicosmk_output_text_section_asm_op,
8461 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8462 unicosmk_section_type_flags, unicosmk_unique_section,
8463 unicosmk_asm_named_section, unicosmk_insert_attributes,
8464 unicosmk_output_align, unicosmk_defer_case_vector,
8465 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8466 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8467 unicosmk_output_ssib, unicosmk_add_call_info_word,
8468 unicosmk_extern_head, unicosmk_output_default_externs,
8469 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8470 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8471 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8472 * config/alpha/alpha-protos.h: Update.
8473 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8474 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8475 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8476 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8477 (*mulsi_se, mulvsi3): Likewise.
8478 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8479 (*divmodsi_internal, call, call_value, realign): Likewise.
8480 (moddi3, umoddi3): Likewise; remove duplicate expander.
8481 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8482 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8483 (*movdi_nofix): Remove r/U alternative.
8484 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8485 * config/alpha/constraints.md ("U"): Remove.
8486 * config/alpha/predicates.md (call_operand"): Don't test
8487 TARGET_ABI_UNICOSMK.
8488
96e45421
JM
84892011-03-22 Joseph Myers <joseph@codesourcery.com>
8490
8491 * target.def (handle_option): Take gcc_options and
8492 cl_decoded_option pointers and location_t.
8493 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8494 * doc/tm.texi: Regenerate.
8495 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8496 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8497 * lto-opts.c (lto_reissue_options): Generate option structure for
8498 targetm.handle_option call.
8499 * opts.c (target_handle_option): Update call to
8500 targetm.handle_option. Remove assertions about values now passed
8501 down to hook.
8502 * targhooks.c (default_target_handle_option): New.
8503 * targhooks.h (default_target_handle_option): Declare.
8504 * config/alpha/alpha.c: Include opts.h.
8505 (alpha_handle_option): Update to new hook interface.
8506 * config/arm/arm.c: Include opts.h.
8507 (arm_handle_option): Update to new hook interface.
8508 * config/arm/t-arm (arm.o): Update dependencies.
8509 * config/bfin/bfin.c: Include opts.h.
8510 (bfin_handle_option): Update to new hook interface.
8511 * config/cris/cris.c: Include opts.h.
8512 (cris_handle_option): Update to new hook interface.
8513 * config/frv/frv.c: Include opts.h.
8514 (frv_handle_option): Update to new hook interface.
8515 * config/i386/i386.c: Include opts.h.
8516 (ix86_handle_option): Update to new hook interface.
8517 (ix86_valid_target_attribute_inner_p): Generate option structure
8518 for call to ix86_handle_option.
8519 * config/i386/t-i386 (i386.o): Update dependencies.
8520 * config/ia64/ia64.c: Include opts.h.
8521 (ia64_handle_option): Update to new hook interface.
8522 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8523 * config/iq2000/iq2000.c: Include opts.h.
8524 (iq2000_handle_option): Update to new hook interface.
8525 * config/m32c/m32c.c: Include opts.h.
8526 (m32c_handle_option): Update to new hook interface.
8527 * config/m32r/m32r.c: Include opts.h.
8528 (m32r_handle_option): Update to new hook interface.
8529 * config/m68k/m68k.c: Include opts.h.
8530 (m68k_handle_option): Update to new hook interface.
8531 * config/mep/mep.c: Include opts.h.
8532 (mep_handle_option): Update to new hook interface.
8533 * config/microblaze/microblaze.c: Include opts.h.
8534 (microblaze_handle_option): Update to new hook interface.
8535 * config/mips/mips.c: Include opts.h.
8536 (mips_handle_option): Update to new hook interface.
8537 * config/mn10300/mn10300.c: Include opts.h.
8538 (mn10300_handle_option): Update to new hook interface.
8539 * config/pa/pa.c: Include opts.h.
8540 (pa_handle_option): Update to new hook interface.
8541 * config/pdp11/pdp11.c: Include opts.h.
8542 (pdp11_handle_option): Update to new hook interface.
8543 * config/rs6000/rs6000.c: Include opts.h.
8544 (rs6000_handle_option): Update to new hook interface.
8545 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8546 * config/rx/rx.c: Include opts.h.
8547 (rx_handle_option): Update to new hook interface.
8548 * config/s390/s390.c: Include opts.h.
8549 (s390_handle_option): Update to new hook interface.
8550 * config/score/score.c: Include opts.h.
8551 (score_handle_option): Update to new hook interface.
8552 * config/sh/sh.c: Include opts.h.
8553 (sh_handle_option): Update to new hook interface.
8554 * config/sparc/sparc.c: Include opts.h.
8555 (sparc_handle_option): Update to new hook interface.
8556 * config/v850/v850.c: Include opts.h.
8557 (v850_handle_option): Update to new hook interface.
8558
66017846
JM
85592011-03-22 Joseph Myers <joseph@codesourcery.com>
8560
8561 * gcc.c (driver_unknown_option_callback): Only permit and save
8562 unknown -Wno- options.
8563 (driver_wrong_lang_callback): Save options directly instead of via
8564 driver_unknown_option_callback.
8565
e8b97ccd
EB
85662011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8567
8568 * combine.c (simplify_set): Try harder to find the best CC mode when
8569 simplifying a nested COMPARE on the RHS.
8570
ebb9f8b0
JM
85712011-03-22 Joseph Myers <joseph@codesourcery.com>
8572
8573 * config/alpha/gnu.h: Remove.
8574 * config/arc: Remove directory.
8575 * config/arm/netbsd.h: Remove.
8576 * config/arm/t-pe: Remove.
8577 * config/crx: Remove directory.
8578 * config/i386/netbsd.h: Remove.
8579 * config/m68hc11: Remove directory.
8580 * config/m68k/uclinux-oldabi.h: Remove.
8581 * config/mcore/mcore-pe.h: Remove.
8582 * config/mcore/t-mcore-pe: Remove.
8583 * config/netbsd-aout.h: Remove.
8584 * config/rs6000/gnu.h: Remove.
8585 * config/sh/sh-symbian.h: Remove.
8586 * config/sh/symbian-base.c: Remove.
8587 * config/sh/symbian-c.c: Remove.
8588 * config/sh/symbian-cxx.c: Remove.
8589 * config/sh/symbian-post.h: Remove.
8590 * config/sh/symbian-pre.h: Remove.
8591 * config/sh/t-symbian: Remove.
8592 * config/svr3.h: Remove.
8593 * config/vax/netbsd.h: Remove.
8594 * config.build: Don't handle i[34567]86-*-pe.
8595 * config.gcc: Remove handling of deprecations for most deprecated
8596 targets.
8597 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8598 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8599 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8600 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8601 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8602 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8603 Remove cases.
8604 * config.host: Don't handle i[34567]86-*-pe.
8605 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8606 (ASM_SPEC32): Don't handle -mcall-gnu.
8607 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8608 -mcall-gnu.
8609 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8610 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8611 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8612 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8613 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8614 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8615 conditional on SYMBIAN.
8616 * configure.ac: Don't handle powerpc*-*-gnu*.
8617 * configure: Regenerate.
8618 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8619 * doc/install-old.texi (m6811, m6812): Don't mention.
8620 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8621 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8622 (m68k-uclinuxoldabi): Don't mention.
8623 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8624 Remove.
8625 (-mcall-gnu): Remove.
8626 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8627 families): Remove constraint documentation.
8628
999a7d80
MS
86292011-03-22 Marius Strobl <marius@FreeBSD.org>
8630
8631 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8632 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8633 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8634
45540bcf
MM
86352011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8636
8637 PR target/48226
8638 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8639 vector when peeking at the next token for vector, don't expand the
8640 keywords.
8641
980a0ff4
GJL
86422011-03-21 Georg-Johann Lay <avr@gjlay.de>
8643
8644 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8645 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8646 * config/avr/avr.c (init_cumulative_args)
8647 (avr_function_arg_advance): Use it.
8648 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8649 sibcall epilogues.
8650 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8651 (avr_function_ok_for_sibcall): ...this new function.
8652 (avr_lookup_function_attribute1): New static Function.
8653 (avr_naked_function_p, interrupt_function_p)
8654 (signal_function_p, avr_OS_task_function_p)
8655 (avr_OS_main_function_p): Use it.
8656 * config/avr/avr.md ("sibcall", "sibcall_value")
8657 ("sibcall_epilogue"): New expander.
8658 ("*call_insn", "*call_value_insn"): New insn.
8659 ("call_insn", "call_value_insn"): Remove
8660 ("call", "call_value", "epilogue"): Change expander to handle
8661 sibling calls.
8662
49168734
NC
86632011-03-21 Nick Clifton <nickc@redhat.com>
8664
8665 * doc/invoke.texi (Overall Options): Move closing brace to end of
8666 options list.
8667 (Optimization Options): Add missing @gol.
8668 (Directory Options): Likewise.
8669 (i386 and x86-64 Options): Likewise.
8670 (RS6000 and PowerPC Options): Likewise.
8671 (i386 and x86-64 Windows Options): Likewise.
8672 (V850 Options): Add text missing from descriptions.
8673
bdfe906f
RH
86742011-03-22 Richard Henderson <rth@redhat.com>
8675
8676 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8677 (avr_incoming_return_addr_rtx): New.
8678 (emit_push_byte): New.
8679 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8680 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8681 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8682 (emit_pop_byte): New.
8683 (expand_epilogue): Use it. Pop frame pointer by bytes.
8684 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8685 (INCOMING_RETURN_ADDR_RTX): New.
8686 (INCOMING_FRAME_SP_OFFSET): New.
8687 (ARG_POINTER_CFA_OFFSET): New.
8688 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8689 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8690 (pophi): Remove.
8691
d090a5aa
RH
8692 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8693
fdf3e18a
NF
86942011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8695
8696 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8697 (FUNCTION_ARG_ADVANCE): Likewise.
8698 * tm.texi.in: Change references to them to hook references.
8699 * tm.texi: Regenerate.
8700 * targhooks.c (default_function_arg): Eliminate check for target
8701 macro.
8702 (default_function_incoming_arg): Likewise.
8703 (default_function_arg_advance): Likewise.
c78dd519 8704 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
8705 (function_arg_advance): Likewise.
8706 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8707
009d3fcf
NF
87082011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8709
8710 * tree.c (build_call_1): New function.
8711 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8712
7bec30e1
RG
87132011-03-22 Richard Guenther <rguenther@suse.de>
8714
8715 PR tree-optimization/48228
8716 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8717 for single-arg PHIs.
8718
0b7e851b
AB
87192011-03-22 Andrey Belevantsev <abel@ispras.ru>
8720
8721 PR rtl-optimization/48143
8722 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8723 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8724 sse2_cvtps2pd): Likewise.
8725
d89afca5
AK
87262011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8727
8728 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8729
f471fe72
RG
87302011-03-22 Richard Guenther <rguenther@suse.de>
8731
8732 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8733 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8734 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8735 and REALIGN_LOAD_EXPR.
8736 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8737 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8738 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8739 DOT_PROD_EXPR case ...
8740 (expand_expr_real_2): ... here.
8741 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8742 and REALIGN_LOAD_EXPR.
8743 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8744 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8745 (vect_create_epilog_for_reduction): Likewise.
8746 (vectorizable_reduction): Likewise.
8747 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8748 * tree-vect-stmts.c (vectorizable_load): Likewise.
8749
f2f81d57
EB
87502011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8751
8752 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8753
ab081dd6
AK
87542011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8755
8756 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8757 handling for PLTOFF/GOTOFF.
8758
6fd5332b
NC
87592011-03-22 Nick Clifton <nickc@redhat.com>
8760
8761 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8762 trailing backslash from the end of the macro definition.
8763
01841ac0
AK
87642011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8765
8766 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8767 and PLT unspecs.
8768
2ef6ce06
RS
87692011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8770
8771 * expr.h (prepare_operand): Move to...
8772 * optabs.h (prepare_operand): ...here and change the insn code
8773 parameter from "int" to "enum insn_code".
8774 (insn_operand_matches): Declare.
8775 * expr.c (init_expr_target): Use insn_operand_matches.
8776 (compress_float_constant): Likewise.
8777 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8778 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8779 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
8780 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8781 Likewise.
2ef6ce06
RS
8782 (gen_cond_trap): Likewise.
8783 (prepare_operand): Likewise. Change icode to an insn_code.
8784 (insn_operand_matches): New function.
8785 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8786 * reload1.c (gen_reload): Likewise.
8787 * targhooks.c (default_secondary_reload): Likewise.
8788
9e43ad68
UB
87892011-03-21 Uros Bizjak <ubizjak@gmail.com>
8790
9a96da32
UB
8791 * config/alpha/alpha.md (unspec): New define_c_enum.
8792 (unspecv): Ditto.
8793
87942011-03-21 Uros Bizjak <ubizjak@gmail.com>
8795
8796 PR debug/48214
9e43ad68
UB
8797 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8798 between a call and its CALL_ARG_LOCATION note.
8799
31408f60
EB
88002011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8801
8802 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8803
88042011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
8805
8806 PR c/42544
8807 PR c/48197
8808 * c-common.c (shorten_compare): If primopN is first sign-extended
8809 to opN and then zero-extended to result type, set primopN to opN.
8810
9dfd55f5
DJ
88112011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8812
8813 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8814 for barrier handlers.
8815
f3c33d9d
MM
88162011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8817
8818 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8819 UNSPEC constants to be in the unspec enumeration, and redefine
8820 all UNSPECV constants to be in the unspecv enumeration, so that
8821 dumps print which unspec/unspec_volatile this is.
8822 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8823 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8824 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8825 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8826 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8827
8828 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8829 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8830 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8831 * config/rs6000/sync.md (isync, lwsync): Ditto.
8832
ac43f774
RG
88332011-03-21 Richard Guenther <rguenther@suse.de>
8834
8835 * params.def (lto-min-partition): Fix typo.
8836
411cdbd8
RG
88372011-03-21 Richard Guenther <rguenther@suse.de>
8838
8839 PR c/47939
8840 * c-decl.c (grokdeclarator): Drop to the main variant only
8841 for array types. Drop flag_gen_aux_info check.
8842
1cd9e416
RG
88432011-03-21 Richard Guenther <rguenther@suse.de>
8844
8845 PR translation/47911
8846 * params.def (lto-partitions): Fix typo.
8847 (lto-min-partition): Fix wording.
8848
ada5ad67
AT
88492011-03-21 Andreas Tobler <andreast@fgznet.ch>
8850
8851 * config/rs6000/t-freebsd: Remove duplication from file.
8852
f9613c9a
RG
88532011-03-21 Richard Guenther <rguenther@suse.de>
8854
8855 PR middle-end/47661
8856 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8857
9bfbc1eb
RG
88582011-03-21 Richard Guenther <rguenther@suse.de>
8859
8860 PR lto/48210
8861 * params.def (lto-partitions): Require at least 1 partition.
8862
a2268084
RO
88632011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8864
8865 * gthr-solaris.h: Remove.
8866 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8867 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8868 (LIB_SPEC): Likewise.
8869 * config/sol2.opt (threads): Remove.
9e43ad68 8870 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
8871 (sparc*-*-solaris2*): Likewise.
8872 * configure.ac (enable_threads): Enable solaris support.
8873 * configure: Regenerate.
9e43ad68 8874 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
8875 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8876 solaris.
8877
c43d9a1b
RO
88782011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8879
8880 * config.gcc: Obsolete *-*-solaris2.8*.
8881 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8882
084239f4
RO
88832011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8884
8885 PR bootstrap/48135
8886 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8887 reference. Solaris 8 perl works.
8888
64cadbe7
RO
88892011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8890
8891 PR bootstrap/48135
8892 * doc/install.texi (Prerequisites): Move jar etc. up.
8893 Explain support library version requirements.
8894
eb975109
RO
88952011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8896
8897 PR bootstrap/48135
8898 * doc/install.texi (Prerequisites): Move Perl to build
8899 requirements. Always necessary on Solaris 2 with Sun ld.
8900
8a509ffd
RO
89012011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8902
8903 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8904 binutils 2.21.
8905 (Specific, i?86-*-solaris2.[89]): Likewise.
8906 (Specific, i?86-*-solaris2.10): Likewise.
8907 (Specific, mips-sgi-irix6): Likewise.
8908 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8909 Update for binutils 2.21.
8910
8fbc58a1
RO
89112011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8912
8913 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8914 Allow -fuse-linker-plugin for non-default plugin linker.
8915 * configure: Regenerate.
8916
7e84ad0b
NP
89172011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8918
8919 PR bootstrap/48167
8920 * gengtype.c (files_rules): Added rule for cp/parser.h.
8921
2f36e14b
JJ
89222011-03-21 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR target/48213
8925 * config/s390/s390.c (s390_delegitimize_address): Don't call
8926 lowpart_subreg if orig_x has BLKmode.
8927
62d784f7
KT
89282011-03-21 Kai Tietz <ktietz@redhat.com>
8929
8930 PR target/12171
9e43ad68
UB
8931 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8932 * tree.h (attribute_spec): Add new member affects_type_identity.
8933 * attribs.c (empty_attribute_table): Adjust attribute_spec
8934 initializers.
62d784f7
KT
8935 * config/alpha/alpha.c: Likewise.
8936 * config/arc/arc.c: Likewise.
8937 * config/arm/arm.c: Likewise.
8938 * config/avr/avr.c: Likewise.
8939 * config/bfin/bfin.c: Likewise.
8940 * config/crx/crx.c: Likewise.
8941 * config/darwin.h: Likewise.
8942 * config/h8300/h8300.c: Likewise.
8943 * config/i386/cygming.h: Likewise.
8944 * config/i386/i386.c: Likewise.
8945 * config/ia64/ia64.c: Likewise.
8946 * config/m32c/m32c.c: Likewise.
8947 * config/m32r/m32r.c: Likewise.
8948 * config/m68hc11/m68hc11.c: Likewise.
8949 * config/m68k/m68k.c: Likewise.
8950 * config/mcore/mcore.c: Likewise.
8951 * config/mep/mep.c: Likewise.
8952 * config/microblaze/microblaze.c: Likewise.
8953 * config/mips/mips.c: Likewise.
8954 * config/rs6000/rs6000.c: Likewise.
8955 * config/rx/rx.c: Likewise.
8956 * config/sh/sh.c: Likewise.
8957 * config/sol2.h: Likewise.
8958 * config/sparc/sparc.c: Likewise.
8959 * config/spu/spu.c: Likewise.
8960 * config/stormy16/stormy16.c: Likewise.
8961 * config/v850/v850.c: Likewise.
8962
54833ec0
CLT
89632011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8964
8965 * simplify-rtx.c (simplify_binary_operation_1): Handle
8966 (xor (and A B) C) case when B and C are both constants.
8967
14a41392
MX
89682011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8969
8970 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8971
806c3492
EB
89722011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8973
8974 PR bootstrap/48168
8975 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8976
65e0a0f3
JJ
89772011-03-20 Jakub Jelinek <jakub@redhat.com>
8978
8979 PR rtl-optimization/48156
8980 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8981 assume df and df_lr are not NULL.
8982
b6a75dda
RR
89832011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8984
8985 PR debug/48023
8986 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8987 between a call and its CALL_ARG_LOCATION note.
8988
5969b52d
KK
89892011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8990
8991 PR debug/48178
8992 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8993 between a call and its corresponding CALL_ARG_LOCATION note.
8994
f773c2bd
AS
89952011-03-19 Anatoly Sokolov <aesok@post.ru>
8996
8997 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8998 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8999 * haifa-sched.c (setup_ref_regs): Ditto.
9000 * caller-save.c (add_used_regs_1): Ditto.
9001 * dse.c (look_for_hardregs): Ditto.
9002 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9003 * sched-rgn.c (check_live_1): Ditto.
9004
8bf872f9
JM
90052011-03-18 Joseph Myers <joseph@codesourcery.com>
9006
9007 * c-decl.c (diagnose_mismatched_decls): Give an error for
9008 redefining a typedef with variably modified type.
9009
ff8e2159
JM
90102011-03-18 Joseph Myers <joseph@codesourcery.com>
9011
9012 * c-decl.c (grokfield): Don't allow typedefs for structures or
9013 unions with no tag by default.
9014 * doc/extend.texi (Unnamed Fields): Update.
9015
16cc4440
UB
90162011-03-18 Uros Bizjak <ubizjak@gmail.com>
9017
9018 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9019 Rewrite using indirect functions.
9020 (lwp_slwpcb): Ditto.
9021 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9022 (avx_vinsertf128<mode>): Ditto.
9023
e101e12e
AK
90242011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9025
9026 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9027 unspecs.
9028
4627c7fb
AK
90292011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9030
9031 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 9032 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 9033
2d36b47f
MK
90342011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9035
9036 PR rtl-optimization/48170
9037 * gcse.c (hoist_code): Remove bogus asserts.
9038
2a3d7659
JL
90392011-03-18 Georg-Johann Lay <avr@gjlay.de>
9040
9041 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9042 computation for prologue/epilogue.
9043
34c3ef05
RO
90442011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9045
9046 * Makefile.in (check-consistency): Remove.
9047
81f2b976
JJ
90482011-03-18 Jakub Jelinek <jakub@redhat.com>
9049
9050 PR debug/48176
9051 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9052 arange_table_in_use is 0, but either text_section_used or
9053 cold_text_section_used is true. Don't call it if
9054 !info_section_emitted.
9055
68fd7765
AS
90562011-03-18 Anatoly Sokolov <aesok@post.ru>
9057
9058 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9059 FUNCTION_VALUE_REGNO_P): Remove.
9060 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9061 Remove.
9062 * config/avr/avr.c (avr_ret_register): Make static inline.
9063 (avr_function_value_regno_p): New function.
9064 (avr_libcall_value): Make static. Add 'func' argument.
9065 (avr_function_value): Make static. Rename 'func' argument to
9066 'fn_decl_or_type', forward it to avr_libcall_value. Call
9067 avr_ret_register function instead of RET_REGISTER macro.
9068 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9069
b4ef8aac
JM
90702011-03-18 Jason Merrill <jason@redhat.com>
9071
9072 PR c++/23372
9073 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9074
09a52fc3
RG
90752011-03-18 Richard Guenther <rguenther@suse.de>
9076
9077 * doc/install.texi (--enable-gold): Remove.
9078 (--with-plugin-ld): Document.
9079 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9080
2a3d7659 90812011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
9082
9083 PR middle-end/47790
9084 * expr.c (optimize_bitfield_assignment_op): Revamp to work
9085 again after expansion changes.
9086
2abbb0fe
CLT
90872011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
9088
9089 * combine.c (try_combine): Do simplification only call of
9090 subst() on i2 even when i1 is present. Update comments.
9091
2efd0aa6
KK
90922011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
9093
9094 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
9095 and UNSPEC_PCREL_SYMOFF.
9096
30a49b23
AK
90972011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9098
9099 * config/s390/s390.md: Use define_c_enum for the unspec constant
9100 definitions.
9101
419e1853
JJ
91022011-03-18 Richard Henderson <rth@redhat.com>
9103 Jakub Jelinek <jakub@redhat.com>
9104
9105 PR bootstrap/48161
9106 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
9107 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
9108
37875856
L
91092011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9110
9111 PR middle-end/47725
9112 * combine.c (cant_combine_insn_p): Don't check zero/sign
9113 extended hard registers.
9114
76069764
L
91152011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9116
9117 PR middle-end/47725
9118 * combine.c (cant_combine_insn_p): Check zero/sign extended
9119 hard registers.
9120
24da2019
AS
91212011-03-17 Anatoly Sokolov <aesok@post.ru>
9122
9123 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9124 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
9125 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
9126 Change return type to bool.
9127 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9128
a82ff31f
JJ
91292011-03-17 Jakub Jelinek <jakub@redhat.com>
9130
8b29c87a
JJ
9131 PR debug/48163
9132 * var-tracking.c (prepare_call_arguments): If CALL target
9133 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
9134 pc instead of looking it up using cselib_lookup and use
9135 Pmode for it if x has VOIDmode.
9136 * dwarf2out.c (gen_subprogram_die): If also both first and
9137 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
9138
a82ff31f
JJ
9139 PR debug/48163
9140 * function.c (assign_parms): For data.passed_pointer parms
9141 use MEM of data.entry_parm instead of data.entry_parm itself
9142 as DECL_INCOMING_RTL.
9143 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
9144 also when passed and declared mode is the same, DECL_RTL
9145 is a MEM with pseudo as address and DECL_INCOMING_RTL is
9146 a MEM too.
9147
82ce305c
JL
91482011-03-16 Jeff Law <law@redhat.com>
9149
9150 PR rtl-optimization/37273
9151 * ira-costs.c (scan_one_insn): Detect constants living in memory and
9152 handle them like argument loads from stack slots. Do not double
9153 count memory for memory constants and argument loads from stack slots.
9154
fe58e02b
L
91552011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9156
9157 PR debug/48160
9158 * var-tracking.c (prepare_call_arguments): Check SUBREG.
9159
6fc4dbc7
L
91602011-03-17 H.J. Lu <hongjiu.lu@intel.com>
9161
9162 PR target/48171
9163 * config/i386/i386.opt: Add Save to -mavx and -mfma.
9164
db3ed0b3
JJ
91652011-03-17 Jakub Jelinek <jakub@redhat.com>
9166
8054a389
JJ
9167 PR bootstrap/48153
9168 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
9169 if dwarf_strict.
9170 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
9171 Clear call_arg_locations and call_arg_loc_last always.
9172
db3ed0b3
JJ
9173 PR middle-end/48152
9174 * var-tracking.c (prepare_call_arguments): If argument needs to be
9175 passed by reference, adjust argtype and mode.
9176
1bce4ff3
RG
91772011-03-17 Richard Guenther <rguenther@suse.de>
9178
9179 PR middle-end/48134
9180 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
9181 a value make sure to fold the statement.
9182
7c71147d
CLT
91832011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
9184
9185 PR target/43872
9186 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
9187 return condition with !cfun->calls_alloca.
9188
0e1ee172
RG
91892011-03-17 Richard Guenther <rguenther@suse.de>
9190
9191 PR bootstrap/48148
9192 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9193 origin for decls in other ltrans units.
9194 (input_varpool_node): Likewise.
9195
f8bce518
RG
91962011-03-17 Richard Guenther <rguenther@suse.de>
9197
9198 PR middle-end/48165
9199 * tree-object-size.c (compute_object_offset): Properly return
9200 the offset operand of MEM_REFs as sizetype.
9201
1b6fa860
JJ
92022011-03-17 Jakub Jelinek <jakub@redhat.com>
9203
dabd47e7
JJ
9204 PR rtl-optimization/48141
9205 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9206 * dse.c: Include params.h.
9207 (active_local_stores_len): New variable.
9208 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9209 to NULL.
9210 (record_store, check_mem_read_rtx): Decrease it when removing
9211 from the chain.
9212 (scan_insn): Likewise. Increase it when adding to chain, if it
9213 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9214 set active_local_stores to NULL before the addition.
9215 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9216
1b6fa860
JJ
9217 PR rtl-optimization/48141
9218 * dse.c (record_store): If no positions are needed in an insn
9219 that cannot be deleted, at least unchain it from active_local_stores.
9220
7b5cb7d6
DS
92212011-03-16 Dodji Seketeli <dodji@redhat.com>
9222
9223 PR debug/47510
9224 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9225 (lookup_type_die_strip_naming_typedef): ... here.
9226 (get_context_die): Use it.
9227 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9228 the anonymous struct named by the naming typedef.
9229
585e9d9d
L
92302011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9231
9232 PR target/48154
9233 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9234 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9235
6261ab0e
JL
92362011-03-16 Jeff Law <law@redhat.com>
9237
9238 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 9239 check for operands of conditional. Allow type to be a pointer.
6261ab0e 9240
0b0081ec
RG
92412011-03-16 Richard Guenther <rguenther@suse.de>
9242
9243 PR tree-optimization/48149
9244 * fold-const.c (fold_binary_loc): Fold
9245 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9246
64a3d647
RG
92472011-03-16 Richard Guenther <rguenther@suse.de>
9248
9249 PR tree-optimization/26134
9250 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9251 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9252 (non_rewritable_mem_ref_base): Handle complex type component
9253 accesses, constrain offsets for vector and complex extracts
9254 more properly.
9255
ef13324e
RG
92562011-03-16 Richard Guenther <rguenther@suse.de>
9257
9258 PR tree-optimization/48146
9259 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9260 operands avoiding the need for renaming.
9261
f0eddb90
RG
92622011-03-16 Richard Guenther <rguenther@suse.de>
9263
9264 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9265 constant folding. Move MEM_REF canonicalization first.
9266 Rely on fold_const_aggregate_ref for initializer folding.
9267 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9268
e42348b8
JJ
92692011-03-16 Jakub Jelinek <jakub@redhat.com>
9270
29f10e71
JJ
9271 PR middle-end/48136
9272 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9273 arg0/arg1 or their arguments are always fold converted to matching
9274 types.
9275
e42348b8
JJ
9276 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9277 to nargs.
9278
55b46574
RO
92792011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9280
9281 PR lto/46944
9282 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9283 Handle in-tree gold.
9284 (ld_vers): Extract binutils version for gold.
9285 (gcc_cv_ld_hidden): Handle gold here.
9286 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9287 * configure: Regenerate.
9288 * config.in: Regenerate.
9289 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9290 -fuse-linker-plugin otherwise.
9291 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9292 (LINK_COMMAND_SPEC): Use it.
9293 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9294
2b1c5433
JJ
92952011-03-16 Jakub Jelinek <jakub@redhat.com>
9296
c2969d8e
JJ
9297 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9298 * calls.c: Remove debug.h include.
9299 (emit_call_1): Don't call virtual_call_token debug hook.
9300 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9301 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9302 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9303 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9304 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9305 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9306 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9307 dwarf2out_virtual_call): Remove.
9308 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9309 copy_call_info and virtual_call hooks.
9310 (dwarf2out_init): Don't initialize vcall_insn_table,
9311 debug_dcall_section and debug_vcall_section.
9312 (prune_unused_types): Don't mark nodes from dcall_table.
9313 (dwarf2out_finish): Don't output dcall or vcall tables.
9314 * final.c (final_scan_insn): Don't call direct_call or
9315 virtual_call debug hooks.
9316 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9317 virtual_call_token, copy_call_info and virtual_call hooks.
9318 (debug_nothing_uid): Remove prototype.
9319 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9320 copy_call_info and virtual_call hooks.
9321 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9322 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9323 * debug.c (do_nothing_debug_hooks): Likewise.
9324 (debug_nothing_uid): Remove.
9325 * doc/invoke.texi (-fenable-icf-debug): Remove.
9326 * common.opt (-fenable-icf-debug): Likewise.
9327
325f5379
JJ
9328 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9329 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9330 call's MEM. Handle functions returning aggregate through a hidden
9331 first pointer. For virtual calls add clobbered pc to call arguments
9332 chain.
9333 * dwarf2out.c (gen_subprogram_die): Emit
9334 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9335 can't be emitted.
9336
a58a8e4b
JJ
9337 PR debug/45882
9338 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9339 * rtl.h (ENTRY_VALUE_EXP): Define.
9340 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9341 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9342 * print-rtl.c (print_rtx): Likewise.
9343 * gengtype.c (adjust_field_rtx_def): Likewise.
9344 * var-tracking.c (vt_add_function_parameter): Adjust
9345 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9346 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9347 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9348 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9349 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9350
2b1c5433
JJ
9351 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9352 Call var_location debug hook even on CALL_INSNs.
9353 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9354 * rtl.def (ENTRY_VALUE): New.
9355 * dwarf2out.c: Include cfglayout.h.
9356 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9357 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9358 (struct call_arg_loc_node): New type.
9359 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9360 tail_call_site_count): New variables.
9361 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9362 DW_TAG_GNU_call_site_parameter.
9363 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9364 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9365 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9366 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9367 and DW_AT_GNU_all_source_call_sites.
9368 (mem_loc_descriptor): Handle ENTRY_VALUE.
9369 (add_src_coords_attributes): Don't add enything if
9370 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9371 (dwarf2out_abstract_function): Save and clear call_arg_location,
9372 call_site_count and tail_call_site_count around dwarf2out_decl call.
9373 (gen_call_site_die): New function.
9374 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9375 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9376 (dwarf2out_function_decl): Clear call_arg_locations,
9377 call_arg_loc_last, set call_site_count and tail_call_site_count
9378 to -1 and free block_map.
9379 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9380 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9381 followed by any real instructions.
9382 (dwarf2out_begin_function): Set call_site_count and
9383 tail_call_site_count to 0.
9384 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9385 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9386 attempt to force a DIE for it and worst case remove the attribute.
9387 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9388 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9389 the decl itself.
9390 * var-tracking.c: Include tm_p.h.
9391 (vt_stack_adjustments): For calls call note_register_arguments.
9392 (argument_reg_set): New variable.
9393 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9394 ensure the VALUE is resolved.
9395 (call_arguments): New variable.
9396 (prepare_call_arguments): New function.
9397 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9398 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9399 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9400 always use the best expression.
9401 (vt_expand_loc): Add ignore_cur_loc argument.
9402 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9403 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9404 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9405 note for all calls.
9406 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9407 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9408 argument. Don't call cselib_preserve_only_values and
9409 cselib_reset_table.
9410 (note_register_arguments): New function.
9411 (vt_initialize): Compute argument_reg_set. Call
9412 vt_add_function_parameters before processing basic blocks instead of
9413 afterwards. For calls call prepare_call_arguments before calling
9414 cselib_process_insn.
9415 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9416 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9417 (var-tracking.o): Depend on $(TM_P_H).
9418 * cfglayout.h (insn_scope): New prototype.
9419 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9420 * cfglayout.c (insn_scope): No longer static.
9421 * insn-notes.def (CALL_ARG_LOCATION): New.
9422 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9423 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9424 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9425 nothing for DECL_EXTERNAL BLOCK_VARS.
9426
9ef13bd0
AM
94272011-03-16 Alan Modra <amodra@gmail.com>
9428
9429 PR target/45844
9430 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9431 create invalid offset address for vsx splat insn.
9432 * config/rs6000/predicates.md (splat_input_operand): New.
9433 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9434
56b67510
XDL
94352011-03-15 Xinliang David Li <davidxl@google.com>
9436
9437 PR c/47837
9438 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9439 (normalize_preds): New function.
9440 (is_use_properly_guarded): Normalize def predicates.
9441
80fffdef
RR
94422011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9443
732f37c6 9444 PR target/46788
80fffdef
RR
9445 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9446 in the output template.
9447
930672ad
RG
94482011-03-15 Richard Guenther <rguenther@suse.de>
9449
9450 PR middle-end/47650
9451 * tree-pretty-print.c (dump_function_declaration): Properly
9452 dump unprototyped and varargs function types.
9453
c7ee7b45
RG
94542011-03-15 Richard Guenther <rguenther@suse.de>
9455
9456 PR tree-optimization/13954
9457 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9458 and friends.
9459
b2ad5e37
RG
94602011-03-15 Richard Guenther <rguenther@suse.de>
9461
9462 PR tree-optimization/48037
9463 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9464 selects into BIT_FIELD_REFs.
9465 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9466 vector select.
9467
7ee93d4e
JJ
94682011-03-15 Jakub Jelinek <jakub@redhat.com>
9469
9470 PR tree-optimization/48129
9471 * builtins.c (fold_builtin_snprintf): Convert to type of
9472 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9473 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9474
e106efc7
RG
94752011-03-15 Richard Guenther <rguenther@suse.de>
9476
9477 PR tree-optimization/41490
9478 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9479 value but with VUSE.
9480 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9481 return statements.
9482 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9483 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9484 * tree-tailcall.c (find_tail_calls): Ignore returns.
9485
17dea42f
RG
94862011-03-15 Richard Guenther <rguenther@suse.de>
9487
9488 PR middle-end/48031
9489 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9490 or variable-indexed array accesses when in gimple form.
9491
01c77a60
RG
94922011-03-15 Richard Guenther <rguenther@suse.de>
9493
16cc4440 9494 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 9495
77b0791e
AM
94962011-03-15 Alan Modra <amodra@gmail.com>
9497
9498 PR target/48032
9499 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9500 presume symbol_refs without a symbol_ref_decl are suitably
9501 aligned, nor other trees we may see here. Handle anchor symbols.
9502 (legitimate_constant_pool_address_p): Comment. Add mode param.
9503 Check cmodel=medium addresses. Adjust all calls.
9504 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9505 creating cmodel=medium optimized access to locals.
9506 * config/rs6000/constraints.md (R): Pass QImode to
9507 legitimate_constant_pool_address_p.
9508 * config/rs6000/predicates.md (input_operand): Pass mode to
9509 legitimate_constant_pool_address_p.
9510 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9511 Update prototype.
9512
35f61ba4
MM
95132011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9514
9515 PR target/48053
9516 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9517 64-bit constants being loaded into registers other than GPRs such
9518 as loading 0 into a VSX register.
9519
07332e6d
RO
95202011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9521
16cc4440 9522 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 9523
de888d90
JJ
95242011-03-14 Jakub Jelinek <jakub@redhat.com>
9525
ba3ceb2d
JJ
9526 PR middle-end/47917
9527 * builtins.c (fold_builtin_snprintf): New function.
9528 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9529 (fold_builtin_4): Likewise.
9530
2e64f8b8
JJ
9531 PR middle-end/38878
9532 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9533 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9534 and C - X == X also strip nops from +/-/p+ operand.
9535 When optimizing -X == C, fold C to arg0's type.
9536
de888d90
JJ
9537 PR debug/47946
9538 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9539 emit it as add_AT_int instead of add_AT_unsigned.
9540
95412011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
9542
9543 * unwind-dw2.c: Include sys/sdt.h if it exists.
9544 (_Unwind_DebugHook): Use STAP_PROBE2.
9545 * config.in, configure: Rebuild.
9546 * configure.ac: Check for sys/sdt.h.
9547
d34abfd2
UB
95482011-03-14 Uros Bizjak <ubizjak@gmail.com>
9549
9550 * config/i386/i386.md (ROUND_FLOOR): New constant.
9551 (ROUND_CEIL): Ditto.
9552 (ROUND_TRUNC): Ditto.
9553 (ROUND_MXCSR): Ditto.
9554 (ROUND_NO_EXC): Ditto.
9555 (rint<mode>2): Use new defines instead of numerical constants.
9556 (floor<mode>2): Ditto.
9557 (ceil<mode>2): Ditto.
9558 (btrunc<mode>2): Ditto.
9559 * config/i386/i386-builtin-types.def: Define ROUND function type
9560 aliases.
9561 * config/i386/i386.c (enum ix86_builtins): Add
9562 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9563 (struct builtin_description): Add
9564 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9565 (ix86_expand_sse_round): New static function.
9566 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9567 function types.
9568 (ix86_builtin_vectorized_function): Handle
9569 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9570
87f9e23d
TT
95712011-03-14 Tom Tromey <tromey@redhat.com>
9572
9573 * c-parser.c (c_parser_asm_string_literal): Clear
9574 warn_overlength_strings.
9575
b3ab9ea2
TT
95762011-03-14 Tom Tromey <tromey@redhat.com>
9577
9578 * c-parser.c (disable_extension_diagnostics): Save
9579 warn_overlength_strings.
9580 (restore_extension_diagnostics): Restore warn_overlength_strings.
9581
6bd73dd8
JJ
95822011-03-14 Jakub Jelinek <jakub@redhat.com>
9583
9584 * BASE-VER: Change to 4.7.0.
9585
7f4d6e1b
RG
95862011-03-14 Richard Guenther <rguenther@suse.de>
9587
9588 PR middle-end/48098
9589 * tree.c (build_vector_from_val): Adjust assert to requirements
9590 and reality.
9591
c6104ef1
JJ
95922011-03-14 Jakub Jelinek <jakub@redhat.com>
9593
9594 PR bootstrap/48102
d34abfd2 9595 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 9596
dfa95e19
AT
95972011-03-14 Andreas Tobler <andreast@fgznet.ch>
9598
f60c2554 9599 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
9600 terms of target_flags_explicit. Adjust copyright year.
9601
9602 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9603 * config/rs6000/t-freebsd: New file. Add override for
9604 LIB2FUNCS_EXTRA.
9605
bb322018
CD
96062011-03-13 Chris Demetriou <cgd@google.com>
9607
9608 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9609 (-fno-diagnostics-show-option): this, to reflect current default.
9610 (-Werror=): Update text about -fno-diagnostics-show-option.
9611
12b1c80b
PB
96122011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9613
9614 PR target/48053
9615 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9616 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9617 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9618 mode is not V2DImode or V2DFmode.
9619 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9620 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9621 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9622 registers to 0.
9623 (movdi_internal64): Likewise.
9624
57d598f7
SP
96252011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9626
9627 PR tree-optimization/47127
9628 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9629 parameter.
9630 (set_cloog_options): Same.
9631 (scop_to_clast): Same.
9632 (print_clast_stmt): Do not call cloog_state_malloc and
9633 cloog_state_free.
9634 (print_generated_program): Same.
9635 (gloog): Same.
9636 * graphite-clast-to-gimple.h (cloog_state): Declared.
9637 (scop_to_clast): Adjust declaration.
9638 * graphite.c (cloog_state): Defined here.
9639 (graphite_initialize): Call cloog_state_malloc.
9640 (graphite_finalize): Call cloog_state_free.
9641
f231b5ff
JM
96422011-03-11 Jason Merrill <jason@redhat.com>
9643
9644 * attribs.c (lookup_attribute_spec): Take const_tree.
9645 * tree.h: Adjust.
9646
6a4e2bd5
JM
96472011-03-11 Joseph Myers <joseph@codesourcery.com>
9648
9649 * config/sparc/sparc.c (sparc_option_override): Use
9650 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9651
a758fd67
RG
96522011-03-11 Richard Guenther <rguenther@suse.de>
9653
9654 PR tree-optimization/48067
9655 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9656 multiplication result will be only used once on the target
9657 stmt.
9658
03dfda54
RG
96592011-03-11 Richard Guenther <rguenther@suse.de>
9660
9661 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9662
5f11a50a
RG
96632011-03-11 Richard Guenther <rguenther@suse.de>
9664
9665 PR lto/48073
9666 * tree.c (find_decls_types_r): Do not walk types only reachable
9667 from IDENTIFIER_NODEs.
9668
4074f163
JJ
96692011-03-11 Jakub Jelinek <jakub@redhat.com>
9670
9671 PR middle-end/48044
9672 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9673 all vnode->force_output nodes as needed.
9674
30f7cdcd
JM
96752011-03-11 Jason Merrill <jason@redhat.com>
9676
9677 PR c++/48069
9678 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9679 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9680
62ecfeb8
MJ
96812011-03-11 Martin Jambor <mjambor@suse.cz>
9682
9683 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9684 cgraph_node.
9685
e89e03ab
JJ
96862011-03-11 Jakub Jelinek <jakub@redhat.com>
9687
9688 PR tree-optimization/48063
9689 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9690 inline functions called once if !tree_can_inline_p (node->callers).
9691
efbe978b 96922011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 9693
efbe978b
EB
9694 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9695 extra_objs.
9d6193a7
CL
9696 * config/score/score3.c: Delete.
9697 * config/score/score3.h: Delete.
9698 * config/score/mul-div.S: Delete.
9699 * config/score/sfp-machine.h: Add new file.
9700 * config/score/constraints.md: Add new file.
9701 * config/score/t-score-softfp: Add new file.
efbe978b 9702 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
9703 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9704 (score7_extra_constraint): Delete.
efbe978b 9705 (score7_option_override): Remove unused code.
9d6193a7
CL
9706 * config/score/score.c: Remove score3 and score5 define and code.
9707 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 9708 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
9709 * config/score/score.opt: Remove score3 and score5 options.
9710
5de27cca
JDA
97112011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9712
9713 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9714 when _HPUX_SOURCE is defined.
9715 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9716
18d92053
JM
97172011-03-10 Jason Merrill <jason@redhat.com>
9718
9719 PR c++/48029
9720 * stor-layout.c (layout_type): Don't set structural equality
9721 on arrays of incomplete type.
9722 * tree.c (type_hash_eq): Handle comparing them properly.
9723
67a2f76d
JJ
97242011-03-10 Jakub Jelinek <jakub@redhat.com>
9725
9726 PR debug/48043
18d92053 9727 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
9728 result mode matches original rtl mode.
9729
d845b2f9
NC
97302011-03-10 Nick Clifton <nickc@redhat.com>
9731
9732 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 9733 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 9734
db7ec035
JJ
97352011-03-09 Jakub Jelinek <jakub@redhat.com>
9736
9737 PR rtl-optimization/47866
9738 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9739 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9740 if target wasn't scalar.
9741 * function.c (assign_stack_temp_for_type): Assert that neither
9742 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9743 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9744 macro.
9745 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9746
5d304e47
AK
97472011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9748
9749 * config/s390/s390-protos.h (s390_label_align): New prototype.
9750 * config/s390/s390.c (s390_label_align): New function.
9751 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9752
93b826f0
MM
97532011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9754
9755 PR target/47755
9756 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9757 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9758 (output_vec_const_move): Ditto.
9759
ef78aed6
AS
97602011-03-08 Anatoly Sokolov <aesok@post.ru>
9761
9762 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9763 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9764 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9765 Change 'rclass' argument and result type to reg_class_t.
9766 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9767
5f892aa0
GJL
97682011-03-08 Georg-Johann Lay <avr@gjlay.de>
9769
9e43ad68
UB
9770 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9771 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9772 (TARGET_MEMORY_MOVE_COST): Define.
9773 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 9774
32bd2409
JJ
97752011-03-08 Jakub Jelinek <jakub@redhat.com>
9776
530a4800
JJ
9777 PR debug/47881
9778 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9779 removed anything.
9780
32bd2409
JJ
9781 PR tree-optimization/48022
9782 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9783 for EQ/NE_EXPR.
9784
c7148991
JJ
97852011-03-07 Jakub Jelinek <jakub@redhat.com>
9786
9787 PR debug/47991
9788 * var-tracking.c (find_use_val): Return NULL for
9789 cui->sets && cui->store_p BLKmode MEMs.
9790
43070a6e
AS
97912011-03-07 Anatoly Sokolov <aesok@post.ru>
9792
9793 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9794 Remove.
9795 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9796 xstormy16_print_operand_address): Remove.
9797 * config/stormy16/stormy16.c (xstormy16_print_operand,
9798 xstormy16_print_operand_address): Make static.
9799 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9800
efbe978b 98012011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
9802
9803 PR target/47862
9804 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9805 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9806 before definition.
9807
cec8ac0b
ZD
98082011-03-07 Zdenek Dvorak <ook@ucw.cz>
9809
9810 PR bootstrap/48000
9811 * cfgloopmanip.c (fix_bb_placements): Return immediately
9812 if FROM is BASE_LOOP's header.
9813
59527282
PW
98142011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9815
9816 * gimplify.c (gimplify_function_tree): Fix building calls
9817 to __builtin_return_address.
9818
617718f7
AM
98192011-03-07 Alan Modra <amodra@gmail.com>
9820
9821 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9822 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9823 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9824 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9825 return_mode args.
9826 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9827 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9828 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9829 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9830 * config/rs6000/rs6000.c
9831 (rs6000_elf_end_indicate_exec_stack): Rename to..
9832 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9833 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9834 (rs6000_file_start): ..here.
9835 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9836 file scope variables.
9837 (call_ABI_of_interest): New function.
9838 (init_cumulative_args): Set above vars when function return value
9839 is a float, vector, or small struct.
9840 (rs6000_function_arg_advance_1): Likewise for function args.
9841 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9842 references float args.
9843
38528d50
MX
98442011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9845
9846 * doc/cfg.texi: Remove "See" before @ref.
9847 * doc/invoke.texi: Likewise.
9848
f42cf4f4
JM
98492011-03-05 Jason Merrill <jason@redhat.com>
9850
9851 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9852
804a304d
AG
98532011-03-05 Anthony Green <green@moxielogic.com>
9854
9855 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9856
634ee309
ZD
98572011-03-05 Zdenek Dvorak <ook@ucw.cz>
9858
9859 PR rtl-optimization/47899
9860 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9861 to flow_loop_nested_p when moving the loop upward.
9862
6fe471c8
RE
98632011-03-05 Richard Earnshaw <rearnsha@arm.com>
9864
9865 PR target/47719
9866 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9867
cc58ceee
JJ
98682011-03-05 Jakub Jelinek <jakub@redhat.com>
9869
9870 PR tree-optimization/47967
9871 * ipa-cp.c (build_const_val): Return NULL instead of creating
9872 VIEW_CONVERT_EXPR for mismatching sizes.
9873 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9874 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9875 give up on versioning.
9876
ea868305
AM
98772011-03-05 Alan Modra <amodra@gmail.com>
9878
9879 PR target/47986
9880 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9881 full cmodel medium/large lo_sum + high addresses.
9882
bc6ce334
AK
98832011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9884
9885 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9886 pool references in UNSPEC_LTREL_OFFSET.
9887
87e7b310
JH
98882011-03-04 Jan Hubicka <jh@suse.cz>
9889
9890 PR lto/47497
9891 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9892 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
9893 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9894 Add node pointers.
87e7b310
JH
9895 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9896 cgraph_add_thunk): Add node pointers.
9897 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9898 associated to right node.
9899 (input_node): Update use of cgraph_same_body_alias
9900 and cgraph_add_thunk.
9901
d9c64246
CF
99022011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9903
9904 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
9905 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9906 modes when the flag -mprefer-avx128 is on.
d9c64246 9907
08707076
RS
99082011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9909
9910 * dwarf2out.c (compare_loc_operands): Fix address handling.
9911
52517c81
AM
99122011-03-04 Alan Modra <amodra@gmail.com>
9913
9914 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9915
b147c5b9
RG
99162011-03-04 Richard Guenther <rguenther@suse.de>
9917
9918 PR middle-end/47968
9919 * expmed.c (extract_bit_field_1): Prefer vector modes that
9920 vec_extract patterns can handle.
9921
8750672f
RG
99222011-03-04 Richard Guenther <rguenther@suse.de>
9923
9924 PR middle-end/47975
9925 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9926
9eac0f2a
RH
99272011-03-04 Richard Henderson <rth@redhat.com>
9928
9929 * explow.c (emit_stack_save): Remove 'after' parameter.
9930 (emit_stack_restore): Likewise.
9931 * expr.h: Update to match.
9932 * builtins.c, calls.c, stmt.c: Likewise.
9933 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9934 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9935 * function.c (expand_function_end): Insert the emit_stack_save
9936 sequence before parm_birth_insn instead of after.
9937
dfee1406
UB
99382011-03-03 Uros Bizjak <ubizjak@gmail.com>
9939
9940 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9941 (ssse3_pmaddubsw128): Ditto.
9942 (ssse3_pmaddubsw): Ditto.
9943
f1d4c3de
SE
99442011-03-03 Steve Ellcey <sje@cup.hp.com>
9945
9946 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9947
71f3a3f5
JJ
99482011-03-03 Jakub Jelinek <jakub@redhat.com>
9949
423ed416
JJ
9950 PR c/47963
9951 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9952 on TYPE_SIZE_UNIT if it is a DECL.
9953
71f3a3f5
JJ
9954 PR debug/47283
9955 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9956 first operand is not is_gimple_mem_ref_addr, try to fold it.
9957 If the operand still isn't is_gimple_mem_ref_addr, clear
9958 MEM_EXPR on op0.
9959
4b1a5c0d
RG
99602011-03-03 Richard Guenther <rguenther@suse.de>
9961
9962 PR middle-end/47283
9963 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9964 match comment.
9965 (refs_may_alias_p_1): For release branches return true if
9966 we are confused by our input.
9967
b46616fd
AK
99682011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9969
9970 * config/s390/s390.c (s390_function_value): Rename to ...
9971 (s390_function_and_libcall_value): ... this.
9972 (s390_function_value): New function.
9973 (s390_libcall_value): New function.
dfee1406 9974 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
9975 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9976 target macro definitions.
9977 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9978
46d8fabb
JM
99792011-03-02 Joseph Myers <joseph@codesourcery.com>
9980
9981 * config/i386/freebsd64.h (CC1_SPEC): Define.
9982 * config/i386/linux64.h (CC1_SPEC): Define.
9983 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9984
6b1ce545
AS
99852011-03-02 Anatoly Sokolov <aesok@post.ru>
9986
9987 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9988 Remove.
9989 * config/stormy16/stormy16.c: Include reload.h.
9990 (xstormy16_memory_move_cost): New function.
9991 (TARGET_MEMORY_MOVE_COST): Define.
9992
34161e98
RS
99932011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9994
9995 PR rtl-optimization/47925
9996 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9997 with side effects. Remove the more-specific check for volatile asms.
9998
f60a97cf
AM
99992011-03-02 Alan Modra <amodra@gmail.com>
10000
10001 PR target/47935
10002 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10003 toc relative addresses for valid offsets.
10004
f2ca11ca
RG
100052011-03-01 Richard Guenther <rguenther@suse.de>
10006
10007 PR tree-optimization/47890
10008 * tree-vect-loop.c (get_initial_def_for_induction): Set
10009 related stmt properly.
10010
7a00d9ea
RG
100112011-03-01 Richard Guenther <rguenther@suse.de>
10012
10013 PR lto/47924
10014 * lto-streamer.c (lto_record_common_node): Also register
10015 the canonical type.
10016
06c7edcc
RG
100172011-03-01 Richard Guenther <rguenther@suse.de>
10018
10019 PR lto/46911
10020 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10021 Do not stream DECL_ABSTRACT_ORIGIN.
10022 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10023 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10024 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10025 Do not stream DECL_ABSTRACT_ORIGIN.
10026 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10027 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10028
998871e9
AS
100292011-02-28 Anatoly Sokolov <aesok@post.ru>
10030
10031 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10032 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 10033 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
10034 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10035 Add 'outgoing' argument.
10036 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10037 function.
10038 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10039 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10040
94369251
KT
100412011-02-28 Kai Tietz <kai.tietz@onevision.com>
10042
10043 PR debug/28047
10044 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10045 (lookup_filename): Likewise.
b2e2ea67 10046 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 10047
80a832cd
JJ
100482011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10049 Jakub Jelinek <jakub@redhat.com>
10050
10051 PR middle-end/47893
10052 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10053 (assign_stack_local_1): Change last argument type to int.
10054 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10055 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 10056 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
10057 (assign_stack_local): Adjust caller.
10058 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10059 of assign_stack_local, pass 0 as last argument.
10060 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10061 callers.
10062
1b500976
JJ
100632011-02-28 Jakub Jelinek <jakub@redhat.com>
10064
f61c6f34
JJ
10065 PR debug/47283
10066 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10067 Use target address_mode and pointer_mode hooks instead of hardcoded
10068 Pmode and ptr_mode. Handle some simple cases of extending if
10069 POINTERS_EXTEND_UNSIGNED < 0.
10070 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10071 Call convert_debug_memory_address.
10072 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10073 convert_debug_memory_address.
10074
1b500976
JJ
10075 PR middle-end/46790
10076 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10077 * configure: Regenerated.
10078 * config.in: Regenerated.
10079 * varasm.c (default_function_section): Return NULL
b2e2ea67 10080 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 10081
2f2935b6
MJ
100822011-02-28 Martin Jambor <mjambor@suse.cz>
10083
10084 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
10085 the description to match the printed values.
10086
474086eb
RG
100872011-02-28 Richard Guenther <rguenther@suse.de>
10088
10089 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
10090 of the copied scope tree.
10091
15bf6f3a
RW
100922011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10093
10094 * doc/extend.texi (Function Attributes): Avoid deeply (and
10095 wrongly) nested tables.
10096
f6b439c9
JJ
100972011-02-27 Jakub Jelinek <jakub@redhat.com>
10098
10099 PR middle-end/47903
10100 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
10101 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
10102 r isn't op0 nor op1.
10103
1d8ca2c7
GJL
101042011-02-23 Georg-Johann Lay <avr@gjlay.de>
10105
10106 * config/avr/avr.md: Remove magic comment for emacs.
10107
593fca4b
GJL
101082011-02-23 Georg-Johann Lay <avr@gjlay.de>
10109
10110 PR target/45261
10111 * config/avr/avr.c (avr_option_override): Use error on bad options.
10112 (avr_help): New function.
10113 (TARGET_HELP): Define.
10114
6609216e
GJL
101152011-02-22 Georg-Johann Lay <avr@gjlay.de>
10116
10117 PR target/42240
10118 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
10119 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
10120
03d458af
GP
101212011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
10122
10123 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
10124 (ARM Options): Ditto.
10125 (i386 and x86-64 Options): Ditto.
10126 (RX Options): Ditto.
10127 (SPARC Options): Ditto.
10128
1c379b78
TC
101292011-02-26 Tijl Coosemans <tijl@coosemans.org>
10130
10131 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
10132 FreeBSD 6 and later. Generally use cpu generic.
10133
d5ed058c 101342011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 10135
d5ed058c
GP
10136 * doc/cpp.texi: Update copyright years.
10137
509d65dd 101382011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 10139
509d65dd 10140 PR target/46898
308d39cd
SB
10141 * config/lm32/lm32.md (ashrsi3): Added needed variable.
10142
509d65dd 101432011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 10144
509d65dd 10145 PR target/46898
308d39cd
SB
10146 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
10147 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
10148 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
10149 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 10150 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
10151 (gen_int_relational): Move declarations to start of function.
10152
822ba6d7
EB
101532011-02-25 Eric Botcazou <ebotcazou@adacore.com>
10154
10155 PR tree-optimization/45470
10156 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
10157 can throw internally only.
10158 * tree-vect-stmts.c (vectorizable_call): Likewise.
10159
ef795fc2
AS
101602011-02-24 Anatoly Sokolov <aesok@post.ru>
10161
10162 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
10163 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10164 * config/stormy16/stormy16-protos.h
10165 (xstormy16_preferred_reload_class): Remove.
10166 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
10167 static. Change 'rclass' argument and return type to reg_class_t.
10168 (TARGET_PREFERRED_RELOAD_CLASS,
10169 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10170
1c3277ee
RG
101712011-02-24 Richard Guenther <rguenther@suse.de>
10172
10173 * lto-streamer-in.c (input_bb): Do not find referenced vars
10174 in debug statements.
10175
67e18edb
JM
101762011-02-23 Jason Merrill <jason@redhat.com>
10177
10178 * common.opt (fabi-version): Document v5 and v6.
10179
b14fad9d
RG
101802011-02-23 Richard Guenther <rguenther@suse.de>
10181
10182 PR tree-optimization/47849
10183 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
10184
7fcf46f5
JZ
101852011-02-23 Jie Zhang <jie@codesourcery.com>
10186
10187 * opts-common.c (decode_cmdline_option): Print empty string
10188 argument as "" in decoded->orig_option_with_args_text.
10189 * gcc.c (execute): Print empty string argument as ""
10190 in the verbose output.
10191 (do_spec_1): Keep empty string argument.
10192
f85b70fd
NF
101932011-02-23 Nathan Froyd <froydnj@codesourcery.com>
10194
10195 * config.gcc: Declare score-* and crx-* obsolete.
10196
b152a615
JZ
101972011-02-23 Jie Zhang <jie@codesourcery.com>
10198
10199 PR rtl-optimization/47763
10200 * web.c (web_main): Ignore naked clobber when replacing register.
10201
bb6e77bc
AS
102022011-02-22 Anatoly Sokolov <aesok@post.ru>
10203
10204 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10205 Remove.
10206
68bf6491
SP
102072011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10208
10209 PR doc/47848
10210 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10211
88ee1fc7
MS
102122011-02-22 Mike Stump <mikestump@comcast.net>
10213
10214 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10215 assembler.
10216 * configure: Regenerate.
10217
6042d1dd
CLT
102182011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10219
10220 PR rtl-optimization/46002
10221 * ira-color.c (update_copy_costs): Change class intersection
10222 test to reg_class_contents[] test of 'hard_regno'.
10223
7de97f9e
JM
102242011-02-21 Joseph Myers <joseph@codesourcery.com>
10225
10226 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10227 than Driver option.
10228 * config/hpux11.opt (mt): Likewise.
10229 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10230 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10231 * config/vax/elf.opt (mno-asm-pic): Likewise.
10232 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10233
d1d46f9f
MS
102342011-02-21 Mike Stump <mikestump@comcast.net>
10235
10236 PR target/47822
10237 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10238 tree so we can get save the type.
10239 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10240 for CFString instead of trying to use past the end of the builtins.
10241 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10242 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10243 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10244 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10245 Rename to darwin_builtin_cfstring.
10246 (darwin_init_cfstring_builtins): Return the built type.
10247
23e0d930
UB
102482011-02-21 Uros Bizjak <ubizjak@gmail.com>
10249
10250 PR target/47840
10251 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10252 (_mm256_insert_epi64): Use _mm_insert_epi64.
10253
192997cf
AS
102542011-02-21 Anatoly Sokolov <aesok@post.ru>
10255
10256 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10257 * config/stormy16/stormy16-protos.h
10258 (xstormy16_mode_dependent_address_p): Remove.
10259 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10260 Make static. Change return type to bool. Change argument type to
10261 const_rtx. Remove dead code.
10262 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10263
e292d003
RG
102642011-02-21 Richard Guenther <rguenther@suse.de>
10265
10266 PR lto/47820
10267 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10268 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10269 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10270 TUs context.
23e0d930 10271 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
10272 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10273
77f846e9
RG
102742011-02-20 Richard Guenther <rguenther@suse.de>
10275
10276 PR lto/47822
10277 * tree.c (free_lang_data_in_decl): Clean builtins from
10278 the TU decl BLOCK_VARS.
23e0d930 10279
b2cddfc8
AO
102802011-02-19 Alexandre Oliva <aoliva@redhat.com>
10281
10282 PR debug/47620
10283 PR debug/47630
10284 * haifa-sched.c (fix_tick_ready): Skip tick computation
10285 for debug insns.
10286
becf4c11
RG
102872011-02-19 Richard Guenther <rguenther@suse.de>
10288
10289 PR lto/47647
10290 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10291 Remove lazy BLOCK_VARS streaming.
10292 (lto_input_ts_block_tree_pointers): Likewise.
10293 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10294
27f98305
JM
102952011-02-19 Joseph Myers <joseph@codesourcery.com>
10296
10297 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10298
064bf3f4
JM
102992011-02-19 Joseph Myers <joseph@codesourcery.com>
10300
10301 * config/i386/biarch32.h, config/i386/mach.h,
10302 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10303
9215ddc3
JJ
103042011-02-19 Jakub Jelinek <jakub@redhat.com>
10305
10306 PR target/47800
10307 * config/i386/i386.md (peephole2 for shift and plus): Use
10308 operands[1] original mode in the first insn.
10309
8b021004
MS
103102011-02-18 Mike Stump <mikestump@comcast.net>
10311
65ded153 10312 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 10313
f84ae14c
JH
103142011-02-18 Jan Hubicka <jh@suse.cz>
10315
10316 PR middle-end/47788
65ded153
EB
10317 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10318 to zero when the function is not inlinable at all.
f84ae14c 10319
eddabc80
JDA
103202011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10321
10322 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10323 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10324 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10325 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10326 * config/pa/t-pa64: Likewise.
10327 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10328
ca3da783
JJ
103292011-02-18 Jakub Jelinek <jakub@redhat.com>
10330
10331 PR driver/47787
10332 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10333
430aa868
JDA
103342011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10335
10336 PR target/47792
10337 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10338
4bf7ff7e
AS
103392011-02-18 Anatoly Sokolov <aesok@post.ru>
10340
10341 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10342 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10343 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10344 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10345 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10346 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10347 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10348 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10349 m32r_legitimate_address_p): New functions.
10350 * config/m32r/constraints.md (constraint "S"): Don't use
10351 STORE_PREINC_PREDEC_P.
10352 (constraint "U"): Don't use LOAD_POSTINC_P.
10353
7efcf910
CLT
103542011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10355
10356 PR rtl-optimization/46178
10357 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10358 compute ira_hard_regno_cover_class[].
10359
237d6259
RG
103602011-02-18 Richard Guenther <rguenther@suse.de>
10361
10362 PR lto/47798
10363 * lto-streamer.h (lto_global_var_decls): Declare.
10364 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10365 statics for global var processing.
10366
12d80acc
RG
103672011-02-18 Richard Guenther <rguenther@suse.de>
10368
10369 PR tree-optimization/47737
10370 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10371 edge dominance check.
10372
abfea58d
JJ
103732011-02-18 Jakub Jelinek <jakub@redhat.com>
10374
10375 PR debug/47780
10376 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10377 avoid invalid rtx sharing.
10378
f73c8882
GP
103792011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10380
10381 * doc/cpp.texi (Obsolete Features): Add background on the
10382 origin of assertions.
10383
d764a8e6
IS
103842011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10385
10386 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 10387 objc_abi == 2.
d764a8e6
IS
10388 * config/darwin.c (output_objc_section_asm_op): Added support for
10389 ABI v1 and v2.
10390 (is_objc_metadata): New.
10391 (darwin_objc2_section): New.
10392 (darwin_objc1_section): New.
10393 (machopic_select_section): Added support for ABI v1 and v2.
10394 (darwin_emit_objc_zeroed): New.
10395 (darwin_output_aligned_bss): Detect objc metadata and treat it
10396 appropriately.
10397 (darwin_asm_output_aligned_decl_common): Same.
10398 (darwin_asm_output_aligned_decl_local): Same.
10399 * config/darwin-sections.def: Updated for ABI v1 and v2.
10400 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10401 compiling Objective-C code for the NeXT runtime, default to using
10402 ABI version 0 for 32-bit, and version 2 for 64-bit.
10403
0a8134ca
JM
104042011-02-17 Joseph Myers <joseph@codesourcery.com>
10405
10406 * common.opt (optimize_fast): New Variable.
10407 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10408 instead of local variable ofast.
10409
0a256240
NP
104102011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10411
10412 * doc/invoke.texi (fobjc-abi-version): Documented.
10413 (fobjc-nilcheck): Documented.
10414 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10415 version.
10416
fa381cb2
JM
104172011-02-17 Joseph Myers <joseph@codesourcery.com>
10418
10419 PR driver/47390
10420 * common.opt (export-dynamic): New Driver option.
10421 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10422
5437eaa6
JM
104232011-02-17 Joseph Myers <joseph@codesourcery.com>
10424
10425 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10426
bb7e6d55
AO
104272011-02-17 Alexandre Oliva <aoliva@redhat.com>
10428 Jan Hubicka <jh@suse.cz>
10429
10430 PR debug/47106
10431 PR debug/47402
10432 * cfgexpand.c (account_used_vars_for_block): Remove.
10433 (estimated_stack_frame_size): Use referenced vars.
10434 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10435 that were referenced in the original function. Test src_fn
10436 rather than cfun. Drop redundant get_var_ann.
10437 (setup_one_parameter): Drop redundant get_var_ann.
10438 (declare_return_variable): Likewise.
10439 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10440 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10441 * ipa-inline.c (compute_inline_parameters): Do not compute
10442 disregard_inline_limits here.
bb7e6d55
AO
10443 (compute_inlinable_for_current, pass_inlinable): New.
10444 (pass_inline_parameters): Require PROP_referenced_vars.
10445 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 10446 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
10447 (cgraph_analyze_function): Set .disregard_inline_limits.
10448 * tree-sra.c (convert_callers): Compute inliner parameters
10449 only for functions already in SSA form.
10450
f181a8a7
JM
104512011-02-17 Joseph Myers <joseph@codesourcery.com>
10452
10453 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10454 -mlittle-endian-data.
10455
c6869789
JM
104562011-02-17 Joseph Myers <joseph@codesourcery.com>
10457
10458 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10459 -mno-fpu, not -fpu and -no-fpu.
10460 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10461 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10462
fbf4bfd3
UB
104632011-02-17 Uros Bizjak <ubizjak@gmail.com>
10464
10465 PR target/43653
10466 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10467 input reload with PLUS RTX.
10468
70be5dc7
JM
104692011-02-16 Joseph Myers <joseph@codesourcery.com>
10470
10471 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10472 of InverseVar(MDMX).
10473
30b1646e
JM
104742011-02-16 Joseph Myers <joseph@codesourcery.com>
10475
10476 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10477 --m4-340.
10478
ab7b71e9
JM
104792011-02-16 Joseph Myers <joseph@codesourcery.com>
10480
10481 * config/mn10300/mn10300.opt (mno-crt0): New.
10482
466f3f08
JM
104832011-02-16 Joseph Myers <joseph@codesourcery.com>
10484
10485 * config/m68k/uclinux.opt (static-libc): New Driver option.
10486
8226cd7b
JM
104872011-02-16 Joseph Myers <joseph@codesourcery.com>
10488
10489 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10490
45cab1d7
JM
104912011-02-16 Joseph Myers <joseph@codesourcery.com>
10492
10493 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10494 %{muser-extend-enabled}.
10495
65aab64f
RG
104962011-02-16 Richard Guenther <rguenther@suse.de>
10497
10498 PR tree-optimization/47738
10499 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10500 the TODO from tree_predictive_commoning.
10501
fc2fa4fb
JL
105022011-02-15 Jeff Law <law@redhat.com>
10503
10504 Revert
10505 2011-01-25 Jeff Law <law@redhat.com>
10506
10507 PR rtl-optimization/37273
10508 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10509 handle them like argument loads from stack slots. Do not double
10510 count memory for memory constants and argument loads from stack slots.
10511
4e380b8e
L
105122011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10513
10514 PR middle-end/47725
10515 * combine.c (cant_combine_insn_p): Revert the last change.
10516
e3a69bb4
MM
105172011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10518
10519 PR target/47755
10520 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10521 mode for vector constants. Remove code that checks for TImode.
10522
de650422
AO
105232011-02-15 Alexandre Oliva <aoliva@redhat.com>
10524
10525 PR debug/47106
10526 PR debug/47402
10527 * cgraph.h (compute_inline_parameters): Return void.
10528 * ipa-inline.c (compute_inline_parameters): Adjust.
10529
30925d94
AO
105302011-02-15 Alexandre Oliva <aoliva@redhat.com>
10531
10532 PR debug/47106
10533 PR debug/47402
10534 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10535 rather than decl.
10536 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10537 * ipa-inline.c (compute_inline_parameters): Adjust.
10538
1b9a784a
AO
105392011-02-15 Alexandre Oliva <aoliva@redhat.com>
10540
10541 PR debug/47106
10542 PR debug/47402
10543 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10544 Adjust all users. Pass FN to...
10545 * tree-flow-inline.h (first_referenced_var): ... this. Add
10546 fn argument.
10547 * ipa-struct-reorg.c: Adjust.
10548 * tree-dfa.c: Adjust.
10549 * tree-into-ssa.c: Adjust.
10550 * tree-sra.c: Adjust.
10551 * tree-ssa-alias.c: Adjust.
10552 * tree-ssa-live.c: Adjust.
10553 * tree-ssa.c: Adjust.
10554 * tree-ssanames.c: Adjust.
10555 * tree-tailcall.c: Adjust.
10556
27c6b086
AO
105572011-02-15 Alexandre Oliva <aoliva@redhat.com>
10558
10559 PR debug/47106
10560 PR debug/47402
10561 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10562 Adjust all callers.
10563 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10564 * tree-flow-inline.h: Adjust.
10565 * gimple-pretty-print.c: Adjust.
10566 * tree-into-ssa.c: Adjust.
10567 * tree-ssa.c: Adjust.
10568 * cfgexpand.c: Adjust.
10569
679e8183
NF
105702011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10571
fbf4bfd3
UB
10572 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10573 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10574 (EXTRA_CONSTRAINT): Delete.
10575 * config/iq2000/constraints.md: New file.
10576 * config/iq2000/iq2000.md: Include it.
679e8183
NF
10577 (define_insn ""): Delete.
10578 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10579 unsupported constraint letters from patterns.
10580 (call_value, call_value_internal1): Likewise.
10581 (call_value_multiple_internal1): Likewise.
10582
a45d420a
NC
105832011-02-15 Nick Clifton <nickc@redhat.com>
10584
10585 * config/mn10300/mn10300.c: Include tm-constrs.h.
10586 (struct liw_data): New data structure describing an LIW candidate
10587 instruction.
10588 (extract_bundle): Use struct liw_data. Allow small integer
10589 operands for some instructions.
10590 (check_liw_constraints): Use struct liw_data. Remove swapped
10591 parameter. Add comments describing the checks. Fix bug when
10592 assigning the source of liw1 to the source of liw2.
10593 (liw_candidate): Delete. Code moved into extract_bundle.
10594 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10595 before swapping.
10596 * config/mn10300/predicates.md (liw_operand): New predicate.
10597 Allows registers and small integer constants.
10598 * config/mn10300/constraints.md (O): New constraint. Accetps
10599 integers in the range -8 to +7 inclusive.
10600 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10601 for moving a small integer into a register. Give this alternative
10602 LIW attributes.
10603 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10604 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10605 using the J,K,L and M constraints,
10606 (liw): Remove SI mode on second operands to allow for HI and QI
10607 mode values.
10608 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10609 instruction.
10610
8a73faf1
L
106112011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10612
10613 PR middle-end/47725
10614 * combine.c (cant_combine_insn_p): Check zero/sign extended
10615 hard registers.
10616
48feba28
RG
106172011-02-15 Richard Guenther <rguenther@suse.de>
10618
10619 PR tree-optimization/47743
10620 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10621 for a non-type-compatible VN lookup bail out.
10622
ad1c1eeb
NF
106232011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10624
10625 * config/fr30/constraints.md: New file.
10626 * config/fr30/fr30.md: Include it.
10627 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10628 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10629 (EXTRA_CONSTRAINT): Delete.
10630
49ac143d
NF
106312011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10632
10633 * config/frv/constraints.md: New file.
10634 * config/frv/predicates.md: Include it.
10635 * config/frv/frv.c (reg_class_from_letter): Delete.
10636 (frv_option_override): Don't initialize it.
10637 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10638 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10639 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10640 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10641 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10642 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10643 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10644 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10645 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10646 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10647 (REG_CLASS_FROM_CONSTRAINT): Delete.
10648
c95f9494
JJ
106492011-02-15 Jakub Jelinek <jakub@redhat.com>
10650
10651 PR middle-end/47581
10652 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10653 if frame size is 0 in a leaf function.
10654
13aed611
RO
106552011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10656
10657 PR pch/14940
10658 * config/alpha/host-osf.c: New file.
10659 * config/alpha/x-osf: New file.
10660 * config.host (alpha*-dec-osf*): Use it.
10661
b09c3081
AS
106622011-02-14 Anatoly Sokolov <aesok@post.ru>
10663
10664 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10665 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10666 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10667 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10668 type to const_rtx.
10669 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10670
d634083b
NF
106712011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10672
10673 * config/stormy16/constraints.md: New file.
10674 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10675 Use satisfies_constraint_Q and satisfies_constraint_R.
10676 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10677 Delete.
10678 (xstormy16_legitiamte_address_p): Declare.
10679 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10680 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10681 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 10682 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
10683 Un-staticize.
10684 (xstormy16_extra_constraint_p): Delete.
10685
c7dd803e
EB
106862011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10687
10688 PR tree-optimization/46494
10689 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10690 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10691 (pass_rtl_loop_done): Add TODO_verify_flow.
10692 * fwprop.c (pass_rtl_fwprop): Likewise.
10693 * modulo-sched.c (pass_sms): Likewise.
10694 * tree-ssa-dom.c (pass_dominator): Likewise.
10695 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10696 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10697 (pass_tree_loop_done): Likewise.
10698 * tree-ssa-pre.c (execute_pre): Likewise.
10699 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10700 * tree-ssa-sink.c (pass_sink_code): Likewise.
10701 * tree-vrp.c (pass_vrp): Likewise.
10702
c6150df6
NF
107032011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10704
c7dd803e
EB
10705 * config/v850/constraints.md: New file.
10706 * config/v850/v850.md: Include it.
10707 * config/v850/predicates.md (reg_or_0_operand): Use
10708 satisfies_constraint_G.
10709 (special_symbolref_operand): Use satisfies_constraint_K.
10710 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10711 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10712 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10713 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10714 (EXTRA_CONSTRAINT): Delete.
10715 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10716 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10717 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 10718
30dd1ea3
AS
107192011-02-14 Anatoly Sokolov <aesok@post.ru>
10720
10721 PR target/47696
10722 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10723 description.
10724
944f4bb3
NF
107252011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10726
10727 * config/mcore/constraints.md: New file.
10728 * config/mcore/mcore.md: Include it.
10729 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10730 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10731 (REG_CLASS_FROM_LETTER): Delete.
10732 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10733 insn_const_int_ok_for_constraint.
10734 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10735 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10736 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10737 (EXTRA_CONSTRAINT): Delete.
10738
ad56a54c
RO
107392011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10740
10741 PR ada/41929
10742 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10743 (IS_SIGHANDLER): Define.
10744 (sparc64_is_sighandler): New function, split off from
10745 sparc64_fallback_frame_state.
10746 (sparc_is_sighandler): New function, split off from
10747 sparc_fallback_frame_state.
10748 (sparc64_fallback_frame_state): Merge with ...
10749 (sparc_fallback_frame_state): ... this into ...
10750 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
10751 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10752 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10753 stack instead of hardcoded offsets.
ad56a54c 10754
fbf4bfd3 107552011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
10756
10757 PR target/45808
10758 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10759
029c8f3e
RW
107602011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10761
10762 * configure: Regenerate.
10763
a016dc83
JM
107642011-02-12 Joseph Myers <joseph@codesourcery.com>
10765
10766 PR driver/45731
10767 * gcc.c (asm_options): Correct spec matching --target-help.
10768
8957a0ec
MJ
107692011-02-12 Martin Jambor <mjambor@suse.cz>
10770
10771 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10772 to gimple call error.
10773
6ef828bc
MS
107742011-02-12 Mike Stump <mikestump@comcast.net>
10775
10776 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10777 comments in backslash regions.
10778
a4015be5
MS
107792011-02-12 Mike Stump <mikestump@comcast.net>
10780 Jakub Jelinek <jakub@redhat.com>
10781 Iain Sandoe <iains@gcc.gnu.org>
10782
10783 PR target/47324
10784 * dwarf2out.c (output_cfa_loc): When required, apply the
10785 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10786 (output_loc_sequence): Likewise.
10787 (output_loc_operands_raw): Likewise.
10788 (output_loc_sequence_raw): Likewise.
10789 (output_cfa_loc): Likewise.
10790 (output_loc_list): Suppress register number adjustment when
10791 calling output_loc_sequence()
10792 (output_die): Likewise.
10793
5378dda2
AS
107942011-02-12 Anatoly Sokolov <aesok@post.ru>
10795
10796 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10797 Remove macros.
10798 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10799 xtensa_memory_move_cost): New functions.
10800 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10801
f3d533d3
AO
108022011-02-12 Alexandre Oliva <aoliva@redhat.com>
10803
10804 PR lto/47225
10805 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10806 in the current directory.
10807 * configure: Rebuilt.
10808
9d53403c
IS
108092011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10810
10811 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 10812 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
10813 correct indents of the preceding block.
10814
a350a6c8
IS
108152011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10816
10817 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10818 the switch.
10819
bab79a40
JM
108202011-02-11 Joseph Myers <joseph@codesourcery.com>
10821
10822 * common.opt (nostartfiles): New Driver option.
10823
1bbc6693
XDL
108242011-02-11 Xinliang David Li <davidxl@google.com>
10825
10826 PR tree-optimization/47707
10827 * tree-chrec.c (convert_affine_scev): Keep type precision.
10828
1da7d8c0
EB
108292011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10830
10831 PR tree-optimization/47420
10832 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10833
108342011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
10835
10836 PR rtl-optimization/47614
10837 * rtl.h (check_for_inc_dec): Declare.
10838 * dse.c (check_for_inc_dec): Externalize...
10839 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10840 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10841
4df47bca
JM
108422011-02-11 Joseph Myers <joseph@codesourcery.com>
10843
10844 PR driver/47678
10845 * gcc.c (main): Do not compile inputs if there were errors in
10846 option handling.
10847 * opts-common.c (read_cmdline_option): Check for wrong language
10848 after other error checks.
10849
61502ca8
NF
108502011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10851
10852 * cgraph.c: Fix comment typos.
10853 * cgraph.h: Likewise.
10854 * cgraphunit.c: Likewise.
10855 * ipa-cp.c: Likewise.
10856 * ipa-inline.c: Likewise.
10857 * ipa-prop.c: Likewise.
10858 * ipa-pure-const.c: Likewise.
10859 * ipa-ref.c: Likewise.
10860 * ipa-reference.c: Likewise.
10861
b63f974e
JJ
108622011-02-11 Jakub Jelinek <jakub@redhat.com>
10863
d50c5e0c
JJ
10864 PR debug/47684
10865 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 10866
6dd2a13c
RO
108672011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10868
10869 PR testsuite/47400
10870 * doc/sourcebuild.texi (Require Support): Document
10871 dg-require-ascii-locale.
10872
4a087ccf
MX
108732011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10874
10875 * doc/lto.texi (Write summary): Fix missing parentheses.
10876
a4403164
DD
108772011-02-10 DJ Delorie <dj@redhat.com>
10878
10879 * config/m32c/m32c.c (m32c_option_override): Disable
10880 -fcombine-stack-adjustments until flag value tracking and compare
10881 optimization can be rewritten.
10882
4fac45bd
PB
108832011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10884
10885 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10886 PROCESSOR_POWER7.
10887 (PROCESSOR_DEFAULT64): Likewise.
10888
72602cd1
RH
108892011-02-10 Richard Henderson <rth@redhat.com>
10890
10891 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10892 change from 2011-02-03.
10893 * config/rx/rx.c (flags_from_code): Likewise.
10894 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10895 is valid, n/pz otherwise.
10896 (rx_select_cc_mode): Return CCmode if Y is not zero.
10897
ea57f573
RG
108982011-02-10 Richard Guenther <rguenther@suse.de>
10899
ea4c3e65 10900 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 10901
92b1d23b
RG
109022011-02-10 Richard Guenther <rguenther@suse.de>
10903
10904 PR tree-optimization/47677
10905 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10906
525a2d06
JJ
109072011-02-10 Jakub Jelinek <jakub@redhat.com>
10908
10909 PR target/47665
10910 * combine.c (make_compound_operation): Only change shifts into
10911 multiplication for SCALAR_INT_MODE_P.
10912
06c969bd
JZ
109132011-02-10 Jie Zhang <jie@codesourcery.com>
10914
10915 PR testsuite/47622
10916 Revert
10917 2011-02-05 Jie Zhang <jie@codesourcery.com>
10918 PR debug/42631
10919 * web.c (entry_register): Don't clobber the number of the
10920 first uninitialized reference in used[].
10921
282ec48e
RG
109222011-02-09 Richard Guenther <rguenther@suse.de>
10923
10924 PR tree-optimization/47664
10925 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10926 all edges again.
10927
df98c3e8
DE
109282011-02-09 David Edelsohn <dje.gcc@gmail.com>
10929
d0f21cd6
DE
10930 PR target/46481
10931 PR target/47032
df98c3e8
DE
10932 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10933 PROCESSOR_POWER7.
10934 (PROCESSOR_DEFAULT64): Same.
10935 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10936
67b6839f
RO
109372011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10938
10939 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10940
4fd73214
MJ
109412011-02-09 Martin Jambor <mjambor@suse.cz>
10942
10943 PR middle-end/45505
10944 * tree-sra.c (struct access): New flags grp_scalar_read and
10945 grp_scalar_write. Changed description of assignment read and write
10946 flags.
10947 (dump_access): Dump new flags, reorder all of them.
10948 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10949 to detect multiple scalar reads.
10950 (analyze_access_subtree): Use the new scalar read write flags instead
10951 of the old flags. Adjusted comments.
10952
91140cd3
DD
109532011-02-08 DJ Delorie <dj@redhat.com>
10954
10955 PR target/47548
10956 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10957 patterns.
10958
4254bbfe
JM
109592011-02-08 Joseph Myers <joseph@codesourcery.com>
10960
10961 * config/m68k/uclinux.opt: New.
10962 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10963
f1fda84e
JM
109642011-02-08 Joseph Myers <joseph@codesourcery.com>
10965
10966 * config/cris/elf.opt (sim): New Driver option.
10967
4933ae74
JM
109682011-02-08 Joseph Myers <joseph@codesourcery.com>
10969
10970 * config/xtensa/elf.opt: New.
10971 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10972
4ad70280
JM
109732011-02-08 Joseph Myers <joseph@codesourcery.com>
10974
10975 * config/vax/elf.opt: New.
10976 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10977
20893707
JM
109782011-02-08 Joseph Myers <joseph@codesourcery.com>
10979
10980 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10981
b8e7038e
JM
109822011-02-08 Joseph Myers <joseph@codesourcery.com>
10983
10984 * config/gnu-user.opt: New.
10985 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10986 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10987 *-*-uclinux*): Use gnu-user.opt.
10988
e1c5225a
TS
109892011-02-08 Thomas Schwinge <thomas@schwinge.name>
10990
10991 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10992 * config/i386/gnu.h (CPP_SPEC): Likewise.
10993
5e46b0c6
ILT
109942011-02-08 Ian Lance Taylor <iant@google.com>
10995
10996 * common.opt (fcx-limited-range): Add SetByCombined flag.
10997 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10998 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10999 (fassociative-math, freciprocal-math): Likewise.
11000 (funsafe-math-optimizations): Likewise.
11001 * opth-gen.awk: Handle SetByCombined.
11002 * optc-gen.awk: Likewise.
ea4c3e65 11003 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
11004 (set_unsafe_math_optimizations_flags): Likewise.
11005 * doc/options.texi (Option properties): Document SetByCombined.
11006
32243d46
JM
110072011-02-08 Joseph Myers <joseph@codesourcery.com>
11008
11009 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11010 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11011 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11012 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11013 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11014
479c1fb3
SP
110152011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11016
11017 PR tree-optimization/46834
11018 PR tree-optimization/46994
11019 PR tree-optimization/46995
11020 * graphite-sese-to-poly.c (used_outside_reduction): New.
11021 (detect_commutative_reduction): Call used_outside_reduction.
11022 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11023 translate_scalar_reduction_to_array only when at least one
11024 loop-phi/close-phi tuple has been detected.
11025
3865a06f
RG
110262011-02-08 Richard Guenther <rguenther@suse.de>
11027
11028 PR middle-end/47639
11029 * tree-vect-generic.c (expand_vector_operations_1): Update
11030 stmts here ...
11031 (expand_vector_operations): ... not here. Cleanup EH info
11032 and the CFG if required.
11033
62902f3f
RG
110342011-02-08 Richard Guenther <rguenther@suse.de>
11035
11036 PR tree-optimization/47641
11037 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11038 require type compatibility.
11039
0efb9d64
AK
110402011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11041
11042 * gimple-low.c (lower_function_body): Don't remove the location of
11043 the return statement here.
11044 (lower_gimple_return): Do it here instead but only if the return
11045 statement is actually used twice.
11046
034b8ae4
RG
110472011-02-08 Richard Guenther <rguenther@suse.de>
11048
11049 PR tree-optimization/47632
11050 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11051 unused up_to_stmt parameter, return whether cfg-cleanup is
11052 necessary, remove EH info properly.
11053 (forward_propagate_into_gimple_cond): Adjust caller.
11054 (forward_propagate_into_cond): Likewise.
11055 (forward_propagate_comparison): Likewise.
11056 (tree_ssa_forward_propagate_single_use_vars): Make
11057 forward_propagate_comparison case similar to the two others.
11058
298362c8
NC
110592011-02-08 Nick Clifton <nickc@redhat.com>
11060
11061 * config/mn10300/mn10300.opt (mliw): New command line option.
11062 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11063 (liw_bundling): New automaton.
11064 (liw): New attribute.
11065 (liw_op): New attribute.
11066 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11067 (movsi_internal): Add LIW attributes.
11068 (andsi3): Likewise.
11069 (iorsi3): Likewise.
11070 (xorsi3): Likewise.
11071 (addsi3): Separate register and immediate alternatives.
11072 Add LIW attributes.
11073 (subsi3): Likewise.
11074 (cmpsi): Likewise.
11075 (aslsi3): Likewise.
11076 (lshrsi3): Likewise.
11077 (ashrsi3): Likewise.
11078 (liw): New pattern.
11079 * config/mn10300/mn10300.c (liw_op_names): New
11080 (mn10300_print_operand): Handle 'W' operand descriptor.
11081 (extract_bundle): New function.
11082 (check_liw_constraints): New function.
11083 (liw_candidate): New function.
11084 (mn10300_bundle_liw): New function.
11085 (mn10300_reorg): New function.
11086 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11087 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
11088 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
11089 __LIW__ or __NO_LIW__.
11090 * doc/invoke.texi: Describe the -mliw command line option.
11091
90488014
JDA
110922011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11093
11094 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
11095 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11096 pthread_mutex_unlock): Remove.
11097 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
11098 * config/pa/t-pa64: Likewise.
11099 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
11100 shared libc if not linking against libpthread.
11101 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11102
689ff841
IS
111032011-02-07 Iain Sandoe <iains@gcc.gnu.org>
11104
11105 PR target/47558
11106 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
11107 on 10.6 and later to ensure that we always use the unwinder from
11108 the system. Only add -no_compact_unwind when tarteting darwin
11109 10.6 or later.
11110
821014aa
SE
111112011-02-07 Steve Ellcey <sje@cup.hp.com>
11112
11113 PR target/46997
11114 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
11115 (vec_interleave_lowv2sf): Ditto.
11116 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
11117 (vec_extract_oddv2sf): Ditto.
11118
41cf94fb
MS
111192011-02-07 Mike Stump <mikestump@comcast.net>
11120
62dea57d 11121 PR target/42333
41cf94fb
MS
11122 Add __ieee_divdc3 entry point.
11123 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
11124 entry point.
11125 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
11126 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
11127 * config/darwin.c (darwin_rename_builtins): Add.
11128 * config/darwin-protos.h (darwin_rename_builtins): Add.
11129
ee09a3dd
MM
111302011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11131
11132 PR target/47636
11133 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
11134 for the condition.
11135
83296cd0
MS
111362011-02-07 Mike Stump <mikestump@comcast.net>
11137
ea4c3e65 11138 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 11139
0f4e946f
DC
111402011-02-07 Denis Chertykov <chertykov@gmail.com>
11141
11142 PR target/47534
11143 * config/avr/libgcc.S (exit): Move .endfunc
11144
1ec87690
RG
111452011-02-07 Richard Guenther <rguenther@suse.de>
11146
11147 PR tree-optimization/47615
11148 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
11149 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
11150 (run_scc_vn): Initialize it.
11151 (visit_reference_op_load): Use it.
11152 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
11153
b46ae6da
UW
111542011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11155
11156 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
11157 DImode trapping arithmetic libfuncs.
11158
c0aae19c
RG
111592011-02-07 Richard Guenther <rguenther@suse.de>
11160
11161 PR tree-optimization/47621
11162 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
11163 two duplicates ...
11164 (execute_update_addresses_taken): ... here. Make it more
11165 conservative in what we accept.
11166
295d926b
JM
111672011-02-06 Joseph Myers <joseph@codesourcery.com>
11168
11169 * config/sparc/freebsd.h (ASM_SPEC): Define.
11170 * config/sparc/vxworks.h (ASM_SPEC): Define.
11171
bdeb2471
JM
111722011-02-06 Joseph Myers <joseph@codesourcery.com>
11173
11174 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
11175
d5d3781a
SB
111762011-02-06 Steven Bosscher <steven@gcc.gnu.org>
11177
11178 * doc/invoke.texi: Remove reference to compiler internals from
11179 user documentation.
11180
11181 * reg-notes.def: Remove REG_VALUE_PROFILE.
11182 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
11183
c42c09fc
JJ
111842011-02-05 Jakub Jelinek <jakub@redhat.com>
11185
11186 PR middle-end/47610
11187 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 11188 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 11189
beea2755
JZ
111902011-02-05 Jie Zhang <jie@codesourcery.com>
11191
11192 PR debug/42631
11193 * web.c (entry_register): Don't clobber the number of the
11194 first uninitialized reference in used[].
11195
a130584a
SP
111962011-02-04 Sebastian Pop <sebastian.pop@amd.com>
11197
11198 PR tree-optimization/46194
11199 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
11200 (build_classic_dist_vector_1): Do not represent classic distance
11201 vectors when the access functions are variating in different loops.
11202
962101ac
JM
112032011-02-04 Joseph Myers <joseph@codesourcery.com>
11204
11205 * config/mips/iris6.opt: New.
11206 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11207
55eaaa5b
RH
112082011-02-04 Richard Henderson <rth@redhat.com>
11209 Steve Ellcey <sje@cup.hp.com>
11210
11211 PR target/46997
11212 * config/ia64/predicates.md (mux1_brcst_element): New.
11213 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11214 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11215 (ia64_unpack_sign): New.
11216 (ia64_expand_unpack): Rewrite using new routines.
11217 (ia64_expand_widen_sum): Ditto.
11218 (ia64_expand_dot_prod_v8qi): Ditto.
11219 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11220 routines, add endian check.
11221 (pmpy2_even): Rename from pmpy2_r, add endian check.
11222 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11223 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11224 (vec_widen_smult_hi_v4hi): Ditto.
11225 (vec_widen_umult_lo_v4hi): Ditto.
11226 (vec_widen_umult_hi_v4hi): Ditto.
11227 (mulv2si3): Change endian checks.
11228 (sdot_prodv4hi): Rewrite with new calls.
11229 (udot_prodv4hi): New.
11230 (vec_pack_ssat_v4hi): Add endian check.
11231 (vec_pack_usat_v4hi): Ditto.
11232 (vec_pack_ssat_v2si): Ditto.
11233 (max1_even): Rename from max1_r, add endian check.
11234 (max1_odd): Rename from max1_l, add endian check.
11235 (*mux1_rev): Format change.
11236 (*mux1_mix): Ditto.
11237 (*mux1_shuf): Ditto.
11238 (*mux1_alt): Ditto.
11239 (*mux1_brcst_v8qi): Use new predicate.
11240 (vec_extract_evenv8qi): Remove endian check.
11241 (vec_extract_oddv8qi): Ditto.
11242 (vec_interleave_lowv4hi): Format change.
11243 (vec_interleave_highv4hi): Ditto.
11244 (mix2_even): Rename from mix2_r, add endian check.
11245 (mix2_odd): Rename from mux2_l, add endian check.
11246 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11247 (vec_extract_evenodd_helper): Format change.
11248 (vec_extract_evenv4hi): Remove endian check.
11249 (vec_extract_oddv4hi): Remove endian check.
11250 (vec_interleave_lowv2si): Format change.
11251 (vec_interleave_highv2si): Format change.
11252 (vec_initv2si): Remove endian check.
11253 (vecinit_v2si): Add endian check.
11254 (reduc_splus_v2sf): Add endian check.
11255 (reduc_smax_v2sf): Ditto.
11256 (reduc_smin_v2sf): Ditto.
11257 (vec_initv2sf): Remove endian check.
11258 (fpack): Add endian check.
11259 (fswap): Add endian check.
11260 (vec_interleave_highv2sf): Add endian check.
11261 (vec_interleave_lowv2sf): Add endian check.
11262 (fmix_lr): Add endian check.
11263 (vec_setv2sf): Format change.
11264 (*vec_extractv2sf_0_be): Use shift to extract operand.
11265 (*vec_extractv2sf_1_be): New.
11266 (vec_pack_trunc_v4hi): Add endian check.
11267 (vec_pack_trunc_v2si): Format change.
11268
dcde5957
JJ
112692011-02-04 Jakub Jelinek <jakub@redhat.com>
11270
11271 PR inline-asm/23200
11272 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 11273 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
11274 (stmt_is_replaceable_p): New function.
11275 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11276 callers.
11277 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11278 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11279 SSA_NAME_DEF_STMT.
11280 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11281
a64a8e5a
JM
112822011-02-04 Joseph Myers <joseph@codesourcery.com>
11283
11284 * config/rs6000/xilinx.opt: New.
11285 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11286
4da2ed2f
JM
112872011-02-04 Joseph Myers <joseph@codesourcery.com>
11288
11289 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11290
a6e508f9
AS
112912011-02-03 Anatoly Sokolov <aesok@post.ru>
11292
11293 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11294 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11295 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11296 secondary_reload_info, xtensa_secondary_reload): Remove.
11297 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11298 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11299 (xtensa_preferred_reload_class): Make static. Change return and
11300 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11301 Use CONST_DOUBLE_P predicate.
11302 (xtensa_preferred_output_reload_class): New function.
11303 (xtensa_secondary_reload): Make static.
11304
82dc0de3
JM
113052011-02-03 Joseph Myers <joseph@codesourcery.com>
11306
11307 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11308 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11309 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11310
7fece979
JJ
113112011-02-03 Jakub Jelinek <jakub@redhat.com>
11312
11313 PR middle-end/31490
11314 * output.h (SECTION_RELRO): Define.
11315 (SECTION_MACH_DEP): Adjust.
11316 (get_variable_section): New prototype.
11317 * varpool.c (varpool_finalize_named_section_flags): New function.
11318 (varpool_assemble_pending_decls): Call it.
11319 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11320 * cgraphunit.c (cgraph_output_in_order): Call
11321 varpool_finalize_named_section_flags.
11322 * varasm.c (get_section): Allow section flags conflicts between
11323 relro and read-only sections if the section hasn't been declared yet.
11324 Set SECTION_OVERRIDE after diagnosing section type conflict.
11325 (get_variable_section): No longer static.
11326 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11327 readonly sections that need relocations.
11328 (decl_readonly_section_1): New function.
11329 (decl_readonly_section): Use it.
11330
11331 Revert:
509d65dd 11332 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
11333 Steve Ellcey <sje@cup.hp.com>
11334
11335 PR middle-end/31490
11336 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11337 if section attribute used.
11338
d18d5478
JJ
113392011-02-03 Jakub Jelinek <jakub@redhat.com>
11340
11341 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11342 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11343 (darwin_init_sections): Remove assertion.
11344
6479ed4b
NC
113452011-02-03 Nick Clifton <nickc@redhat.com>
11346
11347 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11348 lt and ge.
38be4072 11349 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
11350 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11351 instead of "n" and "pz".
11352 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11353 CC_FLAG_S.
11354
89843f5d
JJ
113552011-02-03 Jakub Jelinek <jakub@redhat.com>
11356
65450d64
JJ
11357 PR target/47312
11358 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11359 fma, expand FMA_EXPR as fma{,f,l} call.
11360
7d58701c
JJ
11361 PR lto/47274
11362 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11363 copy them into a unsigned char variable and pass address of it to
11364 lto_output_data_stream.
11365
89843f5d
JJ
11366 PR target/47564
11367 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11368 around backend_init_target and lang_dependent_init_target calls.
11369 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11370 (verify_cgraph_node): Don't call set_cfun here. Use
11371 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11372 Set error_found for incorrectly represented calls to thunks.
11373
4deef538
AO
113742011-02-03 Alexandre Oliva <aoliva@redhat.com>
11375
11376 PR debug/43092
11377 PR rtl-optimization/43494
11378 * rtl.h (for_each_inc_dec_fn): New type.
11379 (for_each_inc_dec): Declare.
11380 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11381 (for_each_inc_dec_find_inc_dec): New fn.
11382 (for_each_inc_dec_find_mem): New fn.
11383 (for_each_inc_dec): New fn.
11384 * dse.c (struct insn_size): Remove.
11385 (replace_inc_dec, replace_inc_dec_mem): Remove.
11386 (emit_inc_dec_insn_before): New fn.
11387 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11388 (canon_address): Pass mem modes to cselib_lookup.
11389 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11390 (cselib_lookup_from_insn): Likewise.
11391 (cselib_subst_to_values): Likewise.
11392 * cselib.c (find_slot_memmode): New var.
11393 (cselib_find_slot): New fn. Use it instead of
11394 htab_find_slot_with_hash everywhere.
11395 (entry_and_rtx_equal_p): Use find_slot_memmode.
11396 (autoinc_split): New fn.
11397 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11398 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11399 Deal with autoinc. Special-case recursion into MEMs.
11400 (cselib_hash_rtx): Likewise.
11401 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11402 address and MEM modes.
11403 (cselib_subst_to_values): Add memmode, pass it on.
11404 Deal with autoinc.
11405 (cselib_lookup): Add memmode argument, pass it on.
11406 (cselib_lookup_from_insn): Add memmode.
11407 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11408 (struct cselib_record_autoinc_data): New.
11409 (cselib_record_autoinc_cb): New fn.
11410 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11411 mode to cselib_lookup. Reset autoinced REGs here instead of...
11412 (cselib_process_insn): ... here.
11413 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11414 to cselib_lookup.
11415 (add_uses): Likewise, also to cselib_subst_to_values.
11416 (add_stores): Likewise.
11417 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11418 cselib_subst_to_values.
11419 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11420 * gcse.c (do_local_cprop): Adjusted.
11421 * postreload.c (reload_cse_simplify_set): Adjusted.
11422 (reload_cse_simplify_operands): Adjusted.
11423 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11424
1551d44a
AO
114252011-02-03 Alexandre Oliva <aoliva@redhat.com>
11426
11427 PR tree-optimization/45122
11428 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11429 unsafe assumptions when there's more than one loop exit.
11430
c9485473
MM
114312011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11432
11433 PR target/47272
11434 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11435 Document using vector double with the load/store builtins, and
11436 that the load/store builtins always use Altivec instructions.
11437
11438 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11439 to use altivec memory instructions, even on VSX.
11440 (vector_altivec_store_<mode>): Ditto.
11441
11442 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11443 function.
11444
11445 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11446 V2DF, V2DI support to load/store overloaded builtins.
11447
11448 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11449 altivec load/store builtins for V2DF/V2DI types.
11450
11451 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11452 set avoid indexed addresses on power6 if -maltivec.
11453 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11454 vector_altivec_load/vector_altivec_store builtins.
11455 (altivec_expand_st_builtin): Ditto.
11456 (altivec_expand_builtin): Add VSX memory builtins.
11457 (rs6000_init_builtins): Add V2DI types to internal types.
11458 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11459 load/store builtins.
11460 (rs6000_address_for_altivec): Insure memory address is appropriate
11461 for Altivec.
11462
11463 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11464 vec_vsx_ld and vec_vsx_st.
11465 (vsx_store_<mode>): Ditto.
11466
11467 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11468 variables to hold long long types for VSX vector memory builtins.
11469 (RS6000_BTI_unsigned_long_long): Ditto.
11470 (long_long_integer_type_internal_node): Ditti.
11471 (long_long_unsigned_type_internal_node): Ditti.
11472
11473 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11474 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11475 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11476
11477 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11478 short cuts.
11479 (vec_vsx_st): Ditto.
11480
b24d1acf
JM
114812011-02-02 Joseph Myers <joseph@codesourcery.com>
11482
11483 * config/pa/pa-hpux10.opt: New.
11484 * config/hpux11.opt (pthread): New Driver option.
11485 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11486 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11487
aa18dd0f
JM
114882011-02-02 Joseph Myers <joseph@codesourcery.com>
11489
11490 * config/ia64/vms.opt: New.
11491 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11492
28fc3eee
MM
114932011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11494
11495 PR target/47580
11496 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11497 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11498 generator functions.
11499 (vsx_floatuns<VSi><mode>2): Ditto.
11500 (vsx_fix_trunc<mode><VSi>2): Ditto.
11501 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11502
b5838b1f
JM
115032011-02-02 Joseph Myers <joseph@codesourcery.com>
11504
11505 * config/i386/djgpp.opt (posix): New Driver option.
11506
0db8fa89
GP
115072011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11508
11509 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11510 Move to the unsupported targets list.
11511
9cd4f22a
PB
115122011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11513
11514 PR rtl-optimization/47525
11515 * df-scan.c: Update copyright years.
11516 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11517 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11518
9ed8059c
RO
115192011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11520
11521 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11522 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11523 (ASM_OUTPUT_ASCII): Remove.
11524 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11525
2a737389
JL
115262011-02-02 Jeff Law <law@redhat.com>
11527
11528 PR middle-end/47543
11529 * reload.c (find_reloads_address): Handle reg+d address where both
11530 components are invalid by reloading the entire address.
11531
9dac82c4
SP
115322011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11533 Richard Guenther <rguenther@suse.de>
11534
11535 PR tree-optimization/40979
11536 PR bootstrap/47044
11537 * passes.c (init_optimization_passes): After LIM call copy_prop
11538 and DCE to clean up.
11539 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11540
14dd9aab
SP
115412011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11542
11543 PR tree-optimization/47576
11544 PR tree-optimization/47555
11545 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11546 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11547 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11548 * tree-scalar-evolution.c (follow_ssa_edge): Use
11549 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11550
5cbf5c20
RG
115512011-02-02 Richard Guenther <rguenther@suse.de>
11552
11553 PR tree-optimization/47566
11554 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11555
83d70792
AO
115562011-02-02 Alexandre Oliva <aoliva@redhat.com>
11557
e829c321
AO
11558 PR debug/47106
11559 PR debug/47402
11560 * tree-inline.c (declare_return_variable): Remove unused caller
11561 variable.
11562
83d70792
AO
11563 PR debug/47106
11564 PR debug/47402
11565 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11566 * cfgexpand.c (account_used_vars_for_block): Use them.
11567 * tree-nrv.c (tree_nrv): Likewise.
11568 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11569 (dump_scope_block): Likewise.
11570 (remove_unused_locals): Likewise.
11571
aaa2ac93
AO
11572 PR debug/47106
11573 PR debug/47402
11574 * tree-inline.c (declare_return_variable): Add result decl to
11575 local decls only once.
11576 * gimple-low.c (record_vars_into): Mark newly-created variables
11577 as referenced.
11578
a59d15cf
AO
115792011-02-02 Alexandre Oliva <aoliva@redhat.com>
11580
11581 PR debug/47498
11582 PR debug/47501
11583 PR debug/45136
11584 PR debug/45130
11585 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11586 debug insns.
11587 (no_real_insns_p, schedule_block, set_priorities): Drop special
11588 treatment of boundary debug insns.
38be4072 11589 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
11590 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11591 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11592 (BOUNDARY_DEBUG_INSN_P): Likewise.
11593 (SCHEDULE_DEBUG_INSN_P): Likewise.
11594 * sched-rgn.c (init_ready_list): Drop special treatment of
11595 boundary debug insns.
11596 * final.c (rest_of_clean_state): Clear notes' BB.
11597
6fc2f091
JM
115982011-02-01 Joseph Myers <joseph@codesourcery.com>
11599
11600 * config/openbsd.opt (assert=): New Driver option.
11601
fc523387
JM
116022011-02-01 Joseph Myers <joseph@codesourcery.com>
11603
11604 * config/i386/nto.opt: New.
11605 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11606
6d9821e5
JM
116072011-02-01 Joseph Myers <joseph@codesourcery.com>
11608
11609 * config/i386/netware.opt: New.
11610 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11611
cef932d4
JM
116122011-02-01 Joseph Myers <joseph@codesourcery.com>
11613
11614 * config/interix.opt (posix): New Driver option.
11615
22843acd
DD
116162011-02-01 DJ Delorie <dj@redhat.com>
11617
56490b74
DD
11618 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11619
22843acd
DD
11620 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11621 class for A0/A1.
11622
199c8f2f
SP
116232011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11624
11625 PR tree-optimization/47561
11626 * toplev.c (process_options): Print the Graphite flags. Add
11627 flag_loop_flatten to the list of options requiring Graphite.
11628
926bcf22
JM
116292011-02-01 Joseph Myers <joseph@codesourcery.com>
11630
11631 * config/i386/cygming.opt (posix): New Driver option.
11632
59793c51
JM
116332011-02-01 Joseph Myers <joseph@codesourcery.com>
11634
11635 * config/arm/vxworks.opt: New.
11636 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11637
183c38a4
JM
116382011-02-01 Joseph Myers <joseph@codesourcery.com>
11639
11640 * config/alpha/elf.opt: New.
11641 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11642 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11643
9939e416
RG
116442011-02-01 Richard Guenther <rguenther@suse.de>
11645
11646 PR tree-optimization/47559
11647 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11648 store-motion on references that can throw.
11649
4a3c9687
BS
116502011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11651
11652 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11653 * tree-pass.h (TDF_CSELIB): New macro.
11654 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11655 cselib_lookup): Check for it rather than for TDF_DETAILS.
11656
dd3b31fb
L
116572011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11658
11659 PR driver/47547
11660 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11661 is HOST_BIT_BUCKET.
11662
11663 * opts.c (finish_options): Don't add x_aux_base_name if it is
11664 HOST_BIT_BUCKET.
11665
34c1de79
RG
116662011-02-01 Richard Guenther <rguenther@suse.de>
11667
11668 PR tree-optimization/47555
11669 Revert
11670 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11671
11672 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11673
dd2804d2
SB
116742011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11675
11676 PR gcc/46692
11677 * config/lm32/t-lm32: Add multilib for all CPU options.
11678
3fd3b156
RG
116792011-02-01 Richard Guenther <rguenther@suse.de>
11680
11681 PR tree-optimization/47541
11682 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11683 sure to have a field at offset zero.
11684
f16072b6
JM
116852011-01-31 Joseph Myers <joseph@codesourcery.com>
11686
11687 * config/arc/arc.opt (EB, EL): New Driver options.
11688
6456cf2e
JM
116892011-01-31 Joseph Myers <joseph@codesourcery.com>
11690
11691 * config/alpha/osf5.opt: New.
11692 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11693
cdde6ab4
JM
116942011-01-31 Joseph Myers <joseph@codesourcery.com>
11695
11696 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11697
7633415c
SP
116982011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11699
11700 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11701 -floop-interchange.
11702 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11703 is an alias of -floop-interchange and that it requires the
11704 Graphite infrastructure.
11705 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11706 flag_loop_interchange based on the value of flag_tree_loop_linear.
11707
0425d6f5
JJ
117082011-01-31 Jakub Jelinek <jakub@redhat.com>
11709 Richard Guenther <rguenther@suse.de>
11710
11711 PR tree-optimization/47538
11712 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11713 type instead of r1type, except for comparisons. For right
11714 shifts and comparisons punt if there are mismatches in
11715 sizetype vs. non-sizetype types.
11716
500b16c3
RO
117172011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11718
11719 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11720 avx_runtime.
11721
e279edb0
RO
117222011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11723
11724 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11725 version number.
11726 * configure: Regenerate.
11727
c6092243
RO
117282011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11729
11730 * configure.ac (gcc_cv_ld_static_option): Define.
11731 (gcc_cv_ld_dynamic_option): Define.
11732 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11733 instead.
11734 (HAVE_LD_STATIC_DYNAMIC): Update message.
11735 (LD_STATIC_OPTION): Define.
11736 (LD_DYNAMIC_OPTION): Define.
11737 * configure: Regenerate.
11738 * config.in: Regenerate.
11739 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11740 HAVE_LD_STATIC_DYNAMIC]: Use them.
11741
d7862be3
NC
117422011-01-31 Nick Clifton <nickc@redhat.com>
11743
11744 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11745 registers inside interrupt handlers if the handler is not a leaf
11746 function.
11747
ba4ec0e0
NC
117482011-01-31 Nick Clifton <nickc@redhat.com>
11749
11750 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11751 reg_renumber returning an INVALID_REGNUM.
11752
29a63921
AO
117532011-01-31 Alexandre Oliva <aoliva@redhat.com>
11754
11755 PR libgcj/44341
11756 * doc/install.texi: Document host options discarded when cross
11757 configuring target libraries.
11758
ef591d3f
AO
117592011-01-31 Alexandre Oliva <aoliva@redhat.com>
11760
11761 Reverted:
11762 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11763 PR debug/45136
11764 PR debug/45130
11765 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11766 debug insns.
11767 (no_real_insns_p, schedule_block, set_priorities): Drop special
11768 treatment of boundary debug insns.
38be4072 11769 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
11770 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11771 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11772 (BOUNDARY_DEBUG_INSN_P): Likewise.
11773 (SCHEDULE_DEBUG_INSN_P): Likewise.
11774 * sched-rgn.c (init_ready_list): Drop special treatment of
11775 boundary debug insns.
11776 * final.c (rest_of_clean-state): Clear notes' BB.
11777
61052244
AM
117782011-01-31 Alan Modra <amodra@gmail.com>
11779
11780 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11781 toc relative expressions as we do in print_operand_address.
11782
c4c8962b
KH
117832011-01-30 Kazu Hirata <kazu@codesourcery.com>
11784
11785 * doc/extend.texi: Follow spelling conventions.
11786 * doc/invoke.texi: Fix a typo.
11787
e543b94c
JM
117882011-01-30 Joseph Myers <joseph@codesourcery.com>
11789
11790 * config/hpux11.opt: New.
11791 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11792 ia64*-*-hpux*): Use hpux11.opt.
11793
509d65dd 117942011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
11795
11796 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11797 to tmake_file.
11798
7be03a0e
GP
117992011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11800
11801 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11802 support sites.
11803
419d1d37
GP
118042011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11805
b596ed64
GP
11806 * doc/install.texi (Binaries): Remove outdated reference for
11807 Motorola 68HC11/68HC12 downloads.
11808
118092011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 11810
419d1d37
GP
11811 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11812 Drepper's paper.
11813
4406d0e9
JW
118142011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11815
11816 PR bootstrap/47147
11817 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11818 used by NetBSD.
11819
38be4072 118202011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
11821
11822 * value-prof.c (check_counter): Corrected error message.
11823
0cd98787
JZ
118242011-01-29 Jie Zhang <jie@codesourcery.com>
11825
11826 * config/arm/arm.c (arm_legitimize_reload_address): New.
11827 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11828 arm_legitimize_reload_address.
38be4072 11829 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 11830
9b798ac5
ILT
118312011-01-28 Ian Lance Taylor <iant@google.com>
11832
11833 * godump.c (go_define): Ignore macros whose definitions include
11834 two adjacent operands.
11835
591e29d9
JJ
118362011-01-28 Jakub Jelinek <jakub@redhat.com>
11837
11838 PR target/42894
11839 * varasm.c (force_const_mem): Store copy of x in desc->constant
11840 instead of x itself.
11841 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11842 itself into REG_EQUAL note.
11843
62dcc44a
JM
118442011-01-28 Joseph Myers <joseph@codesourcery.com>
11845
11846 * config/freebsd.opt (posix, rdynamic): New Driver options.
11847
c9f58b9a
RO
118482011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11849
11850 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11851 -Bstatic/-Bdynamic.
11852 * configure: Regenerate.
11853
5f02b9db
JM
118542011-01-27 Joseph Myers <joseph@codesourcery.com>
11855
11856 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11857 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11858
5df97412
AS
118592011-01-27 Anatoly Sokolov <aesok@post.ru>
11860
11861 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11862 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11863 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11864 (s390_preferred_reload_class): Make static. Change return and
11865 'rclass' argument type to reg_class_t.
11866
779d4b91
JH
118672011-01-27 Jan Hubicka <jh@suse.cz>
11868
11869 PR middle-end/46949
11870 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11871 (process_function_and_variable_attributes): Check defined weakrefs.
11872
e80b21ed
MJ
118732011-01-27 Martin Jambor <mjambor@suse.cz>
11874
11875 PR tree-optimization/47228
11876 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11877 build_ref_for_offset.
11878
6dcc4f31
UW
118792011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11880
11881 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11882
509d65dd 118832011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
11884
11885 PR rtl-optimization/46856
11886 * postreload.c (reload_combine_recognize_const_pattern): Do not
11887 separate cc0 setter and user on cc0 targets.
11888
04af8788
NP
118892011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11890
11891 PR c/43082
11892 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11893 passed a VOID_TYPE expression, immediately emit an error and
11894 return error_mark_node.
11895
f7a60085
JL
118962011-01-26 Jeff Law <law@redhat.com>
11897
11898 PR rtl-optimization/47464
11899 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11900 rather than may_trap_p as needed.
11901
5c2917ec
DD
119022011-01-26 DJ Delorie <dj@redhat.com>
11903
11904 PR rtl-optimization/46878
11905 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11906 setter/user dependency as well.
11907
bef16e87
EB
119082011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11909
11910 PR rtl-optimization/44469
11911 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11912 after removing trivially dead basic blocks.
11913
c75d884b
JM
119142011-01-26 Joseph Myers <joseph@codesourcery.com>
11915
11916 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11917 * config/frv/frv.h (LINK_SPEC): Likewise.
11918 * config/i386/netware.h (LINK_SPEC): Likewise.
11919 * config/m68k/linux.h (ASM_SPEC): Likewise.
11920 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11921 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11922 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11923 * config/sparc/linux.h (ASM_SPEC): Likewise.
11924 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11925 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11926
d3153553
JM
119272011-01-26 Joseph Myers <joseph@codesourcery.com>
11928
11929 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11930 * config/frv/frv.h (ASM_SPEC): Likewise.
11931 * config/m68k/linux.h (ASM_SPEC): Likewise.
11932 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11933 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11934 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11935 * config/sparc/linux.h (ASM_SPEC): Likewise.
11936 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11937 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11938
b89b1e9d
JM
119392011-01-26 Joseph Myers <joseph@codesourcery.com>
11940
11941 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11942 * config/frv/frv.h (LINK_SPEC): Likewise.
11943 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11944
12eb1a9c
JM
119452011-01-26 Joseph Myers <joseph@codesourcery.com>
11946
11947 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11948 * config/frv/frv.h (ASM_SPEC): Likewise.
11949 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11950 * config/m68k/linux.h (ASM_SPEC): Likewise.
11951 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11952 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11953 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11954 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11955 * config/sparc/linux.h (ASM_SPEC): Likewise.
11956 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11957 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11958 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11959
e435f098
SE
119602011-01-26 Steve Ellcey <sje@cup.hp.com>
11961
11962 PR target/46997
11963 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11964 (*mux2): Ditto.
11965 (vec_extract_evenodd_help): Ditto.
11966 (vec_extract_evenv4hi): Ditto.
11967 (vec_extract_oddv4hi): Ditto.
11968 (vec_interleave_lowv2si): Ditto.
11969 (vec_interleave_highv2si): Ditto.
11970 (vec_extract_evenv2si): Ditto.
11971 (vec_extract_oddv2si: Ditto.
11972 (vec_pack_trunc_v2si): Ditto.
11973
34f0eee0
JH
119742011-01-22 Jan Hubicka <jh@suse.cz>
11975
11976 PR target/47237
11977 * cgraph.h (cgraph_local_info): New field can_change_signature.
11978 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11979 signature can change.
11980 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11981 can change.
11982 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11983 (cgraph_function_versioning): We can not change signature of functions
11984 that don't allow that.
11985 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11986 (lto_input_node): Likewise.
38be4072
UB
11987 * ipa-inline.c (compute_inline_parameters): Compute
11988 local.can_change_signature.
34f0eee0 11989 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
11990 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11991 functions that can not change signature.
34f0eee0 11992 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
11993 init_cumulative_args): Do not use local calling conventions
11994 for functions that can not change signature.
34f0eee0 11995
980ca891
JH
119962011-01-22 Jan Hubicka <jh@suse.cz>
11997
11998 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11999
768e3c60
RG
120002011-01-26 Richard Guenther <rguenther@suse.de>
12001
12002 PR tree-optimization/47190
61052244
AM
12003 * cgraphunit.c (process_common_attributes): New function.
12004 (process_function_and_variable_attributes): Use it.
768e3c60 12005
21d6a1c7
RG
120062011-01-26 Richard Guenther <rguenther@suse.de>
12007
12008 PR lto/47423
12009 * cgraphbuild.c (record_eh_tables): Record reference to personality
12010 function.
12011
48bb58b1
AO
120122011-01-26 Alexandre Oliva <aoliva@redhat.com>
12013
12014 PR debug/45454
12015 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12016 non-debug insns from moving up.
12017
58c741a6
DK
120182011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12019
12020 PR target/40125
12021 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12022 t-dlldir{,-x} fragment for build and add it to tmake_file.
12023 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12024 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12025 * config/i386/t-dlldir: New file.
12026 (SHLIB_DLLDIR): Define.
12027 * config/i386/t-dlldir-x: New file.
12028 (SHLIB_DLLDIR): Define.
12029 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12030 (SHLIB_INSTALL): Use it.
12031
bff99262
CLT
120322011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12033
12034 PR target/47246
12035 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12036 lower bound of the allowed Thumb-2 coprocessor load/store
12037 index range to -256. Add explaining comment.
12038
82c03907
ILT
120392011-01-25 Ian Lance Taylor <iant@google.com>
12040
12041 * godump.c (go_define): Improve lexing of macro expansion to only
12042 accept expressions which match Go spec.
12043
47ea1edf
DK
120442011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12045
d4dba752 12046 PR c++/43601
47ea1edf
DK
12047 * tree.c (handle_dll_attribute): Handle it.
12048 * doc/extend.texi (@item dllexport): Mention it.
12049 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12050
744f0946
ILT
120512011-01-25 Ian Lance Taylor <iant@google.com>
12052
12053 PR tree-optimization/26854
12054 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12055 (decl_jump_unsafe): Move higher in file, with no other change.
12056 (bind): Set has_jump_unsafe_decl if appropriate.
12057 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12058 (check_earlier_gotos): Likewise.
12059 (c_check_switch_jump_warnings): Likewise.
12060
5734f2b3
JW
120612011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12062
12063 * doc/invoke.texi (Warning Options): Add missing hyphen.
12064 (-fprofile-dir): Minor grammatical fixes.
12065 (-fbranch-probabilities): Likewise.
12066
9bdbdcef
AO
120672011-01-25 Alexandre Oliva <aoliva@redhat.com>
12068
12069 PR debug/45136
12070 PR debug/45130
12071 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12072 debug insns.
12073 (no_real_insns_p, schedule_block, set_priorities): Drop special
12074 treatment of boundary debug insns.
38be4072 12075 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
12076 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12077 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12078 (BOUNDARY_DEBUG_INSN_P): Likewise.
12079 (SCHEDULE_DEBUG_INSN_P): Likewise.
12080 * sched-rgn.c (init_ready_list): Drop special treatment of
12081 boundary debug insns.
12082 * final.c (rest_of_clean-state): Clear notes' BB.
12083
b305e3da
SP
120842011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12085
12086 * Makefile.in (LAMBDA_H): Removed.
12087 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
12088 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
12089 lambda-trans.o, and tree-loop-linear.o.
12090 (lto-symtab.o): Remove dependence on LAMBDA_H.
12091 (tree-loop-linear.o): Remove rule.
12092 (lambda-mat.o): Same.
12093 (lambda-trans.o): Same.
12094 (lambda-code.o): Same.
12095 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
12096 (tree-vect-slp.o): Same.
12097 * hwint.h (gcd): Moved here.
12098 (least_common_multiple): Same.
12099 * lambda-code.c: Removed.
12100 * lambda-mat.c: Removed.
12101 * lambda-trans.c: Removed.
12102 * lambda.h: Removed.
12103 * tree-loop-linear.c: Removed.
12104 * lto-symtab.c: Do not include lambda.h.
12105 * omega.c (gcd): Removed.
12106 * passes.c (init_optimization_passes): Remove pass_linear_transform.
12107 * tree-data-ref.c (print_lambda_vector): Moved here.
12108 (lambda_vector_copy): Same.
12109 (lambda_matrix_copy): Same.
12110 (lambda_matrix_id): Same.
12111 (lambda_vector_first_nz): Same.
12112 (lambda_matrix_row_add): Same.
12113 (lambda_matrix_row_exchange): Same.
12114 (lambda_vector_mult_const): Same.
12115 (lambda_vector_negate): Same.
12116 (lambda_matrix_row_negate): Same.
12117 (lambda_vector_equal): Same.
12118 (lambda_matrix_right_hermite): Same.
12119 * tree-data-ref.h: Do not include lambda.h.
12120 (lambda_vector): Moved here.
12121 (lambda_matrix): Same.
12122 (dependence_level): Same.
12123 (lambda_transform_legal_p): Removed declaration.
12124 (lambda_collect_parameters): Same.
12125 (lambda_compute_access_matrices): Same.
12126 (lambda_vector_gcd): Same.
12127 (lambda_vector_new): Same.
12128 (lambda_vector_clear): Same.
12129 (lambda_vector_lexico_pos): Same.
12130 (lambda_vector_zerop): Same.
12131 (lambda_matrix_new): Same.
12132 * tree-flow.h (least_common_multiple): Removed declaration.
12133 * tree-parloops.c (lambda_trans_matrix): Moved here.
12134 (LTM_MATRIX): Same.
12135 (LTM_ROWSIZE): Same.
12136 (LTM_COLSIZE): Same.
12137 (LTM_DENOMINATOR): Same.
12138 (lambda_trans_matrix_new): Same.
12139 (lambda_matrix_vector_mult): Same.
12140 (lambda_transform_legal_p): Same.
12141 * tree-pass.h (pass_linear_transform): Removed declaration.
12142 * tree-ssa-loop.c (tree_linear_transform): Removed.
12143 (gate_tree_linear_transform): Removed.
12144 (pass_linear_transform): Removed.
12145 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
12146 flag_loop_interchange.
12147
6bdfdb96
JJ
121482011-01-25 Jakub Jelinek <jakub@redhat.com>
12149
12150 PR tree-optimization/47265
12151 PR tree-optimization/47443
12152 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
12153 if name still has some uses.
12154
e4cba915
MJ
121552011-01-25 Martin Jambor <mjambor@suse.cz>
12156
12157 PR tree-optimization/47382
12158 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
12159 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
12160
509d65dd 121612011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
12162
12163 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
12164 sjlj_except_unwind_info.
12165
194313e2
RG
121662011-01-25 Richard Guenther <rguenther@suse.de>
12167
12168 PR tree-optimization/47426
12169 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
12170 visible functions results escape.
12171
147a0bcf
JJ
121722011-01-25 Jakub Jelinek <jakub@redhat.com>
12173
12174 PR target/45701
12175 * config/arm/arm.c (any_sibcall_uses_r3): New function.
12176 (arm_get_frame_offsets): Use it.
12177
db963b52
SP
121782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12179 Jakub Jelinek <jakub@redhat.com>
12180
12181 PR tree-optimization/47271
12182 * tree-if-conv.c (bb_postdominates_preds): New.
12183 (if_convertible_bb_p): Call bb_postdominates_preds.
12184 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
12185 (predicate_scalar_phi): Call bb_postdominates_preds.
12186
bcddd3b9
NC
121872011-01-25 Nick Clifton <nickc@redhat.com>
12188
12189 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
12190 * config/rx/rx.c (rx_function_value): Likewise.
12191 (rx_promote_function_mode): Likewise.
12192 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
12193 in order to make it legitimate.
38be4072
UB
12194 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
12195 make sure that the first operand is the same as the result register.
bcddd3b9
NC
12196 (addsi3_unspec): Delete.
12197 (subdi3): Do not accept immediate operands.
12198 (subdi3_internal): Likewise.
12199
7e6cb022
JL
122002011-01-25 Jeff Law <law@redhat.com>
12201
12202 PR rtl-optimization/37273
12203 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12204 handle them like argument loads from stack slots. Do not double
12205 count memory for memory constants and argument loads from stack slots.
12206
9ffa621e
JJ
122072011-01-25 Jakub Jelinek <jakub@redhat.com>
12208
12209 PR tree-optimization/47427
12210 PR tree-optimization/47428
12211 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12212 coalesce if the new root var would be TREE_READONLY.
12213
5bd6e652
RG
122142011-01-25 Richard Guenther <rguenther@suse.de>
12215
12216 PR middle-end/47414
12217 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12218 correct type for TBAA.
12219
7c48ea69
SP
122202011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12221
12222 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12223 (close_phi_written_to_memory): Call for_each_index with
12224 dr_indices_valid_in_loop.
12225
38013f25
SP
122262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12227
12228 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12229 when it is initialized.
12230
5c640e29
SP
122312011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12232
12233 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12234 call to graphite_find_data_references_in_stmt.
12235 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12236 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12237 call to graphite_find_data_references_in_stmt.
12238 (analyze_drs_in_stmts): Same.
12239 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12240 in which the scalar analysis of indices is performed.
12241 (create_data_ref): Same. Update call to dr_analyze_indices.
12242 (find_data_references_in_stmt): Update call to create_data_ref.
12243 (graphite_find_data_references_in_stmt): Same.
12244 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12245 declaration.
12246 (create_data_ref): Same.
12247 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12248 call to create_data_ref.
12249
ac53c069
SP
122502011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12251
12252 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 12253 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 12254
3d17df15
SP
122552011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12256
12257 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12258 VAR_DECL, PARM_DECL, and RESULT_DECL.
12259
c513da01
SP
122602011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12261
12262 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12263 in a reduction PBB.
12264 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12265 that have already been marked as PBB_IS_REDUCTION.
12266
3a292d59
SP
122672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12268
12269 * graphite-scop-detection.c (same_close_phi_node): New.
12270 (remove_duplicate_close_phi): New.
12271 (make_close_phi_nodes_unique): New.
12272 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12273
ba858447
SP
122742011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12275
12276 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12277 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12278 of both data references to be the same.
12279
8d865c56
SP
122802011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12281
38be4072
UB
12282 * graphite-dependences.c (build_lexicographical_constraint): Remove
12283 the gdim parameter.
12284 (build_lexicographical_constraint): Adjust call to
12285 ppl_powerset_is_empty.
8d865c56
SP
12286 (dependence_polyhedron): Same.
12287 (graphite_legal_transform_dr): Same.
12288 (graphite_carried_dependence_level_k): Same.
38be4072
UB
12289 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12290 parameter.
8d865c56
SP
12291 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12292
50034a36
SP
122932011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12294
12295 * graphite-sese-to-poly.c
12296 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12297 (close_phi_written_to_memory): New.
12298 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12299 and unshare_expr.
12300
0deada9e
SP
123012011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12302
12303 * doc/install.texi: Update the expected version number of PPL to 0.11.
12304 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12305 #if PPL_VERSION_MINOR < 11.
12306
d7d3d6af
SP
123072011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12308
12309 * graphite-dependences.c: Include graphite-cloog-util.h.
12310 (new_poly_ddr): Inlined into dependence_polyhedron.
12311 (free_poly_ddr): Moved close by new_poly_ddr.
12312 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12313 Early return NULL when ppl_powerset_is_empty returns true.
12314 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12315 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12316 (graphite_legal_transform_dr): Call new_poly_ddr.
12317 (graphite_carried_dependence_level_k): Same.
12318 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12319 (dot_transformed_deps_stmt_1): Removed.
12320 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12321 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12322 (dot_deps_1): Call dot_deps_2.
12323 * Makefile.in (graphite-dependences.o): Add missing dependence on
12324 graphite-cloog-util.h.
12325
28c5db57
SP
123262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12327
12328 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12329 (build_lexicographical_constraint): Same.
12330 (dependence_polyhedron_1): Same.
12331 (graphite_legal_transform_dr): Same.
12332 (graphite_carried_dependence_level_k): Same.
12333 * graphite-ppl.c (ppl_powerset_is_empty): New.
12334 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12335 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12336
5168d98f
SP
123372011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12338
12339 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12340 the "a followed by b" relation and document it.
12341
4a40293a
SP
123422011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12343
12344 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12345 iteration when the bag of constraints is empty.
12346
271fb6fa
SP
123472011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12348
12349 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12350
92d23680
SP
123512011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12352
12353 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12354 nest and two loop depths as parameters.
12355 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12356 lst_perfect_nestify.
12357
2f51deff
SP
123582011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12359
12360 * graphite-dependences.c (print_pddr): Call
12361 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12362
07f3593c
SP
123632011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12364
12365 * graphite-ppl.c (debug_gmp_value): New.
12366 * graphite-ppl.h (debug_gmp_value): Declared.
12367
3fae6099
TG
123682011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12369
12370 * doc/install.texi: Document availability of cloog-0.16.
12371
1c3ba85b
SP
123722011-01-25 Vladimir Kargov <kargov@gmail.com>
12373
12374 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12375 invalid postdominance info.
12376
e8ba94fc
JH
123772011-01-24 Jan Hubicka <jh@suse.cz>
12378
12379 PR c/21659
12380 * doc/extend.texi (weak pragma): Drop claim that it must
12381 appear before definition.
12382 * varasm.c (merge_weak, declare_weak): Only sanity check
12383 that DECL is not output at a time it is declared weak.
12384
2b6e2d13
KZ
123852011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12386
12387 * machmode.def: Fixed comments.
1c3ba85b 12388
9841210f
KT
123892011-01-24 Kai Tietz <kai.tietz@onevision.com>
12390
12391 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12392
123932011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
12394
12395 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 12396 WORDS_BIG_ENDIAN.
e046112d 12397
a6c5070a
L
123982011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12399
12400 PR target/46519
12401 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12402 (block_info): Add scanned and prev.
12403 (move_or_delete_vzeroupper_2): Return if the basic block
12404 has been scanned and the upper 128bit state is unchanged
12405 from the last scan.
12406 (move_or_delete_vzeroupper_1): Return true if the exit
12407 state is changed.
12408 (move_or_delete_vzeroupper): Visit basic blocks using the
12409 work-list based algorithm based on vt_find_locations in
12410 var-tracking.c.
12411
12412 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12413
a40d79d7
NC
124142011-01-24 Nick Clifton <nickc@redhat.com>
12415
12416 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12417 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12418 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12419 then define __v850e1__.
12420 * doc/invoke.texi: Document -mv850es.
12421
440eb8de
RH
124222011-01-24 Richard Henderson <rth@redhat.com>
12423
12424 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12425 compound unordered comparisons.
12426 * config/rx/rx.c (rx_split_fp_compare): Remove.
12427 * config/rx/rx-protos.h: Update.
12428 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12429 (cbranchsf4): Don't call rx_split_fp_compare.
12430 (*cbranchsf4): Use rx_split_cbranch.
12431 (*cmpsf): Don't accept "i" constraint.
12432 (*conditional_branch): Only valid after reload.
12433 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12434
3ff79f99
MM
124352011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12436
12437 PR target/47385
12438 * config/rs6000/altivec.md (vector constant splitters): Add
12439 support for creating vector single precision constants if -mvsx is
12440 used and we would create the constant using Altivec primitives.
12441
ff3d9d08
BS
124422011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12443 Richard Sandiford <rdsandiford@googlemail.com>
12444
12445 PR rtl-optimization/47166
12446 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12447 mechanism for PRE_MODIFY and POST_MODIFY.
12448 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12449 reloadreg.
12450
7fcaf152
AS
124512011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12452
8788adb6 12453 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 12454
d09b58c4
JH
124552011-01-22 Jan Hubicka <jh@suse.cz>
12456
12457 PR lto/47333
12458 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12459
e8ff8c5a
JH
124602011-01-22 Jan Hubicka <jh@suse.cz>
12461
12462 PR tree-optimization/43884
12463 PR lto/44334
8788adb6 12464 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
12465 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12466
ccaed3ba
AS
124672011-01-22 Anatoly Sokolov <aesok@post.ru>
12468
12469 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12470 * config/s390/s390.c (s390_register_move_cost,
12471 s390_memory_move_cost): New.
12472 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12473
0cecee06
UW
124742011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12475
12476 PR middle-end/47401
12477 * except.c (sjlj_assign_call_site_values): Move setting the
12478 crtl->uses_eh_lsda flag to ...
12479 (sjlj_mark_call_sites): ... here.
12480 (sjlj_emit_function_enter): Support NULL dispatch label.
12481 (sjlj_build_landing_pads): In a function with no landing pads
12482 that still has must-not-throw regions, generate code to register
12483 a personality function with empty LSDA.
12484
e692f276
RH
124852011-01-21 Richard Henderson <rth@redhat.com>
12486
1b7ae0b7
RH
12487 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12488
3843787f
RH
12489 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12490
e692f276
RH
12491 * compare-elim.c: New file.
12492 * Makefile.in (OBJS-common): Add it.
12493 (compare-elim.o): New.
12494 * common.opt (fcompare-elim): New.
12495 * opts.c (default_options_table): Add OPT_fcompare_elim.
12496 * tree-pass.h (pass_compare_elim_after_reload): New.
12497 * passes.c (init_optimization_passes): Add it.
12498 * recog.h: Protect against re-inclusion.
12499 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12500 * doc/invoke.texi (-fcompare-elim): Document it.
12501 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12502 * doc/tm.texi: Rebuild.
12503
9a7c2050
NC
125042011-01-22 Nick Clifton <nickc@redhat.com>
12505
12506 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12507 rx_split_fp_compare.
12508
15ba5696
NC
125092011-01-22 Nick Clifton <nickc@redhat.com>
12510
12511 * config/rx/rx.md (UNSPEC_CONST): New.
12512 (deallocate_and_return): Wrap the amount popped off the stack in
12513 an UNSPEC_CONST in order to stop it being rejected by
12514 -mmax-constant-size.
12515 (pop_and_return): Add a "(return)" rtx.
12516 (call): Drop the immediate operand.
12517 (call_internal): Likewise.
12518 (call_value): Likewise.
12519 (call_value_internal): Likewise.
12520 (sibcall_internal): Likewise.
12521 (sibcall_value_internal): Likewise.
12522 (sibcall): Likewise. Generate an explicit call using
12523 sibcall_internal.
12524 (sibcall_value): Likewise.
12525 (mov<>): FAIL if a constant operand is not legitimate.
12526 (addsi3_unpsec): New pattern.
9a7c2050 12527
38be4072 12528 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
12529 (ok_for_max_constant): New function.
12530 (gen_safe_add): New function.
12531 (rx_expand_prologue): Use gen_safe_add.
12532 (rx_expand_epilogue): Likewise.
12533 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12534 UNSPEC CONSTs.
12535
caaf13d3
JL
125362011-01-21 Jeff Law <law@redhat.com>
12537
12538 PR tree-optimization/47053
12539 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12540 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12541 statements are deleted.
12542 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12543 is nonempty, then purge dead edges and cleanup the CFG.
12544
12c30f2f
AO
125452011-01-21 Alexandre Oliva <aoliva@redhat.com>
12546
12547 PR debug/47402
12548 Temporarily revert:
12549 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12550 PR debug/47106
12551 * tree-dfa.c (create_var_ann): Mark variable as used.
12552
7360d2ac
JJ
125532011-01-21 Jakub Jelinek <jakub@redhat.com>
12554
aaa52a96
JJ
12555 PR middle-end/45566
12556 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12557 notes from other section in hot/cold partitioning even if
12558 last_action is -3. Increment call_site_base.
12559
7360d2ac
JJ
12560 PR rtl-optimization/47366
12561 * fwprop.c (forward_propagate_into): Return bool. If
12562 any changes are made, -fnon-call-exceptions is used and
12563 REG_EH_REGION note is present, call purge_dead_edges
12564 and return true if it purged anything.
12565 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12566 any EH edges were purged.
12567
e90b336f
JL
125682011-01-21 Jeff Law <law@redhat.com>
12569
12570 PR rtl-optimization/41619
12571 * caller-save.c (setup_save_areas): Break out code to determine
12572 which hard regs are live across calls by examining the reload chains
12573 so that it is always used.
12574 Eliminate code which checked REG_N_CALLS_CROSSED.
12575
3ffe07e1
JJ
125762011-01-21 Jakub Jelinek <jakub@redhat.com>
12577
12578 PR tree-optimization/47355
12579 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12580 NOP has non-debug uses beyond PHIs in new_bb.
12581
1c7d0b34
AO
125822011-01-21 Alexandre Oliva <aoliva@redhat.com>
12583
12584 PR debug/47106
12585 * cfgexpand.c (account_used_vars_for_block): Only account vars
12586 that are annotated as used.
12587 (estimated_stack_frame_size): Don't set TREE_USED.
12588 * tree-dfa.c (create_var_ann): Mark variable as used.
12589
f99cc488
RG
125902011-01-21 Richard Guenther <rguenther@suse.de>
12591
12592 PR middle-end/47395
12593 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12594
3bc27de7
RG
125952011-01-21 Richard Guenther <rguenther@suse.de>
12596
12597 PR tree-optimization/47365
12598 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12599 (vn_reference_lookup_pieces): Adjust.
12600 (vn_reference_lookup): Likewise.
12601 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12602 (vn_reference_lookup_3): Only look through kills if in
12603 VN_WALKREWRITE mode.
12604 (vn_reference_lookup_pieces): Adjust.
12605 (vn_reference_lookup): Likewise.
12606 (visit_reference_op_load): Likewise.
12607 (visit_reference_op_store): Likewise.
12608 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12609 (compute_avail): Likewise.
12610 (eliminate): Likewise.
12611
d8debb1d
JJ
126122011-01-21 Jakub Jelinek <jakub@redhat.com>
12613
12614 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12615 DECL_IGNORED_P non-reg vars if they are used.
12616
3a2df831
JJ
12617 PR tree-optimization/47391
12618 * varpool.c (const_value_known_p): Return false if
12619 decl is volatile.
12620
1dd584a2
KT
126212011-01-21 Kai Tietz <kai.tietz@onevision.com>
12622
12623 PR bootstrap/47215
12624 * config/i386/i386.c (ix86_local_alignment): Handle
12625 case for va_list_type_node is nil.
12626 (ix86_canonical_va_list_type): Likewise.
12627
7f9f095e
AM
126282011-01-21 Alan Modra <amodra@gmail.com>
12629
12630 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12631 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12632
837b01f6
RR
126332011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12634
12635 * config/arm/arm.md (define_attr type): Rename f_load
12636 and f_store to f_fpa_load and f_fpa_store. Update.
12637 (write_conflict): Deal with rename fallout.
12638 (*push_fp_multi): Likewise.
12639 * config/arm/fpa.md (f_load): Use f_fpa_load.
12640 (f_store): Use f_fpa_store.
12641 (*movsf_fpa): Likewise.
12642 (*movdf_fpa): Likewise.
12643 (*movxf_fpa): Likewise.
12644 (*thumb2_movsf_fpa): Likewise.
12645 (*thumb2_movdf_fpa): Likewise.
12646 (*thumb2_movxf_fpa): Likewise.
12647 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12648 f_loadd and f_stored.
12649 (*thumb2_movdi_vfp): Likewise.
12650 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12651 (*thumb2_movsi_vfp): Likewise.
12652 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12653 Use f_loads instead of f_load.
12654 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12655
a1a79768
AS
126562011-01-20 Anatoly Sokolov <aesok@post.ru>
12657
12658 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12659 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12660 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12661 (xtensa_mode_dependent_address_p): New function.
12662 (constantpool_address_p): Make static. Change return type to bool.
12663 Change argument type to const_rtx. Use CONST_INT_P predicate.
12664
427f6cec
AO
126652011-01-20 Alexandre Oliva <aoliva@redhat.com>
12666
12667 PR debug/46583
12668 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12669
583ac69c
JJ
126702011-01-20 Jakub Jelinek <jakub@redhat.com>
12671
12672 PR debug/47283
12673 * cfgexpand.c (expand_debug_expr): Instead of generating
12674 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12675 etc. handling.
12676
93e452ed
RG
126772011-01-20 Richard Guenther <rguenther@suse.de>
12678
12679 PR middle-end/47370
12680 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12681 the pointer operand of MEM_REFs.
12682
28fc44f3
JJ
126832011-01-20 Jakub Jelinek <jakub@redhat.com>
12684
12685 PR tree-optimization/46130
12686 * ipa-split.c (consider_split): If return_bb contains non-virtual
12687 PHIs other than for retval or if split_function would not adjust it,
12688 refuse to split.
12689
ddd268f2
RG
126902011-01-20 Richard Guenther <rguenther@suse.de>
12691
12692 PR tree-optimization/47167
12693 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12694 Revert previous change, only avoid enumeral type changes.
12695
882020aa
MS
126962011-01-19 Mike Stump <mikestump@comcast.net>
12697
12698 * doc/tm.texi.in (BRANCH_COST): Englishify.
12699 * doc/tm.texi (BRANCH_COST): Likewise.
12700
7edb6247
DS
127012011-01-19 Dodji Seketeli <dodji@redhat.com>
12702
12703 PR c++/47291
12704 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
12705 (gen_scheduled_generic_parms_dies): New functions.
12706 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12707 generation for the end of CU compilation.
12708 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 12709
23d5ed5d
AO
127102011-01-19 Alexandre Oliva <aoliva@redhat.com>
12711
12712 PR debug/46240
12713 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12714 debug bind stmt on merge edges.
12715
37d6a488
AO
127162011-01-19 Alexandre Oliva <aoliva@redhat.com>
12717
12718 PR debug/47079
12719 PR debug/46724
12720 * function.c (instantiate_expr): Instantiate incoming rtl of
12721 implicit arguments, and recurse on VALUE_EXPRs.
12722 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12723 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12724
689f2c82
AO
127252011-01-19 Alexandre Oliva <aoliva@redhat.com>
12726
12727 * c-parser.c (c_parser_for_statement): Initialize
12728 collection_expression.
12729
03029de4
JM
127302011-01-19 Joseph Myers <joseph@codesourcery.com>
12731
12732 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12733
3e03217e
JM
127342011-01-19 Joseph Myers <joseph@codesourcery.com>
12735
12736 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12737 (LINK_SHLIB_SPEC): Don't use %(link_path).
12738 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12739
5bbe9b3f
JM
127402011-01-19 Joseph Myers <joseph@codesourcery.com>
12741
12742 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12743 (NO_SHARED_LIB_SUPPORT): Remove.
12744 (LINK_SHLIB_SPEC): Remove one conditional definition.
12745
368e0b39
JM
127462011-01-19 Joseph Myers <joseph@codesourcery.com>
12747
12748 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12749 %{call_shared}.
12750 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12751 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12752 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12753 %{call_shared} and conditionals on these options not being passed.
12754 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12755 %{call_shared}.
12756
ed7656f6
JJ
127572011-01-19 Jakub Jelinek <jakub@redhat.com>
12758
68457901
JJ
12759 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12760 simplify.
12761
ed7656f6
JJ
12762 * ipa-split.c: Spelling fixes.
12763
e0d1958f
RH
127642011-01-19 Richard Henderson <rth@redhat.com>
12765
12766 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12767 (*mulsi3): Likewise.
12768
27098b6b
RH
12769 * longlong.h [__mn10300__] (count_leading_zeros): New.
12770 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12771 [__mn10300__] (add_ssaaaa, subddmmss): New.
12772 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12773 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12774
d6be7c36
UW
127752011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12776
12777 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12778
b1efde2a
RH
127792011-01-19 Richard Henderson <rth@redhat.com>
12780
44217823
RH
12781 * config/mn10300/mn10300.md (addsi3_flags): New.
12782 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12783 (subsi3_flags, subc_internal, subdi3): New.
12784 (subdi3_internal, *subdi3_degenerate): New.
12785 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12786
37a185d7
RH
12787 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12788 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12789 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12790 * config/mn10300/mn10300-protos.h: Update.
12791 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12792 (return_ret): Likewise. Rename from return_internal_regs.
12793 (return_internal): Remove.
12794
040c5757
RH
12795 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12796 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12797 (mn10300_legitimate_constant_p): Likewise.
12798 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12799 (mn10300_frame_size): New.
12800 (mn10300_expand_prologue): Use it.
12801 (mn10300_expand_epilogue): Likewise.
12802 (mn10300_initial_offset): Likewise.
12803 * config/mn10300/mn10300-protos.h: Update.
12804 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12805 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12806 (prologue, epilogue, return_internal): Tidy output code.
12807 (mn10300_store_multiple_operation, return): Likewise.
12808 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12809 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12810 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12811 (load_pic, am33_load_pic): New.
12812 (mn10300_load_pic0, mn10300_load_pic1): New.
12813
bad41521
RH
12814 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12815 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12816 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12817 (cc_flags_for_mode, cc_flags_for_code): New.
12818 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12819 overflow flag is not valid. Validate that the flags we need
12820 for the comparison are valid.
12821 (mn10300_output_cmp): Remove.
12822 (mn10300_output_add): New.
12823 (mn10300_select_cc_mode): Use cc_flags_for_code.
12824 (mn10300_split_cbranch): New.
12825 (mn10300_match_ccmode): New.
12826 (mn10300_split_and_operand_count): New.
12827 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12828 to the function.
12829 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12830 (addsi3): ... here. Use mn10300_output_add.
12831 (*addsi3_flags): New.
12832 (*am33_subsi3, *mn10300_subsi3): Merge...
12833 (subsi3): ... here. Use attribute isa.
12834 (*subsi3_flags): New.
12835 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12836 when possible.
12837 (*am33_andsi3, *mn10300_andsi3): Merge...
12838 (andsi3): ... here.
12839 (*andsi3_flags): New.
12840 (andsi3 splitters): New.
12841 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12842 (iorsi3): ... here.
12843 (*iorsi3_flags): New.
12844 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12845 (xorsi3): ... here.
12846 (*xorsi3_flags): New.
12847 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12848 (one_cmplsi2): ... here.
12849 (*one_cmplsi2_flags): New.
12850 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12851 instead of "dax" in constraints. Use mn10300_split_cbranch.
12852 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12853 use matching constraints to eliminate a self-comparison.
12854 (*integer_conditional_branch): Rename from integer_conditional_branch.
12855 Use int_mode_flags to match CC_REG.
12856 (*cbranchsi4_btst, *btstsi): New.
12857 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12858 mn10300_split_cbranch.
12859 (*am33_cmpsf): Rename from am33_cmpsf.
12860 (*float_conditional_branch): Rename from float_conditional_branch.
12861 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12862 (zero_extendqisi2): ... here.
12863 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12864 (zero_extendhisi2): ... here.
12865 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12866 (extendqisi2): ... here.
12867 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12868 (extendhisi2): ... here.
12869 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12870 (ashlsi3): ... here.
12871 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12872 (lshrsi3): ... here.
12873 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12874 (ashrsi3): ... here.
12875 (consecutive add peephole): Remove.
12876 * config/mn10300/predicates.md (label_ref_operand): New.
12877 (int_mode_flags): New.
12878 (CCZN_comparison_operator): New.
12879
9efb4993
RH
12880 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12881 (throughput_42_latency_43): New reservation.
12882 (mulsidi3, umulsidi3): New expanders.
12883 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12884 the MDR register to allocation; separately allocate the low and
12885 high parts of the DImode result.
12886 (umulsidi3_internal): Similarly.
12887 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12888 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12889 (udivsi3, umodsi3): Remove.
12890 (udivmodsi4, divmodsi4): New expanders.
12891 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12892 (*divmodsi4): Simiarly.
12893 (ext_internal): New.
12894
c25a21f5
RH
12895 * config/mn10300/constraints.md ("z"): New constraint.
12896 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12897 (FIXED_REGISTERS): Don't fix MDR.
12898 (CALL_USED_REGSITERS): Reformat nicely.
12899 (REG_ALLOC_ORDER): Add MDR.
12900 (enum regclass): Add MDR_REGS.
12901 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12902 (IRA_COVER_CLASSES): Add MDR_REGS.
12903 (REGNO_REG_CLASS): Handle MDR_REG.
12904 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12905 (mn10300_register_move_cost): Likewise.
12906 * config/mn10300/mn10300.md (MDR_REG): New.
12907 (*movsi_internal): Handle moves to/from MDR_REGS.
12908
36846b26
RH
12909 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12910 POST_MODIFY.
12911 (mn10300_secondary_reload): Tidy combination reload classes.
12912 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12913 addresses for AM33. Allow symbolic offsets for reg+imm.
12914 (mn10300_regno_in_class_p): New.
12915 (mn10300_legitimize_reload_address): New.
12916 * config/mn10300/mn10300.h (enum reg_class): Remove
12917 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12918 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12919 SP_OR_GENERAL_REGS.
12920 (REG_CLASS_NAMES): Update to match.
12921 (REG_CLASS_CONTENTS): Likewise.
12922 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12923 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12924 (REGNO_IN_RANGE_P): Remove.
12925 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12926 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12927 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12928 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12929 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12930 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12931 (REGNO_GENERAL_P): New.
12932 (HAVE_POST_MODIFY_DISP): New.
12933 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12934 (LEGITIMIZE_RELOAD_ADDRESS): New.
12935 * config/mn10300/mn10300-protos.h: Update.
12936
8b119bb6
RH
12937 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12938 DATA_REGS for AM33 stack-pointer destination.
12939 (mn10300_preferred_output_reload_class): Likewise.
12940 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12941 into a form appropriate for ...
12942 (TARGET_SECONDARY_RELOAD): New.
12943 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12944 * config/mn10300/mn10300-protos.h: Update.
12945 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12946 reload_insi; use the "A" constraint for the scratch; handle AM33
12947 moves of sp to non-address registers.
12948
b1efde2a
RH
12949 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12950 (*movqi_internal): ... here.
12951 (*am33_movhi, *mn10300_movhi): Merge into...
12952 (*movhi_internal): ... here.
12953 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12954 as the source/destination of moves from/to SP.
12955 (movsf): Only allow for AM33-2.
1c3ba85b 12956 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
12957 any integer constant constraint. Only allow for AM33-2. Tidy
12958 all of the alternative outputs.
12959 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12960 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12961 for MN103.
12962 (udivsi3, umodsi3): New patterns for MN103 only.
12963
b899fd78
JR
129642011-01-19 Joern Rennecke <amylaar@spamcop.net>
12965
12966 * doc/tm.texi.in: Spell out that a lack of register class unions
12967 can lead to ICEs.
12968 * doc/tm.texi: Regenerate.
12969
afaaa67d
JJ
129702011-01-19 Jakub Jelinek <jakub@redhat.com>
12971
2e0642cd
JJ
12972 PR rtl-optimization/47337
12973 * dce.c (check_argument_store): New function.
12974 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12975
afaaa67d
JJ
12976 PR tree-optimization/47290
12977 * tree-eh.c (infinite_empty_loop_p): New function.
12978 (cleanup_empty_eh): Use it.
12979
d2cd871f
SE
129802011-01-18 Steve Ellcey <sje@cup.hp.com>
12981
12982 PR target/46997
12983 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12984 (a64_expand_widen_sum): Ditto.
12985 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12986 (vec_extract_evenodd_help): Ditto.
12987 (vec_extract_evenv4hi): Ditto.
12988 (vec_extract_oddv4hi): Ditto.
12989 (vec_extract_evenv2si): Ditto.
12990 (vec_extract_oddv2si): Ditto.
12991 (vec_extract_evenv2sf): Ditto.
12992 (vec_extract_oddv2sf): Ditto.
12993 (vec_pack_trunc_v4hi: Ditto.
12994 (vec_pack_trunc_v2si): Ditto.
12995 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12996 (vec_interleave_highv8qi): Ditto.
12997 (mix1_r): Ditto.
12998 (vec_extract_oddv8qi): Ditto.
12999 (vec_interleave_lowv4hi): Ditto.
13000 (vec_interleave_highv4hi): Ditto.
13001 (vec_interleave_lowv2si): Ditto.
13002 (vec_interleave_highv2si): Ditto.
13003
41a1208a
JDA
130042011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13005
13006 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13007 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13008 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13009 (pa_c_mode_for_suffix): New.
13010 (TARGET_EXPAND_BUILTIN): Define.
13011 (TARGET_C_MODE_FOR_SUFFIX): Define.
13012 (pa_builtins): Define.
13013 (pa_init_builtins): Register __float128 type and init new support
13014 builtins.
13015 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13016 * config/pa/quadlib.c (_U_Qfcopysign): New.
13017
1ecad98e
EB
130182011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13019
13020 PR middle-end/46894
13021 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13022 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13023 are defined.
13024
d4f2460a
UW
130252011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13026
13027 PR tree-optimization/47179
13028 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13029 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13030
4994da65
RG
130312011-01-18 Richard Guenther <rguenther@suse.de>
13032
13033 PR rtl-optimization/47216
13034 * emit-rtl.c: Include tree-flow.h.
13035 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13036 of replicating it with different semantics.
13037 * Makefile.in (emit-rtl.o): Adjust.
13038
1eb458d1
RR
130392011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13040
38be4072 13041 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 13042 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 13043
e7ef91dc
JJ
130442011-01-18 Jakub Jelinek <jakub@redhat.com>
13045
13046 PR rtl-optimization/47299
13047 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 13048 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
13049 * expmed.c (expand_widening_mult): Don't try to optimize constant
13050 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13051 before using it.
13052
535b7874
RW
130532011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13054
13055 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13056 spacing after 'e.g.', typos, comma, hyphenation.
13057
27bf36f3
RH
130582011-01-17 Richard Henderson <rth@redhat.com>
13059
8a5b5449
RH
13060 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13061 (rx_restricted_mem_operand): New.
13062 (rx_shift_operand): Use register_operand.
13063 (rx_source_operand, rx_compare_operand): Likewise.
13064 * config/rx/rx.md (addsi3_flags): New expander.
13065 (adddi3): Rewrite as expander.
13066 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13067 (subsi3_flags): New expander.
13068 (subdi3): Rewrite as expander.
13069 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13070
784f69be
RH
13071 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13072 (rx_init_builtins): Remove sat builtin.
13073 (rx_expand_builtin): Likewise.
13074 * config/rx/rx.md (ssaddsi3): New.
13075 (*sat): Rename from sat. Represent the CC_REG input.
13076
f033541c
RH
13077 * config/rx/predicates.md (rshift_operator): New.
13078 * config/rx/rx.c (rx_expand_insv): Remove.
13079 * config/rx/rx-protos.h: Update.
13080 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13081 operand to the canonical position.
13082 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
13083 (*bitclr, *bitclr_in_memory): Similarly.
13084 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
13085 (insv): Retain the zero_extract in the expansion.
13086
34fee389
RH
13087 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
13088 (bswaphi2, bitinvert, revw): Likewise.
13089
265c835f
RH
13090 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
13091 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
13092 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
13093 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
13094 (bitset, bitset_in_memory): Likewise.
13095 (bitinvert, bitinvert_in_memory): Likewise.
13096 (bitclr, bitclr_in_memory): Likewise.
13097 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
13098 (rx_strend, rx_cmpstrn): Likewise.
13099 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
13100 (bitop peep2 patterns): Remove.
13101
b4d83be3
RH
13102 * config/rx/rx.c (rx_match_ccmode): New.
13103 * config/rx/rx-protos.h: Update.
13104 * config/rx/rx.md (abssi2): Clobber, don't set flags.
13105 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
13106 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
13107 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
13108 (fix_truncsfsi2, floatsisf2): Likewise.
13109 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
13110 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
13111 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
13112 (*subsi3_flags, *xorsi3_flags): New.
13113
d0acb939
RH
13114 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
13115
c06fc3d9
RH
13116 * config/rx/rx.c (rx_print_operand): Remove workaround for
13117 unsplit comparison operations.
13118
2882702b
RH
13119 * config/rx/rx.md (movsicc): Split after reload.
13120 (*movsicc): Merge *movsieq and *movsine via match_operator.
13121 (*stcc): New pattern.
13122
6f7310f2
RH
13123 * config/rx/rx.c (rx_float_compare_mode): Remove.
13124 * config/rx/rx.h (rx_float_compare_mode): Remove.
13125 * config/rx/rx.md (cstoresi4): Split after reload.
13126 (*sccc): New pattern.
13127
e963cb1a
RH
13128 * config/rx/predicates.md (label_ref_operand): New.
13129 (rx_z_comparison_operator): New.
13130 (rx_zs_comparison_operator): New.
13131 (rx_fp_comparison_operator): New.
13132 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
13133 Validate that the flags are set properly for the comparison.
13134 (rx_gen_cond_branch_template): Remove.
13135 (rx_cc_modes_compatible): Remove.
13136 (mode_from_flags): New.
13137 (flags_from_code): Rename from flags_needed_for_conditional.
13138 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
13139 (rx_select_cc_mode): Likewise.
13140 (rx_split_fp_compare): New.
13141 (rx_split_cbranch): New.
13142 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
13143 (*cbranchsi4): Use match_operator and rx_split_cbranch.
13144 (*cbranchsf4): Similarly.
13145 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
13146 match_operator and rx_split_cbranch.
13147 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
13148 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
13149 (*cmpsi): Rename from cmpsi.
13150 (*tstsi): Rename from tstsi.
13151 (*cmpsf): Rename from cmpsf; use CC_Fmode.
13152 (*conditional_branch): Rename from conditional_branch.
13153 (*reveresed_conditional_branch): Remove.
13154 (b<code>): Remove expander.
13155 * config/rx/rx-protos.h: Update.
13156
af530bb4
RH
13157 * config/rx/rx.c (rx_compare_redundant): Remove.
13158 * config/rx/rx.md (cmpsi): Don't use it.
13159 * config/rx/rx-protos.h: Update.
13160
27bf36f3
RH
13161 * config/rx/rx-modes.def (CC_F): New mode.
13162 * config/rx/rx.c (rx_select_cc_mode): New.
13163 * config/rx/rx.h (SELECT_CC_MODE): Use it.
13164 * config/rx/rx-protos.h: Update.
13165
d7fde127
RH
131662011-01-17 Richard Henderson <rth@redhat.com>
13167
13168 * except.c (dump_eh_tree): Fix stray ; after for statement.
13169
6ff38230
RG
131702011-01-17 Richard Guenther <rguenther@suse.de>
13171
13172 PR tree-optimization/47313
13173 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
13174 handling before copying the body. Properly deal with
13175 by-reference result in SSA form.
13176
114ce554
ILT
131772011-01-17 Ian Lance Taylor <iant@google.com>
13178
bf5cd92b 13179 PR target/47219
114ce554
ILT
13180 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
13181 (struct_value_alias_set): Don't define.
13182 (sparc_option_override): Don't set sparc_sr_alias_set and
13183 struct_value_alias_set.
13184 (save_or_restore_regs): Use gen_frame_mem rather than calling
13185 set_mem_alias_set.
13186 (sparc_struct_value_rtx): Likewise.
13187
98c6d93c
L
131882011-01-17 H.J. Lu <hongjiu.lu@intel.com>
13189
13190 PR target/47318
7a81008b 13191 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
13192 (_mm_maskstore_pd): Likewise.
13193 (_mm_maskload_ps): Likewise.
13194 (_mm_maskstore_ps): Likewise.
13195 (_mm256_maskload_pd): Change mask to __m256i.
13196 (_mm256_maskstore_pd): Likewise.
13197 (_mm256_maskload_ps): Likewise.
13198 (_mm256_maskstore_ps): Likewise.
13199
13200 * config/i386/i386-builtin-types.def: Updated.
13201 (ix86_expand_special_args_builtin): Likewise.
13202
13203 * config/i386/i386.c (bdesc_special_args): Update
13204 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13205 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13206 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13207 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13208
13209 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13210 Use <avxpermvecmode> on mask register.
13211 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13212
b9361af2 132132011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
13214 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13215 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
13216
13217 PR target/46655
13218 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13219 if <= USHRT_MAX in 32-bit mode.
13220
b7ae9eb5
RW
132212011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13222
13223 * doc/install.texi (Configuration, Specific): Wrap long
13224 lines in examples. Allow line wrapping in long options
13225 and URLs where beneficial for PDF output.
13226
4377fad9
RS
132272011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13228
13229 * config/mips/mips.c (mips_classify_symbol): Don't return
13230 SYMBOL_PC_RELATIVE for nonlocal labels.
13231
55959ffa 132322011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 13233
55959ffa
EB
13234 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13235
132362011-01-15 Jan Hubicka <jh@suse.cz>
13237
13238 PR tree-optimization/47276
be46831f
JH
13239 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13240 declarations as needed.
13241
05842ff5
MJ
132422011-01-15 Martin Jambor <mjambor@suse.cz>
13243
13244 * common.opt (fdevirtualize): New flag.
13245 * doc/invoke.texi (Option Summary): Document it.
13246 * opts.c (default_options_table): Add devirtualize flag.
13247 * ipa-prop.c (detect_type_change): Return immediately if
13248 devirtualize flag is not set.
13249 (detect_type_change_ssa): Likewise.
13250 (compute_known_type_jump_func): Likewise.
13251 (ipa_analyze_virtual_call_uses): Likewise.
13252
f65cf2b7
MJ
132532011-01-14 Martin Jambor <mjambor@suse.cz>
13254
13255 PR tree-optimization/45934
13256 PR tree-optimization/46302
13257 * ipa-prop.c (type_change_info): New type.
13258 (stmt_may_be_vtbl_ptr_store): New function.
13259 (check_stmt_for_type_change): Likewise.
13260 (detect_type_change): Likewise.
13261 (detect_type_change_ssa): Likewise.
13262 (compute_complex_assign_jump_func): Check for dynamic type change.
13263 (compute_complex_ancestor_jump_func): Likewise.
13264 (compute_known_type_jump_func): Likewise.
13265 (compute_scalar_jump_functions): Likewise.
13266 (ipa_analyze_virtual_call_uses): Likewise.
13267 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13268
eb5bb0fd
JM
132692011-01-14 Joseph Myers <joseph@codesourcery.com>
13270
13271 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13272 * config/i386/i386.opt (msse5): New Alias.
13273
f2060fbe
JM
132742011-01-14 Joseph Myers <joseph@codesourcery.com>
13275
13276 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13277 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13278 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13279 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13280
3a7b4385
JM
132812011-01-14 Joseph Myers <joseph@codesourcery.com>
13282
13283 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13284 -mcpu options.
13285 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13286 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13287 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13288 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13289 Likewise.
13290 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13291
a7b778f8
JM
132922011-01-14 Joseph Myers <joseph@codesourcery.com>
13293
38be4072 13294 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 13295
a7edae0a
MS
132962011-01-14 Mike Stump <mikestump@comcast.net>
13297
13298 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13299 * config/fr30/fr30.md: Likweise
13300 (movsi_push): Likewise.
13301 (movsi_pop): Likewise.
13302 (enter_func): Likewise.
13303 * config/moxie/moxie.md (movsi_push): Likewise.
13304 (movsi_pop): Likewise.
13305
cbabf03f
JM
133062011-01-14 Joseph Myers <joseph@codesourcery.com>
13307
13308 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13309 %{no_archive} %{exact_version}.
13310 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13311 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13312 %{no_archive} %{exact_version}.
13313 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13314 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13315 * config/mips/vxworks.h: Likewise.
13316
438da41a
JM
133172011-01-14 Joseph Myers <joseph@codesourcery.com>
13318
38be4072 13319 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 13320
da290a42
JM
133212011-01-14 Joseph Myers <joseph@codesourcery.com>
13322
13323 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13324 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13325
8989d00e
JM
133262011-01-14 Joseph Myers <joseph@codesourcery.com>
13327
13328 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13329 -nodefaultlib.
13330
a3010a69
JM
133312011-01-14 Joseph Myers <joseph@codesourcery.com>
13332
13333 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13334 for mcpu not cpu.
13335 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13336 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13337 not cpu.
13338 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13339 Don't handle -shlib.
13340
e7f2f537
JM
133412011-01-14 Joseph Myers <joseph@codesourcery.com>
13342
13343 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13344 (CC1_SPEC): Don't handle -profile.
13345
34830bfd
JM
133462011-01-14 Joseph Myers <joseph@codesourcery.com>
13347
13348 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13349 * config/mips/mips.h (CC1_SPEC): Likewise.
13350
b2d36e74
JM
133512011-01-14 Joseph Myers <joseph@codesourcery.com>
13352
13353 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13354 * config/mips/mips.h (CC1_SPEC): Likewise.
13355
dabadc52
JM
133562011-01-14 Joseph Myers <joseph@codesourcery.com>
13357
13358 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13359 * config/m32r/linux.h (LINK_SPEC): Likewise.
13360 * config/mips/linux.h (LINK_SPEC): Likewise.
13361 * config/mips/linux64.h (LINK_SPEC): Likewise.
13362 * config/sparc/linux.h (LINK_SPEC): Likewise.
13363 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13364 LINK_SPEC): Likewise.
13365 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13366
43ee6785
JM
133672011-01-14 Joseph Myers <joseph@codesourcery.com>
13368
13369 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13370 %{version:-v}.
13371 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13372
45e79dfd
JM
133732011-01-14 Joseph Myers <joseph@codesourcery.com>
13374
13375 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13376 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13377
37e9e71d
JM
133782011-01-14 Joseph Myers <joseph@codesourcery.com>
13379
13380 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13381
bb127cd8
RO
133822011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13383
13384 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13385 supports -Bstatic/-Bdynamic.
13386 * configure: Regenerate.
13387
89a012ea 133882011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 13389 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
13390
13391 PR target/46037
13392 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13393 when checking debug_info_level. Test write_symbols instead of
13394 debug_hooks->var_location when setting flag_var_tracking_uninit.
13395
7352c013
RG
133962011-01-14 Richard Guenther <rguenther@suse.de>
13397
13398 PR tree-optimization/47179
13399 * target.def (ref_may_alias_errno): New target hook.
13400 * targhooks.h (default_ref_may_alias_errno): Declare.
13401 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13402 (default_ref_may_alias_errno): New function.
13403 * target.h (struct ao_ref_s): Declare.
13404 * tree-ssa-alias.c: Include target.h.
13405 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13406 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13407 (targhooks.o): Likewise.
13408 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13409 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13410
9a6c9288
RG
134112011-01-14 Richard Guenther <rguenther@suse.de>
13412
13413 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13414
0fdb0d27
RG
134152011-01-14 Richard Guenther <rguenther@suse.de>
13416
13417 PR tree-optimization/47280
13418 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13419 return CFG changes.
13420 (tree_ssa_forward_propagate_single_use_vars): Deal with
13421 CFG changes from associate_plusminus.
13422
8f66db3b
RG
134232011-01-14 Richard Guenther <rguenther@suse.de>
13424
13425 PR middle-end/47281
13426 Revert
13427 2011-01-11 Richard Guenther <rguenther@suse.de>
13428
280d9630
EB
13429 PR tree-optimization/46076
13430 * tree-ssa.c (useless_type_conversion_p): Conversions from
13431 unprototyped to empty argument list function types are useless.
8f66db3b 13432
6c0c92e6
RG
134332011-01-14 Richard Guenther <rguenther@suse.de>
13434
13435 PR tree-optimization/47286
280d9630 13436 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 13437
db09f943
MJ
134382011-01-14 Martin Jambor <mjambor@suse.cz>
13439
13440 PR middle-end/46823
13441 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13442
dde8a3a4
AS
134432011-01-13 Anatoly Sokolov <aesok@post.ru>
13444
13445 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13446 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13447 * config/xtensa/xtensa.c (xtensa_libcall_value,
13448 xtensa_function_value_regno_p): New functions.
13449 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13450
a2b63a20
KT
134512011-01-13 Kai Tietz <kai.tietz@onevision.com>
13452
13453 PR c++/47213
13454 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13455 PE specific hook.
13456 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13457 New function prototype.
13458 * config/i386/winnt.c (i386_pe_assemble_visibility):
13459 Warn only if attribute was specified by user.
13460
b41f0b34
MM
134612011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13462
13463 PR target/47251
13464 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13465 floating point.
13466 (floatunsdidf2_fcfidu): Ditto.
13467
3f3c098d
AK
134682011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13469
13470 * config/s390/s390.c (print_operand_address): Replace 'error' with
13471 'output_operand_lossage'.
13472 (print_operand): Likewise.
13473
29fa95ed
JL
134742011-01-13 Jeff Law <law@redhat.com>
13475
280d9630 13476 PR rtl-optimization/39077
29fa95ed
JL
13477 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13478 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13479 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13480 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13481 * gcse.c (prune_insertions_deletions): New function.
13482 (compute_pre_data): Use it.
13483
71d12276
DS
134842011-01-13 Dodji Seketeli <dodji@redhat.com>
13485
13486 PR debug/PR46973
13487 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13488 static function.
61052244 13489 (prune_unused_types_mark): Use it.
71d12276 13490
9b0f04e7
AB
134912011-01-13 Andrey Belevantsev <abel@ispras.ru>
13492
13493 PR rtl-optimization/45352
1c3ba85b 13494 * sel-sched.c: Update copyright years.
9b0f04e7 13495 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 13496 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 13497
d6a3e264
RH
134982011-01-12 Richard Henderson <rth@redhat.com>
13499
a49b692a
RH
13500 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13501 (TARGET_MD_ASM_CLOBBERS): New.
13502
126b1483
RH
13503 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13504 (TARGET_DELEGITIMIZE_ADDRESS): New.
13505
f3d9d2e0
RH
13506 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13507 (clzsi2, *bsch): New patterns.
13508
d84760c9
RH
13509 * config/mn10300/mn10300.md (INT): New mode iterator.
13510 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13511
ec815d65
RH
13512 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13513 flag_split_wide_types.
13514
d6a3e264
RH
13515 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13516 (mn10300_trampoline_init): Rewrite without a template, an immediate
13517 load and a direct branch.
13518 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13519
0f8ab434
AS
135202011-01-12 Anatoly Sokolov <aesok@post.ru>
13521
13522 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13523 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13524 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13525 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13526
d8a24b65
KT
135272011-01-12 Kai Tietz <kai.tietz@onevision.com>
13528
13529 PR debug/47209
13530 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13531 of type.
13532
56e22cab
JH
135332011-01-12 Jan Hubicka <jh@suse.cz>
13534
13535 PR driver/47244
13536 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13537 (PLUGIN_COND_CLOSE): New macro.
13538 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13539
4b18b3c2
RG
135402011-01-12 Richard Guenther <rguenther@suse.de>
13541
13542 PR lto/47259
13543 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13544 register variables in a MEM_REF.
13545
8e38461c
JM
135462011-01-12 Joseph Myers <joseph@codesourcery.com>
13547
13548 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13549 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13550 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13551 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13552 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13553 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13554 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13555 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13556 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13557 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13558 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13559 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13560 * config/gnu-user.h: New. Copied from linux.h.
13561 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13562 GNU_USER_TARGET_STARTFILE_SPEC.
13563 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13564 GNU_USER_TARGET_ENDFILE_SPEC.
13565 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13566 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13567 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13568 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13569 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13570 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13571 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13572 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13573 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13574 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13575 * config/arm/linux-eabi.h (CC1_SPEC): Use
13576 GNU_USER_TARGET_CC1_SPEC.
13577 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13578 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13579 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13580 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13581 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13582 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13583 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13584 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13585
a570fc16
RG
135862011-01-12 Richard Guenther <rguenther@suse.de>
13587
13588 PR other/46946
13589 * doc/invoke.texi (ffast-math): Document it is turned on
13590 with -Ofast.
13591
b0223c3e
JH
135922011-01-12 Jan Hubicka <jh@suse.cz>
13593
13594 PR tree-optimization/47233
ca1e00b3
EB
13595 * opts.c (common_handle_option): Disable ipa-reference with profile
13596 feedback.
b0223c3e 13597
1c3ba85b 135982011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
13599
13600 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
13601 error message.
13602
d853ee42
NP
136032011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13604
13605 * c-parser.c (c_lex_one_token): Updated and reindented some
13606 comments. No changes in code.
13607
4053a5a0
ILT
136082011-01-11 Ian Lance Taylor <iant@google.com>
13609
13610 * godump.c (go_output_var): Don't output the variable if there is
13611 already a type with the same name.
13612
fa3e04d2
ILT
136132011-01-11 Ian Lance Taylor <iant@google.com>
13614
13615 * godump.c (go_format_type): Don't generate float80.
13616
885fe07c
RH
136172011-01-11 Richard Henderson <rth@redhat.com>
13618
72d6e3c5
RH
13619 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13620 declaration. Rewrite for both speed and size.
13621 (mn10300_address_cost_1): Remove.
13622 (mn10300_register_move_cost): New.
13623 (mn10300_memory_move_cost): New.
13624 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13625 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13626 extensions, shifts, BSWAP, CLZ.
13627 (mn10300_wide_const_load_uses_clr): Remove.
13628 (TARGET_REGISTER_MOVE_COST): New.
13629 (TARGET_MEMORY_MOVE_COST): New.
13630 * config/mn10300/mn10300-protos.h: Update.
13631 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13632
df37c023
RH
13633 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13634 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13635 * config/mn10300/mn10300-protos.h: Update.
13636 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13637 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13638 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13639 (*test_int_bitfield, *test_byte_bitfield): Remove.
13640 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 13641 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 13642
85a337b5
RH
13643 * config/mn10300/constraints.md ("c"): Rename from "A".
13644 ("A", "D"): New constraint letters.
13645 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13646 (fmssf4, fnmasf4, fnmssf4): Likewise.
13647
a5c727e3
RH
13648 * config/mn10300/mn10300.md (isa): New attribute.
13649 (enabled): New attribute.
13650
0d9e23f4
RH
13651 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13652 (abssf2, negsf2): Define only for hardware fp.
13653 (sqrtsf2): Reformat.
13654 (addsf3, subsf3, mulsf3): Merge expander and insn.
13655
c157b3f0
RH
13656 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13657 (DEBUGGER_AUTO_OFFSET): Remove.
13658 (DEBUGGER_ARG_OFFSET): Remove.
13659
cc909bba
RH
13660 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13661 Emit register stores with the same offsets as the hardware.
13662 (mn10300_store_multiple_operation): Don't check that the register
13663 save offsets are monotonic.
13664 * config/mn10300/mn10300-protos.h: Update.
13665
e3b5c2f3
RH
13666 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13667
885fe07c
RH
13668 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13669 in terms of the value on the stack, not the MDR register.
13670
6e701822
JH
136712011-01-11 Jan Hubicka <jh@suse.cz>
13672
13673 PR lto/45721
13674 PR lto/45375
13675 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13676 (symbol_alias_set_destroy, symbol_alias_set_contains,
13677 propagate_aliases_backward): Declare.
13678 * lto-streamer-out.c (struct sets): New sturcture.
13679 (trivally_defined_alias): New function.
13680 (output_alias_pair_p): Rewrite.
13681 (output_unreferenced_globals): Fix output of alias pairs.
13682 (produce_symtab): Likewise.
13683 * ipa.c (function_and_variable_visibility): Set weak alias destination
13684 as needed in lto.
13685 * varasm.c (symbol_alias_set_t): Remove.
13686 (symbol_alias_set_destroy): Export.
13687 (propagate_aliases_forward, propagate_aliases_backward): New functions
13688 based on ...
13689 (compute_visible_aliases): ... this one; remove.
13690 (trivially_visible_alias): New
13691 (trivially_defined_alias): New.
13692 (remove_unreachable_alias_pairs): Rewrite.
13693 (finish_aliases_1): Reorganize code checking if alias is defined.
13694 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13695 in LTO mode.
13696
1b248907
RG
136972011-01-11 Richard Guenther <rguenther@suse.de>
13698
13699 PR tree-optimization/46076
13700 * tree-ssa.c (useless_type_conversion_p): Conversions from
13701 unprototyped to empty argument list function types are useless.
13702
b1923f0a
RG
137032011-01-11 Richard Guenther <rguenther@suse.de>
13704
13705 PR middle-end/45235
13706 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13707 volatile MEMs as MEM_READONLY_P.
13708
e98965af
RG
137092011-01-11 Richard Guenther <rguenther@suse.de>
13710
13711 PR tree-optimization/47239
13712 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13713
9f9ca914
JL
137142011-01-11 Jeff Law <law@redhat.com>
13715
1ee3ea05 13716 PR tree-optimization/47086
9f9ca914
JL
13717 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13718 IVs from statements that might throw.
13719
345fdcb7
JH
137202011-01-10 Jan Hubicka <jh@suse.cz>
13721
13722 PR lto/45375
13723 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13724
c459c97b
JH
137252011-01-10 Jan Hubicka <jh@suse.cz>
13726
13727 PR lto/45375
13728 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13729 when correcting profile.
13730
06c9eb51
JH
137312011-01-10 Jan Hubicka <jh@suse.cz>
13732
13733 PR lto/46083
13734 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13735 DECL_FINI_PRIORITY.
13736 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13737 Restore DECL_FINI_PRIORITY.
13738
ae9fd815
RW
137392011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13740
13741 * doc/gimple.texi: Fix quoting of multi-word return values in
13742 @deftypefn statements. Ensure presence of return value. Wrap
13743 overlong @deftypefn lines.
13744 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13745 descriptions of removed functions.
13746 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13747 of multi-word return value in @deftypefn statement.
13748
0ecb4a7c
RW
137492011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13750
13751 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13752 (Conditional Expressions, Logical Operators)
13753 (Statement and operand traversals): Do not indent smallexample
13754 code. Fix duplicate function argument in example.
13755
2e5e346d
JL
137562011-01-10 Jeff Law <law@redhat.com>
13757
1ee3ea05 13758 PR tree-optimization/47141
2e5e346d
JL
13759 * ipa-split.c (split_function): Handle case where we are
13760 returning a value and the return block has a virtual operand phi.
13761
cf9712cc
JH
137622011-01-10 Jan Hubicka <jh@suse.cz>
13763
1c3ba85b 13764 PR tree-optimization/47234
cf9712cc
JH
13765 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13766 (pass_feedback_split_functions): Declare.
13767 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13768 tree-profile.
13769 * ipa-split.c (gate_split_functions): Update comments; disable
13770 split-functions for profile_arc_flag and branch_probabilities.
13771 (gate_feedback_split_functions): New function.
13772 (execute_feedback_split_functions): New function.
13773 (pass_feedback_split_functions): New global var.
13774
94cd932c
L
137752011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13776
13777 PR lto/46760
13778 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13779 calling gimple_call_set_cannot_inline.
13780
fbbfcaf1
IS
137812011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13782
13783 * config/darwin-sections.def: Remove unused section.
13784
d06865bf
DK
137852011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13786
13787 PR c++/47218
13788 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13789
96bbfbac
NP
137902011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13791
13792 PR objc/47232
13793 * c-parser.c (c_parser_declaration_or_fndef): Improved
13794 error message.
13795
1ba6516f
KT
137962011-01-09 Kai Tietz <kai.tietz@onevision.com>
13797
13798 * config/i386/winnt.c (i386_pe_start_function): Make sure
13799 to switch back to function's section.
13800
0c5d770e
IS
138012011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13802
13803 PR gcc/46902
13804 PR testsuite/46912
13805 * plugin.c: Move include of dlfcn.h from here...
13806 * system.h: ... to here.
13807
138082011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
13809
13810 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13811 file name.
13812 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13813 two extra empty pages in PDF output.
13814
046608a3
NP
138152011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13816
13817 PR objc/47078
13818 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13819 for error recovery purposes behave as if it was not specified so
13820 that the default type is usd.
13821
8cb114b9
JH
138222011-01-07 Jan Hubicka <jh@suse.cz>
13823
13824 PR tree-optmization/46469
13825 * ipa.c (function_and_variable_visibility): Clear needed flags on
13826 nodes with external decls; handle weakrefs merging correctly.
13827
b294a75e
JM
138282011-01-07 Joseph Myers <joseph@codesourcery.com>
13829
13830 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13831 not false.
13832
96bdf9b4
JH
138332011-01-07 Jan Hubicka <jh@suse.cz>
13834
f60c2554 13835 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
13836 and no longer claim that gold is required for linker plugin.
13837 * configure: Regenerate.
13838 * gcc.c (PLUGIN_COND): New macro.
13839 (LINK_COMMAND_SPEC): Use it.
13840 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13841 * config.in (HAVE_LTO_PLUGIN): New.
13842 * configure.ac (--with-lto-plugin): New parameter; autodetect
13843 HAVE_LTO_PLUGIN.
13844
17afc0fe
JH
138452011-01-07 Jan Hubicka <jh@suse.cz>
13846
13847 PR tree-optimization/46367
13848 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13849 when we can update original.
13850 (cgraph_mark_inline_edge): Sanity check.
13851 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13852
d4c48c0f
UW
138532011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13854
13855 * config/spu/spu.h (ASM_COMMENT_START): Define.
13856
96f5b137
L
138572011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13858
13859 PR driver/42445
13860 * gcc.c (%>S): New.
13861 (SWITCH_KEEP_FOR_GCC): Likewise.
13862 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13863 (do_spec_1): Handle "%>".
13864
13865 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13866
c6a8f6de
JJ
138672011-01-07 Jakub Jelinek <jakub@redhat.com>
13868
c21bbd7a
JJ
13869 PR target/47201
13870 * config/i386/i386.c (ix86_delegitimize_address): If
13871 simplify_gen_subreg fails, return orig_x.
13872
c6a8f6de
JJ
13873 PR bootstrap/47187
13874 * value-prof.c (gimple_stringop_fixed_value): Handle
13875 lhs of the call properly.
13876
fe95fbf9
JH
138772011-01-07 Jan Hubicka <jh@suse.cz>
13878
13879 PR lto/45375
13880 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13881
14d11d40
IS
138822011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13883
72e961c8
EB
13884 * target.def (function_switched_text_sections): New hook.
13885 * doc/tm.texi: Regenerated.
13886 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 13887 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
13888 (final_scan_insn): Call function_switched_text_sections when a
13889 mid-function section change occurs.
14d11d40 13890 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
13891 * config/darwin-protos.h (darwin_function_switched_text_sections):
13892 Likewise.
14d11d40 13893 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 13894 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 13895
0b764288
IS
138962011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13897
13898 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13899 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13900 the secondary code fragment when outputting for DWARF == 2.
13901
2ac6bb04
AS
139022011-01-07 Anatoly Sokolov <aesok@post.ru>
13903
13904 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13905 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13906 Remove.
13907 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13908 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13909
9f82de11
EB
139102011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13911
13912 PR debug/46704
280d9630
EB
13913 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13914 when it is not empty.
9f82de11
EB
13915
139162011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 13917
1ed72abf 13918 Bobcat Enablement
14b52538 13919 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 13920 (case ${target}): Add btver1.
14b52538 13921 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 13922 -march=native recognize btver1 processors.
14b52538 13923 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 13924 btver1 def_and_undef
14b52538 13925 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
13926 btver1 cost table.
13927 (m_BTVER1): New definition.
13928 (m_AMD_MULTIPLE): Includes m_BTVER1.
13929 (initial_ix86_tune_features): Add btver1 tune.
13930 (processor_target_table): Add btver1 entry.
13931 (static const char *const cpu_names): Add btver1 entry.
13932 (software_prefetching_beneficial_p): Add btver1.
13933 (ix86_option_override_internal): Add btver1 instruction sets.
13934 (ix86_issue_rate): Add btver1.
13935 (ix86_adjust_cost): Add btver1.
14b52538 13936 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
13937 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13938 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
13939 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13940
e1a973d8
RO
139412011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13942
13943 PR target/43309
13944 * config/i386/i386.c (legitimize_tls_address)
13945 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13946 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13947 (tls_initial_exec_64_sun): New pattern.
13948
c73f67c5
GP
139492011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13950
13951 * doc/invoke.texi (Overall Options): Improve wording and markup
13952 of the description of -wrapper.
13953
bc4c6f9c
JM
139542011-01-06 Joseph Myers <joseph@codesourcery.com>
13955
13956 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13957 rdynamic, threads): New Driver options.
13958
adb75db0
RO
139592011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13960
13961 PR target/38118
13962 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13963 if coming from .tdata.
13964 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13965
402c1cb4
JH
139662011-01-06 Jan Hubicka <jh@suse.cz>
13967
13968 PR lto/47188
13969 * collect2.c (main): Do not enable LTOmode when plugin is active.
13970
a4da6485
RO
139712011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13972
13973 PR other/45915
13974 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13975 --version output if supported.
13976 * configure: Regenerate.
13977
028dbdf4
JM
139782011-01-06 Joseph Myers <joseph@codesourcery.com>
13979
13980 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13981 Driver options.
13982
dfe776dd
JJ
139832011-01-06 Jakub Jelinek <jakub@redhat.com>
13984
13985 PR c/47150
13986 * c-convert.c (convert): When converting a complex expression
13987 other than COMPLEX_EXPR to a different complex type, ensure
13988 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13989 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13990 when converting COMPLEX_TYPE.
13991
210dedfe
IR
139922011-01-06 Ira Rosen <irar@il.ibm.com>
13993
13994 PR tree-optimization/47139
13995 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13996 only the last reduction value is used outside the loop. Update
13997 documentation.
13998
cd33a412
JM
139992011-01-05 Joseph Myers <joseph@codesourcery.com>
14000
14001 * config/rtems.opt: New.
14002 * config.gcc (*-*-rtems*): Use rtems.opt.
14003
819edd94
CF
140042011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14005
14006 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14007 processors do not support 3DNow instructions.
14008
dc242c4a
UW
140092011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14010
14011 * config/spu/spu.c (spu_option_override): Set parameter
14012 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14013
be286227
JH
140142011-01-05 Jan Hubicka <jh@suse.cz>
14015
14016 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14017 at the command line.
14018
644e637f
MJ
140192011-01-05 Martin Jambor <mjambor@suse.cz>
14020
14021 PR lto/47162
14022 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14023 deltas on streamed outgoing edges.
14024 (output_node_opt_summary): Output info for outgoing edges only when
14025 the node is in new parameter set.
14026 (output_cgraph_opt_summary): New parameter set, passed to the two
14027 aforementioned functions. Update its forward declaration and its
14028 callee too.
14029
7bd11157
TT
140302011-01-05 Tom Tromey <tromey@redhat.com>
14031
14032 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14033 operator to c_finish_omp_atomic.
14034 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14035 (build_unary_op): Update.
14036 (build_modify_expr): Update.
14037 (build_asm_expr): Update.
14038
f626b979
UW
140392011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14040
14041 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14042 newly inserted insns.
14043 (pad_bb): Likewise.
14044 (spu_emit_branch_hint): Likewise.
14045 (insert_hbrp_for_ilb_runout): Likewise.
14046 (spu_machine_dependent_reorg): Call df_finish_pass after
14047 schedule_insns returns.
14048
4c825c02
UW
140492011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14050
14051 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14052
5e9fba51
EB
140532011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14054
14055 PR tree-optimization/47005
14056 * tree-sra.c (struct access): Add 'non_addressable' bit.
14057 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14058 (decide_one_param_reduction): Return 0 if the parameter is passed by
14059 reference and one of the accesses in the group is non_addressable.
14060
3ebb5ca6
EB
140612011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14062
14063 PR tree-optimization/47056
14064 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14065 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14066 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14067
d5d4d14e
EB
140682011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14069
14070 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14071 initializer. Skip view conversions from aggregate types.
14072
d996ef70
KT
140732011-01-04 Kai Tietz <kai.tietz@onevision.com>
14074
14075 PR bootstrap/47055
14076 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14077
509d65dd 140782011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
14079
14080 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14081 obvious typo.
14082
55c623b5
UW
140832011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14084
14085 * function.c (thread_prologue_and_epilogue_insns): Do not crash
14086 on empty epilogue sequences.
14087
b98d6b35
JM
140882011-01-04 Joseph Myers <joseph@codesourcery.com>
14089
14090 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
14091 non-static): New Driver options.
14092
a0d43bac
JZ
140932011-01-04 Jie Zhang <jie@codesourcery.com>
14094
14095 PR driver/47137
14096 * gcc.c (default_compilers[]): Set combinable field to 0
14097 for all assembly languages.
14098
2b18eb32
MX
140992011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
14100
14101 * config/mips/loongson3a.md: New file.
14102 * config/mips/mips.md: Include loongson3a.md.
14103 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
14104 TUNE_LOONGSON_3A.
14105
42a48c4f
EB
141062011-01-03 Eric Botcazou <ebotcazou@adacore.com>
14107
14108 PR middle-end/47017
14109 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
14110 instead of convert_memory_address_addr_space on the base expression.
14111
9c1732c4
UW
141122011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14113
14114 * config/spu/spu.c (spu_option_override): Update error text
14115 for bad -march= / -mtune= values.
14116
aa474365
UW
141172011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14118
14119 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
14120 if branch-hint optimization will be performed.
14121
9766135b
JJ
141222011-01-03 Jakub Jelinek <jakub@redhat.com>
14123
371556ee
JJ
14124 PR tree-optimization/47148
14125 * ipa-split.c (split_function): Convert arguments to
14126 DECL_ARG_TYPE if possible.
14127
1ac12fa2
JJ
14128 PR tree-optimization/47155
14129 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
14130 when computing uns.
14131
9766135b
JJ
14132 PR rtl-optimization/47157
14133 * combine.c (try_combine): If undobuf.other_insn becomes
14134 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
14135 and set *new_direct_jump_p too.
14136
f4a2e571
SP
141372011-01-03 Sebastian Pop <sebastian.pop@amd.com>
14138
14139 PR tree-optimization/47021
14140 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
14141
9f8e43c0
JJ
141422011-01-03 Jakub Jelinek <jakub@redhat.com>
14143
14144 * gcc.c (process_command): Update copyright notice dates.
14145 * gcov.c (print_version): Likewise.
14146 * gcov-dump.c (print_version): Likewise.
14147 * mips-tfile.c (main): Likewise.
14148 * mips-tdump.c (main): Likewise.
14149
1a2e38f3
MJ
141502011-01-03 Martin Jambor <mjambor@suse.cz>
14151
14152 PR tree-optimization/46801
14153 * tree-sra.c (type_internals_preclude_sra_p): Check whether
14154 aggregate fields start at byte boundary instead of the bit-field flag.
14155
56b721c5
L
141562011-01-03 H.J. Lu <hongjiu.lu@intel.com>
14157
14158 PR driver/47137
14159 * gcc.c (main): Revert revision 168407.
14160
839d549b
MJ
141612011-01-03 Martin Jambor <mjambor@suse.cz>
14162
14163 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
14164
4ce99a20 141652011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
14166
14167 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
14168 vector optab to expand vector/scalar shift, update gimple to vector.
14169
76df0ae6
MJ
141702011-01-03 Martin Jambor <mjambor@suse.cz>
14171
14172 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
14173 a thunk.
14174
ce47fda3
MJ
141752011-01-03 Martin Jambor <mjambor@suse.cz>
14176
14177 PR tree-optimization/46984
14178 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
14179 HOST_WIDE_INT.
14180 (cgraph_create_indirect_edge): Fixed line length.
14181 (cgraph_indirect_call_info): Declare.
14182 (cgraph_make_edge_direct) Update declaration.
14183 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
14184 (cgraph_create_indirect_edge): Use it.
14185 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
14186 callees.
14187 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
14188 the new thunk_delta representation.
14189 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
14190 HOST_WIDE_INT.
14191 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
14192 (ipa_read_indirect_edge_info): Likewise.
14193 * lto-cgraph.c (output_edge_opt_summary): New function.
14194 (output_node_opt_summary): Call it on all outgoing edges.
14195 (input_edge_opt_summary): New function.
14196 (input_node_opt_summary): Call it on all outgoing edges.
14197
1e67fa1f
L
141982011-01-02 H.J. Lu <hongjiu.lu@intel.com>
14199
14200 PR driver/47137
14201 * gcc.c (main): Don't check have_o when settting combine_inputs.
14202
6656b2ac
EB
142032011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14204
14205 * regrename.c: Add general comment describing the pass.
14206 (struct du_head): Remove 'length' field.
14207 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14208 (regrename_optimize): Do not sort chains. Rework comments, add others.
14209 Force renaming to the preferred class (if any) in the first pass and do
14210 not consider registers that belong to it in the second pass.
14211 (create_new_chain): Do not set 'length' field.
14212 (scan_rtx_reg): Likewise.
14213
bc470c24
JJ
142142011-01-02 Jakub Jelinek <jakub@redhat.com>
14215
4e996296
JJ
14216 PR tree-optimization/47140
14217 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14218 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14219 to bit_value_binop.
14220
bc470c24 14221 PR rtl-optimization/47028
6656b2ac
EB
14222 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14223 parm_birth_insn instead of at the beginning of first bb.
bc470c24 14224
5af62fcd 142252011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
14226
14227 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14228 Remove the word "see" before "@pxref".
14229 * doc/rtl.texi: Remove the word "see" before "@pxref".
14230
0e20c89f
JH
142312011-01-01 Jan Hubicka <jh@suse.cz>
14232
6656b2ac
EB
14233 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14234 memory.
0e20c89f 14235
220e83ca
KT
142362011-01-01 Kai Tietz <kai.tietz@onevision.com>
14237
14238 PR target/38662
6656b2ac 14239 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 14240
ad41bd84 14241\f
797103eb 14242Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
14243
14244Copying and distribution of this file, with or without modification,
14245are permitted in any medium without royalty provided the copyright
14246notice and this notice are preserved.